@easyedu/js-lsm-api 1.111.0 → 1.113.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 (97) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +16 -3
  3. package/dist/apis/QuestionApi.d.ts +17 -2
  4. package/dist/apis/QuestionApi.js +41 -2
  5. package/dist/apis/QuestionImportApi.d.ts +51 -0
  6. package/dist/apis/QuestionImportApi.js +135 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/QuestionApi.d.ts +17 -2
  10. package/dist/esm/apis/QuestionApi.js +41 -2
  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 +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/GetQuestion.d.ts +20 -1
  16. package/dist/esm/models/GetQuestion.js +8 -0
  17. package/dist/esm/models/PostQuestionImportCommit.d.ts +58 -0
  18. package/dist/esm/models/PostQuestionImportCommit.js +59 -0
  19. package/dist/esm/models/PostQuestionImportCommitItem.d.ts +72 -0
  20. package/dist/esm/models/PostQuestionImportCommitItem.js +66 -0
  21. package/dist/esm/models/PostQuestionImportCommitResponse.d.ts +51 -0
  22. package/dist/esm/models/PostQuestionImportCommitResponse.js +56 -0
  23. package/dist/esm/models/PostQuestionImportParseResponse.d.ts +71 -0
  24. package/dist/esm/models/PostQuestionImportParseResponse.js +70 -0
  25. package/dist/esm/models/PutQuestion.d.ts +6 -0
  26. package/dist/esm/models/PutQuestion.js +2 -0
  27. package/dist/esm/models/QuestionImportCommitResult.d.ts +53 -0
  28. package/dist/esm/models/QuestionImportCommitResult.js +57 -0
  29. package/dist/esm/models/QuestionImportDraft.d.ts +76 -0
  30. package/dist/esm/models/QuestionImportDraft.js +69 -0
  31. package/dist/esm/models/QuestionImportDuplicate.d.ts +66 -0
  32. package/dist/esm/models/QuestionImportDuplicate.js +62 -0
  33. package/dist/esm/models/QuestionImportPreviewImage.d.ts +84 -0
  34. package/dist/esm/models/QuestionImportPreviewImage.js +76 -0
  35. package/dist/esm/models/QuestionImportSource.d.ts +56 -0
  36. package/dist/esm/models/QuestionImportSource.js +57 -0
  37. package/dist/esm/models/QuestionImportSourceSummary.d.ts +50 -0
  38. package/dist/esm/models/QuestionImportSourceSummary.js +53 -0
  39. package/dist/esm/models/index.d.ts +10 -0
  40. package/dist/esm/models/index.js +10 -0
  41. package/dist/models/GetQuestion.d.ts +20 -1
  42. package/dist/models/GetQuestion.js +8 -0
  43. package/dist/models/PostQuestionImportCommit.d.ts +58 -0
  44. package/dist/models/PostQuestionImportCommit.js +66 -0
  45. package/dist/models/PostQuestionImportCommitItem.d.ts +72 -0
  46. package/dist/models/PostQuestionImportCommitItem.js +74 -0
  47. package/dist/models/PostQuestionImportCommitResponse.d.ts +51 -0
  48. package/dist/models/PostQuestionImportCommitResponse.js +63 -0
  49. package/dist/models/PostQuestionImportParseResponse.d.ts +71 -0
  50. package/dist/models/PostQuestionImportParseResponse.js +77 -0
  51. package/dist/models/PutQuestion.d.ts +6 -0
  52. package/dist/models/PutQuestion.js +2 -0
  53. package/dist/models/QuestionImportCommitResult.d.ts +53 -0
  54. package/dist/models/QuestionImportCommitResult.js +65 -0
  55. package/dist/models/QuestionImportDraft.d.ts +76 -0
  56. package/dist/models/QuestionImportDraft.js +76 -0
  57. package/dist/models/QuestionImportDuplicate.d.ts +66 -0
  58. package/dist/models/QuestionImportDuplicate.js +70 -0
  59. package/dist/models/QuestionImportPreviewImage.d.ts +84 -0
  60. package/dist/models/QuestionImportPreviewImage.js +84 -0
  61. package/dist/models/QuestionImportSource.d.ts +56 -0
  62. package/dist/models/QuestionImportSource.js +64 -0
  63. package/dist/models/QuestionImportSourceSummary.d.ts +50 -0
  64. package/dist/models/QuestionImportSourceSummary.js +60 -0
  65. package/dist/models/index.d.ts +10 -0
  66. package/dist/models/index.js +10 -0
  67. package/docs/GetQuestion.md +6 -0
  68. package/docs/PostQuestionImportCommit.md +42 -0
  69. package/docs/PostQuestionImportCommitItem.md +44 -0
  70. package/docs/PostQuestionImportCommitResponse.md +40 -0
  71. package/docs/PostQuestionImportParseResponse.md +46 -0
  72. package/docs/PutQuestion.md +2 -0
  73. package/docs/QuestionApi.md +70 -2
  74. package/docs/QuestionImportApi.md +149 -0
  75. package/docs/QuestionImportCommitResult.md +38 -0
  76. package/docs/QuestionImportDraft.md +48 -0
  77. package/docs/QuestionImportDuplicate.md +42 -0
  78. package/docs/QuestionImportPreviewImage.md +48 -0
  79. package/docs/QuestionImportSource.md +42 -0
  80. package/docs/QuestionImportSourceSummary.md +40 -0
  81. package/package.json +1 -1
  82. package/src/apis/QuestionApi.ts +51 -2
  83. package/src/apis/QuestionImportApi.ts +162 -0
  84. package/src/apis/index.ts +1 -0
  85. package/src/models/GetQuestion.ts +32 -1
  86. package/src/models/PostQuestionImportCommit.ts +116 -0
  87. package/src/models/PostQuestionImportCommitItem.ts +128 -0
  88. package/src/models/PostQuestionImportCommitResponse.ts +101 -0
  89. package/src/models/PostQuestionImportParseResponse.ts +142 -0
  90. package/src/models/PutQuestion.ts +8 -0
  91. package/src/models/QuestionImportCommitResult.ts +95 -0
  92. package/src/models/QuestionImportDraft.ts +142 -0
  93. package/src/models/QuestionImportDuplicate.ts +112 -0
  94. package/src/models/QuestionImportPreviewImage.ts +140 -0
  95. package/src/models/QuestionImportSource.ts +101 -0
  96. package/src/models/QuestionImportSourceSummary.ts +92 -0
  97. package/src/models/index.ts +10 -0
