@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,52 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export class OtherApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Health check endpoint
|
|
30
|
+
*/
|
|
31
|
+
getHealthRaw(initOverrides) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
const queryParameters = {};
|
|
34
|
+
const headerParameters = {};
|
|
35
|
+
const response = yield this.request({
|
|
36
|
+
path: `/health`,
|
|
37
|
+
method: 'GET',
|
|
38
|
+
headers: headerParameters,
|
|
39
|
+
query: queryParameters,
|
|
40
|
+
}, initOverrides);
|
|
41
|
+
return new runtime.VoidApiResponse(response);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Health check endpoint
|
|
46
|
+
*/
|
|
47
|
+
getHealth(initOverrides) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
yield this.getHealthRaw(initOverrides);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { GetUser, LoginRes, PostLogin, PostUser } from '../models/index';
|
|
14
|
+
export interface GetUserRequest {
|
|
15
|
+
userId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface PostLoginRequest {
|
|
18
|
+
postLogin: PostLogin;
|
|
19
|
+
}
|
|
20
|
+
export interface PostUserRequest {
|
|
21
|
+
postUser: PostUser;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class UserApi extends runtime.BaseAPI {
|
|
27
|
+
/**
|
|
28
|
+
* get user
|
|
29
|
+
*/
|
|
30
|
+
getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUser>>;
|
|
31
|
+
/**
|
|
32
|
+
* get user
|
|
33
|
+
*/
|
|
34
|
+
getUser(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUser>;
|
|
35
|
+
/**
|
|
36
|
+
* post login
|
|
37
|
+
*/
|
|
38
|
+
postLoginRaw(requestParameters: PostLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginRes>>;
|
|
39
|
+
/**
|
|
40
|
+
* post login
|
|
41
|
+
*/
|
|
42
|
+
postLogin(requestParameters: PostLoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginRes>;
|
|
43
|
+
/**
|
|
44
|
+
* post user
|
|
45
|
+
*/
|
|
46
|
+
postUserRaw(requestParameters: PostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUser>>;
|
|
47
|
+
/**
|
|
48
|
+
* post user
|
|
49
|
+
*/
|
|
50
|
+
postUser(requestParameters: PostUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUser>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { GetUserFromJSON, LoginResFromJSON, PostLoginToJSON, PostUserToJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class UserApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* get user
|
|
31
|
+
*/
|
|
32
|
+
getUserRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['userId'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getUser().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
const response = yield this.request({
|
|
40
|
+
path: `/users/{userId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
41
|
+
method: 'GET',
|
|
42
|
+
headers: headerParameters,
|
|
43
|
+
query: queryParameters,
|
|
44
|
+
}, initOverrides);
|
|
45
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetUserFromJSON(jsonValue));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* get user
|
|
50
|
+
*/
|
|
51
|
+
getUser(requestParameters, initOverrides) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const response = yield this.getUserRaw(requestParameters, initOverrides);
|
|
54
|
+
return yield response.value();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* post login
|
|
59
|
+
*/
|
|
60
|
+
postLoginRaw(requestParameters, initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
if (requestParameters['postLogin'] == null) {
|
|
63
|
+
throw new runtime.RequiredError('postLogin', 'Required parameter "postLogin" was null or undefined when calling postLogin().');
|
|
64
|
+
}
|
|
65
|
+
const queryParameters = {};
|
|
66
|
+
const headerParameters = {};
|
|
67
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
68
|
+
const response = yield this.request({
|
|
69
|
+
path: `/auth/login`,
|
|
70
|
+
method: 'POST',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
body: PostLoginToJSON(requestParameters['postLogin']),
|
|
74
|
+
}, initOverrides);
|
|
75
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LoginResFromJSON(jsonValue));
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* post login
|
|
80
|
+
*/
|
|
81
|
+
postLogin(requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
const response = yield this.postLoginRaw(requestParameters, initOverrides);
|
|
84
|
+
return yield response.value();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* post user
|
|
89
|
+
*/
|
|
90
|
+
postUserRaw(requestParameters, initOverrides) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
if (requestParameters['postUser'] == null) {
|
|
93
|
+
throw new runtime.RequiredError('postUser', 'Required parameter "postUser" was null or undefined when calling postUser().');
|
|
94
|
+
}
|
|
95
|
+
const queryParameters = {};
|
|
96
|
+
const headerParameters = {};
|
|
97
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
98
|
+
const response = yield this.request({
|
|
99
|
+
path: `/users`,
|
|
100
|
+
method: 'POST',
|
|
101
|
+
headers: headerParameters,
|
|
102
|
+
query: queryParameters,
|
|
103
|
+
body: PostUserToJSON(requestParameters['postUser']),
|
|
104
|
+
}, initOverrides);
|
|
105
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetUserFromJSON(jsonValue));
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* post user
|
|
110
|
+
*/
|
|
111
|
+
postUser(requestParameters, initOverrides) {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
const response = yield this.postUserRaw(requestParameters, initOverrides);
|
|
114
|
+
return yield response.value();
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -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 GetContent
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContent {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContent
|
|
22
|
+
*/
|
|
23
|
+
readonly id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetContent
|
|
28
|
+
*/
|
|
29
|
+
moduleId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetContent
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetContent interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetContent(value: object): value is GetContent;
|
|
41
|
+
export declare function GetContentFromJSON(json: any): GetContent;
|
|
42
|
+
export declare function GetContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContent;
|
|
43
|
+
export declare function GetContentToJSON(json: any): GetContent;
|
|
44
|
+
export declare function GetContentToJSONTyped(value?: Omit<GetContent, 'id'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Check if a given object implements the GetContent interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetContent(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('moduleId' in value) || value['moduleId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetContentFromJSON(json) {
|
|
27
|
+
return GetContentFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetContentFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'id': json['id'],
|
|
35
|
+
'moduleId': json['module_id'],
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function GetContentToJSON(json) {
|
|
40
|
+
return GetContentToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'module_id': value['moduleId'],
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 { GetContent } from './GetContent';
|
|
13
|
+
/**
|
|
14
|
+
* A list of content within a module
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetContentList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetContentList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetContentList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetContentList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetContentList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetContentList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetContent>}
|
|
46
|
+
* @memberof GetContentList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetContent>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetContentList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetContentList(value: object): value is GetContentList;
|
|
54
|
+
export declare function GetContentListFromJSON(json: any): GetContentList;
|
|
55
|
+
export declare function GetContentListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentList;
|
|
56
|
+
export declare function GetContentListToJSON(json: any): GetContentList;
|
|
57
|
+
export declare function GetContentListToJSONTyped(value?: GetContentList | 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 { GetContentFromJSON, GetContentToJSON, } from './GetContent';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetContentList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetContentList(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 GetContentListFromJSON(json) {
|
|
32
|
+
return GetContentListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetContentListFromJSONTyped(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(GetContentFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetContentListToJSON(json) {
|
|
47
|
+
return GetContentListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetContentListToJSONTyped(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(GetContentToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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
|
+
* A content session
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetContentSession
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentSession {
|
|
18
|
+
/**
|
|
19
|
+
* The id of the content
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentSession
|
|
22
|
+
*/
|
|
23
|
+
contentId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The id of the user
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetContentSession
|
|
28
|
+
*/
|
|
29
|
+
userId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The url of the content
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetContentSession
|
|
34
|
+
*/
|
|
35
|
+
lanchUrl: string;
|
|
36
|
+
/**
|
|
37
|
+
* The date and time the content session was created
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetContentSession
|
|
40
|
+
*/
|
|
41
|
+
createdAt: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the GetContentSession interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfGetContentSession(value: object): value is GetContentSession;
|
|
47
|
+
export declare function GetContentSessionFromJSON(json: any): GetContentSession;
|
|
48
|
+
export declare function GetContentSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentSession;
|
|
49
|
+
export declare function GetContentSessionToJSON(json: any): GetContentSession;
|
|
50
|
+
export declare function GetContentSessionToJSONTyped(value?: GetContentSession | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
* Check if a given object implements the GetContentSession interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetContentSession(value) {
|
|
18
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('lanchUrl' in value) || value['lanchUrl'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function GetContentSessionFromJSON(json) {
|
|
29
|
+
return GetContentSessionFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function GetContentSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'contentId': json['content_id'],
|
|
37
|
+
'userId': json['user_id'],
|
|
38
|
+
'lanchUrl': json['lanch_url'],
|
|
39
|
+
'createdAt': json['created_at'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function GetContentSessionToJSON(json) {
|
|
43
|
+
return GetContentSessionToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function GetContentSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'content_id': value['contentId'],
|
|
51
|
+
'user_id': value['userId'],
|
|
52
|
+
'lanch_url': value['lanchUrl'],
|
|
53
|
+
'created_at': value['createdAt'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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 GetContentUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface GetContentUpload {
|
|
18
|
+
/**
|
|
19
|
+
* The title of the uploaded content
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetContentUpload
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* The ID of the uploaded content
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetContentUpload
|
|
28
|
+
*/
|
|
29
|
+
contentId: string;
|
|
30
|
+
/**
|
|
31
|
+
* The URL to upload the content
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetContentUpload
|
|
34
|
+
*/
|
|
35
|
+
uploadUrl: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetContentUpload interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetContentUpload(value: object): value is GetContentUpload;
|
|
41
|
+
export declare function GetContentUploadFromJSON(json: any): GetContentUpload;
|
|
42
|
+
export declare function GetContentUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentUpload;
|
|
43
|
+
export declare function GetContentUploadToJSON(json: any): GetContentUpload;
|
|
44
|
+
export declare function GetContentUploadToJSONTyped(value?: GetContentUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Check if a given object implements the GetContentUpload interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetContentUpload(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('uploadUrl' in value) || value['uploadUrl'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetContentUploadFromJSON(json) {
|
|
27
|
+
return GetContentUploadFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetContentUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
'contentId': json['content_id'],
|
|
36
|
+
'uploadUrl': json['upload_url'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function GetContentUploadToJSON(json) {
|
|
40
|
+
return GetContentUploadToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function GetContentUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'name': value['name'],
|
|
48
|
+
'content_id': value['contentId'],
|
|
49
|
+
'upload_url': value['uploadUrl'],
|
|
50
|
+
};
|
|
51
|
+
}
|