@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,169 @@
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
+ * Information about the SCORM package
18
+ * @export
19
+ * @interface GetScormPackagePackageInfo
20
+ */
21
+ export interface GetScormPackagePackageInfo {
22
+ /**
23
+ * The external_id (UUID) for this SCORM package
24
+ * @type {string}
25
+ * @memberof GetScormPackagePackageInfo
26
+ */
27
+ id: string;
28
+ /**
29
+ * Version number
30
+ * @type {number}
31
+ * @memberof GetScormPackagePackageInfo
32
+ */
33
+ version: number;
34
+ /**
35
+ * Whether this is the currently active version
36
+ * @type {boolean}
37
+ * @memberof GetScormPackagePackageInfo
38
+ */
39
+ isActive: boolean;
40
+ /**
41
+ * SCORM manifest identifier
42
+ * @type {string}
43
+ * @memberof GetScormPackagePackageInfo
44
+ */
45
+ manifestIdentifier: string;
46
+ /**
47
+ * SCORM manifest version
48
+ * @type {string}
49
+ * @memberof GetScormPackagePackageInfo
50
+ */
51
+ manifestVersion?: string | null;
52
+ /**
53
+ * SCORM organization identifier
54
+ * @type {string}
55
+ * @memberof GetScormPackagePackageInfo
56
+ */
57
+ organizationIdentifier?: string | null;
58
+ /**
59
+ * SCORM organization title
60
+ * @type {string}
61
+ * @memberof GetScormPackagePackageInfo
62
+ */
63
+ organizationTitle?: string | null;
64
+ /**
65
+ * SCORM version (e.g., "1.2", "2004")
66
+ * @type {string}
67
+ * @memberof GetScormPackagePackageInfo
68
+ */
69
+ scormVersion: string;
70
+ /**
71
+ * S3 storage key for the package
72
+ * @type {string}
73
+ * @memberof GetScormPackagePackageInfo
74
+ */
75
+ storageKey: string;
76
+ /**
77
+ * Total number of files in the package
78
+ * @type {number}
79
+ * @memberof GetScormPackagePackageInfo
80
+ */
81
+ totalFileCount?: number | null;
82
+ /**
83
+ * Total size of the package in bytes
84
+ * @type {number}
85
+ * @memberof GetScormPackagePackageInfo
86
+ */
87
+ packageSizeBytes?: number | null;
88
+ /**
89
+ * When this package was created
90
+ * @type {Date}
91
+ * @memberof GetScormPackagePackageInfo
92
+ */
93
+ createdAt: Date;
94
+ /**
95
+ * When this package was last updated
96
+ * @type {Date}
97
+ * @memberof GetScormPackagePackageInfo
98
+ */
99
+ updatedAt: Date;
100
+ }
101
+
102
+ /**
103
+ * Check if a given object implements the GetScormPackagePackageInfo interface.
104
+ */
105
+ export function instanceOfGetScormPackagePackageInfo(value: object): value is GetScormPackagePackageInfo {
106
+ if (!('id' in value) || value['id'] === undefined) return false;
107
+ if (!('version' in value) || value['version'] === undefined) return false;
108
+ if (!('isActive' in value) || value['isActive'] === undefined) return false;
109
+ if (!('manifestIdentifier' in value) || value['manifestIdentifier'] === undefined) return false;
110
+ if (!('scormVersion' in value) || value['scormVersion'] === undefined) return false;
111
+ if (!('storageKey' in value) || value['storageKey'] === undefined) return false;
112
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
113
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
114
+ return true;
115
+ }
116
+
117
+ export function GetScormPackagePackageInfoFromJSON(json: any): GetScormPackagePackageInfo {
118
+ return GetScormPackagePackageInfoFromJSONTyped(json, false);
119
+ }
120
+
121
+ export function GetScormPackagePackageInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetScormPackagePackageInfo {
122
+ if (json == null) {
123
+ return json;
124
+ }
125
+ return {
126
+
127
+ 'id': json['id'],
128
+ 'version': json['version'],
129
+ 'isActive': json['is_active'],
130
+ 'manifestIdentifier': json['manifest_identifier'],
131
+ 'manifestVersion': json['manifest_version'] == null ? undefined : json['manifest_version'],
132
+ 'organizationIdentifier': json['organization_identifier'] == null ? undefined : json['organization_identifier'],
133
+ 'organizationTitle': json['organization_title'] == null ? undefined : json['organization_title'],
134
+ 'scormVersion': json['scorm_version'],
135
+ 'storageKey': json['storage_key'],
136
+ 'totalFileCount': json['total_file_count'] == null ? undefined : json['total_file_count'],
137
+ 'packageSizeBytes': json['package_size_bytes'] == null ? undefined : json['package_size_bytes'],
138
+ 'createdAt': (new Date(json['created_at'])),
139
+ 'updatedAt': (new Date(json['updated_at'])),
140
+ };
141
+ }
142
+
143
+ export function GetScormPackagePackageInfoToJSON(json: any): GetScormPackagePackageInfo {
144
+ return GetScormPackagePackageInfoToJSONTyped(json, false);
145
+ }
146
+
147
+ export function GetScormPackagePackageInfoToJSONTyped(value?: GetScormPackagePackageInfo | null, ignoreDiscriminator: boolean = false): any {
148
+ if (value == null) {
149
+ return value;
150
+ }
151
+
152
+ return {
153
+
154
+ 'id': value['id'],
155
+ 'version': value['version'],
156
+ 'is_active': value['isActive'],
157
+ 'manifest_identifier': value['manifestIdentifier'],
158
+ 'manifest_version': value['manifestVersion'],
159
+ 'organization_identifier': value['organizationIdentifier'],
160
+ 'organization_title': value['organizationTitle'],
161
+ 'scorm_version': value['scormVersion'],
162
+ 'storage_key': value['storageKey'],
163
+ 'total_file_count': value['totalFileCount'],
164
+ 'package_size_bytes': value['packageSizeBytes'],
165
+ 'created_at': ((value['createdAt']).toISOString()),
166
+ 'updated_at': ((value['updatedAt']).toISOString()),
167
+ };
168
+ }
169
+
@@ -0,0 +1,78 @@
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
+ * Request to create a new SCORM export for a course
18
+ * @export
19
+ * @interface PostCourseExport
20
+ */
21
+ export interface PostCourseExport {
22
+ /**
23
+ * The SCORM version to export
24
+ * @type {string}
25
+ * @memberof PostCourseExport
26
+ */
27
+ scormVersion: PostCourseExportScormVersionEnum;
28
+ }
29
+
30
+
31
+ /**
32
+ * @export
33
+ */
34
+ export const PostCourseExportScormVersionEnum = {
35
+ Scorm12: 'SCORM_1_2',
36
+ Scorm20043RdEdition: 'SCORM_2004_3RD_EDITION',
37
+ Scorm20044ThEdition: 'SCORM_2004_4TH_EDITION'
38
+ } as const;
39
+ export type PostCourseExportScormVersionEnum = typeof PostCourseExportScormVersionEnum[keyof typeof PostCourseExportScormVersionEnum];
40
+
41
+
42
+ /**
43
+ * Check if a given object implements the PostCourseExport interface.
44
+ */
45
+ export function instanceOfPostCourseExport(value: object): value is PostCourseExport {
46
+ if (!('scormVersion' in value) || value['scormVersion'] === undefined) return false;
47
+ return true;
48
+ }
49
+
50
+ export function PostCourseExportFromJSON(json: any): PostCourseExport {
51
+ return PostCourseExportFromJSONTyped(json, false);
52
+ }
53
+
54
+ export function PostCourseExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseExport {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+
60
+ 'scormVersion': json['scorm_version'],
61
+ };
62
+ }
63
+
64
+ export function PostCourseExportToJSON(json: any): PostCourseExport {
65
+ return PostCourseExportToJSONTyped(json, false);
66
+ }
67
+
68
+ export function PostCourseExportToJSONTyped(value?: PostCourseExport | null, ignoreDiscriminator: boolean = false): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+
73
+ return {
74
+
75
+ 'scorm_version': value['scormVersion'],
76
+ };
77
+ }
78
+
@@ -0,0 +1,66 @@
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
+ * Request to update a content version
18
+ * @export
19
+ * @interface PutContentVersion
20
+ */
21
+ export interface PutContentVersion {
22
+ /**
23
+ * Set to true to make this the active version (automatically deactivates all other versions). Setting to false is not allowed.
24
+ * @type {boolean}
25
+ * @memberof PutContentVersion
26
+ */
27
+ isActive: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PutContentVersion interface.
32
+ */
33
+ export function instanceOfPutContentVersion(value: object): value is PutContentVersion {
34
+ if (!('isActive' in value) || value['isActive'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function PutContentVersionFromJSON(json: any): PutContentVersion {
39
+ return PutContentVersionFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function PutContentVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutContentVersion {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'isActive': json['is_active'],
49
+ };
50
+ }
51
+
52
+ export function PutContentVersionToJSON(json: any): PutContentVersion {
53
+ return PutContentVersionToJSONTyped(json, false);
54
+ }
55
+
56
+ export function PutContentVersionToJSONTyped(value?: PutContentVersion | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'is_active': value['isActive'],
64
+ };
65
+ }
66
+
@@ -18,10 +18,17 @@ export * from './GetContentInstructorBasicReportingPerformance';
18
18
  export * from './GetContentList';
19
19
  export * from './GetContentSession';
20
20
  export * from './GetContentUpload';
21
+ export * from './GetContentVersion';
22
+ export * from './GetContentVersionList';
23
+ export * from './GetContentVersionListItemsInner';
24
+ export * from './GetContentVersionSandbox';
25
+ export * from './GetContentVersionScormData';
21
26
  export * from './GetCourse';
22
27
  export * from './GetCourseEnrollment';
23
28
  export * from './GetCourseEnrollmentList';
24
29
  export * from './GetCourseEnrollmentListItem';
30
+ export * from './GetCourseExport';
31
+ export * from './GetCourseExportList';
25
32
  export * from './GetCourseList';
26
33
  export * from './GetCourseReportingBasic';
27
34
  export * from './GetCourseStudentReporting';
@@ -98,6 +105,8 @@ export * from './GetQuizResultsQuestionsInnerStudentAnswer';
98
105
  export * from './GetQuizResultsScore';
99
106
  export * from './GetQuizResultsTiming';
100
107
  export * from './GetQuizStatistics';
108
+ export * from './GetScormPackage';
109
+ export * from './GetScormPackagePackageInfo';
101
110
  export * from './GetUser';
102
111
  export * from './GetUserQuizAttempts';
103
112
  export * from './GetUserQuizAttemptsAllOfAttempts';
@@ -121,6 +130,7 @@ export * from './PostContentSession';
121
130
  export * from './PostContentUpload';
122
131
  export * from './PostCourse';
123
132
  export * from './PostCourseEnrollment';
133
+ export * from './PostCourseExport';
124
134
  export * from './PostLogin';
125
135
  export * from './PostManualQuestionSelection';
126
136
  export * from './PostModule';
@@ -145,6 +155,7 @@ export * from './PostQuizSettings';
145
155
  export * from './PostResetPassword';
146
156
  export * from './PostSendResetPassword';
147
157
  export * from './PutContent';
158
+ export * from './PutContentVersion';
148
159
  export * from './PutCourse';
149
160
  export * from './PutCourseEnrollment';
150
161
  export * from './PutModule';