@easyedu/js-lsm-api 1.26.0 → 1.28.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 (58) hide show
  1. package/.openapi-generator/FILES +8 -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/esm/apis/ContentApi.d.ts +64 -1
  6. package/dist/esm/apis/ContentApi.js +156 -1
  7. package/dist/esm/models/GetContent.d.ts +19 -1
  8. package/dist/esm/models/GetContent.js +3 -0
  9. package/dist/esm/models/GetContentVersion.d.ts +76 -0
  10. package/dist/esm/models/GetContentVersion.js +71 -0
  11. package/dist/esm/models/GetContentVersionList.d.ts +57 -0
  12. package/dist/esm/models/GetContentVersionList.js +60 -0
  13. package/dist/esm/models/GetContentVersionListItemsInner.d.ts +56 -0
  14. package/dist/esm/models/GetContentVersionListItemsInner.js +59 -0
  15. package/dist/esm/models/GetContentVersionSandbox.d.ts +32 -0
  16. package/dist/esm/models/GetContentVersionSandbox.js +43 -0
  17. package/dist/esm/models/GetContentVersionScormData.d.ts +32 -0
  18. package/dist/esm/models/GetContentVersionScormData.js +43 -0
  19. package/dist/esm/models/GetScormPackage.d.ts +39 -0
  20. package/dist/esm/models/GetScormPackage.js +48 -0
  21. package/dist/esm/models/GetScormPackagePackageInfo.d.ts +104 -0
  22. package/dist/esm/models/GetScormPackagePackageInfo.js +81 -0
  23. package/dist/esm/models/PutContentVersion.d.ts +32 -0
  24. package/dist/esm/models/PutContentVersion.js +43 -0
  25. package/dist/esm/models/index.d.ts +8 -0
  26. package/dist/esm/models/index.js +8 -0
  27. package/dist/models/GetContent.d.ts +19 -1
  28. package/dist/models/GetContent.js +3 -0
  29. package/dist/models/GetContentVersion.d.ts +76 -0
  30. package/dist/models/GetContentVersion.js +78 -0
  31. package/dist/models/GetContentVersionList.d.ts +57 -0
  32. package/dist/models/GetContentVersionList.js +67 -0
  33. package/dist/models/GetContentVersionListItemsInner.d.ts +56 -0
  34. package/dist/models/GetContentVersionListItemsInner.js +66 -0
  35. package/dist/models/GetContentVersionSandbox.d.ts +32 -0
  36. package/dist/models/GetContentVersionSandbox.js +50 -0
  37. package/dist/models/GetContentVersionScormData.d.ts +32 -0
  38. package/dist/models/GetContentVersionScormData.js +50 -0
  39. package/dist/models/GetScormPackage.d.ts +39 -0
  40. package/dist/models/GetScormPackage.js +55 -0
  41. package/dist/models/GetScormPackagePackageInfo.d.ts +104 -0
  42. package/dist/models/GetScormPackagePackageInfo.js +88 -0
  43. package/dist/models/PutContentVersion.d.ts +32 -0
  44. package/dist/models/PutContentVersion.js +50 -0
  45. package/dist/models/index.d.ts +8 -0
  46. package/dist/models/index.js +8 -0
  47. package/package.json +1 -1
  48. package/src/apis/ContentApi.ts +253 -0
  49. package/src/models/GetContent.ts +22 -1
  50. package/src/models/GetContentVersion.ts +143 -0
  51. package/src/models/GetContentVersionList.ts +110 -0
  52. package/src/models/GetContentVersionListItemsInner.ts +102 -0
  53. package/src/models/GetContentVersionSandbox.ts +66 -0
  54. package/src/models/GetContentVersionScormData.ts +66 -0
  55. package/src/models/GetScormPackage.ts +83 -0
  56. package/src/models/GetScormPackagePackageInfo.ts +169 -0
  57. package/src/models/PutContentVersion.ts +66 -0
  58. package/src/models/index.ts +8 -0
