@easyedu/js-lsm-api 1.10.0 → 1.12.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/README.md +2 -2
- package/dist/apis/CourseApi.d.ts +11 -0
- package/dist/apis/CourseApi.js +17 -1
- package/dist/apis/PortalApi.d.ts +9 -0
- package/dist/apis/PortalApi.js +11 -1
- package/dist/esm/apis/CourseApi.d.ts +11 -0
- package/dist/esm/apis/CourseApi.js +16 -0
- package/dist/esm/apis/PortalApi.d.ts +9 -0
- package/dist/esm/apis/PortalApi.js +10 -0
- package/dist/esm/models/GetCourseEnrollment.d.ts +14 -0
- package/dist/esm/models/GetCourseEnrollment.js +11 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +14 -0
- package/dist/esm/models/GetCourseEnrollmentListItem.js +11 -0
- package/dist/esm/models/PostContentUpload.d.ts +5 -1
- package/dist/esm/models/PostContentUpload.js +5 -1
- package/dist/esm/models/PutCourseEnrollment.d.ts +14 -0
- package/dist/esm/models/PutCourseEnrollment.js +9 -0
- package/dist/models/GetCourseEnrollment.d.ts +14 -0
- package/dist/models/GetCourseEnrollment.js +12 -1
- package/dist/models/GetCourseEnrollmentListItem.d.ts +14 -0
- package/dist/models/GetCourseEnrollmentListItem.js +12 -1
- package/dist/models/PostContentUpload.d.ts +5 -1
- package/dist/models/PostContentUpload.js +5 -1
- package/dist/models/PutCourseEnrollment.d.ts +14 -0
- package/dist/models/PutCourseEnrollment.js +10 -1
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +24 -0
- package/src/apis/PortalApi.ts +13 -0
- package/src/models/GetCourseEnrollment.ts +18 -0
- package/src/models/GetCourseEnrollmentListItem.ts +18 -0
- package/src/models/PostContentUpload.ts +6 -2
- package/src/models/PutCourseEnrollment.ts +17 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @easyedu/js-lsm-api@1.
|
|
1
|
+
## @easyedu/js-lsm-api@1.12.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @easyedu/js-lsm-api@1.
|
|
39
|
+
npm install @easyedu/js-lsm-api@1.12.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/dist/apis/CourseApi.d.ts
CHANGED
|
@@ -20,6 +20,9 @@ export interface GetCourseEnrollmentRequest {
|
|
|
20
20
|
}
|
|
21
21
|
export interface GetCourseEnrollmentsRequest {
|
|
22
22
|
courseId: string;
|
|
23
|
+
type?: GetCourseEnrollmentsTypeEnum;
|
|
24
|
+
page?: number;
|
|
25
|
+
pageSize?: number;
|
|
23
26
|
}
|
|
24
27
|
export interface GetCourseListRequest {
|
|
25
28
|
enrolled?: boolean;
|
|
@@ -109,3 +112,11 @@ export declare class CourseApi extends runtime.BaseAPI {
|
|
|
109
112
|
*/
|
|
110
113
|
putCourseEnrollment(requestParameters: PutCourseEnrollmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseEnrollment>;
|
|
111
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export declare const GetCourseEnrollmentsTypeEnum: {
|
|
119
|
+
readonly Student: "student";
|
|
120
|
+
readonly Instructor: "instructor";
|
|
121
|
+
};
|
|
122
|
+
export type GetCourseEnrollmentsTypeEnum = typeof GetCourseEnrollmentsTypeEnum[keyof typeof GetCourseEnrollmentsTypeEnum];
|
package/dist/apis/CourseApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.CourseApi = void 0;
|
|
25
|
+
exports.GetCourseEnrollmentsTypeEnum = exports.CourseApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
@@ -97,6 +97,15 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
97
97
|
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling getCourseEnrollments().');
|
|
98
98
|
}
|
|
99
99
|
const queryParameters = {};
|
|
100
|
+
if (requestParameters['type'] != null) {
|
|
101
|
+
queryParameters['type'] = requestParameters['type'];
|
|
102
|
+
}
|
|
103
|
+
if (requestParameters['page'] != null) {
|
|
104
|
+
queryParameters['page'] = requestParameters['page'];
|
|
105
|
+
}
|
|
106
|
+
if (requestParameters['pageSize'] != null) {
|
|
107
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
108
|
+
}
|
|
100
109
|
const headerParameters = {};
|
|
101
110
|
const response = yield this.request({
|
|
102
111
|
path: `/courses/{courseId}/enrollments`.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId']))),
|
|
@@ -278,3 +287,10 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
278
287
|
}
|
|
279
288
|
}
|
|
280
289
|
exports.CourseApi = CourseApi;
|
|
290
|
+
/**
|
|
291
|
+
* @export
|
|
292
|
+
*/
|
|
293
|
+
exports.GetCourseEnrollmentsTypeEnum = {
|
|
294
|
+
Student: 'student',
|
|
295
|
+
Instructor: 'instructor'
|
|
296
|
+
};
|
package/dist/apis/PortalApi.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface GetPortalByIdRequest {
|
|
|
16
16
|
}
|
|
17
17
|
export interface GetPortalUsersRequest {
|
|
18
18
|
portalId: string;
|
|
19
|
+
type?: GetPortalUsersTypeEnum;
|
|
19
20
|
roles?: Array<GetPortalUsersRolesEnum>;
|
|
20
21
|
search?: string;
|
|
21
22
|
page?: number;
|
|
@@ -97,6 +98,14 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
97
98
|
*/
|
|
98
99
|
updateSelectedPortal(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
99
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export declare const GetPortalUsersTypeEnum: {
|
|
105
|
+
readonly Student: "student";
|
|
106
|
+
readonly Instructor: "instructor";
|
|
107
|
+
};
|
|
108
|
+
export type GetPortalUsersTypeEnum = typeof GetPortalUsersTypeEnum[keyof typeof GetPortalUsersTypeEnum];
|
|
100
109
|
/**
|
|
101
110
|
* @export
|
|
102
111
|
*/
|
package/dist/apis/PortalApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.GetPortalUsersRolesEnum = exports.PortalApi = void 0;
|
|
25
|
+
exports.GetPortalUsersRolesEnum = exports.GetPortalUsersTypeEnum = exports.PortalApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
@@ -91,6 +91,9 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
91
91
|
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getPortalUsers().');
|
|
92
92
|
}
|
|
93
93
|
const queryParameters = {};
|
|
94
|
+
if (requestParameters['type'] != null) {
|
|
95
|
+
queryParameters['type'] = requestParameters['type'];
|
|
96
|
+
}
|
|
94
97
|
if (requestParameters['roles'] != null) {
|
|
95
98
|
queryParameters['roles'] = requestParameters['roles'];
|
|
96
99
|
}
|
|
@@ -249,6 +252,13 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
249
252
|
}
|
|
250
253
|
}
|
|
251
254
|
exports.PortalApi = PortalApi;
|
|
255
|
+
/**
|
|
256
|
+
* @export
|
|
257
|
+
*/
|
|
258
|
+
exports.GetPortalUsersTypeEnum = {
|
|
259
|
+
Student: 'student',
|
|
260
|
+
Instructor: 'instructor'
|
|
261
|
+
};
|
|
252
262
|
/**
|
|
253
263
|
* @export
|
|
254
264
|
*/
|
|
@@ -20,6 +20,9 @@ export interface GetCourseEnrollmentRequest {
|
|
|
20
20
|
}
|
|
21
21
|
export interface GetCourseEnrollmentsRequest {
|
|
22
22
|
courseId: string;
|
|
23
|
+
type?: GetCourseEnrollmentsTypeEnum;
|
|
24
|
+
page?: number;
|
|
25
|
+
pageSize?: number;
|
|
23
26
|
}
|
|
24
27
|
export interface GetCourseListRequest {
|
|
25
28
|
enrolled?: boolean;
|
|
@@ -109,3 +112,11 @@ export declare class CourseApi extends runtime.BaseAPI {
|
|
|
109
112
|
*/
|
|
110
113
|
putCourseEnrollment(requestParameters: PutCourseEnrollmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseEnrollment>;
|
|
111
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export declare const GetCourseEnrollmentsTypeEnum: {
|
|
119
|
+
readonly Student: "student";
|
|
120
|
+
readonly Instructor: "instructor";
|
|
121
|
+
};
|
|
122
|
+
export type GetCourseEnrollmentsTypeEnum = typeof GetCourseEnrollmentsTypeEnum[keyof typeof GetCourseEnrollmentsTypeEnum];
|
|
@@ -94,6 +94,15 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
94
94
|
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling getCourseEnrollments().');
|
|
95
95
|
}
|
|
96
96
|
const queryParameters = {};
|
|
97
|
+
if (requestParameters['type'] != null) {
|
|
98
|
+
queryParameters['type'] = requestParameters['type'];
|
|
99
|
+
}
|
|
100
|
+
if (requestParameters['page'] != null) {
|
|
101
|
+
queryParameters['page'] = requestParameters['page'];
|
|
102
|
+
}
|
|
103
|
+
if (requestParameters['pageSize'] != null) {
|
|
104
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
105
|
+
}
|
|
97
106
|
const headerParameters = {};
|
|
98
107
|
const response = yield this.request({
|
|
99
108
|
path: `/courses/{courseId}/enrollments`.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId']))),
|
|
@@ -274,3 +283,10 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
274
283
|
});
|
|
275
284
|
}
|
|
276
285
|
}
|
|
286
|
+
/**
|
|
287
|
+
* @export
|
|
288
|
+
*/
|
|
289
|
+
export const GetCourseEnrollmentsTypeEnum = {
|
|
290
|
+
Student: 'student',
|
|
291
|
+
Instructor: 'instructor'
|
|
292
|
+
};
|
|
@@ -16,6 +16,7 @@ export interface GetPortalByIdRequest {
|
|
|
16
16
|
}
|
|
17
17
|
export interface GetPortalUsersRequest {
|
|
18
18
|
portalId: string;
|
|
19
|
+
type?: GetPortalUsersTypeEnum;
|
|
19
20
|
roles?: Array<GetPortalUsersRolesEnum>;
|
|
20
21
|
search?: string;
|
|
21
22
|
page?: number;
|
|
@@ -97,6 +98,14 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
97
98
|
*/
|
|
98
99
|
updateSelectedPortal(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
99
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export declare const GetPortalUsersTypeEnum: {
|
|
105
|
+
readonly Student: "student";
|
|
106
|
+
readonly Instructor: "instructor";
|
|
107
|
+
};
|
|
108
|
+
export type GetPortalUsersTypeEnum = typeof GetPortalUsersTypeEnum[keyof typeof GetPortalUsersTypeEnum];
|
|
100
109
|
/**
|
|
101
110
|
* @export
|
|
102
111
|
*/
|
|
@@ -88,6 +88,9 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
88
88
|
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getPortalUsers().');
|
|
89
89
|
}
|
|
90
90
|
const queryParameters = {};
|
|
91
|
+
if (requestParameters['type'] != null) {
|
|
92
|
+
queryParameters['type'] = requestParameters['type'];
|
|
93
|
+
}
|
|
91
94
|
if (requestParameters['roles'] != null) {
|
|
92
95
|
queryParameters['roles'] = requestParameters['roles'];
|
|
93
96
|
}
|
|
@@ -245,6 +248,13 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
245
248
|
});
|
|
246
249
|
}
|
|
247
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* @export
|
|
253
|
+
*/
|
|
254
|
+
export const GetPortalUsersTypeEnum = {
|
|
255
|
+
Student: 'student',
|
|
256
|
+
Instructor: 'instructor'
|
|
257
|
+
};
|
|
248
258
|
/**
|
|
249
259
|
* @export
|
|
250
260
|
*/
|
|
@@ -57,6 +57,12 @@ export interface GetCourseEnrollment {
|
|
|
57
57
|
* @memberof GetCourseEnrollment
|
|
58
58
|
*/
|
|
59
59
|
status: GetCourseEnrollmentStatusEnum;
|
|
60
|
+
/**
|
|
61
|
+
* The role/type of the user in this enrollment
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof GetCourseEnrollment
|
|
64
|
+
*/
|
|
65
|
+
userType: GetCourseEnrollmentUserTypeEnum;
|
|
60
66
|
/**
|
|
61
67
|
* Date the course was completed (Unix timestamp)
|
|
62
68
|
* @type {number}
|
|
@@ -73,6 +79,14 @@ export declare const GetCourseEnrollmentStatusEnum: {
|
|
|
73
79
|
readonly Removed: "Removed";
|
|
74
80
|
};
|
|
75
81
|
export type GetCourseEnrollmentStatusEnum = typeof GetCourseEnrollmentStatusEnum[keyof typeof GetCourseEnrollmentStatusEnum];
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export declare const GetCourseEnrollmentUserTypeEnum: {
|
|
86
|
+
readonly Student: "Student";
|
|
87
|
+
readonly Instructor: "Instructor";
|
|
88
|
+
};
|
|
89
|
+
export type GetCourseEnrollmentUserTypeEnum = typeof GetCourseEnrollmentUserTypeEnum[keyof typeof GetCourseEnrollmentUserTypeEnum];
|
|
76
90
|
/**
|
|
77
91
|
* Check if a given object implements the GetCourseEnrollment interface.
|
|
78
92
|
*/
|
|
@@ -19,6 +19,13 @@ export const GetCourseEnrollmentStatusEnum = {
|
|
|
19
19
|
Completed: 'Completed',
|
|
20
20
|
Removed: 'Removed'
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const GetCourseEnrollmentUserTypeEnum = {
|
|
26
|
+
Student: 'Student',
|
|
27
|
+
Instructor: 'Instructor'
|
|
28
|
+
};
|
|
22
29
|
/**
|
|
23
30
|
* Check if a given object implements the GetCourseEnrollment interface.
|
|
24
31
|
*/
|
|
@@ -37,6 +44,8 @@ export function instanceOfGetCourseEnrollment(value) {
|
|
|
37
44
|
return false;
|
|
38
45
|
if (!('status' in value) || value['status'] === undefined)
|
|
39
46
|
return false;
|
|
47
|
+
if (!('userType' in value) || value['userType'] === undefined)
|
|
48
|
+
return false;
|
|
40
49
|
if (!('completionDate' in value) || value['completionDate'] === undefined)
|
|
41
50
|
return false;
|
|
42
51
|
return true;
|
|
@@ -56,6 +65,7 @@ export function GetCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
65
|
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
57
66
|
'notes': json['notes'],
|
|
58
67
|
'status': json['status'],
|
|
68
|
+
'userType': json['user_type'],
|
|
59
69
|
'completionDate': json['completion_date'],
|
|
60
70
|
};
|
|
61
71
|
}
|
|
@@ -74,6 +84,7 @@ export function GetCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
74
84
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
75
85
|
'notes': value['notes'],
|
|
76
86
|
'status': value['status'],
|
|
87
|
+
'user_type': value['userType'],
|
|
77
88
|
'completion_date': value['completionDate'],
|
|
78
89
|
};
|
|
79
90
|
}
|
|
@@ -63,6 +63,12 @@ export interface GetCourseEnrollmentListItem {
|
|
|
63
63
|
* @memberof GetCourseEnrollmentListItem
|
|
64
64
|
*/
|
|
65
65
|
status: GetCourseEnrollmentListItemStatusEnum;
|
|
66
|
+
/**
|
|
67
|
+
* The role/type of the user in this enrollment
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof GetCourseEnrollmentListItem
|
|
70
|
+
*/
|
|
71
|
+
userType: GetCourseEnrollmentListItemUserTypeEnum;
|
|
66
72
|
/**
|
|
67
73
|
* Date the course was completed (Unix timestamp)
|
|
68
74
|
* @type {number}
|
|
@@ -79,6 +85,14 @@ export declare const GetCourseEnrollmentListItemStatusEnum: {
|
|
|
79
85
|
readonly Removed: "Removed";
|
|
80
86
|
};
|
|
81
87
|
export type GetCourseEnrollmentListItemStatusEnum = typeof GetCourseEnrollmentListItemStatusEnum[keyof typeof GetCourseEnrollmentListItemStatusEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const GetCourseEnrollmentListItemUserTypeEnum: {
|
|
92
|
+
readonly Student: "Student";
|
|
93
|
+
readonly Instructor: "Instructor";
|
|
94
|
+
};
|
|
95
|
+
export type GetCourseEnrollmentListItemUserTypeEnum = typeof GetCourseEnrollmentListItemUserTypeEnum[keyof typeof GetCourseEnrollmentListItemUserTypeEnum];
|
|
82
96
|
/**
|
|
83
97
|
* Check if a given object implements the GetCourseEnrollmentListItem interface.
|
|
84
98
|
*/
|
|
@@ -19,6 +19,13 @@ export const GetCourseEnrollmentListItemStatusEnum = {
|
|
|
19
19
|
Completed: 'Completed',
|
|
20
20
|
Removed: 'Removed'
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const GetCourseEnrollmentListItemUserTypeEnum = {
|
|
26
|
+
Student: 'Student',
|
|
27
|
+
Instructor: 'Instructor'
|
|
28
|
+
};
|
|
22
29
|
/**
|
|
23
30
|
* Check if a given object implements the GetCourseEnrollmentListItem interface.
|
|
24
31
|
*/
|
|
@@ -39,6 +46,8 @@ export function instanceOfGetCourseEnrollmentListItem(value) {
|
|
|
39
46
|
return false;
|
|
40
47
|
if (!('status' in value) || value['status'] === undefined)
|
|
41
48
|
return false;
|
|
49
|
+
if (!('userType' in value) || value['userType'] === undefined)
|
|
50
|
+
return false;
|
|
42
51
|
if (!('completionDate' in value) || value['completionDate'] === undefined)
|
|
43
52
|
return false;
|
|
44
53
|
return true;
|
|
@@ -59,6 +68,7 @@ export function GetCourseEnrollmentListItemFromJSONTyped(json, ignoreDiscriminat
|
|
|
59
68
|
'enrollmentDateStart': json['enrollment_date_start'],
|
|
60
69
|
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
61
70
|
'status': json['status'],
|
|
71
|
+
'userType': json['user_type'],
|
|
62
72
|
'completionDate': json['completion_date'],
|
|
63
73
|
};
|
|
64
74
|
}
|
|
@@ -78,6 +88,7 @@ export function GetCourseEnrollmentListItemToJSONTyped(value, ignoreDiscriminato
|
|
|
78
88
|
'enrollment_date_start': value['enrollmentDateStart'],
|
|
79
89
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
80
90
|
'status': value['status'],
|
|
91
|
+
'user_type': value['userType'],
|
|
81
92
|
'completion_date': value['completionDate'],
|
|
82
93
|
};
|
|
83
94
|
}
|
|
@@ -22,7 +22,7 @@ export interface PostContentUpload {
|
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The type of content being uploaded
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof PostContentUpload
|
|
28
28
|
*/
|
|
@@ -36,9 +36,13 @@ export declare const PostContentUploadContentTypeEnum: {
|
|
|
36
36
|
readonly Jpg: "JPG";
|
|
37
37
|
readonly Jpeg: "JPEG";
|
|
38
38
|
readonly Mp4: "MP4";
|
|
39
|
+
readonly Mov: "MOV";
|
|
40
|
+
readonly Webm: "WEBM";
|
|
41
|
+
readonly Avi: "AVI";
|
|
39
42
|
readonly Pdf: "PDF";
|
|
40
43
|
readonly Scorm: "SCORM";
|
|
41
44
|
readonly Quiz: "QUIZ";
|
|
45
|
+
readonly File: "FILE";
|
|
42
46
|
};
|
|
43
47
|
export type PostContentUploadContentTypeEnum = typeof PostContentUploadContentTypeEnum[keyof typeof PostContentUploadContentTypeEnum];
|
|
44
48
|
/**
|
|
@@ -19,9 +19,13 @@ export const PostContentUploadContentTypeEnum = {
|
|
|
19
19
|
Jpg: 'JPG',
|
|
20
20
|
Jpeg: 'JPEG',
|
|
21
21
|
Mp4: 'MP4',
|
|
22
|
+
Mov: 'MOV',
|
|
23
|
+
Webm: 'WEBM',
|
|
24
|
+
Avi: 'AVI',
|
|
22
25
|
Pdf: 'PDF',
|
|
23
26
|
Scorm: 'SCORM',
|
|
24
|
-
Quiz: 'QUIZ'
|
|
27
|
+
Quiz: 'QUIZ',
|
|
28
|
+
File: 'FILE'
|
|
25
29
|
};
|
|
26
30
|
/**
|
|
27
31
|
* Check if a given object implements the PostContentUpload interface.
|
|
@@ -21,6 +21,12 @@ export interface PutCourseEnrollment {
|
|
|
21
21
|
* @memberof PutCourseEnrollment
|
|
22
22
|
*/
|
|
23
23
|
status?: PutCourseEnrollmentStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
* The role/type of the user in this enrollment
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PutCourseEnrollment
|
|
28
|
+
*/
|
|
29
|
+
userType?: PutCourseEnrollmentUserTypeEnum;
|
|
24
30
|
/**
|
|
25
31
|
* End date of the enrollment (Unix timestamp)
|
|
26
32
|
* @type {number}
|
|
@@ -43,6 +49,14 @@ export declare const PutCourseEnrollmentStatusEnum: {
|
|
|
43
49
|
readonly Removed: "Removed";
|
|
44
50
|
};
|
|
45
51
|
export type PutCourseEnrollmentStatusEnum = typeof PutCourseEnrollmentStatusEnum[keyof typeof PutCourseEnrollmentStatusEnum];
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const PutCourseEnrollmentUserTypeEnum: {
|
|
56
|
+
readonly Student: "Student";
|
|
57
|
+
readonly Instructor: "Instructor";
|
|
58
|
+
};
|
|
59
|
+
export type PutCourseEnrollmentUserTypeEnum = typeof PutCourseEnrollmentUserTypeEnum[keyof typeof PutCourseEnrollmentUserTypeEnum];
|
|
46
60
|
/**
|
|
47
61
|
* Check if a given object implements the PutCourseEnrollment interface.
|
|
48
62
|
*/
|
|
@@ -19,6 +19,13 @@ export const PutCourseEnrollmentStatusEnum = {
|
|
|
19
19
|
Completed: 'Completed',
|
|
20
20
|
Removed: 'Removed'
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const PutCourseEnrollmentUserTypeEnum = {
|
|
26
|
+
Student: 'Student',
|
|
27
|
+
Instructor: 'Instructor'
|
|
28
|
+
};
|
|
22
29
|
/**
|
|
23
30
|
* Check if a given object implements the PutCourseEnrollment interface.
|
|
24
31
|
*/
|
|
@@ -34,6 +41,7 @@ export function PutCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
41
|
}
|
|
35
42
|
return {
|
|
36
43
|
'status': json['status'] == null ? undefined : json['status'],
|
|
44
|
+
'userType': json['user_type'] == null ? undefined : json['user_type'],
|
|
37
45
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
38
46
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
39
47
|
};
|
|
@@ -47,6 +55,7 @@ export function PutCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
47
55
|
}
|
|
48
56
|
return {
|
|
49
57
|
'status': value['status'],
|
|
58
|
+
'user_type': value['userType'],
|
|
50
59
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
51
60
|
'notes': value['notes'],
|
|
52
61
|
};
|
|
@@ -57,6 +57,12 @@ export interface GetCourseEnrollment {
|
|
|
57
57
|
* @memberof GetCourseEnrollment
|
|
58
58
|
*/
|
|
59
59
|
status: GetCourseEnrollmentStatusEnum;
|
|
60
|
+
/**
|
|
61
|
+
* The role/type of the user in this enrollment
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof GetCourseEnrollment
|
|
64
|
+
*/
|
|
65
|
+
userType: GetCourseEnrollmentUserTypeEnum;
|
|
60
66
|
/**
|
|
61
67
|
* Date the course was completed (Unix timestamp)
|
|
62
68
|
* @type {number}
|
|
@@ -73,6 +79,14 @@ export declare const GetCourseEnrollmentStatusEnum: {
|
|
|
73
79
|
readonly Removed: "Removed";
|
|
74
80
|
};
|
|
75
81
|
export type GetCourseEnrollmentStatusEnum = typeof GetCourseEnrollmentStatusEnum[keyof typeof GetCourseEnrollmentStatusEnum];
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export declare const GetCourseEnrollmentUserTypeEnum: {
|
|
86
|
+
readonly Student: "Student";
|
|
87
|
+
readonly Instructor: "Instructor";
|
|
88
|
+
};
|
|
89
|
+
export type GetCourseEnrollmentUserTypeEnum = typeof GetCourseEnrollmentUserTypeEnum[keyof typeof GetCourseEnrollmentUserTypeEnum];
|
|
76
90
|
/**
|
|
77
91
|
* Check if a given object implements the GetCourseEnrollment interface.
|
|
78
92
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.GetCourseEnrollmentStatusEnum = void 0;
|
|
16
|
+
exports.GetCourseEnrollmentUserTypeEnum = exports.GetCourseEnrollmentStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfGetCourseEnrollment = instanceOfGetCourseEnrollment;
|
|
18
18
|
exports.GetCourseEnrollmentFromJSON = GetCourseEnrollmentFromJSON;
|
|
19
19
|
exports.GetCourseEnrollmentFromJSONTyped = GetCourseEnrollmentFromJSONTyped;
|
|
@@ -27,6 +27,13 @@ exports.GetCourseEnrollmentStatusEnum = {
|
|
|
27
27
|
Completed: 'Completed',
|
|
28
28
|
Removed: 'Removed'
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.GetCourseEnrollmentUserTypeEnum = {
|
|
34
|
+
Student: 'Student',
|
|
35
|
+
Instructor: 'Instructor'
|
|
36
|
+
};
|
|
30
37
|
/**
|
|
31
38
|
* Check if a given object implements the GetCourseEnrollment interface.
|
|
32
39
|
*/
|
|
@@ -45,6 +52,8 @@ function instanceOfGetCourseEnrollment(value) {
|
|
|
45
52
|
return false;
|
|
46
53
|
if (!('status' in value) || value['status'] === undefined)
|
|
47
54
|
return false;
|
|
55
|
+
if (!('userType' in value) || value['userType'] === undefined)
|
|
56
|
+
return false;
|
|
48
57
|
if (!('completionDate' in value) || value['completionDate'] === undefined)
|
|
49
58
|
return false;
|
|
50
59
|
return true;
|
|
@@ -64,6 +73,7 @@ function GetCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
73
|
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
65
74
|
'notes': json['notes'],
|
|
66
75
|
'status': json['status'],
|
|
76
|
+
'userType': json['user_type'],
|
|
67
77
|
'completionDate': json['completion_date'],
|
|
68
78
|
};
|
|
69
79
|
}
|
|
@@ -82,6 +92,7 @@ function GetCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
82
92
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
83
93
|
'notes': value['notes'],
|
|
84
94
|
'status': value['status'],
|
|
95
|
+
'user_type': value['userType'],
|
|
85
96
|
'completion_date': value['completionDate'],
|
|
86
97
|
};
|
|
87
98
|
}
|
|
@@ -63,6 +63,12 @@ export interface GetCourseEnrollmentListItem {
|
|
|
63
63
|
* @memberof GetCourseEnrollmentListItem
|
|
64
64
|
*/
|
|
65
65
|
status: GetCourseEnrollmentListItemStatusEnum;
|
|
66
|
+
/**
|
|
67
|
+
* The role/type of the user in this enrollment
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof GetCourseEnrollmentListItem
|
|
70
|
+
*/
|
|
71
|
+
userType: GetCourseEnrollmentListItemUserTypeEnum;
|
|
66
72
|
/**
|
|
67
73
|
* Date the course was completed (Unix timestamp)
|
|
68
74
|
* @type {number}
|
|
@@ -79,6 +85,14 @@ export declare const GetCourseEnrollmentListItemStatusEnum: {
|
|
|
79
85
|
readonly Removed: "Removed";
|
|
80
86
|
};
|
|
81
87
|
export type GetCourseEnrollmentListItemStatusEnum = typeof GetCourseEnrollmentListItemStatusEnum[keyof typeof GetCourseEnrollmentListItemStatusEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const GetCourseEnrollmentListItemUserTypeEnum: {
|
|
92
|
+
readonly Student: "Student";
|
|
93
|
+
readonly Instructor: "Instructor";
|
|
94
|
+
};
|
|
95
|
+
export type GetCourseEnrollmentListItemUserTypeEnum = typeof GetCourseEnrollmentListItemUserTypeEnum[keyof typeof GetCourseEnrollmentListItemUserTypeEnum];
|
|
82
96
|
/**
|
|
83
97
|
* Check if a given object implements the GetCourseEnrollmentListItem interface.
|
|
84
98
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.GetCourseEnrollmentListItemStatusEnum = void 0;
|
|
16
|
+
exports.GetCourseEnrollmentListItemUserTypeEnum = exports.GetCourseEnrollmentListItemStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfGetCourseEnrollmentListItem = instanceOfGetCourseEnrollmentListItem;
|
|
18
18
|
exports.GetCourseEnrollmentListItemFromJSON = GetCourseEnrollmentListItemFromJSON;
|
|
19
19
|
exports.GetCourseEnrollmentListItemFromJSONTyped = GetCourseEnrollmentListItemFromJSONTyped;
|
|
@@ -27,6 +27,13 @@ exports.GetCourseEnrollmentListItemStatusEnum = {
|
|
|
27
27
|
Completed: 'Completed',
|
|
28
28
|
Removed: 'Removed'
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.GetCourseEnrollmentListItemUserTypeEnum = {
|
|
34
|
+
Student: 'Student',
|
|
35
|
+
Instructor: 'Instructor'
|
|
36
|
+
};
|
|
30
37
|
/**
|
|
31
38
|
* Check if a given object implements the GetCourseEnrollmentListItem interface.
|
|
32
39
|
*/
|
|
@@ -47,6 +54,8 @@ function instanceOfGetCourseEnrollmentListItem(value) {
|
|
|
47
54
|
return false;
|
|
48
55
|
if (!('status' in value) || value['status'] === undefined)
|
|
49
56
|
return false;
|
|
57
|
+
if (!('userType' in value) || value['userType'] === undefined)
|
|
58
|
+
return false;
|
|
50
59
|
if (!('completionDate' in value) || value['completionDate'] === undefined)
|
|
51
60
|
return false;
|
|
52
61
|
return true;
|
|
@@ -67,6 +76,7 @@ function GetCourseEnrollmentListItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
76
|
'enrollmentDateStart': json['enrollment_date_start'],
|
|
68
77
|
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
69
78
|
'status': json['status'],
|
|
79
|
+
'userType': json['user_type'],
|
|
70
80
|
'completionDate': json['completion_date'],
|
|
71
81
|
};
|
|
72
82
|
}
|
|
@@ -86,6 +96,7 @@ function GetCourseEnrollmentListItemToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
86
96
|
'enrollment_date_start': value['enrollmentDateStart'],
|
|
87
97
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
88
98
|
'status': value['status'],
|
|
99
|
+
'user_type': value['userType'],
|
|
89
100
|
'completion_date': value['completionDate'],
|
|
90
101
|
};
|
|
91
102
|
}
|
|
@@ -22,7 +22,7 @@ export interface PostContentUpload {
|
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The type of content being uploaded
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof PostContentUpload
|
|
28
28
|
*/
|
|
@@ -36,9 +36,13 @@ export declare const PostContentUploadContentTypeEnum: {
|
|
|
36
36
|
readonly Jpg: "JPG";
|
|
37
37
|
readonly Jpeg: "JPEG";
|
|
38
38
|
readonly Mp4: "MP4";
|
|
39
|
+
readonly Mov: "MOV";
|
|
40
|
+
readonly Webm: "WEBM";
|
|
41
|
+
readonly Avi: "AVI";
|
|
39
42
|
readonly Pdf: "PDF";
|
|
40
43
|
readonly Scorm: "SCORM";
|
|
41
44
|
readonly Quiz: "QUIZ";
|
|
45
|
+
readonly File: "FILE";
|
|
42
46
|
};
|
|
43
47
|
export type PostContentUploadContentTypeEnum = typeof PostContentUploadContentTypeEnum[keyof typeof PostContentUploadContentTypeEnum];
|
|
44
48
|
/**
|
|
@@ -27,9 +27,13 @@ exports.PostContentUploadContentTypeEnum = {
|
|
|
27
27
|
Jpg: 'JPG',
|
|
28
28
|
Jpeg: 'JPEG',
|
|
29
29
|
Mp4: 'MP4',
|
|
30
|
+
Mov: 'MOV',
|
|
31
|
+
Webm: 'WEBM',
|
|
32
|
+
Avi: 'AVI',
|
|
30
33
|
Pdf: 'PDF',
|
|
31
34
|
Scorm: 'SCORM',
|
|
32
|
-
Quiz: 'QUIZ'
|
|
35
|
+
Quiz: 'QUIZ',
|
|
36
|
+
File: 'FILE'
|
|
33
37
|
};
|
|
34
38
|
/**
|
|
35
39
|
* Check if a given object implements the PostContentUpload interface.
|
|
@@ -21,6 +21,12 @@ export interface PutCourseEnrollment {
|
|
|
21
21
|
* @memberof PutCourseEnrollment
|
|
22
22
|
*/
|
|
23
23
|
status?: PutCourseEnrollmentStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
* The role/type of the user in this enrollment
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PutCourseEnrollment
|
|
28
|
+
*/
|
|
29
|
+
userType?: PutCourseEnrollmentUserTypeEnum;
|
|
24
30
|
/**
|
|
25
31
|
* End date of the enrollment (Unix timestamp)
|
|
26
32
|
* @type {number}
|
|
@@ -43,6 +49,14 @@ export declare const PutCourseEnrollmentStatusEnum: {
|
|
|
43
49
|
readonly Removed: "Removed";
|
|
44
50
|
};
|
|
45
51
|
export type PutCourseEnrollmentStatusEnum = typeof PutCourseEnrollmentStatusEnum[keyof typeof PutCourseEnrollmentStatusEnum];
|
|
52
|
+
/**
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const PutCourseEnrollmentUserTypeEnum: {
|
|
56
|
+
readonly Student: "Student";
|
|
57
|
+
readonly Instructor: "Instructor";
|
|
58
|
+
};
|
|
59
|
+
export type PutCourseEnrollmentUserTypeEnum = typeof PutCourseEnrollmentUserTypeEnum[keyof typeof PutCourseEnrollmentUserTypeEnum];
|
|
46
60
|
/**
|
|
47
61
|
* Check if a given object implements the PutCourseEnrollment interface.
|
|
48
62
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.PutCourseEnrollmentStatusEnum = void 0;
|
|
16
|
+
exports.PutCourseEnrollmentUserTypeEnum = exports.PutCourseEnrollmentStatusEnum = void 0;
|
|
17
17
|
exports.instanceOfPutCourseEnrollment = instanceOfPutCourseEnrollment;
|
|
18
18
|
exports.PutCourseEnrollmentFromJSON = PutCourseEnrollmentFromJSON;
|
|
19
19
|
exports.PutCourseEnrollmentFromJSONTyped = PutCourseEnrollmentFromJSONTyped;
|
|
@@ -27,6 +27,13 @@ exports.PutCourseEnrollmentStatusEnum = {
|
|
|
27
27
|
Completed: 'Completed',
|
|
28
28
|
Removed: 'Removed'
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.PutCourseEnrollmentUserTypeEnum = {
|
|
34
|
+
Student: 'Student',
|
|
35
|
+
Instructor: 'Instructor'
|
|
36
|
+
};
|
|
30
37
|
/**
|
|
31
38
|
* Check if a given object implements the PutCourseEnrollment interface.
|
|
32
39
|
*/
|
|
@@ -42,6 +49,7 @@ function PutCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
49
|
}
|
|
43
50
|
return {
|
|
44
51
|
'status': json['status'] == null ? undefined : json['status'],
|
|
52
|
+
'userType': json['user_type'] == null ? undefined : json['user_type'],
|
|
45
53
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
46
54
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
47
55
|
};
|
|
@@ -55,6 +63,7 @@ function PutCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
55
63
|
}
|
|
56
64
|
return {
|
|
57
65
|
'status': value['status'],
|
|
66
|
+
'user_type': value['userType'],
|
|
58
67
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
59
68
|
'notes': value['notes'],
|
|
60
69
|
};
|
package/package.json
CHANGED
package/src/apis/CourseApi.ts
CHANGED
|
@@ -54,6 +54,9 @@ export interface GetCourseEnrollmentRequest {
|
|
|
54
54
|
|
|
55
55
|
export interface GetCourseEnrollmentsRequest {
|
|
56
56
|
courseId: string;
|
|
57
|
+
type?: GetCourseEnrollmentsTypeEnum;
|
|
58
|
+
page?: number;
|
|
59
|
+
pageSize?: number;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
export interface GetCourseListRequest {
|
|
@@ -171,6 +174,18 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
171
174
|
|
|
172
175
|
const queryParameters: any = {};
|
|
173
176
|
|
|
177
|
+
if (requestParameters['type'] != null) {
|
|
178
|
+
queryParameters['type'] = requestParameters['type'];
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (requestParameters['page'] != null) {
|
|
182
|
+
queryParameters['page'] = requestParameters['page'];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (requestParameters['pageSize'] != null) {
|
|
186
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
187
|
+
}
|
|
188
|
+
|
|
174
189
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
175
190
|
|
|
176
191
|
const response = await this.request({
|
|
@@ -394,3 +409,12 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
394
409
|
}
|
|
395
410
|
|
|
396
411
|
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* @export
|
|
415
|
+
*/
|
|
416
|
+
export const GetCourseEnrollmentsTypeEnum = {
|
|
417
|
+
Student: 'student',
|
|
418
|
+
Instructor: 'instructor'
|
|
419
|
+
} as const;
|
|
420
|
+
export type GetCourseEnrollmentsTypeEnum = typeof GetCourseEnrollmentsTypeEnum[keyof typeof GetCourseEnrollmentsTypeEnum];
|
package/src/apis/PortalApi.ts
CHANGED
|
@@ -43,6 +43,7 @@ export interface GetPortalByIdRequest {
|
|
|
43
43
|
|
|
44
44
|
export interface GetPortalUsersRequest {
|
|
45
45
|
portalId: string;
|
|
46
|
+
type?: GetPortalUsersTypeEnum;
|
|
46
47
|
roles?: Array<GetPortalUsersRolesEnum>;
|
|
47
48
|
search?: string;
|
|
48
49
|
page?: number;
|
|
@@ -145,6 +146,10 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
145
146
|
|
|
146
147
|
const queryParameters: any = {};
|
|
147
148
|
|
|
149
|
+
if (requestParameters['type'] != null) {
|
|
150
|
+
queryParameters['type'] = requestParameters['type'];
|
|
151
|
+
}
|
|
152
|
+
|
|
148
153
|
if (requestParameters['roles'] != null) {
|
|
149
154
|
queryParameters['roles'] = requestParameters['roles'];
|
|
150
155
|
}
|
|
@@ -340,6 +345,14 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
340
345
|
|
|
341
346
|
}
|
|
342
347
|
|
|
348
|
+
/**
|
|
349
|
+
* @export
|
|
350
|
+
*/
|
|
351
|
+
export const GetPortalUsersTypeEnum = {
|
|
352
|
+
Student: 'student',
|
|
353
|
+
Instructor: 'instructor'
|
|
354
|
+
} as const;
|
|
355
|
+
export type GetPortalUsersTypeEnum = typeof GetPortalUsersTypeEnum[keyof typeof GetPortalUsersTypeEnum];
|
|
343
356
|
/**
|
|
344
357
|
* @export
|
|
345
358
|
*/
|
|
@@ -61,6 +61,12 @@ export interface GetCourseEnrollment {
|
|
|
61
61
|
* @memberof GetCourseEnrollment
|
|
62
62
|
*/
|
|
63
63
|
status: GetCourseEnrollmentStatusEnum;
|
|
64
|
+
/**
|
|
65
|
+
* The role/type of the user in this enrollment
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof GetCourseEnrollment
|
|
68
|
+
*/
|
|
69
|
+
userType: GetCourseEnrollmentUserTypeEnum;
|
|
64
70
|
/**
|
|
65
71
|
* Date the course was completed (Unix timestamp)
|
|
66
72
|
* @type {number}
|
|
@@ -80,6 +86,15 @@ export const GetCourseEnrollmentStatusEnum = {
|
|
|
80
86
|
} as const;
|
|
81
87
|
export type GetCourseEnrollmentStatusEnum = typeof GetCourseEnrollmentStatusEnum[keyof typeof GetCourseEnrollmentStatusEnum];
|
|
82
88
|
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export const GetCourseEnrollmentUserTypeEnum = {
|
|
93
|
+
Student: 'Student',
|
|
94
|
+
Instructor: 'Instructor'
|
|
95
|
+
} as const;
|
|
96
|
+
export type GetCourseEnrollmentUserTypeEnum = typeof GetCourseEnrollmentUserTypeEnum[keyof typeof GetCourseEnrollmentUserTypeEnum];
|
|
97
|
+
|
|
83
98
|
|
|
84
99
|
/**
|
|
85
100
|
* Check if a given object implements the GetCourseEnrollment interface.
|
|
@@ -92,6 +107,7 @@ export function instanceOfGetCourseEnrollment(value: object): value is GetCourse
|
|
|
92
107
|
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined) return false;
|
|
93
108
|
if (!('notes' in value) || value['notes'] === undefined) return false;
|
|
94
109
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
110
|
+
if (!('userType' in value) || value['userType'] === undefined) return false;
|
|
95
111
|
if (!('completionDate' in value) || value['completionDate'] === undefined) return false;
|
|
96
112
|
return true;
|
|
97
113
|
}
|
|
@@ -113,6 +129,7 @@ export function GetCourseEnrollmentFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
113
129
|
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
114
130
|
'notes': json['notes'],
|
|
115
131
|
'status': json['status'],
|
|
132
|
+
'userType': json['user_type'],
|
|
116
133
|
'completionDate': json['completion_date'],
|
|
117
134
|
};
|
|
118
135
|
}
|
|
@@ -135,6 +152,7 @@ export function GetCourseEnrollmentToJSONTyped(value?: GetCourseEnrollment | nul
|
|
|
135
152
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
136
153
|
'notes': value['notes'],
|
|
137
154
|
'status': value['status'],
|
|
155
|
+
'user_type': value['userType'],
|
|
138
156
|
'completion_date': value['completionDate'],
|
|
139
157
|
};
|
|
140
158
|
}
|
|
@@ -67,6 +67,12 @@ export interface GetCourseEnrollmentListItem {
|
|
|
67
67
|
* @memberof GetCourseEnrollmentListItem
|
|
68
68
|
*/
|
|
69
69
|
status: GetCourseEnrollmentListItemStatusEnum;
|
|
70
|
+
/**
|
|
71
|
+
* The role/type of the user in this enrollment
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof GetCourseEnrollmentListItem
|
|
74
|
+
*/
|
|
75
|
+
userType: GetCourseEnrollmentListItemUserTypeEnum;
|
|
70
76
|
/**
|
|
71
77
|
* Date the course was completed (Unix timestamp)
|
|
72
78
|
* @type {number}
|
|
@@ -86,6 +92,15 @@ export const GetCourseEnrollmentListItemStatusEnum = {
|
|
|
86
92
|
} as const;
|
|
87
93
|
export type GetCourseEnrollmentListItemStatusEnum = typeof GetCourseEnrollmentListItemStatusEnum[keyof typeof GetCourseEnrollmentListItemStatusEnum];
|
|
88
94
|
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export const GetCourseEnrollmentListItemUserTypeEnum = {
|
|
99
|
+
Student: 'Student',
|
|
100
|
+
Instructor: 'Instructor'
|
|
101
|
+
} as const;
|
|
102
|
+
export type GetCourseEnrollmentListItemUserTypeEnum = typeof GetCourseEnrollmentListItemUserTypeEnum[keyof typeof GetCourseEnrollmentListItemUserTypeEnum];
|
|
103
|
+
|
|
89
104
|
|
|
90
105
|
/**
|
|
91
106
|
* Check if a given object implements the GetCourseEnrollmentListItem interface.
|
|
@@ -99,6 +114,7 @@ export function instanceOfGetCourseEnrollmentListItem(value: object): value is G
|
|
|
99
114
|
if (!('enrollmentDateStart' in value) || value['enrollmentDateStart'] === undefined) return false;
|
|
100
115
|
if (!('enrollmentDateEnd' in value) || value['enrollmentDateEnd'] === undefined) return false;
|
|
101
116
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
117
|
+
if (!('userType' in value) || value['userType'] === undefined) return false;
|
|
102
118
|
if (!('completionDate' in value) || value['completionDate'] === undefined) return false;
|
|
103
119
|
return true;
|
|
104
120
|
}
|
|
@@ -121,6 +137,7 @@ export function GetCourseEnrollmentListItemFromJSONTyped(json: any, ignoreDiscri
|
|
|
121
137
|
'enrollmentDateStart': json['enrollment_date_start'],
|
|
122
138
|
'enrollmentDateEnd': json['enrollment_date_end'],
|
|
123
139
|
'status': json['status'],
|
|
140
|
+
'userType': json['user_type'],
|
|
124
141
|
'completionDate': json['completion_date'],
|
|
125
142
|
};
|
|
126
143
|
}
|
|
@@ -144,6 +161,7 @@ export function GetCourseEnrollmentListItemToJSONTyped(value?: GetCourseEnrollme
|
|
|
144
161
|
'enrollment_date_start': value['enrollmentDateStart'],
|
|
145
162
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
146
163
|
'status': value['status'],
|
|
164
|
+
'user_type': value['userType'],
|
|
147
165
|
'completion_date': value['completionDate'],
|
|
148
166
|
};
|
|
149
167
|
}
|
|
@@ -26,7 +26,7 @@ export interface PostContentUpload {
|
|
|
26
26
|
*/
|
|
27
27
|
name: string;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* The type of content being uploaded
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof PostContentUpload
|
|
32
32
|
*/
|
|
@@ -42,9 +42,13 @@ export const PostContentUploadContentTypeEnum = {
|
|
|
42
42
|
Jpg: 'JPG',
|
|
43
43
|
Jpeg: 'JPEG',
|
|
44
44
|
Mp4: 'MP4',
|
|
45
|
+
Mov: 'MOV',
|
|
46
|
+
Webm: 'WEBM',
|
|
47
|
+
Avi: 'AVI',
|
|
45
48
|
Pdf: 'PDF',
|
|
46
49
|
Scorm: 'SCORM',
|
|
47
|
-
Quiz: 'QUIZ'
|
|
50
|
+
Quiz: 'QUIZ',
|
|
51
|
+
File: 'FILE'
|
|
48
52
|
} as const;
|
|
49
53
|
export type PostContentUploadContentTypeEnum = typeof PostContentUploadContentTypeEnum[keyof typeof PostContentUploadContentTypeEnum];
|
|
50
54
|
|
|
@@ -25,6 +25,12 @@ export interface PutCourseEnrollment {
|
|
|
25
25
|
* @memberof PutCourseEnrollment
|
|
26
26
|
*/
|
|
27
27
|
status?: PutCourseEnrollmentStatusEnum;
|
|
28
|
+
/**
|
|
29
|
+
* The role/type of the user in this enrollment
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PutCourseEnrollment
|
|
32
|
+
*/
|
|
33
|
+
userType?: PutCourseEnrollmentUserTypeEnum;
|
|
28
34
|
/**
|
|
29
35
|
* End date of the enrollment (Unix timestamp)
|
|
30
36
|
* @type {number}
|
|
@@ -50,6 +56,15 @@ export const PutCourseEnrollmentStatusEnum = {
|
|
|
50
56
|
} as const;
|
|
51
57
|
export type PutCourseEnrollmentStatusEnum = typeof PutCourseEnrollmentStatusEnum[keyof typeof PutCourseEnrollmentStatusEnum];
|
|
52
58
|
|
|
59
|
+
/**
|
|
60
|
+
* @export
|
|
61
|
+
*/
|
|
62
|
+
export const PutCourseEnrollmentUserTypeEnum = {
|
|
63
|
+
Student: 'Student',
|
|
64
|
+
Instructor: 'Instructor'
|
|
65
|
+
} as const;
|
|
66
|
+
export type PutCourseEnrollmentUserTypeEnum = typeof PutCourseEnrollmentUserTypeEnum[keyof typeof PutCourseEnrollmentUserTypeEnum];
|
|
67
|
+
|
|
53
68
|
|
|
54
69
|
/**
|
|
55
70
|
* Check if a given object implements the PutCourseEnrollment interface.
|
|
@@ -69,6 +84,7 @@ export function PutCourseEnrollmentFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
69
84
|
return {
|
|
70
85
|
|
|
71
86
|
'status': json['status'] == null ? undefined : json['status'],
|
|
87
|
+
'userType': json['user_type'] == null ? undefined : json['user_type'],
|
|
72
88
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
73
89
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
74
90
|
};
|
|
@@ -86,6 +102,7 @@ export function PutCourseEnrollmentToJSONTyped(value?: PutCourseEnrollment | nul
|
|
|
86
102
|
return {
|
|
87
103
|
|
|
88
104
|
'status': value['status'],
|
|
105
|
+
'user_type': value['userType'],
|
|
89
106
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
90
107
|
'notes': value['notes'],
|
|
91
108
|
};
|