@easyedu/js-lsm-api 1.110.0 → 1.112.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 (145) hide show
  1. package/.openapi-generator/FILES +42 -0
  2. package/README.md +33 -2
  3. package/dist/apis/LearnerExperienceApi.d.ts +153 -0
  4. package/dist/apis/LearnerExperienceApi.js +401 -0
  5. package/dist/apis/QuestionImportApi.d.ts +51 -0
  6. package/dist/apis/QuestionImportApi.js +135 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/esm/apis/LearnerExperienceApi.d.ts +153 -0
  10. package/dist/esm/apis/LearnerExperienceApi.js +397 -0
  11. package/dist/esm/apis/QuestionImportApi.d.ts +51 -0
  12. package/dist/esm/apis/QuestionImportApi.js +131 -0
  13. package/dist/esm/apis/index.d.ts +2 -0
  14. package/dist/esm/apis/index.js +2 -0
  15. package/dist/esm/models/GetEffectiveLearnerExperience.d.ts +62 -0
  16. package/dist/esm/models/GetEffectiveLearnerExperience.js +62 -0
  17. package/dist/esm/models/GetLearnerDashboard.d.ts +47 -0
  18. package/dist/esm/models/GetLearnerDashboard.js +54 -0
  19. package/dist/esm/models/GetLearnerDashboardCourseList.d.ts +39 -0
  20. package/dist/esm/models/GetLearnerDashboardCourseList.js +48 -0
  21. package/dist/esm/models/GetLearnerDashboardSummary.d.ts +56 -0
  22. package/dist/esm/models/GetLearnerDashboardSummary.js +59 -0
  23. package/dist/esm/models/GetLearnerExperience.d.ts +67 -0
  24. package/dist/esm/models/GetLearnerExperience.js +65 -0
  25. package/dist/esm/models/GetLearnerExperiencePreview.d.ts +40 -0
  26. package/dist/esm/models/GetLearnerExperiencePreview.js +47 -0
  27. package/dist/esm/models/GetQuestion.d.ts +7 -0
  28. package/dist/esm/models/GetQuestion.js +3 -0
  29. package/dist/esm/models/LearnerExperienceVersion.d.ts +86 -0
  30. package/dist/esm/models/LearnerExperienceVersion.js +76 -0
  31. package/dist/esm/models/PostLearnerExperiencePreview.d.ts +40 -0
  32. package/dist/esm/models/PostLearnerExperiencePreview.js +45 -0
  33. package/dist/esm/models/PostQuestionImportCommit.d.ts +58 -0
  34. package/dist/esm/models/PostQuestionImportCommit.js +59 -0
  35. package/dist/esm/models/PostQuestionImportCommitItem.d.ts +72 -0
  36. package/dist/esm/models/PostQuestionImportCommitItem.js +66 -0
  37. package/dist/esm/models/PostQuestionImportCommitResponse.d.ts +51 -0
  38. package/dist/esm/models/PostQuestionImportCommitResponse.js +56 -0
  39. package/dist/esm/models/PostQuestionImportParseResponse.d.ts +71 -0
  40. package/dist/esm/models/PostQuestionImportParseResponse.js +70 -0
  41. package/dist/esm/models/PutLearnerExperienceDraft.d.ts +40 -0
  42. package/dist/esm/models/PutLearnerExperienceDraft.js +45 -0
  43. package/dist/esm/models/QuestionImportCommitResult.d.ts +53 -0
  44. package/dist/esm/models/QuestionImportCommitResult.js +57 -0
  45. package/dist/esm/models/QuestionImportDraft.d.ts +76 -0
  46. package/dist/esm/models/QuestionImportDraft.js +69 -0
  47. package/dist/esm/models/QuestionImportDuplicate.d.ts +66 -0
  48. package/dist/esm/models/QuestionImportDuplicate.js +62 -0
  49. package/dist/esm/models/QuestionImportPreviewImage.d.ts +84 -0
  50. package/dist/esm/models/QuestionImportPreviewImage.js +76 -0
  51. package/dist/esm/models/QuestionImportSource.d.ts +56 -0
  52. package/dist/esm/models/QuestionImportSource.js +57 -0
  53. package/dist/esm/models/QuestionImportSourceSummary.d.ts +50 -0
  54. package/dist/esm/models/QuestionImportSourceSummary.js +53 -0
  55. package/dist/esm/models/index.d.ts +19 -0
  56. package/dist/esm/models/index.js +19 -0
  57. package/dist/models/GetEffectiveLearnerExperience.d.ts +62 -0
  58. package/dist/models/GetEffectiveLearnerExperience.js +70 -0
  59. package/dist/models/GetLearnerDashboard.d.ts +47 -0
  60. package/dist/models/GetLearnerDashboard.js +61 -0
  61. package/dist/models/GetLearnerDashboardCourseList.d.ts +39 -0
  62. package/dist/models/GetLearnerDashboardCourseList.js +55 -0
  63. package/dist/models/GetLearnerDashboardSummary.d.ts +56 -0
  64. package/dist/models/GetLearnerDashboardSummary.js +66 -0
  65. package/dist/models/GetLearnerExperience.d.ts +67 -0
  66. package/dist/models/GetLearnerExperience.js +73 -0
  67. package/dist/models/GetLearnerExperiencePreview.d.ts +40 -0
  68. package/dist/models/GetLearnerExperiencePreview.js +54 -0
  69. package/dist/models/GetQuestion.d.ts +7 -0
  70. package/dist/models/GetQuestion.js +3 -0
  71. package/dist/models/LearnerExperienceVersion.d.ts +86 -0
  72. package/dist/models/LearnerExperienceVersion.js +84 -0
  73. package/dist/models/PostLearnerExperiencePreview.d.ts +40 -0
  74. package/dist/models/PostLearnerExperiencePreview.js +52 -0
  75. package/dist/models/PostQuestionImportCommit.d.ts +58 -0
  76. package/dist/models/PostQuestionImportCommit.js +66 -0
  77. package/dist/models/PostQuestionImportCommitItem.d.ts +72 -0
  78. package/dist/models/PostQuestionImportCommitItem.js +74 -0
  79. package/dist/models/PostQuestionImportCommitResponse.d.ts +51 -0
  80. package/dist/models/PostQuestionImportCommitResponse.js +63 -0
  81. package/dist/models/PostQuestionImportParseResponse.d.ts +71 -0
  82. package/dist/models/PostQuestionImportParseResponse.js +77 -0
  83. package/dist/models/PutLearnerExperienceDraft.d.ts +40 -0
  84. package/dist/models/PutLearnerExperienceDraft.js +52 -0
  85. package/dist/models/QuestionImportCommitResult.d.ts +53 -0
  86. package/dist/models/QuestionImportCommitResult.js +65 -0
  87. package/dist/models/QuestionImportDraft.d.ts +76 -0
  88. package/dist/models/QuestionImportDraft.js +76 -0
  89. package/dist/models/QuestionImportDuplicate.d.ts +66 -0
  90. package/dist/models/QuestionImportDuplicate.js +70 -0
  91. package/dist/models/QuestionImportPreviewImage.d.ts +84 -0
  92. package/dist/models/QuestionImportPreviewImage.js +84 -0
  93. package/dist/models/QuestionImportSource.d.ts +56 -0
  94. package/dist/models/QuestionImportSource.js +64 -0
  95. package/dist/models/QuestionImportSourceSummary.d.ts +50 -0
  96. package/dist/models/QuestionImportSourceSummary.js +60 -0
  97. package/dist/models/index.d.ts +19 -0
  98. package/dist/models/index.js +19 -0
  99. package/docs/GetEffectiveLearnerExperience.md +40 -0
  100. package/docs/GetLearnerDashboard.md +38 -0
  101. package/docs/GetLearnerDashboardCourseList.md +36 -0
  102. package/docs/GetLearnerDashboardSummary.md +42 -0
  103. package/docs/GetLearnerExperience.md +42 -0
  104. package/docs/GetLearnerExperiencePreview.md +36 -0
  105. package/docs/GetQuestion.md +2 -0
  106. package/docs/LearnerExperienceApi.md +622 -0
  107. package/docs/LearnerExperienceVersion.md +48 -0
  108. package/docs/PostLearnerExperiencePreview.md +36 -0
  109. package/docs/PostQuestionImportCommit.md +42 -0
  110. package/docs/PostQuestionImportCommitItem.md +44 -0
  111. package/docs/PostQuestionImportCommitResponse.md +40 -0
  112. package/docs/PostQuestionImportParseResponse.md +46 -0
  113. package/docs/PutLearnerExperienceDraft.md +36 -0
  114. package/docs/QuestionImportApi.md +149 -0
  115. package/docs/QuestionImportCommitResult.md +38 -0
  116. package/docs/QuestionImportDraft.md +48 -0
  117. package/docs/QuestionImportDuplicate.md +42 -0
  118. package/docs/QuestionImportPreviewImage.md +48 -0
  119. package/docs/QuestionImportSource.md +42 -0
  120. package/docs/QuestionImportSourceSummary.md +40 -0
  121. package/package.json +1 -1
  122. package/src/apis/LearnerExperienceApi.ts +465 -0
  123. package/src/apis/QuestionImportApi.ts +162 -0
  124. package/src/apis/index.ts +2 -0
  125. package/src/models/GetEffectiveLearnerExperience.ts +105 -0
  126. package/src/models/GetLearnerDashboard.ts +106 -0
  127. package/src/models/GetLearnerDashboardCourseList.ts +83 -0
  128. package/src/models/GetLearnerDashboardSummary.ts +102 -0
  129. package/src/models/GetLearnerExperience.ts +121 -0
  130. package/src/models/GetLearnerExperiencePreview.ts +75 -0
  131. package/src/models/GetQuestion.ts +15 -0
  132. package/src/models/LearnerExperienceVersion.ts +140 -0
  133. package/src/models/PostLearnerExperiencePreview.ts +74 -0
  134. package/src/models/PostQuestionImportCommit.ts +116 -0
  135. package/src/models/PostQuestionImportCommitItem.ts +128 -0
  136. package/src/models/PostQuestionImportCommitResponse.ts +101 -0
  137. package/src/models/PostQuestionImportParseResponse.ts +142 -0
  138. package/src/models/PutLearnerExperienceDraft.ts +74 -0
  139. package/src/models/QuestionImportCommitResult.ts +95 -0
  140. package/src/models/QuestionImportDraft.ts +142 -0
  141. package/src/models/QuestionImportDuplicate.ts +112 -0
  142. package/src/models/QuestionImportPreviewImage.ts +140 -0
  143. package/src/models/QuestionImportSource.ts +101 -0
  144. package/src/models/QuestionImportSourceSummary.ts +92 -0
  145. package/src/models/index.ts +19 -0