@@ -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
+
@@ -0,0 +1,92 @@
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 QuestionImportSourceSummary
20
+ */
21
+ export interface QuestionImportSourceSummary {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof QuestionImportSourceSummary
26
+ */
27
+ label: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof QuestionImportSourceSummary
32
+ */
33
+ originalFilename: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof QuestionImportSourceSummary
38
+ */
39
+ sourceKey?: string | null;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof QuestionImportSourceSummary
44
+ */
45
+ importedAt: Date;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the QuestionImportSourceSummary interface.
50
+ */
51
+ export function instanceOfQuestionImportSourceSummary(value: object): value is QuestionImportSourceSummary {
52
+ if (!('label' in value) || value['label'] === undefined) return false;
53
+ if (!('originalFilename' in value) || value['originalFilename'] === undefined) return false;
54
+ if (!('importedAt' in value) || value['importedAt'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function QuestionImportSourceSummaryFromJSON(json: any): QuestionImportSourceSummary {
59
+ return QuestionImportSourceSummaryFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function QuestionImportSourceSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportSourceSummary {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'label': json['label'],
69
+ 'originalFilename': json['original_filename'],
70
+ 'sourceKey': json['source_key'] == null ? undefined : json['source_key'],
71
+ 'importedAt': (new Date(json['imported_at'])),
72
+ };
73
+ }
74
+
75
+ export function QuestionImportSourceSummaryToJSON(json: any): QuestionImportSourceSummary {
76
+ return QuestionImportSourceSummaryToJSONTyped(json, false);
77
+ }
78
+
79
+ export function QuestionImportSourceSummaryToJSONTyped(value?: QuestionImportSourceSummary | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'label': value['label'],
87
+ 'original_filename': value['originalFilename'],
88
+ 'source_key': value['sourceKey'],
89
+ 'imported_at': value['importedAt'].toISOString(),
90
+ };
91
+ }
92
+
@@ -231,6 +231,10 @@ export * from './PostPortal';
231
231
  export * from './PostPortalInvite';
232
232
  export * from './PostQuestion';
233
233
  export * from './PostQuestionAnswerChoicesInner';
234
+ export * from './PostQuestionImportCommit';
235
+ export * from './PostQuestionImportCommitItem';
236
+ export * from './PostQuestionImportCommitResponse';
237
+ export * from './PostQuestionImportParseResponse';
234
238
  export * from './PostResetPassword';
235
239
  export * from './PostResource';
236
240
  export * from './PostResourceSessionActivityEvent';
@@ -284,6 +288,12 @@ export * from './PutRole';
284
288
  export * from './PutRolePermissions';
285
289
  export * from './PutSupportTicket';
286
290
  export * from './PutUser';
291
+ export * from './QuestionImportCommitResult';
292
+ export * from './QuestionImportDraft';
293
+ export * from './QuestionImportDuplicate';
294
+ export * from './QuestionImportPreviewImage';
295
+ export * from './QuestionImportSource';
296
+ export * from './QuestionImportSourceSummary';
287
297
  export * from './QuestionSelectionMethod';
288
298
  export * from './ResourceSessionEnvironment';
289
299
  export * from './ResourceSessionScormApiLogItem';