@easyedu/js-lsm-api 1.25.0 → 1.27.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 (73) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ContentApi.d.ts +64 -1
  4. package/dist/apis/ContentApi.js +155 -0
  5. package/dist/apis/CourseApi.d.ts +40 -1
  6. package/dist/apis/CourseApi.js +100 -0
  7. package/dist/esm/apis/ContentApi.d.ts +64 -1
  8. package/dist/esm/apis/ContentApi.js +156 -1
  9. package/dist/esm/apis/CourseApi.d.ts +40 -1
  10. package/dist/esm/apis/CourseApi.js +101 -1
  11. package/dist/esm/models/GetContentVersion.d.ts +76 -0
  12. package/dist/esm/models/GetContentVersion.js +71 -0
  13. package/dist/esm/models/GetContentVersionList.d.ts +57 -0
  14. package/dist/esm/models/GetContentVersionList.js +60 -0
  15. package/dist/esm/models/GetContentVersionListItemsInner.d.ts +56 -0
  16. package/dist/esm/models/GetContentVersionListItemsInner.js +59 -0
  17. package/dist/esm/models/GetContentVersionSandbox.d.ts +32 -0
  18. package/dist/esm/models/GetContentVersionSandbox.js +43 -0
  19. package/dist/esm/models/GetContentVersionScormData.d.ts +32 -0
  20. package/dist/esm/models/GetContentVersionScormData.js +43 -0
  21. package/dist/esm/models/GetCourseExport.d.ts +93 -0
  22. package/dist/esm/models/GetCourseExport.js +82 -0
  23. package/dist/esm/models/GetCourseExportList.d.ts +57 -0
  24. package/dist/esm/models/GetCourseExportList.js +60 -0
  25. package/dist/esm/models/GetScormPackage.d.ts +39 -0
  26. package/dist/esm/models/GetScormPackage.js +48 -0
  27. package/dist/esm/models/GetScormPackagePackageInfo.d.ts +104 -0
  28. package/dist/esm/models/GetScormPackagePackageInfo.js +81 -0
  29. package/dist/esm/models/PostCourseExport.d.ts +41 -0
  30. package/dist/esm/models/PostCourseExport.js +51 -0
  31. package/dist/esm/models/PutContentVersion.d.ts +32 -0
  32. package/dist/esm/models/PutContentVersion.js +43 -0
  33. package/dist/esm/models/index.d.ts +11 -0
  34. package/dist/esm/models/index.js +11 -0
  35. package/dist/models/GetContentVersion.d.ts +76 -0
  36. package/dist/models/GetContentVersion.js +78 -0
  37. package/dist/models/GetContentVersionList.d.ts +57 -0
  38. package/dist/models/GetContentVersionList.js +67 -0
  39. package/dist/models/GetContentVersionListItemsInner.d.ts +56 -0
  40. package/dist/models/GetContentVersionListItemsInner.js +66 -0
  41. package/dist/models/GetContentVersionSandbox.d.ts +32 -0
  42. package/dist/models/GetContentVersionSandbox.js +50 -0
  43. package/dist/models/GetContentVersionScormData.d.ts +32 -0
  44. package/dist/models/GetContentVersionScormData.js +50 -0
  45. package/dist/models/GetCourseExport.d.ts +93 -0
  46. package/dist/models/GetCourseExport.js +90 -0
  47. package/dist/models/GetCourseExportList.d.ts +57 -0
  48. package/dist/models/GetCourseExportList.js +67 -0
  49. package/dist/models/GetScormPackage.d.ts +39 -0
  50. package/dist/models/GetScormPackage.js +55 -0
  51. package/dist/models/GetScormPackagePackageInfo.d.ts +104 -0
  52. package/dist/models/GetScormPackagePackageInfo.js +88 -0
  53. package/dist/models/PostCourseExport.d.ts +41 -0
  54. package/dist/models/PostCourseExport.js +59 -0
  55. package/dist/models/PutContentVersion.d.ts +32 -0
  56. package/dist/models/PutContentVersion.js +50 -0
  57. package/dist/models/index.d.ts +11 -0
  58. package/dist/models/index.js +11 -0
  59. package/package.json +1 -1
  60. package/src/apis/ContentApi.ts +253 -0
  61. package/src/apis/CourseApi.ts +151 -0
  62. package/src/models/GetContentVersion.ts +143 -0
  63. package/src/models/GetContentVersionList.ts +110 -0
  64. package/src/models/GetContentVersionListItemsInner.ts +102 -0
  65. package/src/models/GetContentVersionSandbox.ts +66 -0
  66. package/src/models/GetContentVersionScormData.ts +66 -0
  67. package/src/models/GetCourseExport.ts +149 -0
  68. package/src/models/GetCourseExportList.ts +110 -0
  69. package/src/models/GetScormPackage.ts +83 -0
  70. package/src/models/GetScormPackagePackageInfo.ts +169 -0
  71. package/src/models/PostCourseExport.ts +78 -0
  72. package/src/models/PutContentVersion.ts +66 -0
  73. package/src/models/index.ts +11 -0
