@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
@@ -20,6 +20,13 @@ import {
20
20
  RichTextDocumentToJSON,
21
21
  RichTextDocumentToJSONTyped,
22
22
  } from './RichTextDocument';
23
+ import type { ContentLibraryTag } from './ContentLibraryTag';
24
+ import {
25
+ ContentLibraryTagFromJSON,
26
+ ContentLibraryTagFromJSONTyped,
27
+ ContentLibraryTagToJSON,
28
+ ContentLibraryTagToJSONTyped,
29
+ } from './ContentLibraryTag';
23
30
  import type { GetQuestionAnswerChoicesInner } from './GetQuestionAnswerChoicesInner';
24
31
  import {
25
32
  GetQuestionAnswerChoicesInnerFromJSON,
@@ -78,17 +85,11 @@ export interface GetQuestion {
78
85
  */
79
86
  explanation?: RichTextDocument;
80
87
  /**
81
- * Difficulty level of the question
82
- * @type {GetQuestionDifficultyLevelEnum}
88
+ * Shared tags associated with the question
89
+ * @type {Array<ContentLibraryTag>}
83
90
  * @memberof GetQuestion
84
91
  */
85
- difficultyLevel: GetQuestionDifficultyLevelEnum;
86
- /**
87
- * Keywords/tags for granular filtering
88
- * @type {Array<string>}
89
- * @memberof GetQuestion
90
- */
91
- tags?: Array<string>;
92
+ tags?: Array<ContentLibraryTag>;
92
93
  /**
93
94
  * Version identifier for triannual updates
94
95
  * @type {string}
@@ -147,16 +148,6 @@ export const GetQuestionQuestionTypeEnum = {
147
148
  } as const;
148
149
  export type GetQuestionQuestionTypeEnum = typeof GetQuestionQuestionTypeEnum[keyof typeof GetQuestionQuestionTypeEnum];
149
150
 
150
- /**
151
- * @export
152
- */
153
- export const GetQuestionDifficultyLevelEnum = {
154
- Beginner: 'beginner',
155
- Intermediate: 'intermediate',
156
- Advanced: 'advanced'
157
- } as const;
158
- export type GetQuestionDifficultyLevelEnum = typeof GetQuestionDifficultyLevelEnum[keyof typeof GetQuestionDifficultyLevelEnum];
159
-
160
151
 
161
152
  /**
162
153
  * Check if a given object implements the GetQuestion interface.
@@ -165,7 +156,6 @@ export function instanceOfGetQuestion(value: object): value is GetQuestion {
165
156
  if (!('id' in value) || value['id'] === undefined) return false;
166
157
  if (!('questionText' in value) || value['questionText'] === undefined) return false;
167
158
  if (!('questionType' in value) || value['questionType'] === undefined) return false;
168
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined) return false;
169
159
  if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
170
160
  if (!('createdDate' in value) || value['createdDate'] === undefined) return false;
171
161
  if (!('updatedDate' in value) || value['updatedDate'] === undefined) return false;
@@ -188,8 +178,7 @@ export function GetQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean
188
178
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(GetQuestionAnswerChoicesInnerFromJSON)),
189
179
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
190
180
  'explanation': json['explanation'] == null ? undefined : RichTextDocumentFromJSON(json['explanation']),
191
- 'difficultyLevel': json['difficulty_level'],
192
- 'tags': json['tags'] == null ? undefined : json['tags'],
181
+ 'tags': json['tags'] == null ? undefined : ((json['tags'] as Array<any>).map(ContentLibraryTagFromJSON)),
193
182
  'version': json['version'] == null ? undefined : json['version'],
194
183
  'versionNumber': json['version_number'],
195
184
  'createdDate': (new Date(json['created_date'])),
@@ -216,8 +205,7 @@ export function GetQuestionToJSONTyped(value?: Omit<GetQuestion, 'id'|'version_n
216
205
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(GetQuestionAnswerChoicesInnerToJSON)),
217
206
  'correct_answer': value['correctAnswer'],
218
207
  'explanation': RichTextDocumentToJSON(value['explanation']),
219
- 'difficulty_level': value['difficultyLevel'],
220
- 'tags': value['tags'],
208
+ 'tags': value['tags'] == null ? undefined : ((value['tags'] as Array<any>).map(ContentLibraryTagToJSON)),
221
209
  'version': value['version'],
222
210
  };
223
211
  }
@@ -26,17 +26,11 @@ export interface GetQuestionListFilters {
26
26
  */
27
27
  questionType?: GetQuestionListFiltersQuestionTypeEnum;
28
28
  /**
29
- * Filter by difficulty level
30
- * @type {GetQuestionListFiltersDifficultyLevelEnum}
31
- * @memberof GetQuestionListFilters
32
- */
33
- difficultyLevel?: GetQuestionListFiltersDifficultyLevelEnum;
34
- /**
35
- * Filter by tags/keywords
36
- * @type {Array<string>}
29
+ * Filter by a shared tag
30
+ * @type {string}
37
31
  * @memberof GetQuestionListFilters
38
32
  */
39
- tags?: Array<string>;
33
+ tagId?: string;
40
34
  /**
41
35
  * Search in question text
42
36
  * @type {string}
@@ -71,16 +65,6 @@ export const GetQuestionListFiltersQuestionTypeEnum = {
71
65
  } as const;
72
66
  export type GetQuestionListFiltersQuestionTypeEnum = typeof GetQuestionListFiltersQuestionTypeEnum[keyof typeof GetQuestionListFiltersQuestionTypeEnum];
73
67
 
74
- /**
75
- * @export
76
- */
77
- export const GetQuestionListFiltersDifficultyLevelEnum = {
78
- Beginner: 'beginner',
79
- Intermediate: 'intermediate',
80
- Advanced: 'advanced'
81
- } as const;
82
- export type GetQuestionListFiltersDifficultyLevelEnum = typeof GetQuestionListFiltersDifficultyLevelEnum[keyof typeof GetQuestionListFiltersDifficultyLevelEnum];
83
-
84
68
 
85
69
  /**
86
70
  * Check if a given object implements the GetQuestionListFilters interface.
@@ -100,8 +84,7 @@ export function GetQuestionListFiltersFromJSONTyped(json: any, ignoreDiscriminat
100
84
  return {
101
85
 
102
86
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
103
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
104
- 'tags': json['tags'] == null ? undefined : json['tags'],
87
+ 'tagId': json['tag_id'] == null ? undefined : json['tag_id'],
105
88
  'search': json['search'] == null ? undefined : json['search'],
106
89
  'createdAfter': json['created_after'] == null ? undefined : (new Date(json['created_after'])),
107
90
  'createdBefore': json['created_before'] == null ? undefined : (new Date(json['created_before'])),
@@ -120,8 +103,7 @@ export function GetQuestionListFiltersToJSONTyped(value?: GetQuestionListFilters
120
103
  return {
121
104
 
122
105
  'question_type': value['questionType'],
123
- 'difficulty_level': value['difficultyLevel'],
124
- 'tags': value['tags'],
106
+ 'tag_id': value['tagId'],
125
107
  'search': value['search'],
126
108
  'created_after': value['createdAfter'] == null ? value['createdAfter'] : value['createdAfter'].toISOString().substring(0,10),
127
109
  'created_before': value['createdBefore'] == null ? value['createdBefore'] : value['createdBefore'].toISOString().substring(0,10),
@@ -0,0 +1,140 @@
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 LearnerExperienceVersion
20
+ */
21
+ export interface LearnerExperienceVersion {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LearnerExperienceVersion
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof LearnerExperienceVersion
32
+ */
33
+ versionNumber: number;
34
+ /**
35
+ *
36
+ * @type {LearnerExperienceVersionStatusEnum}
37
+ * @memberof LearnerExperienceVersion
38
+ */
39
+ status: LearnerExperienceVersionStatusEnum;
40
+ /**
41
+ * Validated learner-experience-v1 shell and dashboard document.
42
+ * @type {{ [key: string]: any; }}
43
+ * @memberof LearnerExperienceVersion
44
+ */
45
+ designDocument: { [key: string]: any; };
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof LearnerExperienceVersion
50
+ */
51
+ changeNotes?: string | null;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof LearnerExperienceVersion
56
+ */
57
+ createdAt: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof LearnerExperienceVersion
62
+ */
63
+ updatedAt: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof LearnerExperienceVersion
68
+ */
69
+ publishedAt?: number | null;
70
+ }
71
+
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const LearnerExperienceVersionStatusEnum = {
77
+ Draft: 'draft',
78
+ Published: 'published',
79
+ Archived: 'archived',
80
+ System: 'system'
81
+ } as const;
82
+ export type LearnerExperienceVersionStatusEnum = typeof LearnerExperienceVersionStatusEnum[keyof typeof LearnerExperienceVersionStatusEnum];
83
+
84
+
85
+ /**
86
+ * Check if a given object implements the LearnerExperienceVersion interface.
87
+ */
88
+ export function instanceOfLearnerExperienceVersion(value: object): value is LearnerExperienceVersion {
89
+ if (!('id' in value) || value['id'] === undefined) return false;
90
+ if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
91
+ if (!('status' in value) || value['status'] === undefined) return false;
92
+ if (!('designDocument' in value) || value['designDocument'] === undefined) return false;
93
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
94
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
95
+ return true;
96
+ }
97
+
98
+ export function LearnerExperienceVersionFromJSON(json: any): LearnerExperienceVersion {
99
+ return LearnerExperienceVersionFromJSONTyped(json, false);
100
+ }
101
+
102
+ export function LearnerExperienceVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): LearnerExperienceVersion {
103
+ if (json == null) {
104
+ return json;
105
+ }
106
+ return {
107
+
108
+ 'id': json['id'],
109
+ 'versionNumber': json['version_number'],
110
+ 'status': json['status'],
111
+ 'designDocument': json['design_document'],
112
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
113
+ 'createdAt': json['created_at'],
114
+ 'updatedAt': json['updated_at'],
115
+ 'publishedAt': json['published_at'] == null ? undefined : json['published_at'],
116
+ };
117
+ }
118
+
119
+ export function LearnerExperienceVersionToJSON(json: any): LearnerExperienceVersion {
120
+ return LearnerExperienceVersionToJSONTyped(json, false);
121
+ }
122
+
123
+ export function LearnerExperienceVersionToJSONTyped(value?: LearnerExperienceVersion | null, ignoreDiscriminator: boolean = false): any {
124
+ if (value == null) {
125
+ return value;
126
+ }
127
+
128
+ return {
129
+
130
+ 'id': value['id'],
131
+ 'version_number': value['versionNumber'],
132
+ 'status': value['status'],
133
+ 'design_document': value['designDocument'],
134
+ 'change_notes': value['changeNotes'],
135
+ 'created_at': value['createdAt'],
136
+ 'updated_at': value['updatedAt'],
137
+ 'published_at': value['publishedAt'],
138
+ };
139
+ }
140
+
@@ -57,12 +57,6 @@ export interface LibraryQuizCriteriaPreviewQuestion {
57
57
  * @memberof LibraryQuizCriteriaPreviewQuestion
58
58
  */
59
59
  version?: string | null;
60
- /**
61
- *
62
- * @type {LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum}
63
- * @memberof LibraryQuizCriteriaPreviewQuestion
64
- */
65
- difficultyLevel: LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum;
66
60
  /**
67
61
  *
68
62
  * @type {Array<string>}
@@ -85,16 +79,6 @@ export const LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = {
85
79
  } as const;
86
80
  export type LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum = typeof LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum[keyof typeof LibraryQuizCriteriaPreviewQuestionQuestionTypeEnum];
87
81
 
88
- /**
89
- * @export
90
- */
91
- export const LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = {
92
- Beginner: 'beginner',
93
- Intermediate: 'intermediate',
94
- Advanced: 'advanced'
95
- } as const;
96
- export type LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum = typeof LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum[keyof typeof LibraryQuizCriteriaPreviewQuestionDifficultyLevelEnum];
97
-
98
82
 
99
83
  /**
100
84
  * Check if a given object implements the LibraryQuizCriteriaPreviewQuestion interface.
@@ -104,7 +88,6 @@ export function instanceOfLibraryQuizCriteriaPreviewQuestion(value: object): val
104
88
  if (!('questionText' in value) || value['questionText'] === undefined) return false;
105
89
  if (!('questionType' in value) || value['questionType'] === undefined) return false;
106
90
  if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
107
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined) return false;
108
91
  if (!('tags' in value) || value['tags'] === undefined) return false;
109
92
  return true;
110
93
  }
@@ -124,7 +107,6 @@ export function LibraryQuizCriteriaPreviewQuestionFromJSONTyped(json: any, ignor
124
107
  'questionType': json['question_type'],
125
108
  'versionNumber': json['version_number'],
126
109
  'version': json['version'] == null ? undefined : json['version'],
127
- 'difficultyLevel': json['difficulty_level'],
128
110
  'tags': json['tags'],
129
111
  };
130
112
  }
@@ -145,7 +127,6 @@ export function LibraryQuizCriteriaPreviewQuestionToJSONTyped(value?: LibraryQui
145
127
  'question_type': value['questionType'],
146
128
  'version_number': value['versionNumber'],
147
129
  'version': value['version'],
148
- 'difficulty_level': value['difficultyLevel'],
149
130
  'tags': value['tags'],
150
131
  };
151
132
  }
@@ -25,12 +25,6 @@ export interface LibraryQuizCriterion {
25
25
  * @memberof LibraryQuizCriterion
26
26
  */
27
27
  id?: string | null;
28
- /**
29
- *
30
- * @type {LibraryQuizCriterionDifficultyLevelEnum}
31
- * @memberof LibraryQuizCriterion
32
- */
33
- difficultyLevel?: LibraryQuizCriterionDifficultyLevelEnum | null;
34
28
  /**
35
29
  *
36
30
  * @type {LibraryQuizCriterionQuestionTypeEnum}
@@ -64,16 +58,6 @@ export interface LibraryQuizCriterion {
64
58
  }
65
59
 
66
60
 
67
- /**
68
- * @export
69
- */
70
- export const LibraryQuizCriterionDifficultyLevelEnum = {
71
- Beginner: 'beginner',
72
- Intermediate: 'intermediate',
73
- Advanced: 'advanced'
74
- } as const;
75
- export type LibraryQuizCriterionDifficultyLevelEnum = typeof LibraryQuizCriterionDifficultyLevelEnum[keyof typeof LibraryQuizCriterionDifficultyLevelEnum];
76
-
77
61
  /**
78
62
  * @export
79
63
  */
@@ -107,7 +91,6 @@ export function LibraryQuizCriterionFromJSONTyped(json: any, ignoreDiscriminator
107
91
  return {
108
92
 
109
93
  'id': json['id'] == null ? undefined : json['id'],
110
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
111
94
  'questionType': json['question_type'] == null ? undefined : json['question_type'],
112
95
  'tags': json['tags'] == null ? undefined : json['tags'],
113
96
  'minQuestions': json['min_questions'] == null ? undefined : json['min_questions'],
@@ -128,7 +111,6 @@ export function LibraryQuizCriterionToJSONTyped(value?: LibraryQuizCriterion | n
128
111
  return {
129
112
 
130
113
  'id': value['id'],
131
- 'difficulty_level': value['difficultyLevel'],
132
114
  'question_type': value['questionType'],
133
115
  'tags': value['tags'],
134
116
  'min_questions': value['minQuestions'],
@@ -0,0 +1,74 @@
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 PostLearnerExperiencePreview
20
+ */
21
+ export interface PostLearnerExperiencePreview {
22
+ /**
23
+ *
24
+ * @type {{ [key: string]: any; }}
25
+ * @memberof PostLearnerExperiencePreview
26
+ */
27
+ designDocument: { [key: string]: any; };
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PostLearnerExperiencePreview
32
+ */
33
+ changeNotes?: string | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PostLearnerExperiencePreview interface.
38
+ */
39
+ export function instanceOfPostLearnerExperiencePreview(value: object): value is PostLearnerExperiencePreview {
40
+ if (!('designDocument' in value) || value['designDocument'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function PostLearnerExperiencePreviewFromJSON(json: any): PostLearnerExperiencePreview {
45
+ return PostLearnerExperiencePreviewFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function PostLearnerExperiencePreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostLearnerExperiencePreview {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'designDocument': json['design_document'],
55
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
56
+ };
57
+ }
58
+
59
+ export function PostLearnerExperiencePreviewToJSON(json: any): PostLearnerExperiencePreview {
60
+ return PostLearnerExperiencePreviewToJSONTyped(json, false);
61
+ }
62
+
63
+ export function PostLearnerExperiencePreviewToJSONTyped(value?: PostLearnerExperiencePreview | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'design_document': value['designDocument'],
71
+ 'change_notes': value['changeNotes'],
72
+ };
73
+ }
74
+
@@ -64,12 +64,6 @@ export interface PostQuestion {
64
64
  * @memberof PostQuestion
65
65
  */
66
66
  explanation?: RichTextInput;
67
- /**
68
- * Difficulty level of the question
69
- * @type {PostQuestionDifficultyLevelEnum}
70
- * @memberof PostQuestion
71
- */
72
- difficultyLevel: PostQuestionDifficultyLevelEnum;
73
67
  /**
74
68
  * Keywords/tags for granular filtering
75
69
  * @type {Array<string>}
@@ -98,16 +92,6 @@ export const PostQuestionQuestionTypeEnum = {
98
92
  } as const;
99
93
  export type PostQuestionQuestionTypeEnum = typeof PostQuestionQuestionTypeEnum[keyof typeof PostQuestionQuestionTypeEnum];
100
94
 
101
- /**
102
- * @export
103
- */
104
- export const PostQuestionDifficultyLevelEnum = {
105
- Beginner: 'beginner',
106
- Intermediate: 'intermediate',
107
- Advanced: 'advanced'
108
- } as const;
109
- export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevelEnum[keyof typeof PostQuestionDifficultyLevelEnum];
110
-
111
95
 
112
96
  /**
113
97
  * Check if a given object implements the PostQuestion interface.
@@ -115,7 +99,6 @@ export type PostQuestionDifficultyLevelEnum = typeof PostQuestionDifficultyLevel
115
99
  export function instanceOfPostQuestion(value: object): value is PostQuestion {
116
100
  if (!('questionText' in value) || value['questionText'] === undefined) return false;
117
101
  if (!('questionType' in value) || value['questionType'] === undefined) return false;
118
- if (!('difficultyLevel' in value) || value['difficultyLevel'] === undefined) return false;
119
102
  return true;
120
103
  }
121
104
 
@@ -134,7 +117,6 @@ export function PostQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolea
134
117
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(PostQuestionAnswerChoicesInnerFromJSON)),
135
118
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
136
119
  'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
137
- 'difficultyLevel': json['difficulty_level'],
138
120
  'tags': json['tags'] == null ? undefined : json['tags'],
139
121
  'version': json['version'] == null ? undefined : json['version'],
140
122
  };
@@ -156,7 +138,6 @@ export function PostQuestionToJSONTyped(value?: PostQuestion | null, ignoreDiscr
156
138
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(PostQuestionAnswerChoicesInnerToJSON)),
157
139
  'correct_answer': value['correctAnswer'],
158
140
  'explanation': RichTextInputToJSON(value['explanation']),
159
- 'difficulty_level': value['difficultyLevel'],
160
141
  'tags': value['tags'],
161
142
  'version': value['version'],
162
143
  };
@@ -0,0 +1,74 @@
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 PutLearnerExperienceDraft
20
+ */
21
+ export interface PutLearnerExperienceDraft {
22
+ /**
23
+ *
24
+ * @type {{ [key: string]: any; }}
25
+ * @memberof PutLearnerExperienceDraft
26
+ */
27
+ designDocument: { [key: string]: any; };
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PutLearnerExperienceDraft
32
+ */
33
+ changeNotes?: string | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PutLearnerExperienceDraft interface.
38
+ */
39
+ export function instanceOfPutLearnerExperienceDraft(value: object): value is PutLearnerExperienceDraft {
40
+ if (!('designDocument' in value) || value['designDocument'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function PutLearnerExperienceDraftFromJSON(json: any): PutLearnerExperienceDraft {
45
+ return PutLearnerExperienceDraftFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function PutLearnerExperienceDraftFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLearnerExperienceDraft {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'designDocument': json['design_document'],
55
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
56
+ };
57
+ }
58
+
59
+ export function PutLearnerExperienceDraftToJSON(json: any): PutLearnerExperienceDraft {
60
+ return PutLearnerExperienceDraftToJSONTyped(json, false);
61
+ }
62
+
63
+ export function PutLearnerExperienceDraftToJSONTyped(value?: PutLearnerExperienceDraft | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'design_document': value['designDocument'],
71
+ 'change_notes': value['changeNotes'],
72
+ };
73
+ }
74
+
@@ -64,12 +64,6 @@ export interface PutQuestion {
64
64
  * @memberof PutQuestion
65
65
  */
66
66
  explanation?: RichTextInput;
67
- /**
68
- * Difficulty level of the question
69
- * @type {PutQuestionDifficultyLevelEnum}
70
- * @memberof PutQuestion
71
- */
72
- difficultyLevel?: PutQuestionDifficultyLevelEnum;
73
67
  /**
74
68
  * Keywords/tags for granular filtering
75
69
  * @type {Array<string>}
@@ -98,16 +92,6 @@ export const PutQuestionQuestionTypeEnum = {
98
92
  } as const;
99
93
  export type PutQuestionQuestionTypeEnum = typeof PutQuestionQuestionTypeEnum[keyof typeof PutQuestionQuestionTypeEnum];
100
94
 
101
- /**
102
- * @export
103
- */
104
- export const PutQuestionDifficultyLevelEnum = {
105
- Beginner: 'beginner',
106
- Intermediate: 'intermediate',
107
- Advanced: 'advanced'
108
- } as const;
109
- export type PutQuestionDifficultyLevelEnum = typeof PutQuestionDifficultyLevelEnum[keyof typeof PutQuestionDifficultyLevelEnum];
110
-
111
95
 
112
96
  /**
113
97
  * Check if a given object implements the PutQuestion interface.
@@ -131,7 +115,6 @@ export function PutQuestionFromJSONTyped(json: any, ignoreDiscriminator: boolean
131
115
  'answerChoices': json['answer_choices'] == null ? undefined : ((json['answer_choices'] as Array<any>).map(PutQuestionAnswerChoicesInnerFromJSON)),
132
116
  'correctAnswer': json['correct_answer'] == null ? undefined : json['correct_answer'],
133
117
  'explanation': json['explanation'] == null ? undefined : RichTextInputFromJSON(json['explanation']),
134
- 'difficultyLevel': json['difficulty_level'] == null ? undefined : json['difficulty_level'],
135
118
  'tags': json['tags'] == null ? undefined : json['tags'],
136
119
  'version': json['version'] == null ? undefined : json['version'],
137
120
  };
@@ -153,7 +136,6 @@ export function PutQuestionToJSONTyped(value?: PutQuestion | null, ignoreDiscrim
153
136
  'answer_choices': value['answerChoices'] == null ? undefined : ((value['answerChoices'] as Array<any>).map(PutQuestionAnswerChoicesInnerToJSON)),
154
137
  'correct_answer': value['correctAnswer'],
155
138
  'explanation': RichTextInputToJSON(value['explanation']),
156
- 'difficulty_level': value['difficultyLevel'],
157
139
  'tags': value['tags'],
158
140
  'version': value['version'],
159
141
  };
@@ -85,12 +85,18 @@ export * from './GetCourseVersionSection';
85
85
  export * from './GetCourseVersionSectionChild';
86
86
  export * from './GetCourseVersionSectionProgression';
87
87
  export * from './GetCourseVersionSectionReporting';
88
+ export * from './GetEffectiveLearnerExperience';
88
89
  export * from './GetEmailAssetUpload';
89
90
  export * from './GetEmailDelivery';
90
91
  export * from './GetEmailDeliveryList';
91
92
  export * from './GetEmailTemplate';
92
93
  export * from './GetEmailTemplateList';
93
94
  export * from './GetEmailTemplatePreview';
95
+ export * from './GetLearnerDashboard';
96
+ export * from './GetLearnerDashboardCourseList';
97
+ export * from './GetLearnerDashboardSummary';
98
+ export * from './GetLearnerExperience';
99
+ export * from './GetLearnerExperiencePreview';
94
100
  export * from './GetLibraryQuiz';
95
101
  export * from './GetLibraryQuizAnalytics';
96
102
  export * from './GetLibraryQuizCriteriaPreview';
@@ -154,6 +160,7 @@ export * from './GetUserCourseListItemCourse';
154
160
  export * from './GetUserCourseListItemEnrollment';
155
161
  export * from './GetUserCourseListItemProgress';
156
162
  export * from './GetUserRole';
163
+ export * from './LearnerExperienceVersion';
157
164
  export * from './LibraryQuizCriteriaPreviewQuestion';
158
165
  export * from './LibraryQuizCriterion';
159
166
  export * from './LibraryQuizCriterionPreview';
@@ -209,6 +216,7 @@ export * from './PostEmailAssetComplete';
209
216
  export * from './PostEmailAssetUpload';
210
217
  export * from './PostEmailTemplatePreview';
211
218
  export * from './PostEmailTemplateTestSend';
219
+ export * from './PostLearnerExperiencePreview';
212
220
  export * from './PostLibraryQuiz';
213
221
  export * from './PostLibraryQuizSession';
214
222
  export * from './PostLibraryQuizVersion';
@@ -256,6 +264,7 @@ export * from './PutCourseVersionItem';
256
264
  export * from './PutCourseVersionOutlineEntryMove';
257
265
  export * from './PutCourseVersionSection';
258
266
  export * from './PutEmailTemplateDraft';
267
+ export * from './PutLearnerExperienceDraft';
259
268
  export * from './PutLibraryQuiz';
260
269
  export * from './PutLibraryQuizCriteria';
261
270
  export * from './PutLibraryQuizQuestions';