@@ -0,0 +1,76 @@
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 { GetContentVersionSandbox } from './GetContentVersionSandbox';
13
+ import type { GetContentVersionScormData } from './GetContentVersionScormData';
14
+ /**
15
+ * Details of a specific content version
16
+ * @export
17
+ * @interface GetContentVersion
18
+ */
19
+ export interface GetContentVersion {
20
+ /**
21
+ * The external_id (UUID) for this version
22
+ * @type {string}
23
+ * @memberof GetContentVersion
24
+ */
25
+ id: string;
26
+ /**
27
+ * The content's external_id that this version belongs to
28
+ * @type {string}
29
+ * @memberof GetContentVersion
30
+ */
31
+ contentId: string;
32
+ /**
33
+ * Version number
34
+ * @type {number}
35
+ * @memberof GetContentVersion
36
+ */
37
+ version: number;
38
+ /**
39
+ * Whether this is the currently active version
40
+ * @type {boolean}
41
+ * @memberof GetContentVersion
42
+ */
43
+ isActive: boolean;
44
+ /**
45
+ * When this version was created
46
+ * @type {Date}
47
+ * @memberof GetContentVersion
48
+ */
49
+ createdAt: Date;
50
+ /**
51
+ * When this version was last updated
52
+ * @type {Date}
53
+ * @memberof GetContentVersion
54
+ */
55
+ updatedAt: Date;
56
+ /**
57
+ *
58
+ * @type {GetContentVersionSandbox}
59
+ * @memberof GetContentVersion
60
+ */
61
+ sandbox: GetContentVersionSandbox;
62
+ /**
63
+ *
64
+ * @type {GetContentVersionScormData}
65
+ * @memberof GetContentVersion
66
+ */
67
+ scormData?: GetContentVersionScormData | null;
68
+ }
69
+ /**
70
+ * Check if a given object implements the GetContentVersion interface.
71
+ */
72
+ export declare function instanceOfGetContentVersion(value: object): value is GetContentVersion;
73
+ export declare function GetContentVersionFromJSON(json: any): GetContentVersion;
74
+ export declare function GetContentVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersion;
75
+ export declare function GetContentVersionToJSON(json: any): GetContentVersion;
76
+ export declare function GetContentVersionToJSONTyped(value?: GetContentVersion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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 { GetContentVersionSandboxFromJSON, GetContentVersionSandboxToJSON, } from './GetContentVersionSandbox';
15
+ import { GetContentVersionScormDataFromJSON, GetContentVersionScormDataToJSON, } from './GetContentVersionScormData';
16
+ /**
17
+ * Check if a given object implements the GetContentVersion interface.
18
+ */
19
+ export function instanceOfGetContentVersion(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('contentId' in value) || value['contentId'] === undefined)
23
+ return false;
24
+ if (!('version' in value) || value['version'] === undefined)
25
+ return false;
26
+ if (!('isActive' in value) || value['isActive'] === undefined)
27
+ return false;
28
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
29
+ return false;
30
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
31
+ return false;
32
+ if (!('sandbox' in value) || value['sandbox'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function GetContentVersionFromJSON(json) {
37
+ return GetContentVersionFromJSONTyped(json, false);
38
+ }
39
+ export function GetContentVersionFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'contentId': json['content_id'],
46
+ 'version': json['version'],
47
+ 'isActive': json['is_active'],
48
+ 'createdAt': (new Date(json['created_at'])),
49
+ 'updatedAt': (new Date(json['updated_at'])),
50
+ 'sandbox': GetContentVersionSandboxFromJSON(json['sandbox']),
51
+ 'scormData': json['scorm_data'] == null ? undefined : GetContentVersionScormDataFromJSON(json['scorm_data']),
52
+ };
53
+ }
54
+ export function GetContentVersionToJSON(json) {
55
+ return GetContentVersionToJSONTyped(json, false);
56
+ }
57
+ export function GetContentVersionToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'id': value['id'],
63
+ 'content_id': value['contentId'],
64
+ 'version': value['version'],
65
+ 'is_active': value['isActive'],
66
+ 'created_at': ((value['createdAt']).toISOString()),
67
+ 'updated_at': ((value['updatedAt']).toISOString()),
68
+ 'sandbox': GetContentVersionSandboxToJSON(value['sandbox']),
69
+ 'scorm_data': GetContentVersionScormDataToJSON(value['scormData']),
70
+ };
71
+ }
@@ -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 { GetContentVersionListItemsInner } from './GetContentVersionListItemsInner';
13
+ /**
14
+ * A paginated list of content versions
15
+ * @export
16
+ * @interface GetContentVersionList
17
+ */
18
+ export interface GetContentVersionList {
19
+ /**
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetContentVersionList
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetContentVersionList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetContentVersionList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of versions
39
+ * @type {number}
40
+ * @memberof GetContentVersionList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ * List of content versions
45
+ * @type {Array<GetContentVersionListItemsInner>}
46
+ * @memberof GetContentVersionList
47
+ */
48
+ items: Array<GetContentVersionListItemsInner>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetContentVersionList interface.
52
+ */
53
+ export declare function instanceOfGetContentVersionList(value: object): value is GetContentVersionList;
54
+ export declare function GetContentVersionListFromJSON(json: any): GetContentVersionList;
55
+ export declare function GetContentVersionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentVersionList;
56
+ export declare function GetContentVersionListToJSON(json: any): GetContentVersionList;
57
+ export declare function GetContentVersionListToJSONTyped(value?: GetContentVersionList | 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 { GetContentVersionListItemsInnerFromJSON, GetContentVersionListItemsInnerToJSON, } from './GetContentVersionListItemsInner';
15
+ /**
16
+ * Check if a given object implements the GetContentVersionList interface.
17
+ */
18
+ export function instanceOfGetContentVersionList(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 GetContentVersionListFromJSON(json) {
32
+ return GetContentVersionListFromJSONTyped(json, false);
33
+ }
34
+ export function GetContentVersionListFromJSONTyped(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(GetContentVersionListItemsInnerFromJSON)),
44
+ };
45
+ }
46
+ export function GetContentVersionListToJSON(json) {
47
+ return GetContentVersionListToJSONTyped(json, false);
48
+ }
49
+ export function GetContentVersionListToJSONTyped(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(GetContentVersionListItemsInnerToJSON)),
59
+ };
60
+ }
@@ -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,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
+ }