@@ -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 GetContentVersionListItemsInner
16
+ */
17
+ export interface GetContentVersionListItemsInner {
18
+ /**
19
+ * The external_id (UUID) for this version
20
+ * @type {string}
21
+ * @memberof GetContentVersionListItemsInner
22
+ */
23
+ id: string;
24
+ /**
25
+ * Version number
26
+ * @type {number}
27
+ * @memberof GetContentVersionListItemsInner
28
+ */
29
+ version: number;
30
+ /**
31
+ * Whether this is the currently active version
32
+ * @type {boolean}
33
+ * @memberof GetContentVersionListItemsInner
34
+ */
35
+ isActive: boolean;
36
+ /**
37
+ * When this version was created
38
+ * @type {Date}
39
+ * @memberof GetContentVersionListItemsInner
40
+ */
41
+ createdAt: Date;
42
+ /**
43
+ * When this version was last updated
44
+ * @type {Date}
45
+ * @memberof GetContentVersionListItemsInner
46
+ */
47
+ updatedAt: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the GetContentVersionListItemsInner interface.
51
+ */
52
+ export declare function instanceOfGetContentVersionListItemsInner(value: object): value is GetContentVersionListItemsInner;
53
+ export declare function GetContentVersionListItemsInnerFromJSON(json: any): GetContentVersionListItemsInner;
54
+ export declare function GetContentVersionListItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionListItemsInner;
55
+ export declare function GetContentVersionListItemsInnerToJSON(json: any): GetContentVersionListItemsInner;
56
+ export declare function GetContentVersionListItemsInnerToJSONTyped(value?: GetContentVersionListItemsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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 GetContentVersionListItemsInner interface.
16
+ */
17
+ export function instanceOfGetContentVersionListItemsInner(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('version' in value) || value['version'] === undefined)
21
+ return false;
22
+ if (!('isActive' in value) || value['isActive'] === undefined)
23
+ return false;
24
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
25
+ return false;
26
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function GetContentVersionListItemsInnerFromJSON(json) {
31
+ return GetContentVersionListItemsInnerFromJSONTyped(json, false);
32
+ }
33
+ export function GetContentVersionListItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'version': json['version'],
40
+ 'isActive': json['is_active'],
41
+ 'createdAt': (new Date(json['created_at'])),
42
+ 'updatedAt': (new Date(json['updated_at'])),
43
+ };
44
+ }
45
+ export function GetContentVersionListItemsInnerToJSON(json) {
46
+ return GetContentVersionListItemsInnerToJSONTyped(json, false);
47
+ }
48
+ export function GetContentVersionListItemsInnerToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'version': value['version'],
55
+ 'is_active': value['isActive'],
56
+ 'created_at': ((value['createdAt']).toISOString()),
57
+ 'updated_at': ((value['updatedAt']).toISOString()),
58
+ };
59
+ }
@@ -0,0 +1,32 @@
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
+ * Sandbox data for this version
14
+ * @export
15
+ * @interface GetContentVersionSandbox
16
+ */
17
+ export interface GetContentVersionSandbox {
18
+ /**
19
+ * URL to launch the content in sandbox mode
20
+ * @type {string}
21
+ * @memberof GetContentVersionSandbox
22
+ */
23
+ launchUrl: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetContentVersionSandbox interface.
27
+ */
28
+ export declare function instanceOfGetContentVersionSandbox(value: object): value is GetContentVersionSandbox;
29
+ export declare function GetContentVersionSandboxFromJSON(json: any): GetContentVersionSandbox;
30
+ export declare function GetContentVersionSandboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionSandbox;
31
+ export declare function GetContentVersionSandboxToJSON(json: any): GetContentVersionSandbox;
32
+ export declare function GetContentVersionSandboxToJSONTyped(value?: GetContentVersionSandbox | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 GetContentVersionSandbox interface.
16
+ */
17
+ export function instanceOfGetContentVersionSandbox(value) {
18
+ if (!('launchUrl' in value) || value['launchUrl'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function GetContentVersionSandboxFromJSON(json) {
23
+ return GetContentVersionSandboxFromJSONTyped(json, false);
24
+ }
25
+ export function GetContentVersionSandboxFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'launchUrl': json['launch_url'],
31
+ };
32
+ }
33
+ export function GetContentVersionSandboxToJSON(json) {
34
+ return GetContentVersionSandboxToJSONTyped(json, false);
35
+ }
36
+ export function GetContentVersionSandboxToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'launch_url': value['launchUrl'],
42
+ };
43
+ }
@@ -0,0 +1,32 @@
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
+ * SCORM-specific data (only present for SCORM content type)
14
+ * @export
15
+ * @interface GetContentVersionScormData
16
+ */
17
+ export interface GetContentVersionScormData {
18
+ /**
19
+ * The external_id (UUID) of the scorm_content record
20
+ * @type {string}
21
+ * @memberof GetContentVersionScormData
22
+ */
23
+ scormPackageId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GetContentVersionScormData interface.
27
+ */
28
+ export declare function instanceOfGetContentVersionScormData(value: object): value is GetContentVersionScormData;
29
+ export declare function GetContentVersionScormDataFromJSON(json: any): GetContentVersionScormData;
30
+ export declare function GetContentVersionScormDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionScormData;
31
+ export declare function GetContentVersionScormDataToJSON(json: any): GetContentVersionScormData;
32
+ export declare function GetContentVersionScormDataToJSONTyped(value?: GetContentVersionScormData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 GetContentVersionScormData interface.
16
+ */
17
+ export function instanceOfGetContentVersionScormData(value) {
18
+ if (!('scormPackageId' in value) || value['scormPackageId'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function GetContentVersionScormDataFromJSON(json) {
23
+ return GetContentVersionScormDataFromJSONTyped(json, false);
24
+ }
25
+ export function GetContentVersionScormDataFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'scormPackageId': json['scorm_package_id'],
31
+ };
32
+ }
33
+ export function GetContentVersionScormDataToJSON(json) {
34
+ return GetContentVersionScormDataToJSONTyped(json, false);
35
+ }
36
+ export function GetContentVersionScormDataToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'scorm_package_id': value['scormPackageId'],
42
+ };
43
+ }
@@ -0,0 +1,93 @@
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
+ * Details of a course SCORM export
14
+ * @export
15
+ * @interface GetCourseExport
16
+ */
17
+ export interface GetCourseExport {
18
+ /**
19
+ * Unique identifier for the export
20
+ * @type {string}
21
+ * @memberof GetCourseExport
22
+ */
23
+ id: string;
24
+ /**
25
+ * ID of the course being exported
26
+ * @type {string}
27
+ * @memberof GetCourseExport
28
+ */
29
+ courseId: string;
30
+ /**
31
+ * The SCORM version to export
32
+ * @type {string}
33
+ * @memberof GetCourseExport
34
+ */
35
+ scormVersion: GetCourseExportScormVersionEnum;
36
+ /**
37
+ * Current status of the export generation
38
+ * @type {string}
39
+ * @memberof GetCourseExport
40
+ */
41
+ status: GetCourseExportStatusEnum;
42
+ /**
43
+ * URL to download the export zip file (null if not yet completed)
44
+ * @type {string}
45
+ * @memberof GetCourseExport
46
+ */
47
+ downloadUrl?: string | null;
48
+ /**
49
+ * Size of the export file in bytes (null if not yet completed)
50
+ * @type {number}
51
+ * @memberof GetCourseExport
52
+ */
53
+ fileSize?: number | null;
54
+ /**
55
+ * Error message if status is FAILED
56
+ * @type {string}
57
+ * @memberof GetCourseExport
58
+ */
59
+ errorMessage?: string | null;
60
+ /**
61
+ * Unix epoch timestamp when the export was created
62
+ * @type {number}
63
+ * @memberof GetCourseExport
64
+ */
65
+ createdAt: number;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const GetCourseExportScormVersionEnum: {
71
+ readonly Scorm12: "SCORM_1_2";
72
+ readonly Scorm20043RdEdition: "SCORM_2004_3RD_EDITION";
73
+ readonly Scorm20044ThEdition: "SCORM_2004_4TH_EDITION";
74
+ };
75
+ export type GetCourseExportScormVersionEnum = typeof GetCourseExportScormVersionEnum[keyof typeof GetCourseExportScormVersionEnum];
76
+ /**
77
+ * @export
78
+ */
79
+ export declare const GetCourseExportStatusEnum: {
80
+ readonly Pending: "PENDING";
81
+ readonly Processing: "PROCESSING";
82
+ readonly Completed: "COMPLETED";
83
+ readonly Failed: "FAILED";
84
+ };
85
+ export type GetCourseExportStatusEnum = typeof GetCourseExportStatusEnum[keyof typeof GetCourseExportStatusEnum];
86
+ /**
87
+ * Check if a given object implements the GetCourseExport interface.
88
+ */
89
+ export declare function instanceOfGetCourseExport(value: object): value is GetCourseExport;
90
+ export declare function GetCourseExportFromJSON(json: any): GetCourseExport;
91
+ export declare function GetCourseExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseExport;
92
+ export declare function GetCourseExportToJSON(json: any): GetCourseExport;
93
+ export declare function GetCourseExportToJSONTyped(value?: GetCourseExport | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
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 GetCourseExportScormVersionEnum = {
18
+ Scorm12: 'SCORM_1_2',
19
+ Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
20
+ Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ export const GetCourseExportStatusEnum = {
26
+ Pending: 'PENDING',
27
+ Processing: 'PROCESSING',
28
+ Completed: 'COMPLETED',
29
+ Failed: 'FAILED'
30
+ };
31
+ /**
32
+ * Check if a given object implements the GetCourseExport interface.
33
+ */
34
+ export function instanceOfGetCourseExport(value) {
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if (!('courseId' in value) || value['courseId'] === undefined)
38
+ return false;
39
+ if (!('scormVersion' in value) || value['scormVersion'] === undefined)
40
+ return false;
41
+ if (!('status' in value) || value['status'] === undefined)
42
+ return false;
43
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ export function GetCourseExportFromJSON(json) {
48
+ return GetCourseExportFromJSONTyped(json, false);
49
+ }
50
+ export function GetCourseExportFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'id': json['id'],
56
+ 'courseId': json['course_id'],
57
+ 'scormVersion': json['scorm_version'],
58
+ 'status': json['status'],
59
+ 'downloadUrl': json['download_url'] == null ? undefined : json['download_url'],
60
+ 'fileSize': json['file_size'] == null ? undefined : json['file_size'],
61
+ 'errorMessage': json['error_message'] == null ? undefined : json['error_message'],
62
+ 'createdAt': json['created_at'],
63
+ };
64
+ }
65
+ export function GetCourseExportToJSON(json) {
66
+ return GetCourseExportToJSONTyped(json, false);
67
+ }
68
+ export function GetCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+ 'id': value['id'],
74
+ 'course_id': value['courseId'],
75
+ 'scorm_version': value['scormVersion'],
76
+ 'status': value['status'],
77
+ 'download_url': value['downloadUrl'],
78
+ 'file_size': value['fileSize'],
79
+ 'error_message': value['errorMessage'],
80
+ 'created_at': value['createdAt'],
81
+ };
82
+ }
@@ -0,0 +1,57 @@
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
+ import type { GetCourseExport } from './GetCourseExport';
13
+ /**
14
+ * A list of course exports with pagination information
15
+ * @export
16
+ * @interface GetCourseExportList
17
+ */
18
+ export interface GetCourseExportList {
19
+ /**
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetCourseExportList
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetCourseExportList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetCourseExportList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of items
39
+ * @type {number}
40
+ * @memberof GetCourseExportList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<GetCourseExport>}
46
+ * @memberof GetCourseExportList
47
+ */
48
+ items: Array<GetCourseExport>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetCourseExportList interface.
52
+ */
53
+ export declare function instanceOfGetCourseExportList(value: object): value is GetCourseExportList;
54
+ export declare function GetCourseExportListFromJSON(json: any): GetCourseExportList;
55
+ export declare function GetCourseExportListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseExportList;
56
+ export declare function GetCourseExportListToJSON(json: any): GetCourseExportList;
57
+ export declare function GetCourseExportListToJSONTyped(value?: GetCourseExportList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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 { GetCourseExportFromJSON, GetCourseExportToJSON, } from './GetCourseExport';
15
+ /**
16
+ * Check if a given object implements the GetCourseExportList interface.
17
+ */
18
+ export function instanceOfGetCourseExportList(value) {
19
+ if (!('page' in value) || value['page'] === undefined)
20
+ return false;
21
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
22
+ return false;
23
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
24
+ return false;
25
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
26
+ return false;
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetCourseExportListFromJSON(json) {
32
+ return GetCourseExportListFromJSONTyped(json, false);
33
+ }
34
+ export function GetCourseExportListFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'page': json['page'],
40
+ 'pageSize': json['page_size'],
41
+ 'totalPages': json['total_pages'],
42
+ 'totalItems': json['total_items'],
43
+ 'items': (json['items'].map(GetCourseExportFromJSON)),
44
+ };
45
+ }
46
+ export function GetCourseExportListToJSON(json) {
47
+ return GetCourseExportListToJSONTyped(json, false);
48
+ }
49
+ export function GetCourseExportListToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'page': value['page'],
55
+ 'page_size': value['pageSize'],
56
+ 'total_pages': value['totalPages'],
57
+ 'total_items': value['totalItems'],
58
+ 'items': (value['items'].map(GetCourseExportToJSON)),
59
+ };
60
+ }
@@ -0,0 +1,39 @@
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
+ import type { GetScormPackagePackageInfo } from './GetScormPackagePackageInfo';
13
+ /**
14
+ * Details of a SCORM package
15
+ * @export
16
+ * @interface GetScormPackage
17
+ */
18
+ export interface GetScormPackage {
19
+ /**
20
+ *
21
+ * @type {GetScormPackagePackageInfo}
22
+ * @memberof GetScormPackage
23
+ */
24
+ packageInfo: GetScormPackagePackageInfo;
25
+ /**
26
+ * Hierarchical table of contents from the SCORM manifest (flexible JSON structure)
27
+ * @type {object}
28
+ * @memberof GetScormPackage
29
+ */
30
+ tableOfContents: object;
31
+ }
32
+ /**
33
+ * Check if a given object implements the GetScormPackage interface.
34
+ */
35
+ export declare function instanceOfGetScormPackage(value: object): value is GetScormPackage;
36
+ export declare function GetScormPackageFromJSON(json: any): GetScormPackage;
37
+ export declare function GetScormPackageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormPackage;
38
+ export declare function GetScormPackageToJSON(json: any): GetScormPackage;
39
+ export declare function GetScormPackageToJSONTyped(value?: GetScormPackage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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 { GetScormPackagePackageInfoFromJSON, GetScormPackagePackageInfoToJSON, } from './GetScormPackagePackageInfo';
15
+ /**
16
+ * Check if a given object implements the GetScormPackage interface.
17
+ */
18
+ export function instanceOfGetScormPackage(value) {
19
+ if (!('packageInfo' in value) || value['packageInfo'] === undefined)
20
+ return false;
21
+ if (!('tableOfContents' in value) || value['tableOfContents'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function GetScormPackageFromJSON(json) {
26
+ return GetScormPackageFromJSONTyped(json, false);
27
+ }
28
+ export function GetScormPackageFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'packageInfo': GetScormPackagePackageInfoFromJSON(json['package_info']),
34
+ 'tableOfContents': json['table_of_contents'],
35
+ };
36
+ }
37
+ export function GetScormPackageToJSON(json) {
38
+ return GetScormPackageToJSONTyped(json, false);
39
+ }
40
+ export function GetScormPackageToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'package_info': GetScormPackagePackageInfoToJSON(value['packageInfo']),
46
+ 'table_of_contents': value['tableOfContents'],
47
+ };
48
+ }