@easyedu/js-lsm-api 1.65.0 → 1.67.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.
- package/.openapi-generator/FILES +2 -2
- package/README.md +9 -3
- package/dist/apis/ContentApi.d.ts +18 -0
- package/dist/apis/ContentApi.js +51 -0
- package/dist/apis/CourseApi.d.ts +16 -0
- package/dist/apis/CourseApi.js +43 -0
- package/dist/apis/PortalApi.d.ts +58 -0
- package/dist/apis/PortalApi.js +152 -0
- package/dist/apis/SupportTicketApi.d.ts +2 -3
- package/dist/apis/SupportTicketApi.js +1 -2
- package/dist/esm/apis/ContentApi.d.ts +18 -0
- package/dist/esm/apis/ContentApi.js +51 -0
- package/dist/esm/apis/CourseApi.d.ts +16 -0
- package/dist/esm/apis/CourseApi.js +43 -0
- package/dist/esm/apis/PortalApi.d.ts +58 -0
- package/dist/esm/apis/PortalApi.js +152 -0
- package/dist/esm/apis/SupportTicketApi.d.ts +2 -3
- package/dist/esm/apis/SupportTicketApi.js +1 -2
- package/dist/esm/models/ContentLaunchMode.d.ts +26 -0
- package/dist/esm/models/ContentLaunchMode.js +44 -0
- package/dist/esm/models/GetContent.d.ts +7 -0
- package/dist/esm/models/GetContent.js +5 -0
- package/dist/esm/models/GetCourse.d.ts +27 -0
- package/dist/esm/models/GetCourse.js +20 -0
- package/dist/esm/models/GetCourseEnrollment.d.ts +29 -1
- package/dist/esm/models/GetCourseEnrollment.js +23 -1
- package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +28 -1
- package/dist/esm/models/GetCourseEnrollmentListItem.js +23 -1
- package/dist/esm/models/GetPortal.d.ts +2 -2
- package/dist/esm/models/GetPortalFaviconUpload.d.ts +1 -1
- package/dist/esm/models/GetPortalLogoUpload.d.ts +1 -1
- package/dist/esm/models/GetPublicPortalBranding.d.ts +2 -2
- package/dist/esm/models/PostContentSession.d.ts +7 -0
- package/dist/esm/models/PostContentSession.js +5 -0
- package/dist/esm/models/PostCourse.d.ts +29 -0
- package/dist/esm/models/PostCourse.js +14 -0
- package/dist/esm/models/PostCourseEnrollment.d.ts +18 -1
- package/dist/esm/models/PostCourseEnrollment.js +10 -3
- package/dist/esm/models/PutContent.d.ts +7 -0
- package/dist/esm/models/PutContent.js +3 -0
- package/dist/esm/models/PutCourse.d.ts +27 -0
- package/dist/esm/models/PutCourse.js +14 -0
- package/dist/esm/models/PutCourseEnrollment.d.ts +8 -1
- package/dist/esm/models/PutCourseEnrollment.js +4 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/ContentLaunchMode.d.ts +26 -0
- package/dist/models/ContentLaunchMode.js +52 -0
- package/dist/models/GetContent.d.ts +7 -0
- package/dist/models/GetContent.js +5 -0
- package/dist/models/GetCourse.d.ts +27 -0
- package/dist/models/GetCourse.js +21 -0
- package/dist/models/GetCourseEnrollment.d.ts +29 -1
- package/dist/models/GetCourseEnrollment.js +24 -2
- package/dist/models/GetCourseEnrollmentListItem.d.ts +28 -1
- package/dist/models/GetCourseEnrollmentListItem.js +24 -2
- package/dist/models/GetPortal.d.ts +2 -2
- package/dist/models/GetPortalFaviconUpload.d.ts +1 -1
- package/dist/models/GetPortalLogoUpload.d.ts +1 -1
- package/dist/models/GetPublicPortalBranding.d.ts +2 -2
- package/dist/models/PostContentSession.d.ts +7 -0
- package/dist/models/PostContentSession.js +5 -0
- package/dist/models/PostCourse.d.ts +29 -0
- package/dist/models/PostCourse.js +15 -0
- package/dist/models/PostCourseEnrollment.d.ts +18 -1
- package/dist/models/PostCourseEnrollment.js +11 -4
- package/dist/models/PutContent.d.ts +7 -0
- package/dist/models/PutContent.js +3 -0
- package/dist/models/PutCourse.d.ts +27 -0
- package/dist/models/PutCourse.js +15 -0
- package/dist/models/PutCourseEnrollment.d.ts +8 -1
- package/dist/models/PutCourseEnrollment.js +4 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/docs/ContentApi.md +79 -0
- package/docs/{DownloadSupportTicketAttachment200Response.md → ContentLaunchMode.md} +5 -6
- package/docs/CourseApi.md +72 -0
- package/docs/GetContent.md +2 -0
- package/docs/GetCourse.md +6 -0
- package/docs/GetCourseEnrollment.md +4 -0
- package/docs/GetCourseEnrollmentListItem.md +4 -0
- package/docs/PortalApi.md +258 -0
- package/docs/PostContentSession.md +2 -0
- package/docs/PostCourse.md +6 -0
- package/docs/PostCourseEnrollment.md +2 -0
- package/docs/PutContent.md +2 -0
- package/docs/PutCourse.md +6 -0
- package/docs/PutCourseEnrollment.md +2 -0
- package/docs/SupportTicketApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +77 -0
- package/src/apis/CourseApi.ts +58 -0
- package/src/apis/PortalApi.ts +176 -0
- package/src/apis/SupportTicketApi.ts +3 -8
- package/src/models/ContentLaunchMode.ts +54 -0
- package/src/models/GetContent.ts +16 -0
- package/src/models/GetCourse.ts +39 -0
- package/src/models/GetCourseEnrollment.ts +37 -2
- package/src/models/GetCourseEnrollmentListItem.ts +36 -2
- package/src/models/GetPortal.ts +2 -2
- package/src/models/GetPortalFaviconUpload.ts +1 -1
- package/src/models/GetPortalLogoUpload.ts +1 -1
- package/src/models/GetPublicPortalBranding.ts +2 -2
- package/src/models/PostContentSession.ts +19 -0
- package/src/models/PostCourse.ts +38 -0
- package/src/models/PostCourseEnrollment.ts +22 -3
- package/src/models/PutContent.ts +18 -0
- package/src/models/PutCourse.ts +36 -0
- package/src/models/PutCourseEnrollment.ts +11 -2
- package/src/models/index.ts +1 -1
- package/dist/esm/models/DownloadSupportTicketAttachment200Response.d.ts +0 -32
- package/dist/esm/models/DownloadSupportTicketAttachment200Response.js +0 -43
- package/dist/models/DownloadSupportTicketAttachment200Response.d.ts +0 -32
- package/dist/models/DownloadSupportTicketAttachment200Response.js +0 -50
- package/src/models/DownloadSupportTicketAttachment200Response.ts +0 -66
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PostCourseEnrollmentUserTypeEnum = void 0;
|
|
16
|
+
exports.PostCourseEnrollmentReEnrollmentModeEnum = exports.PostCourseEnrollmentUserTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfPostCourseEnrollment = instanceOfPostCourseEnrollment;
|
|
18
18
|
exports.PostCourseEnrollmentFromJSON = PostCourseEnrollmentFromJSON;
|
|
19
19
|
exports.PostCourseEnrollmentFromJSONTyped = PostCourseEnrollmentFromJSONTyped;
|
|
@@ -26,14 +26,19 @@ exports.PostCourseEnrollmentUserTypeEnum = {
|
|
|
26
26
|
Student: 'Student',
|
|
27
27
|
Instructor: 'Instructor'
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.PostCourseEnrollmentReEnrollmentModeEnum = {
|
|
33
|
+
Restart: 'restart',
|
|
34
|
+
Resume: 'resume'
|
|
35
|
+
};
|
|
29
36
|
/**
|
|
30
37
|
* Check if a given object implements the PostCourseEnrollment interface.
|
|
31
38
|
*/
|
|
32
39
|
function instanceOfPostCourseEnrollment(value) {
|
|
33
40
|
if (!('userId' in value) || value['userId'] === undefined)
|
|
34
41
|
return false;
|
|
35
|
-
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
36
|
-
return false;
|
|
37
42
|
return true;
|
|
38
43
|
}
|
|
39
44
|
function PostCourseEnrollmentFromJSON(json) {
|
|
@@ -45,10 +50,11 @@ function PostCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
50
|
}
|
|
46
51
|
return {
|
|
47
52
|
'userId': json['user_id'],
|
|
48
|
-
'enrollmentDateStart': json['enrollment_date_start'],
|
|
53
|
+
'enrollmentDateStart': json['enrollment_date_start'] == null ? undefined : json['enrollment_date_start'],
|
|
49
54
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
50
55
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
51
56
|
'userType': json['user_type'] == null ? undefined : json['user_type'],
|
|
57
|
+
'reEnrollmentMode': json['re_enrollment_mode'] == null ? undefined : json['re_enrollment_mode'],
|
|
52
58
|
};
|
|
53
59
|
}
|
|
54
60
|
function PostCourseEnrollmentToJSON(json) {
|
|
@@ -64,5 +70,6 @@ function PostCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
70
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
65
71
|
'notes': value['notes'],
|
|
66
72
|
'user_type': value['userType'],
|
|
73
|
+
're_enrollment_mode': value['reEnrollmentMode'],
|
|
67
74
|
};
|
|
68
75
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface PutContent {
|
|
|
27
28
|
* @memberof PutContent
|
|
28
29
|
*/
|
|
29
30
|
published?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ContentLaunchMode}
|
|
34
|
+
* @memberof PutContent
|
|
35
|
+
*/
|
|
36
|
+
launchMode?: ContentLaunchMode;
|
|
30
37
|
}
|
|
31
38
|
/**
|
|
32
39
|
* Check if a given object implements the PutContent interface.
|
|
@@ -18,6 +18,7 @@ exports.PutContentFromJSON = PutContentFromJSON;
|
|
|
18
18
|
exports.PutContentFromJSONTyped = PutContentFromJSONTyped;
|
|
19
19
|
exports.PutContentToJSON = PutContentToJSON;
|
|
20
20
|
exports.PutContentToJSONTyped = PutContentToJSONTyped;
|
|
21
|
+
const ContentLaunchMode_1 = require("./ContentLaunchMode");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the PutContent interface.
|
|
23
24
|
*/
|
|
@@ -34,6 +35,7 @@ function PutContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
35
|
return {
|
|
35
36
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
37
|
'published': json['published'] == null ? undefined : json['published'],
|
|
38
|
+
'launchMode': json['launch_mode'] == null ? undefined : (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
function PutContentToJSON(json) {
|
|
@@ -46,5 +48,6 @@ function PutContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
48
|
return {
|
|
47
49
|
'name': value['name'],
|
|
48
50
|
'published': value['published'],
|
|
51
|
+
'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
|
|
49
52
|
};
|
|
50
53
|
}
|
|
@@ -39,7 +39,34 @@ export interface PutCourse {
|
|
|
39
39
|
* @memberof PutCourse
|
|
40
40
|
*/
|
|
41
41
|
published?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Course-level learner access policy.
|
|
44
|
+
* @type {PutCourseAccessPolicyTypeEnum}
|
|
45
|
+
* @memberof PutCourse
|
|
46
|
+
*/
|
|
47
|
+
accessPolicyType?: PutCourseAccessPolicyTypeEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Number of access days from enrollment start when access_policy_type is duration_days.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PutCourse
|
|
52
|
+
*/
|
|
53
|
+
accessDurationDays?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Fixed Unix timestamp when access expires when access_policy_type is fixed_end_date.
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PutCourse
|
|
58
|
+
*/
|
|
59
|
+
accessFixedEndAt?: number | null;
|
|
42
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const PutCourseAccessPolicyTypeEnum: {
|
|
65
|
+
readonly DurationDays: "duration_days";
|
|
66
|
+
readonly FixedEndDate: "fixed_end_date";
|
|
67
|
+
readonly NeverExpires: "never_expires";
|
|
68
|
+
};
|
|
69
|
+
export type PutCourseAccessPolicyTypeEnum = typeof PutCourseAccessPolicyTypeEnum[keyof typeof PutCourseAccessPolicyTypeEnum];
|
|
43
70
|
/**
|
|
44
71
|
* Check if a given object implements the PutCourse interface.
|
|
45
72
|
*/
|
package/dist/models/PutCourse.js
CHANGED
|
@@ -13,11 +13,20 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PutCourseAccessPolicyTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfPutCourse = instanceOfPutCourse;
|
|
17
18
|
exports.PutCourseFromJSON = PutCourseFromJSON;
|
|
18
19
|
exports.PutCourseFromJSONTyped = PutCourseFromJSONTyped;
|
|
19
20
|
exports.PutCourseToJSON = PutCourseToJSON;
|
|
20
21
|
exports.PutCourseToJSONTyped = PutCourseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PutCourseAccessPolicyTypeEnum = {
|
|
26
|
+
DurationDays: 'duration_days',
|
|
27
|
+
FixedEndDate: 'fixed_end_date',
|
|
28
|
+
NeverExpires: 'never_expires'
|
|
29
|
+
};
|
|
21
30
|
/**
|
|
22
31
|
* Check if a given object implements the PutCourse interface.
|
|
23
32
|
*/
|
|
@@ -36,6 +45,9 @@ function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
45
|
'name': json['name'] == null ? undefined : json['name'],
|
|
37
46
|
'description': json['description'] == null ? undefined : json['description'],
|
|
38
47
|
'published': json['published'] == null ? undefined : json['published'],
|
|
48
|
+
'accessPolicyType': json['access_policy_type'] == null ? undefined : json['access_policy_type'],
|
|
49
|
+
'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
|
|
50
|
+
'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
|
|
39
51
|
};
|
|
40
52
|
}
|
|
41
53
|
function PutCourseToJSON(json) {
|
|
@@ -49,5 +61,8 @@ function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
61
|
'name': value['name'],
|
|
50
62
|
'description': value['description'],
|
|
51
63
|
'published': value['published'],
|
|
64
|
+
'access_policy_type': value['accessPolicyType'],
|
|
65
|
+
'access_duration_days': value['accessDurationDays'],
|
|
66
|
+
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
52
67
|
};
|
|
53
68
|
}
|
|
@@ -35,7 +35,13 @@ export interface PutCourseEnrollment {
|
|
|
35
35
|
* @type {number}
|
|
36
36
|
* @memberof PutCourseEnrollment
|
|
37
37
|
*/
|
|
38
|
-
enrollmentDateEnd?: number;
|
|
38
|
+
enrollmentDateEnd?: number | null;
|
|
39
|
+
/**
|
|
40
|
+
* Add this many days to the current end date, or to now if the enrollment is already expired.
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof PutCourseEnrollment
|
|
43
|
+
*/
|
|
44
|
+
extensionDays?: number;
|
|
39
45
|
/**
|
|
40
46
|
* Optional notes about the enrollment
|
|
41
47
|
* @type {string}
|
|
@@ -53,6 +59,7 @@ export declare const PutCourseEnrollmentStatusEnum: {
|
|
|
53
59
|
readonly Withdrawn: "Withdrawn";
|
|
54
60
|
readonly Removed: "Removed";
|
|
55
61
|
readonly Archived: "Archived";
|
|
62
|
+
readonly Suspended: "Suspended";
|
|
56
63
|
};
|
|
57
64
|
export type PutCourseEnrollmentStatusEnum = typeof PutCourseEnrollmentStatusEnum[keyof typeof PutCourseEnrollmentStatusEnum];
|
|
58
65
|
/**
|
|
@@ -28,7 +28,8 @@ exports.PutCourseEnrollmentStatusEnum = {
|
|
|
28
28
|
Failed: 'Failed',
|
|
29
29
|
Withdrawn: 'Withdrawn',
|
|
30
30
|
Removed: 'Removed',
|
|
31
|
-
Archived: 'Archived'
|
|
31
|
+
Archived: 'Archived',
|
|
32
|
+
Suspended: 'Suspended'
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* @export
|
|
@@ -54,6 +55,7 @@ function PutCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
55
|
'status': json['status'] == null ? undefined : json['status'],
|
|
55
56
|
'userType': json['user_type'] == null ? undefined : json['user_type'],
|
|
56
57
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
58
|
+
'extensionDays': json['extension_days'] == null ? undefined : json['extension_days'],
|
|
57
59
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
58
60
|
};
|
|
59
61
|
}
|
|
@@ -68,6 +70,7 @@ function PutCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
68
70
|
'status': value['status'],
|
|
69
71
|
'user_type': value['userType'],
|
|
70
72
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
73
|
+
'extension_days': value['extensionDays'],
|
|
71
74
|
'notes': value['notes'],
|
|
72
75
|
};
|
|
73
76
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * from './Certificate';
|
|
2
2
|
export * from './CertificateConfig';
|
|
3
3
|
export * from './CertificatePublic';
|
|
4
|
+
export * from './ContentLaunchMode';
|
|
4
5
|
export * from './CourseCatalog';
|
|
5
6
|
export * from './CourseShare';
|
|
6
7
|
export * from './CriteriaBasedSelection';
|
|
7
8
|
export * from './CriteriaBasedSelectionCriteria';
|
|
8
9
|
export * from './CriteriaBasedSelectionDistribution';
|
|
9
|
-
export * from './DownloadSupportTicketAttachment200Response';
|
|
10
10
|
export * from './EffectiveCertificateConfig';
|
|
11
11
|
export * from './Essay';
|
|
12
12
|
export * from './Essay1';
|
package/dist/models/index.js
CHANGED
|
@@ -19,12 +19,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
__exportStar(require("./Certificate"), exports);
|
|
20
20
|
__exportStar(require("./CertificateConfig"), exports);
|
|
21
21
|
__exportStar(require("./CertificatePublic"), exports);
|
|
22
|
+
__exportStar(require("./ContentLaunchMode"), exports);
|
|
22
23
|
__exportStar(require("./CourseCatalog"), exports);
|
|
23
24
|
__exportStar(require("./CourseShare"), exports);
|
|
24
25
|
__exportStar(require("./CriteriaBasedSelection"), exports);
|
|
25
26
|
__exportStar(require("./CriteriaBasedSelectionCriteria"), exports);
|
|
26
27
|
__exportStar(require("./CriteriaBasedSelectionDistribution"), exports);
|
|
27
|
-
__exportStar(require("./DownloadSupportTicketAttachment200Response"), exports);
|
|
28
28
|
__exportStar(require("./EffectiveCertificateConfig"), exports);
|
|
29
29
|
__exportStar(require("./Essay"), exports);
|
|
30
30
|
__exportStar(require("./Essay1"), exports);
|
package/docs/ContentApi.md
CHANGED
|
@@ -26,6 +26,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
26
26
|
| [**postContentUpload**](ContentApi.md#postcontentupload) | **POST** /courses/{courseId}/modules/{moduleId}/contents/upload | Post a new content upload |
|
|
27
27
|
| [**putContent**](ContentApi.md#putcontent) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId} | Update content by id |
|
|
28
28
|
| [**putContentReorder**](ContentApi.md#putcontentreorder) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/reorder | Reorder content in a module |
|
|
29
|
+
| [**putContentUploadFile**](ContentApi.md#putcontentuploadfile) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/uploads/{uploadId}/file | Upload content file through the API |
|
|
29
30
|
| [**putContentVersion**](ContentApi.md#putcontentversion) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId} | Update a content version |
|
|
30
31
|
| [**setScormValue**](ContentApi.md#setscormvalue) | **POST** /scorm/sessions/{scormSessionId}/set-value | Set a SCORM CMI data element value |
|
|
31
32
|
| [**terminateScormSession**](ContentApi.md#terminatescormsession) | **POST** /scorm/sessions/{scormSessionId}/terminate | Terminate a SCORM session |
|
|
@@ -1657,6 +1658,84 @@ No authorization required
|
|
|
1657
1658
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1658
1659
|
|
|
1659
1660
|
|
|
1661
|
+
## putContentUploadFile
|
|
1662
|
+
|
|
1663
|
+
> putContentUploadFile(courseId, moduleId, uploadId, body)
|
|
1664
|
+
|
|
1665
|
+
Upload content file through the API
|
|
1666
|
+
|
|
1667
|
+
### Example
|
|
1668
|
+
|
|
1669
|
+
```ts
|
|
1670
|
+
import {
|
|
1671
|
+
Configuration,
|
|
1672
|
+
ContentApi,
|
|
1673
|
+
} from '@easyedu/js-lsm-api';
|
|
1674
|
+
import type { PutContentUploadFileRequest } from '@easyedu/js-lsm-api';
|
|
1675
|
+
|
|
1676
|
+
async function example() {
|
|
1677
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
1678
|
+
const api = new ContentApi();
|
|
1679
|
+
|
|
1680
|
+
const body = {
|
|
1681
|
+
// string
|
|
1682
|
+
courseId: courseId_example,
|
|
1683
|
+
// string
|
|
1684
|
+
moduleId: moduleId_example,
|
|
1685
|
+
// number
|
|
1686
|
+
uploadId: 56,
|
|
1687
|
+
// Blob
|
|
1688
|
+
body: BINARY_DATA_HERE,
|
|
1689
|
+
} satisfies PutContentUploadFileRequest;
|
|
1690
|
+
|
|
1691
|
+
try {
|
|
1692
|
+
const data = await api.putContentUploadFile(body);
|
|
1693
|
+
console.log(data);
|
|
1694
|
+
} catch (error) {
|
|
1695
|
+
console.error(error);
|
|
1696
|
+
}
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
// Run the test
|
|
1700
|
+
example().catch(console.error);
|
|
1701
|
+
```
|
|
1702
|
+
|
|
1703
|
+
### Parameters
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
| Name | Type | Description | Notes |
|
|
1707
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1708
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
1709
|
+
| **moduleId** | `string` | | [Defaults to `undefined`] |
|
|
1710
|
+
| **uploadId** | `number` | | [Defaults to `undefined`] |
|
|
1711
|
+
| **body** | `Blob` | | |
|
|
1712
|
+
|
|
1713
|
+
### Return type
|
|
1714
|
+
|
|
1715
|
+
`void` (Empty response body)
|
|
1716
|
+
|
|
1717
|
+
### Authorization
|
|
1718
|
+
|
|
1719
|
+
No authorization required
|
|
1720
|
+
|
|
1721
|
+
### HTTP request headers
|
|
1722
|
+
|
|
1723
|
+
- **Content-Type**: `application/octet-stream`
|
|
1724
|
+
- **Accept**: Not defined
|
|
1725
|
+
|
|
1726
|
+
|
|
1727
|
+
### HTTP response details
|
|
1728
|
+
| Status code | Description | Response headers |
|
|
1729
|
+
|-------------|-------------|------------------|
|
|
1730
|
+
| **204** | File uploaded successfully | - |
|
|
1731
|
+
| **401** | Unauthorized | - |
|
|
1732
|
+
| **403** | Forbidden | - |
|
|
1733
|
+
| **404** | Course, module, or content upload not found | - |
|
|
1734
|
+
| **413** | File too large | - |
|
|
1735
|
+
|
|
1736
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1737
|
+
|
|
1738
|
+
|
|
1660
1739
|
## putContentVersion
|
|
1661
1740
|
|
|
1662
1741
|
> GetContentVersion putContentVersion(contentId, moduleId, courseId, versionId, putContentVersion)
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ContentLaunchMode
|
|
3
3
|
|
|
4
|
+
How the learner player should present the launched content.
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
7
8
|
Name | Type
|
|
8
9
|
------------ | -------------
|
|
9
|
-
`downloadUrl` | string
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import type {
|
|
14
|
+
import type { ContentLaunchMode } from '@easyedu/js-lsm-api'
|
|
15
15
|
|
|
16
16
|
// TODO: Update the object below with actual values
|
|
17
17
|
const example = {
|
|
18
|
-
|
|
19
|
-
} satisfies DownloadSupportTicketAttachment200Response
|
|
18
|
+
} satisfies ContentLaunchMode
|
|
20
19
|
|
|
21
20
|
console.log(example)
|
|
22
21
|
|
|
@@ -25,7 +24,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
25
24
|
console.log(exampleJSON)
|
|
26
25
|
|
|
27
26
|
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
27
|
+
const exampleParsed = JSON.parse(exampleJSON) as ContentLaunchMode
|
|
29
28
|
console.log(exampleParsed)
|
|
30
29
|
```
|
|
31
30
|
|
package/docs/CourseApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
8
8
|
| [**deleteCourseEnrollment**](CourseApi.md#deletecourseenrollment) | **DELETE** /courses/{courseId}/enrollments/{enrollmentId} | Remove a course enrollment |
|
|
9
9
|
| [**deleteCourseExport**](CourseApi.md#deletecourseexport) | **DELETE** /courses/{courseId}/exports/{exportId} | Delete a course export |
|
|
10
10
|
| [**deleteCourseImage**](CourseApi.md#deletecourseimage) | **DELETE** /courses/{courseId}/image | Remove the course image |
|
|
11
|
+
| [**downloadCourseExport**](CourseApi.md#downloadcourseexport) | **GET** /courses/{courseId}/exports/{exportId}/download | Download a completed course export |
|
|
11
12
|
| [**getCourse**](CourseApi.md#getcourse) | **GET** /courses/{courseId} | get course |
|
|
12
13
|
| [**getCourseEnrollment**](CourseApi.md#getcourseenrollment) | **GET** /courses/{courseId}/enrollments/{enrollmentId} | Get a specific course enrollment |
|
|
13
14
|
| [**getCourseEnrollments**](CourseApi.md#getcourseenrollments) | **GET** /courses/{courseId}/enrollments | Get course enrollments |
|
|
@@ -299,6 +300,77 @@ No authorization required
|
|
|
299
300
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
300
301
|
|
|
301
302
|
|
|
303
|
+
## downloadCourseExport
|
|
304
|
+
|
|
305
|
+
> Blob downloadCourseExport(courseId, exportId)
|
|
306
|
+
|
|
307
|
+
Download a completed course export
|
|
308
|
+
|
|
309
|
+
### Example
|
|
310
|
+
|
|
311
|
+
```ts
|
|
312
|
+
import {
|
|
313
|
+
Configuration,
|
|
314
|
+
CourseApi,
|
|
315
|
+
} from '@easyedu/js-lsm-api';
|
|
316
|
+
import type { DownloadCourseExportRequest } from '@easyedu/js-lsm-api';
|
|
317
|
+
|
|
318
|
+
async function example() {
|
|
319
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
320
|
+
const api = new CourseApi();
|
|
321
|
+
|
|
322
|
+
const body = {
|
|
323
|
+
// string
|
|
324
|
+
courseId: courseId_example,
|
|
325
|
+
// string
|
|
326
|
+
exportId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
327
|
+
} satisfies DownloadCourseExportRequest;
|
|
328
|
+
|
|
329
|
+
try {
|
|
330
|
+
const data = await api.downloadCourseExport(body);
|
|
331
|
+
console.log(data);
|
|
332
|
+
} catch (error) {
|
|
333
|
+
console.error(error);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
// Run the test
|
|
338
|
+
example().catch(console.error);
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
### Parameters
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
| Name | Type | Description | Notes |
|
|
345
|
+
|------------- | ------------- | ------------- | -------------|
|
|
346
|
+
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
347
|
+
| **exportId** | `string` | | [Defaults to `undefined`] |
|
|
348
|
+
|
|
349
|
+
### Return type
|
|
350
|
+
|
|
351
|
+
**Blob**
|
|
352
|
+
|
|
353
|
+
### Authorization
|
|
354
|
+
|
|
355
|
+
No authorization required
|
|
356
|
+
|
|
357
|
+
### HTTP request headers
|
|
358
|
+
|
|
359
|
+
- **Content-Type**: Not defined
|
|
360
|
+
- **Accept**: `application/zip`
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
### HTTP response details
|
|
364
|
+
| Status code | Description | Response headers |
|
|
365
|
+
|-------------|-------------|------------------|
|
|
366
|
+
| **200** | Export ZIP | - |
|
|
367
|
+
| **401** | Unauthorized | - |
|
|
368
|
+
| **403** | Forbidden | - |
|
|
369
|
+
| **404** | Export or course not found | - |
|
|
370
|
+
|
|
371
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
372
|
+
|
|
373
|
+
|
|
302
374
|
## getCourse
|
|
303
375
|
|
|
304
376
|
> GetCourse getCourse(courseId)
|
package/docs/GetContent.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`name` | string
|
|
12
12
|
`description` | string
|
|
13
13
|
`contentType` | string
|
|
14
|
+
`launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
|
|
14
15
|
`contentData` | [GetContentContentData](GetContentContentData.md)
|
|
15
16
|
`order` | number
|
|
16
17
|
`published` | boolean
|
|
@@ -32,6 +33,7 @@ const example = {
|
|
|
32
33
|
"name": null,
|
|
33
34
|
"description": null,
|
|
34
35
|
"contentType": null,
|
|
36
|
+
"launchMode": null,
|
|
35
37
|
"contentData": null,
|
|
36
38
|
"order": null,
|
|
37
39
|
"published": null,
|
package/docs/GetCourse.md
CHANGED
|
@@ -12,6 +12,9 @@ Name | Type
|
|
|
12
12
|
`imageUrl` | string
|
|
13
13
|
`published` | boolean
|
|
14
14
|
`createdAt` | number
|
|
15
|
+
`accessPolicyType` | string
|
|
16
|
+
`accessDurationDays` | number
|
|
17
|
+
`accessFixedEndAt` | number
|
|
15
18
|
|
|
16
19
|
## Example
|
|
17
20
|
|
|
@@ -26,6 +29,9 @@ const example = {
|
|
|
26
29
|
"imageUrl": null,
|
|
27
30
|
"published": null,
|
|
28
31
|
"createdAt": null,
|
|
32
|
+
"accessPolicyType": null,
|
|
33
|
+
"accessDurationDays": null,
|
|
34
|
+
"accessFixedEndAt": null,
|
|
29
35
|
} satisfies GetCourse
|
|
30
36
|
|
|
31
37
|
console.log(example)
|
|
@@ -14,6 +14,8 @@ Name | Type
|
|
|
14
14
|
`enrollmentDateEnd` | number
|
|
15
15
|
`notes` | string
|
|
16
16
|
`status` | string
|
|
17
|
+
`accessState` | string
|
|
18
|
+
`daysUntilExpiry` | number
|
|
17
19
|
`userType` | string
|
|
18
20
|
`completionDate` | number
|
|
19
21
|
|
|
@@ -31,6 +33,8 @@ const example = {
|
|
|
31
33
|
"enrollmentDateEnd": null,
|
|
32
34
|
"notes": null,
|
|
33
35
|
"status": null,
|
|
36
|
+
"accessState": null,
|
|
37
|
+
"daysUntilExpiry": null,
|
|
34
38
|
"userType": null,
|
|
35
39
|
"completionDate": null,
|
|
36
40
|
} satisfies GetCourseEnrollment
|
|
@@ -15,6 +15,8 @@ Name | Type
|
|
|
15
15
|
`enrollmentDateStart` | number
|
|
16
16
|
`enrollmentDateEnd` | number
|
|
17
17
|
`status` | string
|
|
18
|
+
`accessState` | string
|
|
19
|
+
`daysUntilExpiry` | number
|
|
18
20
|
`userType` | string
|
|
19
21
|
`completionDate` | number
|
|
20
22
|
|
|
@@ -33,6 +35,8 @@ const example = {
|
|
|
33
35
|
"enrollmentDateStart": null,
|
|
34
36
|
"enrollmentDateEnd": null,
|
|
35
37
|
"status": null,
|
|
38
|
+
"accessState": null,
|
|
39
|
+
"daysUntilExpiry": null,
|
|
36
40
|
"userType": null,
|
|
37
41
|
"completionDate": null,
|
|
38
42
|
} satisfies GetCourseEnrollmentListItem
|