@easyedu/js-lsm-api 1.0.0-677fab496294ee48248fd8a03fee59e3bf0dcf02
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 +35 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/ContentApi.d.ts +82 -0
- package/dist/apis/ContentApi.js +204 -0
- package/dist/apis/CourseApi.d.ts +71 -0
- package/dist/apis/CourseApi.js +177 -0
- package/dist/apis/ModuleApi.d.ts +53 -0
- package/dist/apis/ModuleApi.js +125 -0
- package/dist/apis/OtherApi.d.ts +25 -0
- package/dist/apis/OtherApi.js +56 -0
- package/dist/apis/UserApi.d.ts +51 -0
- package/dist/apis/UserApi.js +121 -0
- package/dist/apis/index.d.ts +5 -0
- package/dist/apis/index.js +23 -0
- package/dist/esm/apis/ContentApi.d.ts +82 -0
- package/dist/esm/apis/ContentApi.js +200 -0
- package/dist/esm/apis/CourseApi.d.ts +71 -0
- package/dist/esm/apis/CourseApi.js +173 -0
- package/dist/esm/apis/ModuleApi.d.ts +53 -0
- package/dist/esm/apis/ModuleApi.js +121 -0
- package/dist/esm/apis/OtherApi.d.ts +25 -0
- package/dist/esm/apis/OtherApi.js +52 -0
- package/dist/esm/apis/UserApi.d.ts +51 -0
- package/dist/esm/apis/UserApi.js +117 -0
- package/dist/esm/apis/index.d.ts +5 -0
- package/dist/esm/apis/index.js +7 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/GetContent.d.ts +44 -0
- package/dist/esm/models/GetContent.js +50 -0
- package/dist/esm/models/GetContentList.d.ts +57 -0
- package/dist/esm/models/GetContentList.js +60 -0
- package/dist/esm/models/GetContentSession.d.ts +50 -0
- package/dist/esm/models/GetContentSession.js +55 -0
- package/dist/esm/models/GetContentUpload.d.ts +44 -0
- package/dist/esm/models/GetContentUpload.js +51 -0
- package/dist/esm/models/GetCourse.d.ts +50 -0
- package/dist/esm/models/GetCourse.js +52 -0
- package/dist/esm/models/GetCourseEnrollment.d.ts +79 -0
- package/dist/esm/models/GetCourseEnrollment.js +77 -0
- package/dist/esm/models/GetCourseEnrollmentList.d.ts +57 -0
- package/dist/esm/models/GetCourseEnrollmentList.js +60 -0
- package/dist/esm/models/GetCourseList.d.ts +57 -0
- package/dist/esm/models/GetCourseList.js +60 -0
- package/dist/esm/models/GetModule.d.ts +62 -0
- package/dist/esm/models/GetModule.js +61 -0
- package/dist/esm/models/GetModuleList.d.ts +57 -0
- package/dist/esm/models/GetModuleList.js +60 -0
- package/dist/esm/models/GetUser.d.ts +50 -0
- package/dist/esm/models/GetUser.js +54 -0
- package/dist/esm/models/LoginRes.d.ts +32 -0
- package/dist/esm/models/LoginRes.js +43 -0
- package/dist/esm/models/PostContentScorm.d.ts +38 -0
- package/dist/esm/models/PostContentScorm.js +47 -0
- package/dist/esm/models/PostContentUpload.d.ts +50 -0
- package/dist/esm/models/PostContentUpload.js +58 -0
- package/dist/esm/models/PostCourse.d.ts +44 -0
- package/dist/esm/models/PostCourse.js +51 -0
- package/dist/esm/models/PostCourseEnrollment.d.ts +44 -0
- package/dist/esm/models/PostCourseEnrollment.js +51 -0
- package/dist/esm/models/PostLogin.d.ts +38 -0
- package/dist/esm/models/PostLogin.js +47 -0
- package/dist/esm/models/PostModule.d.ts +44 -0
- package/dist/esm/models/PostModule.js +51 -0
- package/dist/esm/models/PostUser.d.ts +44 -0
- package/dist/esm/models/PostUser.js +51 -0
- package/dist/esm/models/index.d.ts +19 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/esm/runtime.d.ts +182 -0
- package/dist/esm/runtime.js +330 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/GetContent.d.ts +44 -0
- package/dist/models/GetContent.js +57 -0
- package/dist/models/GetContentList.d.ts +57 -0
- package/dist/models/GetContentList.js +67 -0
- package/dist/models/GetContentSession.d.ts +50 -0
- package/dist/models/GetContentSession.js +62 -0
- package/dist/models/GetContentUpload.d.ts +44 -0
- package/dist/models/GetContentUpload.js +58 -0
- package/dist/models/GetCourse.d.ts +50 -0
- package/dist/models/GetCourse.js +59 -0
- package/dist/models/GetCourseEnrollment.d.ts +79 -0
- package/dist/models/GetCourseEnrollment.js +85 -0
- package/dist/models/GetCourseEnrollmentList.d.ts +57 -0
- package/dist/models/GetCourseEnrollmentList.js +67 -0
- package/dist/models/GetCourseList.d.ts +57 -0
- package/dist/models/GetCourseList.js +67 -0
- package/dist/models/GetModule.d.ts +62 -0
- package/dist/models/GetModule.js +68 -0
- package/dist/models/GetModuleList.d.ts +57 -0
- package/dist/models/GetModuleList.js +67 -0
- package/dist/models/GetUser.d.ts +50 -0
- package/dist/models/GetUser.js +61 -0
- package/dist/models/LoginRes.d.ts +32 -0
- package/dist/models/LoginRes.js +50 -0
- package/dist/models/PostContentScorm.d.ts +38 -0
- package/dist/models/PostContentScorm.js +54 -0
- package/dist/models/PostContentUpload.d.ts +50 -0
- package/dist/models/PostContentUpload.js +66 -0
- package/dist/models/PostCourse.d.ts +44 -0
- package/dist/models/PostCourse.js +58 -0
- package/dist/models/PostCourseEnrollment.d.ts +44 -0
- package/dist/models/PostCourseEnrollment.js +58 -0
- package/dist/models/PostLogin.d.ts +38 -0
- package/dist/models/PostLogin.js +54 -0
- package/dist/models/PostModule.d.ts +44 -0
- package/dist/models/PostModule.js +58 -0
- package/dist/models/PostUser.d.ts +44 -0
- package/dist/models/PostUser.js +58 -0
- package/dist/models/index.d.ts +19 -0
- package/dist/models/index.js +37 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +346 -0
- package/package.json +21 -0
- package/src/apis/ContentApi.ts +308 -0
- package/src/apis/CourseApi.ts +233 -0
- package/src/apis/ModuleApi.ts +166 -0
- package/src/apis/OtherApi.ts +48 -0
- package/src/apis/UserApi.ts +156 -0
- package/src/apis/index.ts +7 -0
- package/src/index.ts +5 -0
- package/src/models/GetContent.ts +83 -0
- package/src/models/GetContentList.ts +110 -0
- package/src/models/GetContentSession.ts +93 -0
- package/src/models/GetContentUpload.ts +84 -0
- package/src/models/GetCourse.ts +91 -0
- package/src/models/GetCourseEnrollment.ts +134 -0
- package/src/models/GetCourseEnrollmentList.ts +110 -0
- package/src/models/GetCourseList.ts +110 -0
- package/src/models/GetModule.ts +109 -0
- package/src/models/GetModuleList.ts +110 -0
- package/src/models/GetUser.ts +92 -0
- package/src/models/LoginRes.ts +66 -0
- package/src/models/PostContentScorm.ts +75 -0
- package/src/models/PostContentUpload.ts +90 -0
- package/src/models/PostCourse.ts +84 -0
- package/src/models/PostCourseEnrollment.ts +84 -0
- package/src/models/PostLogin.ts +75 -0
- package/src/models/PostModule.ts +84 -0
- package/src/models/PostUser.ts +84 -0
- package/src/models/index.ts +21 -0
- package/src/runtime.ts +431 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetModule = instanceOfGetModule;
|
|
17
|
+
exports.GetModuleFromJSON = GetModuleFromJSON;
|
|
18
|
+
exports.GetModuleFromJSONTyped = GetModuleFromJSONTyped;
|
|
19
|
+
exports.GetModuleToJSON = GetModuleToJSON;
|
|
20
|
+
exports.GetModuleToJSONTyped = GetModuleToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetModule interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetModule(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('order' in value) || value['order'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function GetModuleFromJSON(json) {
|
|
40
|
+
return GetModuleFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function GetModuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'courseId': json['course_id'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'description': json['description'],
|
|
51
|
+
'order': json['order'],
|
|
52
|
+
'lastUpdated': json['last_updated'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function GetModuleToJSON(json) {
|
|
56
|
+
return GetModuleToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function GetModuleToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'description': value['description'],
|
|
65
|
+
'order': value['order'],
|
|
66
|
+
'last_updated': value['lastUpdated'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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 { GetModule } from './GetModule';
|
|
13
|
+
/**
|
|
14
|
+
* A list of modules with pagination information
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetModuleList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetModuleList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetModuleList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetModuleList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetModuleList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetModuleList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetModule>}
|
|
46
|
+
* @memberof GetModuleList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetModule>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetModuleList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetModuleList(value: object): value is GetModuleList;
|
|
54
|
+
export declare function GetModuleListFromJSON(json: any): GetModuleList;
|
|
55
|
+
export declare function GetModuleListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetModuleList;
|
|
56
|
+
export declare function GetModuleListToJSON(json: any): GetModuleList;
|
|
57
|
+
export declare function GetModuleListToJSONTyped(value?: GetModuleList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetModuleList = instanceOfGetModuleList;
|
|
17
|
+
exports.GetModuleListFromJSON = GetModuleListFromJSON;
|
|
18
|
+
exports.GetModuleListFromJSONTyped = GetModuleListFromJSONTyped;
|
|
19
|
+
exports.GetModuleListToJSON = GetModuleListToJSON;
|
|
20
|
+
exports.GetModuleListToJSONTyped = GetModuleListToJSONTyped;
|
|
21
|
+
const GetModule_1 = require("./GetModule");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetModuleList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetModuleList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetModuleListFromJSON(json) {
|
|
39
|
+
return GetModuleListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetModuleListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['page_size'],
|
|
48
|
+
'totalPages': json['total_pages'],
|
|
49
|
+
'totalItems': json['total_items'],
|
|
50
|
+
'items': (json['items'].map(GetModule_1.GetModuleFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetModuleListToJSON(json) {
|
|
54
|
+
return GetModuleListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetModuleListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'page_size': value['pageSize'],
|
|
63
|
+
'total_pages': value['totalPages'],
|
|
64
|
+
'total_items': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(GetModule_1.GetModuleToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 GetUser
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUser {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetUser
|
|
22
|
+
*/
|
|
23
|
+
readonly id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetUser
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetUser
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetUser
|
|
40
|
+
*/
|
|
41
|
+
lastUpdated: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the GetUser interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfGetUser(value: object): value is GetUser;
|
|
47
|
+
export declare function GetUserFromJSON(json: any): GetUser;
|
|
48
|
+
export declare function GetUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUser;
|
|
49
|
+
export declare function GetUserToJSON(json: any): GetUser;
|
|
50
|
+
export declare function GetUserToJSONTyped(value?: Omit<GetUser, 'id'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetUser = instanceOfGetUser;
|
|
17
|
+
exports.GetUserFromJSON = GetUserFromJSON;
|
|
18
|
+
exports.GetUserFromJSONTyped = GetUserFromJSONTyped;
|
|
19
|
+
exports.GetUserToJSON = GetUserToJSON;
|
|
20
|
+
exports.GetUserToJSONTyped = GetUserToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetUser interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetUser(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function GetUserFromJSON(json) {
|
|
36
|
+
return GetUserFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function GetUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'email': json['email'],
|
|
46
|
+
'lastUpdated': json['last_updated'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function GetUserToJSON(json) {
|
|
50
|
+
return GetUserToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function GetUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'name': value['name'],
|
|
58
|
+
'email': value['email'],
|
|
59
|
+
'last_updated': value['lastUpdated'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LoginRes
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginRes {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LoginRes
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the LoginRes interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfLoginRes(value: object): value is LoginRes;
|
|
29
|
+
export declare function LoginResFromJSON(json: any): LoginRes;
|
|
30
|
+
export declare function LoginResFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRes;
|
|
31
|
+
export declare function LoginResToJSON(json: any): LoginRes;
|
|
32
|
+
export declare function LoginResToJSONTyped(value?: LoginRes | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfLoginRes = instanceOfLoginRes;
|
|
17
|
+
exports.LoginResFromJSON = LoginResFromJSON;
|
|
18
|
+
exports.LoginResFromJSONTyped = LoginResFromJSONTyped;
|
|
19
|
+
exports.LoginResToJSON = LoginResToJSON;
|
|
20
|
+
exports.LoginResToJSONTyped = LoginResToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LoginRes interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLoginRes(value) {
|
|
25
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function LoginResFromJSON(json) {
|
|
30
|
+
return LoginResFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function LoginResFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'token': json['token'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function LoginResToJSON(json) {
|
|
41
|
+
return LoginResToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function LoginResToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'token': value['token'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 PostContentScorm
|
|
16
|
+
*/
|
|
17
|
+
export interface PostContentScorm {
|
|
18
|
+
/**
|
|
19
|
+
* The title of the scorm content
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostContentScorm
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* The scorm ZIP file to upload
|
|
26
|
+
* @type {Blob}
|
|
27
|
+
* @memberof PostContentScorm
|
|
28
|
+
*/
|
|
29
|
+
file: Blob;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PostContentScorm interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPostContentScorm(value: object): value is PostContentScorm;
|
|
35
|
+
export declare function PostContentScormFromJSON(json: any): PostContentScorm;
|
|
36
|
+
export declare function PostContentScormFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostContentScorm;
|
|
37
|
+
export declare function PostContentScormToJSON(json: any): PostContentScorm;
|
|
38
|
+
export declare function PostContentScormToJSONTyped(value?: PostContentScorm | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPostContentScorm = instanceOfPostContentScorm;
|
|
17
|
+
exports.PostContentScormFromJSON = PostContentScormFromJSON;
|
|
18
|
+
exports.PostContentScormFromJSONTyped = PostContentScormFromJSONTyped;
|
|
19
|
+
exports.PostContentScormToJSON = PostContentScormToJSON;
|
|
20
|
+
exports.PostContentScormToJSONTyped = PostContentScormToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostContentScorm interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostContentScorm(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PostContentScormFromJSON(json) {
|
|
32
|
+
return PostContentScormFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PostContentScormFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'file': json['file'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PostContentScormToJSON(json) {
|
|
44
|
+
return PostContentScormToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PostContentScormToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'file': value['file'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PostContentUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface PostContentUpload {
|
|
18
|
+
/**
|
|
19
|
+
* The title of the uploaded content
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostContentUpload
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostContentUpload
|
|
28
|
+
*/
|
|
29
|
+
contentType: PostContentUploadContentTypeEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const PostContentUploadContentTypeEnum: {
|
|
35
|
+
readonly Png: "PNG";
|
|
36
|
+
readonly Jpg: "JPG";
|
|
37
|
+
readonly Jpeg: "JPEG";
|
|
38
|
+
readonly Mp4: "MP4";
|
|
39
|
+
readonly Pdf: "PDF";
|
|
40
|
+
readonly Scorm: "SCORM";
|
|
41
|
+
};
|
|
42
|
+
export type PostContentUploadContentTypeEnum = typeof PostContentUploadContentTypeEnum[keyof typeof PostContentUploadContentTypeEnum];
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PostContentUpload interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPostContentUpload(value: object): value is PostContentUpload;
|
|
47
|
+
export declare function PostContentUploadFromJSON(json: any): PostContentUpload;
|
|
48
|
+
export declare function PostContentUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostContentUpload;
|
|
49
|
+
export declare function PostContentUploadToJSON(json: any): PostContentUpload;
|
|
50
|
+
export declare function PostContentUploadToJSONTyped(value?: PostContentUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PostContentUploadContentTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfPostContentUpload = instanceOfPostContentUpload;
|
|
18
|
+
exports.PostContentUploadFromJSON = PostContentUploadFromJSON;
|
|
19
|
+
exports.PostContentUploadFromJSONTyped = PostContentUploadFromJSONTyped;
|
|
20
|
+
exports.PostContentUploadToJSON = PostContentUploadToJSON;
|
|
21
|
+
exports.PostContentUploadToJSONTyped = PostContentUploadToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PostContentUploadContentTypeEnum = {
|
|
26
|
+
Png: 'PNG',
|
|
27
|
+
Jpg: 'JPG',
|
|
28
|
+
Jpeg: 'JPEG',
|
|
29
|
+
Mp4: 'MP4',
|
|
30
|
+
Pdf: 'PDF',
|
|
31
|
+
Scorm: 'SCORM'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PostContentUpload interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfPostContentUpload(value) {
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('contentType' in value) || value['contentType'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function PostContentUploadFromJSON(json) {
|
|
44
|
+
return PostContentUploadFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PostContentUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'name': json['name'],
|
|
52
|
+
'contentType': json['content_type'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function PostContentUploadToJSON(json) {
|
|
56
|
+
return PostContentUploadToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function PostContentUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
'content_type': value['contentType'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 PostCourse
|
|
16
|
+
*/
|
|
17
|
+
export interface PostCourse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostCourse
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostCourse
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostCourse
|
|
34
|
+
*/
|
|
35
|
+
instructor: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PostCourse interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPostCourse(value: object): value is PostCourse;
|
|
41
|
+
export declare function PostCourseFromJSON(json: any): PostCourse;
|
|
42
|
+
export declare function PostCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourse;
|
|
43
|
+
export declare function PostCourseToJSON(json: any): PostCourse;
|
|
44
|
+
export declare function PostCourseToJSONTyped(value?: PostCourse | null, ignoreDiscriminator?: boolean): any;
|