@easyedu/js-lsm-api 1.111.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 (85) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +14 -2
  3. package/dist/apis/QuestionImportApi.d.ts +51 -0
  4. package/dist/apis/QuestionImportApi.js +135 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/QuestionImportApi.d.ts +51 -0
  8. package/dist/esm/apis/QuestionImportApi.js +131 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/GetQuestion.d.ts +7 -0
  12. package/dist/esm/models/GetQuestion.js +3 -0
  13. package/dist/esm/models/PostQuestionImportCommit.d.ts +58 -0
  14. package/dist/esm/models/PostQuestionImportCommit.js +59 -0
  15. package/dist/esm/models/PostQuestionImportCommitItem.d.ts +72 -0
  16. package/dist/esm/models/PostQuestionImportCommitItem.js +66 -0
  17. package/dist/esm/models/PostQuestionImportCommitResponse.d.ts +51 -0
  18. package/dist/esm/models/PostQuestionImportCommitResponse.js +56 -0
  19. package/dist/esm/models/PostQuestionImportParseResponse.d.ts +71 -0
  20. package/dist/esm/models/PostQuestionImportParseResponse.js +70 -0
  21. package/dist/esm/models/QuestionImportCommitResult.d.ts +53 -0
  22. package/dist/esm/models/QuestionImportCommitResult.js +57 -0
  23. package/dist/esm/models/QuestionImportDraft.d.ts +76 -0
  24. package/dist/esm/models/QuestionImportDraft.js +69 -0
  25. package/dist/esm/models/QuestionImportDuplicate.d.ts +66 -0
  26. package/dist/esm/models/QuestionImportDuplicate.js +62 -0
  27. package/dist/esm/models/QuestionImportPreviewImage.d.ts +84 -0
  28. package/dist/esm/models/QuestionImportPreviewImage.js +76 -0
  29. package/dist/esm/models/QuestionImportSource.d.ts +56 -0
  30. package/dist/esm/models/QuestionImportSource.js +57 -0
  31. package/dist/esm/models/QuestionImportSourceSummary.d.ts +50 -0
  32. package/dist/esm/models/QuestionImportSourceSummary.js +53 -0
  33. package/dist/esm/models/index.d.ts +10 -0
  34. package/dist/esm/models/index.js +10 -0
  35. package/dist/models/GetQuestion.d.ts +7 -0
  36. package/dist/models/GetQuestion.js +3 -0
  37. package/dist/models/PostQuestionImportCommit.d.ts +58 -0
  38. package/dist/models/PostQuestionImportCommit.js +66 -0
  39. package/dist/models/PostQuestionImportCommitItem.d.ts +72 -0
  40. package/dist/models/PostQuestionImportCommitItem.js +74 -0
  41. package/dist/models/PostQuestionImportCommitResponse.d.ts +51 -0
  42. package/dist/models/PostQuestionImportCommitResponse.js +63 -0
  43. package/dist/models/PostQuestionImportParseResponse.d.ts +71 -0
  44. package/dist/models/PostQuestionImportParseResponse.js +77 -0
  45. package/dist/models/QuestionImportCommitResult.d.ts +53 -0
  46. package/dist/models/QuestionImportCommitResult.js +65 -0
  47. package/dist/models/QuestionImportDraft.d.ts +76 -0
  48. package/dist/models/QuestionImportDraft.js +76 -0
  49. package/dist/models/QuestionImportDuplicate.d.ts +66 -0
  50. package/dist/models/QuestionImportDuplicate.js +70 -0
  51. package/dist/models/QuestionImportPreviewImage.d.ts +84 -0
  52. package/dist/models/QuestionImportPreviewImage.js +84 -0
  53. package/dist/models/QuestionImportSource.d.ts +56 -0
  54. package/dist/models/QuestionImportSource.js +64 -0
  55. package/dist/models/QuestionImportSourceSummary.d.ts +50 -0
  56. package/dist/models/QuestionImportSourceSummary.js +60 -0
  57. package/dist/models/index.d.ts +10 -0
  58. package/dist/models/index.js +10 -0
  59. package/docs/GetQuestion.md +2 -0
  60. package/docs/PostQuestionImportCommit.md +42 -0
  61. package/docs/PostQuestionImportCommitItem.md +44 -0
  62. package/docs/PostQuestionImportCommitResponse.md +40 -0
  63. package/docs/PostQuestionImportParseResponse.md +46 -0
  64. package/docs/QuestionImportApi.md +149 -0
  65. package/docs/QuestionImportCommitResult.md +38 -0
  66. package/docs/QuestionImportDraft.md +48 -0
  67. package/docs/QuestionImportDuplicate.md +42 -0
  68. package/docs/QuestionImportPreviewImage.md +48 -0
  69. package/docs/QuestionImportSource.md +42 -0
  70. package/docs/QuestionImportSourceSummary.md +40 -0
  71. package/package.json +1 -1
  72. package/src/apis/QuestionImportApi.ts +162 -0
  73. package/src/apis/index.ts +1 -0
  74. package/src/models/GetQuestion.ts +15 -0
  75. package/src/models/PostQuestionImportCommit.ts +116 -0
  76. package/src/models/PostQuestionImportCommitItem.ts +128 -0
  77. package/src/models/PostQuestionImportCommitResponse.ts +101 -0
  78. package/src/models/PostQuestionImportParseResponse.ts +142 -0
  79. package/src/models/QuestionImportCommitResult.ts +95 -0
  80. package/src/models/QuestionImportDraft.ts +142 -0
  81. package/src/models/QuestionImportDuplicate.ts +112 -0
  82. package/src/models/QuestionImportPreviewImage.ts +140 -0
  83. package/src/models/QuestionImportSource.ts +101 -0
  84. package/src/models/QuestionImportSourceSummary.ts +92 -0
  85. package/src/models/index.ts +10 -0