@@ -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
+
@@ -0,0 +1,95 @@
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 QuestionImportCommitResult
20
+ */
21
+ export interface QuestionImportCommitResult {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof QuestionImportCommitResult
26
+ */
27
+ draftId: string;
28
+ /**
29
+ *
30
+ * @type {QuestionImportCommitResultActionEnum}
31
+ * @memberof QuestionImportCommitResult
32
+ */
33
+ action: QuestionImportCommitResultActionEnum;
34
+ /**
35
+ * Identifier of the newly created question or question version
36
+ * @type {string}
37
+ * @memberof QuestionImportCommitResult
38
+ */
39
+ questionId?: string | null;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const QuestionImportCommitResultActionEnum = {
47
+ Created: 'created',
48
+ Versioned: 'versioned',
49
+ Skipped: 'skipped'
50
+ } as const;
51
+ export type QuestionImportCommitResultActionEnum = typeof QuestionImportCommitResultActionEnum[keyof typeof QuestionImportCommitResultActionEnum];
52
+
53
+
54
+ /**
55
+ * Check if a given object implements the QuestionImportCommitResult interface.
56
+ */
57
+ export function instanceOfQuestionImportCommitResult(value: object): value is QuestionImportCommitResult {
58
+ if (!('draftId' in value) || value['draftId'] === undefined) return false;
59
+ if (!('action' in value) || value['action'] === undefined) return false;
60
+ return true;
61
+ }
62
+
63
+ export function QuestionImportCommitResultFromJSON(json: any): QuestionImportCommitResult {
64
+ return QuestionImportCommitResultFromJSONTyped(json, false);
65
+ }
66
+
67
+ export function QuestionImportCommitResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportCommitResult {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+
73
+ 'draftId': json['draft_id'],
74
+ 'action': json['action'],
75
+ 'questionId': json['question_id'] == null ? undefined : json['question_id'],
76
+ };
77
+ }
78
+
79
+ export function QuestionImportCommitResultToJSON(json: any): QuestionImportCommitResult {
80
+ return QuestionImportCommitResultToJSONTyped(json, false);
81
+ }
82
+
83
+ export function QuestionImportCommitResultToJSONTyped(value?: QuestionImportCommitResult | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'draft_id': value['draftId'],
91
+ 'action': value['action'],
92
+ 'question_id': value['questionId'],
93
+ };
94
+ }
95
+
@@ -0,0 +1,142 @@
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
+ import type { QuestionImportDuplicate } from './QuestionImportDuplicate';
17
+ import {
18
+ QuestionImportDuplicateFromJSON,
19
+ QuestionImportDuplicateFromJSONTyped,
20
+ QuestionImportDuplicateToJSON,
21
+ QuestionImportDuplicateToJSONTyped,
22
+ } from './QuestionImportDuplicate';
23
+ import type { PostQuestion } from './PostQuestion';
24
+ import {
25
+ PostQuestionFromJSON,
26
+ PostQuestionFromJSONTyped,
27
+ PostQuestionToJSON,
28
+ PostQuestionToJSONTyped,
29
+ } from './PostQuestion';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface QuestionImportDraft
35
+ */
36
+ export interface QuestionImportDraft {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof QuestionImportDraft
41
+ */
42
+ draftId: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof QuestionImportDraft
47
+ */
48
+ sourceKey?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof QuestionImportDraft
53
+ */
54
+ sourceLocation?: string | null;
55
+ /**
56
+ *
57
+ * @type {PostQuestion}
58
+ * @memberof QuestionImportDraft
59
+ */
60
+ question: PostQuestion;
61
+ /**
62
+ *
63
+ * @type {QuestionImportDuplicate}
64
+ * @memberof QuestionImportDraft
65
+ */
66
+ duplicate: QuestionImportDuplicate;
67
+ /**
68
+ *
69
+ * @type {Array<string>}
70
+ * @memberof QuestionImportDraft
71
+ */
72
+ warnings: Array<string>;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof QuestionImportDraft
77
+ */
78
+ confidence: number;
79
+ /**
80
+ *
81
+ * @type {boolean}
82
+ * @memberof QuestionImportDraft
83
+ */
84
+ included: boolean;
85
+ }
86
+
87
+ /**
88
+ * Check if a given object implements the QuestionImportDraft interface.
89
+ */
90
+ export function instanceOfQuestionImportDraft(value: object): value is QuestionImportDraft {
91
+ if (!('draftId' in value) || value['draftId'] === undefined) return false;
92
+ if (!('question' in value) || value['question'] === undefined) return false;
93
+ if (!('duplicate' in value) || value['duplicate'] === undefined) return false;
94
+ if (!('warnings' in value) || value['warnings'] === undefined) return false;
95
+ if (!('confidence' in value) || value['confidence'] === undefined) return false;
96
+ if (!('included' in value) || value['included'] === undefined) return false;
97
+ return true;
98
+ }
99
+
100
+ export function QuestionImportDraftFromJSON(json: any): QuestionImportDraft {
101
+ return QuestionImportDraftFromJSONTyped(json, false);
102
+ }
103
+
104
+ export function QuestionImportDraftFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportDraft {
105
+ if (json == null) {
106
+ return json;
107
+ }
108
+ return {
109
+
110
+ 'draftId': json['draft_id'],
111
+ 'sourceKey': json['source_key'] == null ? undefined : json['source_key'],
112
+ 'sourceLocation': json['source_location'] == null ? undefined : json['source_location'],
113
+ 'question': PostQuestionFromJSON(json['question']),
114
+ 'duplicate': QuestionImportDuplicateFromJSON(json['duplicate']),
115
+ 'warnings': json['warnings'],
116
+ 'confidence': json['confidence'],
117
+ 'included': json['included'],
118
+ };
119
+ }
120
+
121
+ export function QuestionImportDraftToJSON(json: any): QuestionImportDraft {
122
+ return QuestionImportDraftToJSONTyped(json, false);
123
+ }
124
+
125
+ export function QuestionImportDraftToJSONTyped(value?: QuestionImportDraft | null, ignoreDiscriminator: boolean = false): any {
126
+ if (value == null) {
127
+ return value;
128
+ }
129
+
130
+ return {
131
+
132
+ 'draft_id': value['draftId'],
133
+ 'source_key': value['sourceKey'],
134
+ 'source_location': value['sourceLocation'],
135
+ 'question': PostQuestionToJSON(value['question']),
136
+ 'duplicate': QuestionImportDuplicateToJSON(value['duplicate']),
137
+ 'warnings': value['warnings'],
138
+ 'confidence': value['confidence'],
139
+ 'included': value['included'],
140
+ };
141
+ }
142
+
@@ -0,0 +1,112 @@
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 QuestionImportDuplicate
20
+ */
21
+ export interface QuestionImportDuplicate {
22
+ /**
23
+ *
24
+ * @type {QuestionImportDuplicateStatusEnum}
25
+ * @memberof QuestionImportDuplicate
26
+ */
27
+ status: QuestionImportDuplicateStatusEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof QuestionImportDuplicate
32
+ */
33
+ matchedQuestionId?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof QuestionImportDuplicate
38
+ */
39
+ matchedDraftId?: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof QuestionImportDuplicate
44
+ */
45
+ matchedQuestionText?: string | null;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof QuestionImportDuplicate
50
+ */
51
+ similarity: number;
52
+ }
53
+
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const QuestionImportDuplicateStatusEnum = {
59
+ New: 'new',
60
+ Exact: 'exact',
61
+ Possible: 'possible',
62
+ WithinUpload: 'within_upload'
63
+ } as const;
64
+ export type QuestionImportDuplicateStatusEnum = typeof QuestionImportDuplicateStatusEnum[keyof typeof QuestionImportDuplicateStatusEnum];
65
+
66
+
67
+ /**
68
+ * Check if a given object implements the QuestionImportDuplicate interface.
69
+ */
70
+ export function instanceOfQuestionImportDuplicate(value: object): value is QuestionImportDuplicate {
71
+ if (!('status' in value) || value['status'] === undefined) return false;
72
+ if (!('similarity' in value) || value['similarity'] === undefined) return false;
73
+ return true;
74
+ }
75
+
76
+ export function QuestionImportDuplicateFromJSON(json: any): QuestionImportDuplicate {
77
+ return QuestionImportDuplicateFromJSONTyped(json, false);
78
+ }
79
+
80
+ export function QuestionImportDuplicateFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportDuplicate {
81
+ if (json == null) {
82
+ return json;
83
+ }
84
+ return {
85
+
86
+ 'status': json['status'],
87
+ 'matchedQuestionId': json['matched_question_id'] == null ? undefined : json['matched_question_id'],
88
+ 'matchedDraftId': json['matched_draft_id'] == null ? undefined : json['matched_draft_id'],
89
+ 'matchedQuestionText': json['matched_question_text'] == null ? undefined : json['matched_question_text'],
90
+ 'similarity': json['similarity'],
91
+ };
92
+ }
93
+
94
+ export function QuestionImportDuplicateToJSON(json: any): QuestionImportDuplicate {
95
+ return QuestionImportDuplicateToJSONTyped(json, false);
96
+ }
97
+
98
+ export function QuestionImportDuplicateToJSONTyped(value?: QuestionImportDuplicate | null, ignoreDiscriminator: boolean = false): any {
99
+ if (value == null) {
100
+ return value;
101
+ }
102
+
103
+ return {
104
+
105
+ 'status': value['status'],
106
+ 'matched_question_id': value['matchedQuestionId'],
107
+ 'matched_draft_id': value['matchedDraftId'],
108
+ 'matched_question_text': value['matchedQuestionText'],
109
+ 'similarity': value['similarity'],
110
+ };
111
+ }
112
+
@@ -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 QuestionImportPreviewImage
20
+ */
21
+ export interface QuestionImportPreviewImage {
22
+ /**
23
+ * Import-scoped image identifier used by source: image placeholders
24
+ * @type {string}
25
+ * @memberof QuestionImportPreviewImage
26
+ */
27
+ sourceId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof QuestionImportPreviewImage
32
+ */
33
+ filename: string;
34
+ /**
35
+ *
36
+ * @type {QuestionImportPreviewImageMimeTypeEnum}
37
+ * @memberof QuestionImportPreviewImage
38
+ */
39
+ mimeType: QuestionImportPreviewImageMimeTypeEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof QuestionImportPreviewImage
44
+ */
45
+ byteSize: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof QuestionImportPreviewImage
50
+ */
51
+ width?: number | null;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof QuestionImportPreviewImage
56
+ */
57
+ height?: number | null;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof QuestionImportPreviewImage
62
+ */
63
+ sha256: string;
64
+ /**
65
+ * Base64 image bytes for stateless review; reposted unchanged when committing
66
+ * @type {string}
67
+ * @memberof QuestionImportPreviewImage
68
+ */
69
+ dataBase64: string;
70
+ }
71
+
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const QuestionImportPreviewImageMimeTypeEnum = {
77
+ ImagePng: 'image/png',
78
+ ImageJpeg: 'image/jpeg',
79
+ ImageWebp: 'image/webp',
80
+ ImageGif: 'image/gif'
81
+ } as const;
82
+ export type QuestionImportPreviewImageMimeTypeEnum = typeof QuestionImportPreviewImageMimeTypeEnum[keyof typeof QuestionImportPreviewImageMimeTypeEnum];
83
+
84
+
85
+ /**
86
+ * Check if a given object implements the QuestionImportPreviewImage interface.
87
+ */
88
+ export function instanceOfQuestionImportPreviewImage(value: object): value is QuestionImportPreviewImage {
89
+ if (!('sourceId' in value) || value['sourceId'] === undefined) return false;
90
+ if (!('filename' in value) || value['filename'] === undefined) return false;
91
+ if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
92
+ if (!('byteSize' in value) || value['byteSize'] === undefined) return false;
93
+ if (!('sha256' in value) || value['sha256'] === undefined) return false;
94
+ if (!('dataBase64' in value) || value['dataBase64'] === undefined) return false;
95
+ return true;
96
+ }
97
+
98
+ export function QuestionImportPreviewImageFromJSON(json: any): QuestionImportPreviewImage {
99
+ return QuestionImportPreviewImageFromJSONTyped(json, false);
100
+ }
101
+
102
+ export function QuestionImportPreviewImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportPreviewImage {
103
+ if (json == null) {
104
+ return json;
105
+ }
106
+ return {
107
+
108
+ 'sourceId': json['source_id'],
109
+ 'filename': json['filename'],
110
+ 'mimeType': json['mime_type'],
111
+ 'byteSize': json['byte_size'],
112
+ 'width': json['width'] == null ? undefined : json['width'],
113
+ 'height': json['height'] == null ? undefined : json['height'],
114
+ 'sha256': json['sha256'],
115
+ 'dataBase64': json['data_base64'],
116
+ };
117
+ }
118
+
119
+ export function QuestionImportPreviewImageToJSON(json: any): QuestionImportPreviewImage {
120
+ return QuestionImportPreviewImageToJSONTyped(json, false);
121
+ }
122
+
123
+ export function QuestionImportPreviewImageToJSONTyped(value?: QuestionImportPreviewImage | null, ignoreDiscriminator: boolean = false): any {
124
+ if (value == null) {
125
+ return value;
126
+ }
127
+
128
+ return {
129
+
130
+ 'source_id': value['sourceId'],
131
+ 'filename': value['filename'],
132
+ 'mime_type': value['mimeType'],
133
+ 'byte_size': value['byteSize'],
134
+ 'width': value['width'],
135
+ 'height': value['height'],
136
+ 'sha256': value['sha256'],
137
+ 'data_base64': value['dataBase64'],
138
+ };
139
+ }
140
+
@@ -0,0 +1,101 @@
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 QuestionImportSource
20
+ */
21
+ export interface QuestionImportSource {
22
+ /**
23
+ * Editable source label proposed from the detected quiz title or filename
24
+ * @type {string}
25
+ * @memberof QuestionImportSource
26
+ */
27
+ label: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof QuestionImportSource
32
+ */
33
+ detectedTitle?: string | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof QuestionImportSource
38
+ */
39
+ originalFilename: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof QuestionImportSource
44
+ */
45
+ mediaType: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof QuestionImportSource
50
+ */
51
+ fileSha256: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the QuestionImportSource interface.
56
+ */
57
+ export function instanceOfQuestionImportSource(value: object): value is QuestionImportSource {
58
+ if (!('label' in value) || value['label'] === undefined) return false;
59
+ if (!('originalFilename' in value) || value['originalFilename'] === undefined) return false;
60
+ if (!('mediaType' in value) || value['mediaType'] === undefined) return false;
61
+ if (!('fileSha256' in value) || value['fileSha256'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function QuestionImportSourceFromJSON(json: any): QuestionImportSource {
66
+ return QuestionImportSourceFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function QuestionImportSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportSource {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'label': json['label'],
76
+ 'detectedTitle': json['detected_title'] == null ? undefined : json['detected_title'],
77
+ 'originalFilename': json['original_filename'],
78
+ 'mediaType': json['media_type'],
79
+ 'fileSha256': json['file_sha256'],
80
+ };
81
+ }
82
+
83
+ export function QuestionImportSourceToJSON(json: any): QuestionImportSource {
84
+ return QuestionImportSourceToJSONTyped(json, false);
85
+ }
86
+
87
+ export function QuestionImportSourceToJSONTyped(value?: QuestionImportSource | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'label': value['label'],
95
+ 'detected_title': value['detectedTitle'],
96
+ 'original_filename': value['originalFilename'],
97
+ 'media_type': value['mediaType'],
98
+ 'file_sha256': value['fileSha256'],
99
+ };
100
+ }
101
+