@easyedu/js-lsm-api 1.7.0 → 1.9.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 +3 -0
- package/README.md +2 -2
- package/dist/apis/CourseApi.d.ts +21 -8
- package/dist/apis/CourseApi.js +46 -10
- package/dist/apis/PortalApi.d.ts +24 -1
- package/dist/apis/PortalApi.js +46 -1
- package/dist/esm/apis/CourseApi.d.ts +21 -8
- package/dist/esm/apis/CourseApi.js +47 -11
- package/dist/esm/apis/PortalApi.d.ts +24 -1
- package/dist/esm/apis/PortalApi.js +46 -1
- package/dist/esm/models/GetCourseEnrollment.d.ts +9 -5
- package/dist/esm/models/GetCourseEnrollment.js +5 -3
- package/dist/esm/models/GetPortalUser.d.ts +71 -0
- package/dist/esm/models/GetPortalUser.js +71 -0
- package/dist/esm/models/GetPortalUserList.d.ts +57 -0
- package/dist/esm/models/GetPortalUserList.js +60 -0
- package/dist/esm/models/PostContentSession.d.ts +6 -0
- package/dist/esm/models/PostContentSession.js +2 -0
- package/dist/esm/models/PostCourseEnrollment.d.ts +13 -7
- package/dist/esm/models/PostCourseEnrollment.js +4 -4
- package/dist/esm/models/PutCourseEnrollment.d.ts +53 -0
- package/dist/esm/models/PutCourseEnrollment.js +53 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/GetCourseEnrollment.d.ts +9 -5
- package/dist/models/GetCourseEnrollment.js +5 -3
- package/dist/models/GetPortalUser.d.ts +71 -0
- package/dist/models/GetPortalUser.js +79 -0
- package/dist/models/GetPortalUserList.d.ts +57 -0
- package/dist/models/GetPortalUserList.js +67 -0
- package/dist/models/PostContentSession.d.ts +6 -0
- package/dist/models/PostContentSession.js +2 -0
- package/dist/models/PostCourseEnrollment.d.ts +13 -7
- package/dist/models/PostCourseEnrollment.js +4 -4
- package/dist/models/PutCourseEnrollment.d.ts +53 -0
- package/dist/models/PutCourseEnrollment.js +61 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +70 -11
- package/src/apis/PortalApi.ts +65 -0
- package/src/models/GetCourseEnrollment.ts +12 -5
- package/src/models/GetPortalUser.ts +123 -0
- package/src/models/GetPortalUserList.ts +110 -0
- package/src/models/PostContentSession.ts +8 -0
- package/src/models/PostCourseEnrollment.ts +17 -10
- package/src/models/PutCourseEnrollment.ts +93 -0
- package/src/models/index.ts +3 -0
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export const GetCourseEnrollmentStatusEnum = {
|
|
18
18
|
Enrolled: 'Enrolled',
|
|
19
|
-
Dropped: 'Dropped',
|
|
20
19
|
Completed: 'Completed',
|
|
21
|
-
|
|
22
|
-
Unknown: 'Unknown'
|
|
20
|
+
Removed: 'Removed'
|
|
23
21
|
};
|
|
24
22
|
/**
|
|
25
23
|
* Check if a given object implements the GetCourseEnrollment interface.
|
|
26
24
|
*/
|
|
27
25
|
export function instanceOfGetCourseEnrollment(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
28
|
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
29
29
|
return false;
|
|
30
30
|
if (!('userId' in value) || value['userId'] === undefined)
|
|
@@ -49,6 +49,7 @@ export function GetCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
return json;
|
|
50
50
|
}
|
|
51
51
|
return {
|
|
52
|
+
'id': json['id'],
|
|
52
53
|
'courseId': json['course_id'],
|
|
53
54
|
'userId': json['user_id'],
|
|
54
55
|
'enrollmentDateStart': json['enrollment_date_start'],
|
|
@@ -66,6 +67,7 @@ export function GetCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
66
67
|
return value;
|
|
67
68
|
}
|
|
68
69
|
return {
|
|
70
|
+
'id': value['id'],
|
|
69
71
|
'course_id': value['courseId'],
|
|
70
72
|
'user_id': value['userId'],
|
|
71
73
|
'enrollment_date_start': value['enrollmentDateStart'],
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
* A user with their portal access information
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetPortalUser
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPortalUser {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier for the user
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetPortalUser
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The user's email address
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetPortalUser
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
* The user's first name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetPortalUser
|
|
34
|
+
*/
|
|
35
|
+
firstName: string;
|
|
36
|
+
/**
|
|
37
|
+
* The user's last name
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetPortalUser
|
|
40
|
+
*/
|
|
41
|
+
lastName: string;
|
|
42
|
+
/**
|
|
43
|
+
* The user's role in the portal
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetPortalUser
|
|
46
|
+
*/
|
|
47
|
+
role: GetPortalUserRoleEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the user's portal access is active
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetPortalUser
|
|
52
|
+
*/
|
|
53
|
+
isActive: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const GetPortalUserRoleEnum: {
|
|
59
|
+
readonly Admin: "Admin";
|
|
60
|
+
readonly Instructor: "Instructor";
|
|
61
|
+
readonly Learner: "Learner";
|
|
62
|
+
};
|
|
63
|
+
export type GetPortalUserRoleEnum = typeof GetPortalUserRoleEnum[keyof typeof GetPortalUserRoleEnum];
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetPortalUser interface.
|
|
66
|
+
*/
|
|
67
|
+
export declare function instanceOfGetPortalUser(value: object): value is GetPortalUser;
|
|
68
|
+
export declare function GetPortalUserFromJSON(json: any): GetPortalUser;
|
|
69
|
+
export declare function GetPortalUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalUser;
|
|
70
|
+
export declare function GetPortalUserToJSON(json: any): GetPortalUser;
|
|
71
|
+
export declare function GetPortalUserToJSONTyped(value?: GetPortalUser | 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
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const GetPortalUserRoleEnum = {
|
|
18
|
+
Admin: 'Admin',
|
|
19
|
+
Instructor: 'Instructor',
|
|
20
|
+
Learner: 'Learner'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetPortalUser interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfGetPortalUser(value) {
|
|
26
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('isActive' in value) || value['isActive'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
export function GetPortalUserFromJSON(json) {
|
|
41
|
+
return GetPortalUserFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
export function GetPortalUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'userId': json['user_id'],
|
|
49
|
+
'email': json['email'],
|
|
50
|
+
'firstName': json['first_name'],
|
|
51
|
+
'lastName': json['last_name'],
|
|
52
|
+
'role': json['role'],
|
|
53
|
+
'isActive': json['is_active'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export function GetPortalUserToJSON(json) {
|
|
57
|
+
return GetPortalUserToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function GetPortalUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'user_id': value['userId'],
|
|
65
|
+
'email': value['email'],
|
|
66
|
+
'first_name': value['firstName'],
|
|
67
|
+
'last_name': value['lastName'],
|
|
68
|
+
'role': value['role'],
|
|
69
|
+
'is_active': value['isActive'],
|
|
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 { GetPortalUser } from './GetPortalUser';
|
|
13
|
+
/**
|
|
14
|
+
* A list of portal users with pagination information
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetPortalUserList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetPortalUserList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetPortalUserList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetPortalUserList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetPortalUserList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetPortalUserList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetPortalUser>}
|
|
46
|
+
* @memberof GetPortalUserList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetPortalUser>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetPortalUserList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetPortalUserList(value: object): value is GetPortalUserList;
|
|
54
|
+
export declare function GetPortalUserListFromJSON(json: any): GetPortalUserList;
|
|
55
|
+
export declare function GetPortalUserListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalUserList;
|
|
56
|
+
export declare function GetPortalUserListToJSON(json: any): GetPortalUserList;
|
|
57
|
+
export declare function GetPortalUserListToJSONTyped(value?: GetPortalUserList | 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 { GetPortalUserFromJSON, GetPortalUserToJSON, } from './GetPortalUser';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetPortalUserList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetPortalUserList(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 GetPortalUserListFromJSON(json) {
|
|
32
|
+
return GetPortalUserListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetPortalUserListFromJSONTyped(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(GetPortalUserFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetPortalUserListToJSON(json) {
|
|
47
|
+
return GetPortalUserListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetPortalUserListToJSONTyped(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(GetPortalUserToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -39,6 +39,12 @@ export interface PostContentSession {
|
|
|
39
39
|
* @memberof PostContentSession
|
|
40
40
|
*/
|
|
41
41
|
createdAt: number;
|
|
42
|
+
/**
|
|
43
|
+
* The player session ID (used for SCORM, Quiz, and other interactive content). This is the external_id of the session that the player should use.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostContentSession
|
|
46
|
+
*/
|
|
47
|
+
playerSessionId?: string | null;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the PostContentSession interface.
|
|
@@ -37,6 +37,7 @@ export function PostContentSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
37
|
'userId': json['user_id'],
|
|
38
38
|
'launchUrl': json['launch_url'],
|
|
39
39
|
'createdAt': json['created_at'],
|
|
40
|
+
'playerSessionId': json['player_session_id'] == null ? undefined : json['player_session_id'],
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
export function PostContentSessionToJSON(json) {
|
|
@@ -51,5 +52,6 @@ export function PostContentSessionToJSONTyped(value, ignoreDiscriminator = false
|
|
|
51
52
|
'user_id': value['userId'],
|
|
52
53
|
'launch_url': value['launchUrl'],
|
|
53
54
|
'created_at': value['createdAt'],
|
|
55
|
+
'player_session_id': value['playerSessionId'],
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -16,23 +16,29 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface PostCourseEnrollment {
|
|
18
18
|
/**
|
|
19
|
-
* The ID of the
|
|
19
|
+
* The external ID of the user to enroll
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof PostCourseEnrollment
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
userId: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
25
|
+
* Start date of the enrollment (Unix timestamp)
|
|
26
|
+
* @type {number}
|
|
27
27
|
* @memberof PostCourseEnrollment
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
enrollmentDateStart: number;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* End date of the enrollment (Unix timestamp)
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof PostCourseEnrollment
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
enrollmentDateEnd?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* Optional notes about the enrollment
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostCourseEnrollment
|
|
40
|
+
*/
|
|
41
|
+
notes?: string | null;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the PostCourseEnrollment interface.
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
* Check if a given object implements the PostCourseEnrollment interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfPostCourseEnrollment(value) {
|
|
18
|
-
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
19
|
-
return false;
|
|
20
18
|
if (!('userId' in value) || value['userId'] === undefined)
|
|
21
19
|
return false;
|
|
22
20
|
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined)
|
|
@@ -31,9 +29,10 @@ export function PostCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
29
|
return json;
|
|
32
30
|
}
|
|
33
31
|
return {
|
|
34
|
-
'courseId': json['course_id'],
|
|
35
32
|
'userId': json['user_id'],
|
|
36
33
|
'enrollmentDateStart': json['enrollment_date_start'],
|
|
34
|
+
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
35
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
37
36
|
};
|
|
38
37
|
}
|
|
39
38
|
export function PostCourseEnrollmentToJSON(json) {
|
|
@@ -44,8 +43,9 @@ export function PostCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
44
43
|
return value;
|
|
45
44
|
}
|
|
46
45
|
return {
|
|
47
|
-
'course_id': value['courseId'],
|
|
48
46
|
'user_id': value['userId'],
|
|
49
47
|
'enrollment_date_start': value['enrollmentDateStart'],
|
|
48
|
+
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
49
|
+
'notes': value['notes'],
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 PutCourseEnrollment
|
|
16
|
+
*/
|
|
17
|
+
export interface PutCourseEnrollment {
|
|
18
|
+
/**
|
|
19
|
+
* Current status of the enrollment
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutCourseEnrollment
|
|
22
|
+
*/
|
|
23
|
+
status?: PutCourseEnrollmentStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
* End date of the enrollment (Unix timestamp)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PutCourseEnrollment
|
|
28
|
+
*/
|
|
29
|
+
enrollmentDateEnd?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Optional notes about the enrollment
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PutCourseEnrollment
|
|
34
|
+
*/
|
|
35
|
+
notes?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const PutCourseEnrollmentStatusEnum: {
|
|
41
|
+
readonly Enrolled: "Enrolled";
|
|
42
|
+
readonly Completed: "Completed";
|
|
43
|
+
readonly Removed: "Removed";
|
|
44
|
+
};
|
|
45
|
+
export type PutCourseEnrollmentStatusEnum = typeof PutCourseEnrollmentStatusEnum[keyof typeof PutCourseEnrollmentStatusEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the PutCourseEnrollment interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfPutCourseEnrollment(value: object): value is PutCourseEnrollment;
|
|
50
|
+
export declare function PutCourseEnrollmentFromJSON(json: any): PutCourseEnrollment;
|
|
51
|
+
export declare function PutCourseEnrollmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCourseEnrollment;
|
|
52
|
+
export declare function PutCourseEnrollmentToJSON(json: any): PutCourseEnrollment;
|
|
53
|
+
export declare function PutCourseEnrollmentToJSONTyped(value?: PutCourseEnrollment | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const PutCourseEnrollmentStatusEnum = {
|
|
18
|
+
Enrolled: 'Enrolled',
|
|
19
|
+
Completed: 'Completed',
|
|
20
|
+
Removed: 'Removed'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PutCourseEnrollment interface.
|
|
24
|
+
*/
|
|
25
|
+
export function instanceOfPutCourseEnrollment(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function PutCourseEnrollmentFromJSON(json) {
|
|
29
|
+
return PutCourseEnrollmentFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function PutCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
37
|
+
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
38
|
+
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export function PutCourseEnrollmentToJSON(json) {
|
|
42
|
+
return PutCourseEnrollmentToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function PutCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'status': value['status'],
|
|
50
|
+
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
51
|
+
'notes': value['notes'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -16,6 +16,8 @@ export * from './GetModule';
|
|
|
16
16
|
export * from './GetModuleList';
|
|
17
17
|
export * from './GetPortal';
|
|
18
18
|
export * from './GetPortalList';
|
|
19
|
+
export * from './GetPortalUser';
|
|
20
|
+
export * from './GetPortalUserList';
|
|
19
21
|
export * from './GetQuestion';
|
|
20
22
|
export * from './GetQuestionAnswerChoicesInner';
|
|
21
23
|
export * from './GetQuestionList';
|
|
@@ -110,6 +112,7 @@ export * from './PostResetPassword';
|
|
|
110
112
|
export * from './PostSendResetPassword';
|
|
111
113
|
export * from './PutContent';
|
|
112
114
|
export * from './PutCourse';
|
|
115
|
+
export * from './PutCourseEnrollment';
|
|
113
116
|
export * from './PutModule';
|
|
114
117
|
export * from './PutPortalBranding';
|
|
115
118
|
export * from './PutQuestion';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -18,6 +18,8 @@ export * from './GetModule';
|
|
|
18
18
|
export * from './GetModuleList';
|
|
19
19
|
export * from './GetPortal';
|
|
20
20
|
export * from './GetPortalList';
|
|
21
|
+
export * from './GetPortalUser';
|
|
22
|
+
export * from './GetPortalUserList';
|
|
21
23
|
export * from './GetQuestion';
|
|
22
24
|
export * from './GetQuestionAnswerChoicesInner';
|
|
23
25
|
export * from './GetQuestionList';
|
|
@@ -112,6 +114,7 @@ export * from './PostResetPassword';
|
|
|
112
114
|
export * from './PostSendResetPassword';
|
|
113
115
|
export * from './PutContent';
|
|
114
116
|
export * from './PutCourse';
|
|
117
|
+
export * from './PutCourseEnrollment';
|
|
115
118
|
export * from './PutModule';
|
|
116
119
|
export * from './PutPortalBranding';
|
|
117
120
|
export * from './PutQuestion';
|
|
@@ -16,13 +16,19 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface GetCourseEnrollment {
|
|
18
18
|
/**
|
|
19
|
-
* The ID of the
|
|
19
|
+
* The external ID of the enrollment
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetCourseEnrollment
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* The external ID of the course
|
|
20
26
|
* @type {string}
|
|
21
27
|
* @memberof GetCourseEnrollment
|
|
22
28
|
*/
|
|
23
29
|
courseId: string;
|
|
24
30
|
/**
|
|
25
|
-
* The ID of the enrolled user
|
|
31
|
+
* The external ID of the enrolled user
|
|
26
32
|
* @type {string}
|
|
27
33
|
* @memberof GetCourseEnrollment
|
|
28
34
|
*/
|
|
@@ -63,10 +69,8 @@ export interface GetCourseEnrollment {
|
|
|
63
69
|
*/
|
|
64
70
|
export declare const GetCourseEnrollmentStatusEnum: {
|
|
65
71
|
readonly Enrolled: "Enrolled";
|
|
66
|
-
readonly Dropped: "Dropped";
|
|
67
72
|
readonly Completed: "Completed";
|
|
68
|
-
readonly
|
|
69
|
-
readonly Unknown: "Unknown";
|
|
73
|
+
readonly Removed: "Removed";
|
|
70
74
|
};
|
|
71
75
|
export type GetCourseEnrollmentStatusEnum = typeof GetCourseEnrollmentStatusEnum[keyof typeof GetCourseEnrollmentStatusEnum];
|
|
72
76
|
/**
|
|
@@ -24,15 +24,15 @@ exports.GetCourseEnrollmentToJSONTyped = GetCourseEnrollmentToJSONTyped;
|
|
|
24
24
|
*/
|
|
25
25
|
exports.GetCourseEnrollmentStatusEnum = {
|
|
26
26
|
Enrolled: 'Enrolled',
|
|
27
|
-
Dropped: 'Dropped',
|
|
28
27
|
Completed: 'Completed',
|
|
29
|
-
|
|
30
|
-
Unknown: 'Unknown'
|
|
28
|
+
Removed: 'Removed'
|
|
31
29
|
};
|
|
32
30
|
/**
|
|
33
31
|
* Check if a given object implements the GetCourseEnrollment interface.
|
|
34
32
|
*/
|
|
35
33
|
function instanceOfGetCourseEnrollment(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
36
|
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
37
37
|
return false;
|
|
38
38
|
if (!('userId' in value) || value['userId'] === undefined)
|
|
@@ -57,6 +57,7 @@ function GetCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
return json;
|
|
58
58
|
}
|
|
59
59
|
return {
|
|
60
|
+
'id': json['id'],
|
|
60
61
|
'courseId': json['course_id'],
|
|
61
62
|
'userId': json['user_id'],
|
|
62
63
|
'enrollmentDateStart': json['enrollment_date_start'],
|
|
@@ -74,6 +75,7 @@ function GetCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
74
75
|
return value;
|
|
75
76
|
}
|
|
76
77
|
return {
|
|
78
|
+
'id': value['id'],
|
|
77
79
|
'course_id': value['courseId'],
|
|
78
80
|
'user_id': value['userId'],
|
|
79
81
|
'enrollment_date_start': value['enrollmentDateStart'],
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
* A user with their portal access information
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetPortalUser
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPortalUser {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier for the user
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetPortalUser
|
|
22
|
+
*/
|
|
23
|
+
userId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The user's email address
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetPortalUser
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
* The user's first name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetPortalUser
|
|
34
|
+
*/
|
|
35
|
+
firstName: string;
|
|
36
|
+
/**
|
|
37
|
+
* The user's last name
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetPortalUser
|
|
40
|
+
*/
|
|
41
|
+
lastName: string;
|
|
42
|
+
/**
|
|
43
|
+
* The user's role in the portal
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetPortalUser
|
|
46
|
+
*/
|
|
47
|
+
role: GetPortalUserRoleEnum;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the user's portal access is active
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetPortalUser
|
|
52
|
+
*/
|
|
53
|
+
isActive: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const GetPortalUserRoleEnum: {
|
|
59
|
+
readonly Admin: "Admin";
|
|
60
|
+
readonly Instructor: "Instructor";
|
|
61
|
+
readonly Learner: "Learner";
|
|
62
|
+
};
|
|
63
|
+
export type GetPortalUserRoleEnum = typeof GetPortalUserRoleEnum[keyof typeof GetPortalUserRoleEnum];
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetPortalUser interface.
|
|
66
|
+
*/
|
|
67
|
+
export declare function instanceOfGetPortalUser(value: object): value is GetPortalUser;
|
|
68
|
+
export declare function GetPortalUserFromJSON(json: any): GetPortalUser;
|
|
69
|
+
export declare function GetPortalUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalUser;
|
|
70
|
+
export declare function GetPortalUserToJSON(json: any): GetPortalUser;
|
|
71
|
+
export declare function GetPortalUserToJSONTyped(value?: GetPortalUser | null, ignoreDiscriminator?: boolean): any;
|