@@ -0,0 +1,69 @@
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
+ import { QuestionImportDuplicateFromJSON, QuestionImportDuplicateToJSON, } from './QuestionImportDuplicate';
15
+ import { PostQuestionFromJSON, PostQuestionToJSON, } from './PostQuestion';
16
+ /**
17
+ * Check if a given object implements the QuestionImportDraft interface.
18
+ */
19
+ export function instanceOfQuestionImportDraft(value) {
20
+ if (!('draftId' in value) || value['draftId'] === undefined)
21
+ return false;
22
+ if (!('question' in value) || value['question'] === undefined)
23
+ return false;
24
+ if (!('duplicate' in value) || value['duplicate'] === undefined)
25
+ return false;
26
+ if (!('warnings' in value) || value['warnings'] === undefined)
27
+ return false;
28
+ if (!('confidence' in value) || value['confidence'] === undefined)
29
+ return false;
30
+ if (!('included' in value) || value['included'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function QuestionImportDraftFromJSON(json) {
35
+ return QuestionImportDraftFromJSONTyped(json, false);
36
+ }
37
+ export function QuestionImportDraftFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'draftId': json['draft_id'],
43
+ 'sourceKey': json['source_key'] == null ? undefined : json['source_key'],
44
+ 'sourceLocation': json['source_location'] == null ? undefined : json['source_location'],
45
+ 'question': PostQuestionFromJSON(json['question']),
46
+ 'duplicate': QuestionImportDuplicateFromJSON(json['duplicate']),
47
+ 'warnings': json['warnings'],
48
+ 'confidence': json['confidence'],
49
+ 'included': json['included'],
50
+ };
51
+ }
52
+ export function QuestionImportDraftToJSON(json) {
53
+ return QuestionImportDraftToJSONTyped(json, false);
54
+ }
55
+ export function QuestionImportDraftToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'draft_id': value['draftId'],
61
+ 'source_key': value['sourceKey'],
62
+ 'source_location': value['sourceLocation'],
63
+ 'question': PostQuestionToJSON(value['question']),
64
+ 'duplicate': QuestionImportDuplicateToJSON(value['duplicate']),
65
+ 'warnings': value['warnings'],
66
+ 'confidence': value['confidence'],
67
+ 'included': value['included'],
68
+ };
69
+ }
@@ -0,0 +1,66 @@
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 QuestionImportDuplicate
16
+ */
17
+ export interface QuestionImportDuplicate {
18
+ /**
19
+ *
20
+ * @type {QuestionImportDuplicateStatusEnum}
21
+ * @memberof QuestionImportDuplicate
22
+ */
23
+ status: QuestionImportDuplicateStatusEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof QuestionImportDuplicate
28
+ */
29
+ matchedQuestionId?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof QuestionImportDuplicate
34
+ */
35
+ matchedDraftId?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof QuestionImportDuplicate
40
+ */
41
+ matchedQuestionText?: string | null;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof QuestionImportDuplicate
46
+ */
47
+ similarity: number;
48
+ }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const QuestionImportDuplicateStatusEnum: {
53
+ readonly New: "new";
54
+ readonly Exact: "exact";
55
+ readonly Possible: "possible";
56
+ readonly WithinUpload: "within_upload";
57
+ };
58
+ export type QuestionImportDuplicateStatusEnum = typeof QuestionImportDuplicateStatusEnum[keyof typeof QuestionImportDuplicateStatusEnum];
59
+ /**
60
+ * Check if a given object implements the QuestionImportDuplicate interface.
61
+ */
62
+ export declare function instanceOfQuestionImportDuplicate(value: object): value is QuestionImportDuplicate;
63
+ export declare function QuestionImportDuplicateFromJSON(json: any): QuestionImportDuplicate;
64
+ export declare function QuestionImportDuplicateFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportDuplicate;
65
+ export declare function QuestionImportDuplicateToJSON(json: any): QuestionImportDuplicate;
66
+ export declare function QuestionImportDuplicateToJSONTyped(value?: QuestionImportDuplicate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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 QuestionImportDuplicateStatusEnum = {
18
+ New: 'new',
19
+ Exact: 'exact',
20
+ Possible: 'possible',
21
+ WithinUpload: 'within_upload'
22
+ };
23
+ /**
24
+ * Check if a given object implements the QuestionImportDuplicate interface.
25
+ */
26
+ export function instanceOfQuestionImportDuplicate(value) {
27
+ if (!('status' in value) || value['status'] === undefined)
28
+ return false;
29
+ if (!('similarity' in value) || value['similarity'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function QuestionImportDuplicateFromJSON(json) {
34
+ return QuestionImportDuplicateFromJSONTyped(json, false);
35
+ }
36
+ export function QuestionImportDuplicateFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'status': json['status'],
42
+ 'matchedQuestionId': json['matched_question_id'] == null ? undefined : json['matched_question_id'],
43
+ 'matchedDraftId': json['matched_draft_id'] == null ? undefined : json['matched_draft_id'],
44
+ 'matchedQuestionText': json['matched_question_text'] == null ? undefined : json['matched_question_text'],
45
+ 'similarity': json['similarity'],
46
+ };
47
+ }
48
+ export function QuestionImportDuplicateToJSON(json) {
49
+ return QuestionImportDuplicateToJSONTyped(json, false);
50
+ }
51
+ export function QuestionImportDuplicateToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'status': value['status'],
57
+ 'matched_question_id': value['matchedQuestionId'],
58
+ 'matched_draft_id': value['matchedDraftId'],
59
+ 'matched_question_text': value['matchedQuestionText'],
60
+ 'similarity': value['similarity'],
61
+ };
62
+ }
@@ -0,0 +1,84 @@
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 QuestionImportPreviewImage
16
+ */
17
+ export interface QuestionImportPreviewImage {
18
+ /**
19
+ * Import-scoped image identifier used by source: image placeholders
20
+ * @type {string}
21
+ * @memberof QuestionImportPreviewImage
22
+ */
23
+ sourceId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof QuestionImportPreviewImage
28
+ */
29
+ filename: string;
30
+ /**
31
+ *
32
+ * @type {QuestionImportPreviewImageMimeTypeEnum}
33
+ * @memberof QuestionImportPreviewImage
34
+ */
35
+ mimeType: QuestionImportPreviewImageMimeTypeEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof QuestionImportPreviewImage
40
+ */
41
+ byteSize: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof QuestionImportPreviewImage
46
+ */
47
+ width?: number | null;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof QuestionImportPreviewImage
52
+ */
53
+ height?: number | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof QuestionImportPreviewImage
58
+ */
59
+ sha256: string;
60
+ /**
61
+ * Base64 image bytes for stateless review; reposted unchanged when committing
62
+ * @type {string}
63
+ * @memberof QuestionImportPreviewImage
64
+ */
65
+ dataBase64: string;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const QuestionImportPreviewImageMimeTypeEnum: {
71
+ readonly ImagePng: "image/png";
72
+ readonly ImageJpeg: "image/jpeg";
73
+ readonly ImageWebp: "image/webp";
74
+ readonly ImageGif: "image/gif";
75
+ };
76
+ export type QuestionImportPreviewImageMimeTypeEnum = typeof QuestionImportPreviewImageMimeTypeEnum[keyof typeof QuestionImportPreviewImageMimeTypeEnum];
77
+ /**
78
+ * Check if a given object implements the QuestionImportPreviewImage interface.
79
+ */
80
+ export declare function instanceOfQuestionImportPreviewImage(value: object): value is QuestionImportPreviewImage;
81
+ export declare function QuestionImportPreviewImageFromJSON(json: any): QuestionImportPreviewImage;
82
+ export declare function QuestionImportPreviewImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportPreviewImage;
83
+ export declare function QuestionImportPreviewImageToJSON(json: any): QuestionImportPreviewImage;
84
+ export declare function QuestionImportPreviewImageToJSONTyped(value?: QuestionImportPreviewImage | 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 QuestionImportPreviewImageMimeTypeEnum = {
18
+ ImagePng: 'image/png',
19
+ ImageJpeg: 'image/jpeg',
20
+ ImageWebp: 'image/webp',
21
+ ImageGif: 'image/gif'
22
+ };
23
+ /**
24
+ * Check if a given object implements the QuestionImportPreviewImage interface.
25
+ */
26
+ export function instanceOfQuestionImportPreviewImage(value) {
27
+ if (!('sourceId' in value) || value['sourceId'] === undefined)
28
+ return false;
29
+ if (!('filename' in value) || value['filename'] === undefined)
30
+ return false;
31
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
32
+ return false;
33
+ if (!('byteSize' in value) || value['byteSize'] === undefined)
34
+ return false;
35
+ if (!('sha256' in value) || value['sha256'] === undefined)
36
+ return false;
37
+ if (!('dataBase64' in value) || value['dataBase64'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function QuestionImportPreviewImageFromJSON(json) {
42
+ return QuestionImportPreviewImageFromJSONTyped(json, false);
43
+ }
44
+ export function QuestionImportPreviewImageFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'sourceId': json['source_id'],
50
+ 'filename': json['filename'],
51
+ 'mimeType': json['mime_type'],
52
+ 'byteSize': json['byte_size'],
53
+ 'width': json['width'] == null ? undefined : json['width'],
54
+ 'height': json['height'] == null ? undefined : json['height'],
55
+ 'sha256': json['sha256'],
56
+ 'dataBase64': json['data_base64'],
57
+ };
58
+ }
59
+ export function QuestionImportPreviewImageToJSON(json) {
60
+ return QuestionImportPreviewImageToJSONTyped(json, false);
61
+ }
62
+ export function QuestionImportPreviewImageToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'source_id': value['sourceId'],
68
+ 'filename': value['filename'],
69
+ 'mime_type': value['mimeType'],
70
+ 'byte_size': value['byteSize'],
71
+ 'width': value['width'],
72
+ 'height': value['height'],
73
+ 'sha256': value['sha256'],
74
+ 'data_base64': value['dataBase64'],
75
+ };
76
+ }
@@ -0,0 +1,56 @@
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 QuestionImportSource
16
+ */
17
+ export interface QuestionImportSource {
18
+ /**
19
+ * Editable source label proposed from the detected quiz title or filename
20
+ * @type {string}
21
+ * @memberof QuestionImportSource
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof QuestionImportSource
28
+ */
29
+ detectedTitle?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof QuestionImportSource
34
+ */
35
+ originalFilename: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof QuestionImportSource
40
+ */
41
+ mediaType: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof QuestionImportSource
46
+ */
47
+ fileSha256: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the QuestionImportSource interface.
51
+ */
52
+ export declare function instanceOfQuestionImportSource(value: object): value is QuestionImportSource;
53
+ export declare function QuestionImportSourceFromJSON(json: any): QuestionImportSource;
54
+ export declare function QuestionImportSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportSource;
55
+ export declare function QuestionImportSourceToJSON(json: any): QuestionImportSource;
56
+ export declare function QuestionImportSourceToJSONTyped(value?: QuestionImportSource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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 QuestionImportSource interface.
16
+ */
17
+ export function instanceOfQuestionImportSource(value) {
18
+ if (!('label' in value) || value['label'] === undefined)
19
+ return false;
20
+ if (!('originalFilename' in value) || value['originalFilename'] === undefined)
21
+ return false;
22
+ if (!('mediaType' in value) || value['mediaType'] === undefined)
23
+ return false;
24
+ if (!('fileSha256' in value) || value['fileSha256'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function QuestionImportSourceFromJSON(json) {
29
+ return QuestionImportSourceFromJSONTyped(json, false);
30
+ }
31
+ export function QuestionImportSourceFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'label': json['label'],
37
+ 'detectedTitle': json['detected_title'] == null ? undefined : json['detected_title'],
38
+ 'originalFilename': json['original_filename'],
39
+ 'mediaType': json['media_type'],
40
+ 'fileSha256': json['file_sha256'],
41
+ };
42
+ }
43
+ export function QuestionImportSourceToJSON(json) {
44
+ return QuestionImportSourceToJSONTyped(json, false);
45
+ }
46
+ export function QuestionImportSourceToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'label': value['label'],
52
+ 'detected_title': value['detectedTitle'],
53
+ 'original_filename': value['originalFilename'],
54
+ 'media_type': value['mediaType'],
55
+ 'file_sha256': value['fileSha256'],
56
+ };
57
+ }
@@ -0,0 +1,50 @@
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 QuestionImportSourceSummary
16
+ */
17
+ export interface QuestionImportSourceSummary {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof QuestionImportSourceSummary
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof QuestionImportSourceSummary
28
+ */
29
+ originalFilename: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof QuestionImportSourceSummary
34
+ */
35
+ sourceKey?: string | null;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof QuestionImportSourceSummary
40
+ */
41
+ importedAt: Date;
42
+ }
43
+ /**
44
+ * Check if a given object implements the QuestionImportSourceSummary interface.
45
+ */
46
+ export declare function instanceOfQuestionImportSourceSummary(value: object): value is QuestionImportSourceSummary;
47
+ export declare function QuestionImportSourceSummaryFromJSON(json: any): QuestionImportSourceSummary;
48
+ export declare function QuestionImportSourceSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuestionImportSourceSummary;
49
+ export declare function QuestionImportSourceSummaryToJSON(json: any): QuestionImportSourceSummary;
50
+ export declare function QuestionImportSourceSummaryToJSONTyped(value?: QuestionImportSourceSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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 QuestionImportSourceSummary interface.
16
+ */
17
+ export function instanceOfQuestionImportSourceSummary(value) {
18
+ if (!('label' in value) || value['label'] === undefined)
19
+ return false;
20
+ if (!('originalFilename' in value) || value['originalFilename'] === undefined)
21
+ return false;
22
+ if (!('importedAt' in value) || value['importedAt'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function QuestionImportSourceSummaryFromJSON(json) {
27
+ return QuestionImportSourceSummaryFromJSONTyped(json, false);
28
+ }
29
+ export function QuestionImportSourceSummaryFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'label': json['label'],
35
+ 'originalFilename': json['original_filename'],
36
+ 'sourceKey': json['source_key'] == null ? undefined : json['source_key'],
37
+ 'importedAt': (new Date(json['imported_at'])),
38
+ };
39
+ }
40
+ export function QuestionImportSourceSummaryToJSON(json) {
41
+ return QuestionImportSourceSummaryToJSONTyped(json, false);
42
+ }
43
+ export function QuestionImportSourceSummaryToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'label': value['label'],
49
+ 'original_filename': value['originalFilename'],
50
+ 'source_key': value['sourceKey'],
51
+ 'imported_at': value['importedAt'].toISOString(),
52
+ };
53
+ }
@@ -229,6 +229,10 @@ export * from './PostPortal';
229
229
  export * from './PostPortalInvite';
230
230
  export * from './PostQuestion';
231
231
  export * from './PostQuestionAnswerChoicesInner';
232
+ export * from './PostQuestionImportCommit';
233
+ export * from './PostQuestionImportCommitItem';
234
+ export * from './PostQuestionImportCommitResponse';
235
+ export * from './PostQuestionImportParseResponse';
232
236
  export * from './PostResetPassword';
233
237
  export * from './PostResource';
234
238
  export * from './PostResourceSessionActivityEvent';
@@ -282,6 +286,12 @@ export * from './PutRole';
282
286
  export * from './PutRolePermissions';
283
287
  export * from './PutSupportTicket';
284
288
  export * from './PutUser';
289
+ export * from './QuestionImportCommitResult';
290
+ export * from './QuestionImportDraft';
291
+ export * from './QuestionImportDuplicate';
292
+ export * from './QuestionImportPreviewImage';
293
+ export * from './QuestionImportSource';
294
+ export * from './QuestionImportSourceSummary';
285
295
  export * from './QuestionSelectionMethod';
286
296
  export * from './ResourceSessionEnvironment';
287
297
  export * from './ResourceSessionScormApiLogItem';
@@ -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';
@@ -12,6 +12,7 @@
12
12
  import type { RichTextDocument } from './RichTextDocument';
13
13
  import type { ContentLibraryTag } from './ContentLibraryTag';
14
14
  import type { GetQuestionAnswerChoicesInner } from './GetQuestionAnswerChoicesInner';
15
+ import type { QuestionImportSourceSummary } from './QuestionImportSourceSummary';
15
16
  import type { GetQuestionQuizzesInner } from './GetQuestionQuizzesInner';
16
17
  /**
17
18
  *
@@ -103,6 +104,12 @@ export interface GetQuestion {
103
104
  * @memberof GetQuestion
104
105
  */
105
106
  readonly quizzes?: Array<GetQuestionQuizzesInner>;
107
+ /**
108
+ *
109
+ * @type {QuestionImportSourceSummary}
110
+ * @memberof GetQuestion
111
+ */
112
+ importSource?: QuestionImportSourceSummary;
106
113
  }
107
114
  /**
108
115
  * @export
@@ -22,6 +22,7 @@ exports.GetQuestionToJSONTyped = GetQuestionToJSONTyped;
22
22
  const RichTextDocument_1 = require("./RichTextDocument");
23
23
  const ContentLibraryTag_1 = require("./ContentLibraryTag");
24
24
  const GetQuestionAnswerChoicesInner_1 = require("./GetQuestionAnswerChoicesInner");
25
+ const QuestionImportSourceSummary_1 = require("./QuestionImportSourceSummary");
25
26
  const GetQuestionQuizzesInner_1 = require("./GetQuestionQuizzesInner");
26
27
  /**
27
28
  * @export
@@ -74,6 +75,7 @@ function GetQuestionFromJSONTyped(json, ignoreDiscriminator) {
74
75
  'createdBy': json['created_by'] == null ? undefined : json['created_by'],
75
76
  'quizCount': json['quiz_count'] == null ? undefined : json['quiz_count'],
76
77
  'quizzes': json['quizzes'] == null ? undefined : (json['quizzes'].map(GetQuestionQuizzesInner_1.GetQuestionQuizzesInnerFromJSON)),
78
+ 'importSource': json['import_source'] == null ? undefined : (0, QuestionImportSourceSummary_1.QuestionImportSourceSummaryFromJSON)(json['import_source']),
77
79
  };
78
80
  }
79
81
  function GetQuestionToJSON(json) {
@@ -91,5 +93,6 @@ function GetQuestionToJSONTyped(value, ignoreDiscriminator = false) {
91
93
  'explanation': (0, RichTextDocument_1.RichTextDocumentToJSON)(value['explanation']),
92
94
  'tags': value['tags'] == null ? undefined : (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
93
95
  'version': value['version'],
96
+ 'import_source': (0, QuestionImportSourceSummary_1.QuestionImportSourceSummaryToJSON)(value['importSource']),
94
97
  };
95
98
  }