@easyedu/js-lsm-api 1.17.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -0
- package/README.md +2 -2
- package/dist/apis/ReportingApi.d.ts +13 -1
- package/dist/apis/ReportingApi.js +31 -0
- package/dist/esm/apis/ReportingApi.d.ts +13 -1
- package/dist/esm/apis/ReportingApi.js +32 -1
- package/dist/esm/models/GetPortalStudentReporting.d.ts +40 -0
- package/dist/esm/models/GetPortalStudentReporting.js +49 -0
- package/dist/esm/models/GetPortalStudentReportingCertificates.d.ts +32 -0
- package/dist/esm/models/GetPortalStudentReportingCertificates.js +43 -0
- package/dist/esm/models/GetPortalStudentReportingPortalInfo.d.ts +44 -0
- package/dist/esm/models/GetPortalStudentReportingPortalInfo.js +51 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/GetPortalStudentReporting.d.ts +40 -0
- package/dist/models/GetPortalStudentReporting.js +56 -0
- package/dist/models/GetPortalStudentReportingCertificates.d.ts +32 -0
- package/dist/models/GetPortalStudentReportingCertificates.js +50 -0
- package/dist/models/GetPortalStudentReportingPortalInfo.d.ts +44 -0
- package/dist/models/GetPortalStudentReportingPortalInfo.js +58 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/ReportingApi.ts +48 -0
- package/src/models/GetPortalStudentReporting.ts +90 -0
- package/src/models/GetPortalStudentReportingCertificates.ts +66 -0
- package/src/models/GetPortalStudentReportingPortalInfo.ts +84 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -56,6 +56,9 @@ src/models/GetPortalBasicReporting.ts
|
|
|
56
56
|
src/models/GetPortalBasicReportingCertificates.ts
|
|
57
57
|
src/models/GetPortalBasicReportingPortalInfo.ts
|
|
58
58
|
src/models/GetPortalList.ts
|
|
59
|
+
src/models/GetPortalStudentReporting.ts
|
|
60
|
+
src/models/GetPortalStudentReportingCertificates.ts
|
|
61
|
+
src/models/GetPortalStudentReportingPortalInfo.ts
|
|
59
62
|
src/models/GetPortalUser.ts
|
|
60
63
|
src/models/GetPortalUserList.ts
|
|
61
64
|
src/models/GetQuestion.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @easyedu/js-lsm-api@1.
|
|
1
|
+
## @easyedu/js-lsm-api@1.18.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.18.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetContentGradeDetail, GetContentGrades, GetContentInstructorBasicReporting, GetCourseReportingBasic, GetCourseStudentReporting, GetModuleInstructorBasicReporting, GetModuleStudentReporting, GetPortalBasicReporting } from '../models/index';
|
|
13
|
+
import type { GetContentGradeDetail, GetContentGrades, GetContentInstructorBasicReporting, GetCourseReportingBasic, GetCourseStudentReporting, GetModuleInstructorBasicReporting, GetModuleStudentReporting, GetPortalBasicReporting, GetPortalStudentReporting } from '../models/index';
|
|
14
14
|
export interface GetContentGradeDetailRequest {
|
|
15
15
|
courseId: string;
|
|
16
16
|
moduleId: string;
|
|
@@ -49,6 +49,10 @@ export interface GetModuleStudentReportingRequest {
|
|
|
49
49
|
export interface GetPortalBasicReportingRequest {
|
|
50
50
|
portalId: string;
|
|
51
51
|
}
|
|
52
|
+
export interface GetPortalStudentReportingRequest {
|
|
53
|
+
portalId: string;
|
|
54
|
+
studentId: string;
|
|
55
|
+
}
|
|
52
56
|
/**
|
|
53
57
|
*
|
|
54
58
|
*/
|
|
@@ -117,4 +121,12 @@ export declare class ReportingApi extends runtime.BaseAPI {
|
|
|
117
121
|
* Get basic reporting for a portal
|
|
118
122
|
*/
|
|
119
123
|
getPortalBasicReporting(requestParameters: GetPortalBasicReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalBasicReporting>;
|
|
124
|
+
/**
|
|
125
|
+
* Get student reporting for a portal
|
|
126
|
+
*/
|
|
127
|
+
getPortalStudentReportingRaw(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalStudentReporting>>;
|
|
128
|
+
/**
|
|
129
|
+
* Get student reporting for a portal
|
|
130
|
+
*/
|
|
131
|
+
getPortalStudentReporting(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalStudentReporting>;
|
|
120
132
|
}
|
|
@@ -295,5 +295,36 @@ class ReportingApi extends runtime.BaseAPI {
|
|
|
295
295
|
return yield response.value();
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Get student reporting for a portal
|
|
300
|
+
*/
|
|
301
|
+
getPortalStudentReportingRaw(requestParameters, initOverrides) {
|
|
302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
+
if (requestParameters['portalId'] == null) {
|
|
304
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getPortalStudentReporting().');
|
|
305
|
+
}
|
|
306
|
+
if (requestParameters['studentId'] == null) {
|
|
307
|
+
throw new runtime.RequiredError('studentId', 'Required parameter "studentId" was null or undefined when calling getPortalStudentReporting().');
|
|
308
|
+
}
|
|
309
|
+
const queryParameters = {};
|
|
310
|
+
const headerParameters = {};
|
|
311
|
+
const response = yield this.request({
|
|
312
|
+
path: `/portals/{portalId}/reporting/students/{studentId}`.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId']))).replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId']))),
|
|
313
|
+
method: 'GET',
|
|
314
|
+
headers: headerParameters,
|
|
315
|
+
query: queryParameters,
|
|
316
|
+
}, initOverrides);
|
|
317
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPortalStudentReportingFromJSON)(jsonValue));
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Get student reporting for a portal
|
|
322
|
+
*/
|
|
323
|
+
getPortalStudentReporting(requestParameters, initOverrides) {
|
|
324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
325
|
+
const response = yield this.getPortalStudentReportingRaw(requestParameters, initOverrides);
|
|
326
|
+
return yield response.value();
|
|
327
|
+
});
|
|
328
|
+
}
|
|
298
329
|
}
|
|
299
330
|
exports.ReportingApi = ReportingApi;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetContentGradeDetail, GetContentGrades, GetContentInstructorBasicReporting, GetCourseReportingBasic, GetCourseStudentReporting, GetModuleInstructorBasicReporting, GetModuleStudentReporting, GetPortalBasicReporting } from '../models/index';
|
|
13
|
+
import type { GetContentGradeDetail, GetContentGrades, GetContentInstructorBasicReporting, GetCourseReportingBasic, GetCourseStudentReporting, GetModuleInstructorBasicReporting, GetModuleStudentReporting, GetPortalBasicReporting, GetPortalStudentReporting } from '../models/index';
|
|
14
14
|
export interface GetContentGradeDetailRequest {
|
|
15
15
|
courseId: string;
|
|
16
16
|
moduleId: string;
|
|
@@ -49,6 +49,10 @@ export interface GetModuleStudentReportingRequest {
|
|
|
49
49
|
export interface GetPortalBasicReportingRequest {
|
|
50
50
|
portalId: string;
|
|
51
51
|
}
|
|
52
|
+
export interface GetPortalStudentReportingRequest {
|
|
53
|
+
portalId: string;
|
|
54
|
+
studentId: string;
|
|
55
|
+
}
|
|
52
56
|
/**
|
|
53
57
|
*
|
|
54
58
|
*/
|
|
@@ -117,4 +121,12 @@ export declare class ReportingApi extends runtime.BaseAPI {
|
|
|
117
121
|
* Get basic reporting for a portal
|
|
118
122
|
*/
|
|
119
123
|
getPortalBasicReporting(requestParameters: GetPortalBasicReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalBasicReporting>;
|
|
124
|
+
/**
|
|
125
|
+
* Get student reporting for a portal
|
|
126
|
+
*/
|
|
127
|
+
getPortalStudentReportingRaw(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalStudentReporting>>;
|
|
128
|
+
/**
|
|
129
|
+
* Get student reporting for a portal
|
|
130
|
+
*/
|
|
131
|
+
getPortalStudentReporting(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalStudentReporting>;
|
|
120
132
|
}
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetContentGradeDetailFromJSON, GetContentGradesFromJSON, GetContentInstructorBasicReportingFromJSON, GetCourseReportingBasicFromJSON, GetCourseStudentReportingFromJSON, GetModuleInstructorBasicReportingFromJSON, GetModuleStudentReportingFromJSON, GetPortalBasicReportingFromJSON, } from '../models/index';
|
|
24
|
+
import { GetContentGradeDetailFromJSON, GetContentGradesFromJSON, GetContentInstructorBasicReportingFromJSON, GetCourseReportingBasicFromJSON, GetCourseStudentReportingFromJSON, GetModuleInstructorBasicReportingFromJSON, GetModuleStudentReportingFromJSON, GetPortalBasicReportingFromJSON, GetPortalStudentReportingFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -292,4 +292,35 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
292
292
|
return yield response.value();
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
+
/**
|
|
296
|
+
* Get student reporting for a portal
|
|
297
|
+
*/
|
|
298
|
+
getPortalStudentReportingRaw(requestParameters, initOverrides) {
|
|
299
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
300
|
+
if (requestParameters['portalId'] == null) {
|
|
301
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getPortalStudentReporting().');
|
|
302
|
+
}
|
|
303
|
+
if (requestParameters['studentId'] == null) {
|
|
304
|
+
throw new runtime.RequiredError('studentId', 'Required parameter "studentId" was null or undefined when calling getPortalStudentReporting().');
|
|
305
|
+
}
|
|
306
|
+
const queryParameters = {};
|
|
307
|
+
const headerParameters = {};
|
|
308
|
+
const response = yield this.request({
|
|
309
|
+
path: `/portals/{portalId}/reporting/students/{studentId}`.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId']))).replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId']))),
|
|
310
|
+
method: 'GET',
|
|
311
|
+
headers: headerParameters,
|
|
312
|
+
query: queryParameters,
|
|
313
|
+
}, initOverrides);
|
|
314
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalStudentReportingFromJSON(jsonValue));
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Get student reporting for a portal
|
|
319
|
+
*/
|
|
320
|
+
getPortalStudentReporting(requestParameters, initOverrides) {
|
|
321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
322
|
+
const response = yield this.getPortalStudentReportingRaw(requestParameters, initOverrides);
|
|
323
|
+
return yield response.value();
|
|
324
|
+
});
|
|
325
|
+
}
|
|
295
326
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { GetPortalStudentReportingCertificates } from './GetPortalStudentReportingCertificates';
|
|
13
|
+
import type { GetPortalStudentReportingPortalInfo } from './GetPortalStudentReportingPortalInfo';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetPortalStudentReporting
|
|
18
|
+
*/
|
|
19
|
+
export interface GetPortalStudentReporting {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {GetPortalStudentReportingPortalInfo}
|
|
23
|
+
* @memberof GetPortalStudentReporting
|
|
24
|
+
*/
|
|
25
|
+
portalInfo: GetPortalStudentReportingPortalInfo;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {GetPortalStudentReportingCertificates}
|
|
29
|
+
* @memberof GetPortalStudentReporting
|
|
30
|
+
*/
|
|
31
|
+
certificates: GetPortalStudentReportingCertificates;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GetPortalStudentReporting interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfGetPortalStudentReporting(value: object): value is GetPortalStudentReporting;
|
|
37
|
+
export declare function GetPortalStudentReportingFromJSON(json: any): GetPortalStudentReporting;
|
|
38
|
+
export declare function GetPortalStudentReportingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReporting;
|
|
39
|
+
export declare function GetPortalStudentReportingToJSON(json: any): GetPortalStudentReporting;
|
|
40
|
+
export declare function GetPortalStudentReportingToJSONTyped(value?: GetPortalStudentReporting | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { GetPortalStudentReportingCertificatesFromJSON, GetPortalStudentReportingCertificatesToJSON, } from './GetPortalStudentReportingCertificates';
|
|
15
|
+
import { GetPortalStudentReportingPortalInfoFromJSON, GetPortalStudentReportingPortalInfoToJSON, } from './GetPortalStudentReportingPortalInfo';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the GetPortalStudentReporting interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfGetPortalStudentReporting(value) {
|
|
20
|
+
if (!('portalInfo' in value) || value['portalInfo'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('certificates' in value) || value['certificates'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetPortalStudentReportingFromJSON(json) {
|
|
27
|
+
return GetPortalStudentReportingFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetPortalStudentReportingFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'portalInfo': GetPortalStudentReportingPortalInfoFromJSON(json['portal_info']),
|
|
35
|
+
'certificates': GetPortalStudentReportingCertificatesFromJSON(json['certificates']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function GetPortalStudentReportingToJSON(json) {
|
|
39
|
+
return GetPortalStudentReportingToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function GetPortalStudentReportingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'portal_info': GetPortalStudentReportingPortalInfoToJSON(value['portalInfo']),
|
|
47
|
+
'certificates': GetPortalStudentReportingCertificatesToJSON(value['certificates']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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 GetPortalStudentReportingCertificates
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPortalStudentReportingCertificates {
|
|
18
|
+
/**
|
|
19
|
+
* Total number of certificates earned by the student
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetPortalStudentReportingCertificates
|
|
22
|
+
*/
|
|
23
|
+
certificatesEarnedCount: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetPortalStudentReportingCertificates interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetPortalStudentReportingCertificates(value: object): value is GetPortalStudentReportingCertificates;
|
|
29
|
+
export declare function GetPortalStudentReportingCertificatesFromJSON(json: any): GetPortalStudentReportingCertificates;
|
|
30
|
+
export declare function GetPortalStudentReportingCertificatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReportingCertificates;
|
|
31
|
+
export declare function GetPortalStudentReportingCertificatesToJSON(json: any): GetPortalStudentReportingCertificates;
|
|
32
|
+
export declare function GetPortalStudentReportingCertificatesToJSONTyped(value?: GetPortalStudentReportingCertificates | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 GetPortalStudentReportingCertificates interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetPortalStudentReportingCertificates(value) {
|
|
18
|
+
if (!('certificatesEarnedCount' in value) || value['certificatesEarnedCount'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function GetPortalStudentReportingCertificatesFromJSON(json) {
|
|
23
|
+
return GetPortalStudentReportingCertificatesFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function GetPortalStudentReportingCertificatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'certificatesEarnedCount': json['certificates_earned_count'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function GetPortalStudentReportingCertificatesToJSON(json) {
|
|
34
|
+
return GetPortalStudentReportingCertificatesToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GetPortalStudentReportingCertificatesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'certificates_earned_count': value['certificatesEarnedCount'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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 GetPortalStudentReportingPortalInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPortalStudentReportingPortalInfo {
|
|
18
|
+
/**
|
|
19
|
+
* Total number of courses the student is enrolled in
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
22
|
+
*/
|
|
23
|
+
enrolledCoursesCount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of courses the student has completed
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
28
|
+
*/
|
|
29
|
+
completedCoursesCount: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of courses currently in progress
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
34
|
+
*/
|
|
35
|
+
inProgressCoursesCount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetPortalStudentReportingPortalInfo interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetPortalStudentReportingPortalInfo(value: object): value is GetPortalStudentReportingPortalInfo;
|
|
41
|
+
export declare function GetPortalStudentReportingPortalInfoFromJSON(json: any): GetPortalStudentReportingPortalInfo;
|
|
42
|
+
export declare function GetPortalStudentReportingPortalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReportingPortalInfo;
|
|
43
|
+
export declare function GetPortalStudentReportingPortalInfoToJSON(json: any): GetPortalStudentReportingPortalInfo;
|
|
44
|
+
export declare function GetPortalStudentReportingPortalInfoToJSONTyped(value?: GetPortalStudentReportingPortalInfo | 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 GetPortalStudentReportingPortalInfo interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetPortalStudentReportingPortalInfo(value) {
|
|
18
|
+
if (!('enrolledCoursesCount' in value) || value['enrolledCoursesCount'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('completedCoursesCount' in value) || value['completedCoursesCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('inProgressCoursesCount' in value) || value['inProgressCoursesCount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function GetPortalStudentReportingPortalInfoFromJSON(json) {
|
|
27
|
+
return GetPortalStudentReportingPortalInfoFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function GetPortalStudentReportingPortalInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'enrolledCoursesCount': json['enrolled_courses_count'],
|
|
35
|
+
'completedCoursesCount': json['completed_courses_count'],
|
|
36
|
+
'inProgressCoursesCount': json['in_progress_courses_count'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function GetPortalStudentReportingPortalInfoToJSON(json) {
|
|
40
|
+
return GetPortalStudentReportingPortalInfoToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function GetPortalStudentReportingPortalInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'enrolled_courses_count': value['enrolledCoursesCount'],
|
|
48
|
+
'completed_courses_count': value['completedCoursesCount'],
|
|
49
|
+
'in_progress_courses_count': value['inProgressCoursesCount'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -40,6 +40,9 @@ export * from './GetPortalBasicReporting';
|
|
|
40
40
|
export * from './GetPortalBasicReportingCertificates';
|
|
41
41
|
export * from './GetPortalBasicReportingPortalInfo';
|
|
42
42
|
export * from './GetPortalList';
|
|
43
|
+
export * from './GetPortalStudentReporting';
|
|
44
|
+
export * from './GetPortalStudentReportingCertificates';
|
|
45
|
+
export * from './GetPortalStudentReportingPortalInfo';
|
|
43
46
|
export * from './GetPortalUser';
|
|
44
47
|
export * from './GetPortalUserList';
|
|
45
48
|
export * from './GetQuestion';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -42,6 +42,9 @@ export * from './GetPortalBasicReporting';
|
|
|
42
42
|
export * from './GetPortalBasicReportingCertificates';
|
|
43
43
|
export * from './GetPortalBasicReportingPortalInfo';
|
|
44
44
|
export * from './GetPortalList';
|
|
45
|
+
export * from './GetPortalStudentReporting';
|
|
46
|
+
export * from './GetPortalStudentReportingCertificates';
|
|
47
|
+
export * from './GetPortalStudentReportingPortalInfo';
|
|
45
48
|
export * from './GetPortalUser';
|
|
46
49
|
export * from './GetPortalUserList';
|
|
47
50
|
export * from './GetQuestion';
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { GetPortalStudentReportingCertificates } from './GetPortalStudentReportingCertificates';
|
|
13
|
+
import type { GetPortalStudentReportingPortalInfo } from './GetPortalStudentReportingPortalInfo';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetPortalStudentReporting
|
|
18
|
+
*/
|
|
19
|
+
export interface GetPortalStudentReporting {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {GetPortalStudentReportingPortalInfo}
|
|
23
|
+
* @memberof GetPortalStudentReporting
|
|
24
|
+
*/
|
|
25
|
+
portalInfo: GetPortalStudentReportingPortalInfo;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {GetPortalStudentReportingCertificates}
|
|
29
|
+
* @memberof GetPortalStudentReporting
|
|
30
|
+
*/
|
|
31
|
+
certificates: GetPortalStudentReportingCertificates;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GetPortalStudentReporting interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfGetPortalStudentReporting(value: object): value is GetPortalStudentReporting;
|
|
37
|
+
export declare function GetPortalStudentReportingFromJSON(json: any): GetPortalStudentReporting;
|
|
38
|
+
export declare function GetPortalStudentReportingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReporting;
|
|
39
|
+
export declare function GetPortalStudentReportingToJSON(json: any): GetPortalStudentReporting;
|
|
40
|
+
export declare function GetPortalStudentReportingToJSONTyped(value?: GetPortalStudentReporting | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfGetPortalStudentReporting = instanceOfGetPortalStudentReporting;
|
|
17
|
+
exports.GetPortalStudentReportingFromJSON = GetPortalStudentReportingFromJSON;
|
|
18
|
+
exports.GetPortalStudentReportingFromJSONTyped = GetPortalStudentReportingFromJSONTyped;
|
|
19
|
+
exports.GetPortalStudentReportingToJSON = GetPortalStudentReportingToJSON;
|
|
20
|
+
exports.GetPortalStudentReportingToJSONTyped = GetPortalStudentReportingToJSONTyped;
|
|
21
|
+
const GetPortalStudentReportingCertificates_1 = require("./GetPortalStudentReportingCertificates");
|
|
22
|
+
const GetPortalStudentReportingPortalInfo_1 = require("./GetPortalStudentReportingPortalInfo");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetPortalStudentReporting interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetPortalStudentReporting(value) {
|
|
27
|
+
if (!('portalInfo' in value) || value['portalInfo'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('certificates' in value) || value['certificates'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetPortalStudentReportingFromJSON(json) {
|
|
34
|
+
return GetPortalStudentReportingFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetPortalStudentReportingFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'portalInfo': (0, GetPortalStudentReportingPortalInfo_1.GetPortalStudentReportingPortalInfoFromJSON)(json['portal_info']),
|
|
42
|
+
'certificates': (0, GetPortalStudentReportingCertificates_1.GetPortalStudentReportingCertificatesFromJSON)(json['certificates']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function GetPortalStudentReportingToJSON(json) {
|
|
46
|
+
return GetPortalStudentReportingToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GetPortalStudentReportingToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'portal_info': (0, GetPortalStudentReportingPortalInfo_1.GetPortalStudentReportingPortalInfoToJSON)(value['portalInfo']),
|
|
54
|
+
'certificates': (0, GetPortalStudentReportingCertificates_1.GetPortalStudentReportingCertificatesToJSON)(value['certificates']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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 GetPortalStudentReportingCertificates
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPortalStudentReportingCertificates {
|
|
18
|
+
/**
|
|
19
|
+
* Total number of certificates earned by the student
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetPortalStudentReportingCertificates
|
|
22
|
+
*/
|
|
23
|
+
certificatesEarnedCount: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetPortalStudentReportingCertificates interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetPortalStudentReportingCertificates(value: object): value is GetPortalStudentReportingCertificates;
|
|
29
|
+
export declare function GetPortalStudentReportingCertificatesFromJSON(json: any): GetPortalStudentReportingCertificates;
|
|
30
|
+
export declare function GetPortalStudentReportingCertificatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReportingCertificates;
|
|
31
|
+
export declare function GetPortalStudentReportingCertificatesToJSON(json: any): GetPortalStudentReportingCertificates;
|
|
32
|
+
export declare function GetPortalStudentReportingCertificatesToJSONTyped(value?: GetPortalStudentReportingCertificates | 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.instanceOfGetPortalStudentReportingCertificates = instanceOfGetPortalStudentReportingCertificates;
|
|
17
|
+
exports.GetPortalStudentReportingCertificatesFromJSON = GetPortalStudentReportingCertificatesFromJSON;
|
|
18
|
+
exports.GetPortalStudentReportingCertificatesFromJSONTyped = GetPortalStudentReportingCertificatesFromJSONTyped;
|
|
19
|
+
exports.GetPortalStudentReportingCertificatesToJSON = GetPortalStudentReportingCertificatesToJSON;
|
|
20
|
+
exports.GetPortalStudentReportingCertificatesToJSONTyped = GetPortalStudentReportingCertificatesToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetPortalStudentReportingCertificates interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetPortalStudentReportingCertificates(value) {
|
|
25
|
+
if (!('certificatesEarnedCount' in value) || value['certificatesEarnedCount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GetPortalStudentReportingCertificatesFromJSON(json) {
|
|
30
|
+
return GetPortalStudentReportingCertificatesFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GetPortalStudentReportingCertificatesFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'certificatesEarnedCount': json['certificates_earned_count'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetPortalStudentReportingCertificatesToJSON(json) {
|
|
41
|
+
return GetPortalStudentReportingCertificatesToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetPortalStudentReportingCertificatesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'certificates_earned_count': value['certificatesEarnedCount'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 GetPortalStudentReportingPortalInfo
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPortalStudentReportingPortalInfo {
|
|
18
|
+
/**
|
|
19
|
+
* Total number of courses the student is enrolled in
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
22
|
+
*/
|
|
23
|
+
enrolledCoursesCount: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of courses the student has completed
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
28
|
+
*/
|
|
29
|
+
completedCoursesCount: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of courses currently in progress
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
34
|
+
*/
|
|
35
|
+
inProgressCoursesCount: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetPortalStudentReportingPortalInfo interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetPortalStudentReportingPortalInfo(value: object): value is GetPortalStudentReportingPortalInfo;
|
|
41
|
+
export declare function GetPortalStudentReportingPortalInfoFromJSON(json: any): GetPortalStudentReportingPortalInfo;
|
|
42
|
+
export declare function GetPortalStudentReportingPortalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReportingPortalInfo;
|
|
43
|
+
export declare function GetPortalStudentReportingPortalInfoToJSON(json: any): GetPortalStudentReportingPortalInfo;
|
|
44
|
+
export declare function GetPortalStudentReportingPortalInfoToJSONTyped(value?: GetPortalStudentReportingPortalInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfGetPortalStudentReportingPortalInfo = instanceOfGetPortalStudentReportingPortalInfo;
|
|
17
|
+
exports.GetPortalStudentReportingPortalInfoFromJSON = GetPortalStudentReportingPortalInfoFromJSON;
|
|
18
|
+
exports.GetPortalStudentReportingPortalInfoFromJSONTyped = GetPortalStudentReportingPortalInfoFromJSONTyped;
|
|
19
|
+
exports.GetPortalStudentReportingPortalInfoToJSON = GetPortalStudentReportingPortalInfoToJSON;
|
|
20
|
+
exports.GetPortalStudentReportingPortalInfoToJSONTyped = GetPortalStudentReportingPortalInfoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetPortalStudentReportingPortalInfo interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetPortalStudentReportingPortalInfo(value) {
|
|
25
|
+
if (!('enrolledCoursesCount' in value) || value['enrolledCoursesCount'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('completedCoursesCount' in value) || value['completedCoursesCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('inProgressCoursesCount' in value) || value['inProgressCoursesCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetPortalStudentReportingPortalInfoFromJSON(json) {
|
|
34
|
+
return GetPortalStudentReportingPortalInfoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetPortalStudentReportingPortalInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'enrolledCoursesCount': json['enrolled_courses_count'],
|
|
42
|
+
'completedCoursesCount': json['completed_courses_count'],
|
|
43
|
+
'inProgressCoursesCount': json['in_progress_courses_count'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function GetPortalStudentReportingPortalInfoToJSON(json) {
|
|
47
|
+
return GetPortalStudentReportingPortalInfoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GetPortalStudentReportingPortalInfoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'enrolled_courses_count': value['enrolledCoursesCount'],
|
|
55
|
+
'completed_courses_count': value['completedCoursesCount'],
|
|
56
|
+
'in_progress_courses_count': value['inProgressCoursesCount'],
|
|
57
|
+
};
|
|
58
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -40,6 +40,9 @@ export * from './GetPortalBasicReporting';
|
|
|
40
40
|
export * from './GetPortalBasicReportingCertificates';
|
|
41
41
|
export * from './GetPortalBasicReportingPortalInfo';
|
|
42
42
|
export * from './GetPortalList';
|
|
43
|
+
export * from './GetPortalStudentReporting';
|
|
44
|
+
export * from './GetPortalStudentReportingCertificates';
|
|
45
|
+
export * from './GetPortalStudentReportingPortalInfo';
|
|
43
46
|
export * from './GetPortalUser';
|
|
44
47
|
export * from './GetPortalUserList';
|
|
45
48
|
export * from './GetQuestion';
|
package/dist/models/index.js
CHANGED
|
@@ -58,6 +58,9 @@ __exportStar(require("./GetPortalBasicReporting"), exports);
|
|
|
58
58
|
__exportStar(require("./GetPortalBasicReportingCertificates"), exports);
|
|
59
59
|
__exportStar(require("./GetPortalBasicReportingPortalInfo"), exports);
|
|
60
60
|
__exportStar(require("./GetPortalList"), exports);
|
|
61
|
+
__exportStar(require("./GetPortalStudentReporting"), exports);
|
|
62
|
+
__exportStar(require("./GetPortalStudentReportingCertificates"), exports);
|
|
63
|
+
__exportStar(require("./GetPortalStudentReportingPortalInfo"), exports);
|
|
61
64
|
__exportStar(require("./GetPortalUser"), exports);
|
|
62
65
|
__exportStar(require("./GetPortalUserList"), exports);
|
|
63
66
|
__exportStar(require("./GetQuestion"), exports);
|
package/package.json
CHANGED
package/src/apis/ReportingApi.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type {
|
|
|
23
23
|
GetModuleInstructorBasicReporting,
|
|
24
24
|
GetModuleStudentReporting,
|
|
25
25
|
GetPortalBasicReporting,
|
|
26
|
+
GetPortalStudentReporting,
|
|
26
27
|
} from '../models/index';
|
|
27
28
|
import {
|
|
28
29
|
GetContentGradeDetailFromJSON,
|
|
@@ -41,6 +42,8 @@ import {
|
|
|
41
42
|
GetModuleStudentReportingToJSON,
|
|
42
43
|
GetPortalBasicReportingFromJSON,
|
|
43
44
|
GetPortalBasicReportingToJSON,
|
|
45
|
+
GetPortalStudentReportingFromJSON,
|
|
46
|
+
GetPortalStudentReportingToJSON,
|
|
44
47
|
} from '../models/index';
|
|
45
48
|
|
|
46
49
|
export interface GetContentGradeDetailRequest {
|
|
@@ -89,6 +92,11 @@ export interface GetPortalBasicReportingRequest {
|
|
|
89
92
|
portalId: string;
|
|
90
93
|
}
|
|
91
94
|
|
|
95
|
+
export interface GetPortalStudentReportingRequest {
|
|
96
|
+
portalId: string;
|
|
97
|
+
studentId: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
92
100
|
/**
|
|
93
101
|
*
|
|
94
102
|
*/
|
|
@@ -447,4 +455,44 @@ export class ReportingApi extends runtime.BaseAPI {
|
|
|
447
455
|
return await response.value();
|
|
448
456
|
}
|
|
449
457
|
|
|
458
|
+
/**
|
|
459
|
+
* Get student reporting for a portal
|
|
460
|
+
*/
|
|
461
|
+
async getPortalStudentReportingRaw(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalStudentReporting>> {
|
|
462
|
+
if (requestParameters['portalId'] == null) {
|
|
463
|
+
throw new runtime.RequiredError(
|
|
464
|
+
'portalId',
|
|
465
|
+
'Required parameter "portalId" was null or undefined when calling getPortalStudentReporting().'
|
|
466
|
+
);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
if (requestParameters['studentId'] == null) {
|
|
470
|
+
throw new runtime.RequiredError(
|
|
471
|
+
'studentId',
|
|
472
|
+
'Required parameter "studentId" was null or undefined when calling getPortalStudentReporting().'
|
|
473
|
+
);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
const queryParameters: any = {};
|
|
477
|
+
|
|
478
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
479
|
+
|
|
480
|
+
const response = await this.request({
|
|
481
|
+
path: `/portals/{portalId}/reporting/students/{studentId}`.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId']))).replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId']))),
|
|
482
|
+
method: 'GET',
|
|
483
|
+
headers: headerParameters,
|
|
484
|
+
query: queryParameters,
|
|
485
|
+
}, initOverrides);
|
|
486
|
+
|
|
487
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalStudentReportingFromJSON(jsonValue));
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Get student reporting for a portal
|
|
492
|
+
*/
|
|
493
|
+
async getPortalStudentReporting(requestParameters: GetPortalStudentReportingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalStudentReporting> {
|
|
494
|
+
const response = await this.getPortalStudentReportingRaw(requestParameters, initOverrides);
|
|
495
|
+
return await response.value();
|
|
496
|
+
}
|
|
497
|
+
|
|
450
498
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetPortalStudentReportingCertificates } from './GetPortalStudentReportingCertificates';
|
|
17
|
+
import {
|
|
18
|
+
GetPortalStudentReportingCertificatesFromJSON,
|
|
19
|
+
GetPortalStudentReportingCertificatesFromJSONTyped,
|
|
20
|
+
GetPortalStudentReportingCertificatesToJSON,
|
|
21
|
+
GetPortalStudentReportingCertificatesToJSONTyped,
|
|
22
|
+
} from './GetPortalStudentReportingCertificates';
|
|
23
|
+
import type { GetPortalStudentReportingPortalInfo } from './GetPortalStudentReportingPortalInfo';
|
|
24
|
+
import {
|
|
25
|
+
GetPortalStudentReportingPortalInfoFromJSON,
|
|
26
|
+
GetPortalStudentReportingPortalInfoFromJSONTyped,
|
|
27
|
+
GetPortalStudentReportingPortalInfoToJSON,
|
|
28
|
+
GetPortalStudentReportingPortalInfoToJSONTyped,
|
|
29
|
+
} from './GetPortalStudentReportingPortalInfo';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetPortalStudentReporting
|
|
35
|
+
*/
|
|
36
|
+
export interface GetPortalStudentReporting {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {GetPortalStudentReportingPortalInfo}
|
|
40
|
+
* @memberof GetPortalStudentReporting
|
|
41
|
+
*/
|
|
42
|
+
portalInfo: GetPortalStudentReportingPortalInfo;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {GetPortalStudentReportingCertificates}
|
|
46
|
+
* @memberof GetPortalStudentReporting
|
|
47
|
+
*/
|
|
48
|
+
certificates: GetPortalStudentReportingCertificates;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetPortalStudentReporting interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfGetPortalStudentReporting(value: object): value is GetPortalStudentReporting {
|
|
55
|
+
if (!('portalInfo' in value) || value['portalInfo'] === undefined) return false;
|
|
56
|
+
if (!('certificates' in value) || value['certificates'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function GetPortalStudentReportingFromJSON(json: any): GetPortalStudentReporting {
|
|
61
|
+
return GetPortalStudentReportingFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function GetPortalStudentReportingFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReporting {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'portalInfo': GetPortalStudentReportingPortalInfoFromJSON(json['portal_info']),
|
|
71
|
+
'certificates': GetPortalStudentReportingCertificatesFromJSON(json['certificates']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function GetPortalStudentReportingToJSON(json: any): GetPortalStudentReporting {
|
|
76
|
+
return GetPortalStudentReportingToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function GetPortalStudentReportingToJSONTyped(value?: GetPortalStudentReporting | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'portal_info': GetPortalStudentReportingPortalInfoToJSON(value['portalInfo']),
|
|
87
|
+
'certificates': GetPortalStudentReportingCertificatesToJSON(value['certificates']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetPortalStudentReportingCertificates
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPortalStudentReportingCertificates {
|
|
22
|
+
/**
|
|
23
|
+
* Total number of certificates earned by the student
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetPortalStudentReportingCertificates
|
|
26
|
+
*/
|
|
27
|
+
certificatesEarnedCount: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetPortalStudentReportingCertificates interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGetPortalStudentReportingCertificates(value: object): value is GetPortalStudentReportingCertificates {
|
|
34
|
+
if (!('certificatesEarnedCount' in value) || value['certificatesEarnedCount'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function GetPortalStudentReportingCertificatesFromJSON(json: any): GetPortalStudentReportingCertificates {
|
|
39
|
+
return GetPortalStudentReportingCertificatesFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function GetPortalStudentReportingCertificatesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReportingCertificates {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'certificatesEarnedCount': json['certificates_earned_count'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GetPortalStudentReportingCertificatesToJSON(json: any): GetPortalStudentReportingCertificates {
|
|
53
|
+
return GetPortalStudentReportingCertificatesToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GetPortalStudentReportingCertificatesToJSONTyped(value?: GetPortalStudentReportingCertificates | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'certificates_earned_count': value['certificatesEarnedCount'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetPortalStudentReportingPortalInfo
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPortalStudentReportingPortalInfo {
|
|
22
|
+
/**
|
|
23
|
+
* Total number of courses the student is enrolled in
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
26
|
+
*/
|
|
27
|
+
enrolledCoursesCount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Number of courses the student has completed
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
32
|
+
*/
|
|
33
|
+
completedCoursesCount: number;
|
|
34
|
+
/**
|
|
35
|
+
* Number of courses currently in progress
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetPortalStudentReportingPortalInfo
|
|
38
|
+
*/
|
|
39
|
+
inProgressCoursesCount: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GetPortalStudentReportingPortalInfo interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGetPortalStudentReportingPortalInfo(value: object): value is GetPortalStudentReportingPortalInfo {
|
|
46
|
+
if (!('enrolledCoursesCount' in value) || value['enrolledCoursesCount'] === undefined) return false;
|
|
47
|
+
if (!('completedCoursesCount' in value) || value['completedCoursesCount'] === undefined) return false;
|
|
48
|
+
if (!('inProgressCoursesCount' in value) || value['inProgressCoursesCount'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GetPortalStudentReportingPortalInfoFromJSON(json: any): GetPortalStudentReportingPortalInfo {
|
|
53
|
+
return GetPortalStudentReportingPortalInfoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GetPortalStudentReportingPortalInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalStudentReportingPortalInfo {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'enrolledCoursesCount': json['enrolled_courses_count'],
|
|
63
|
+
'completedCoursesCount': json['completed_courses_count'],
|
|
64
|
+
'inProgressCoursesCount': json['in_progress_courses_count'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function GetPortalStudentReportingPortalInfoToJSON(json: any): GetPortalStudentReportingPortalInfo {
|
|
69
|
+
return GetPortalStudentReportingPortalInfoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function GetPortalStudentReportingPortalInfoToJSONTyped(value?: GetPortalStudentReportingPortalInfo | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'enrolled_courses_count': value['enrolledCoursesCount'],
|
|
80
|
+
'completed_courses_count': value['completedCoursesCount'],
|
|
81
|
+
'in_progress_courses_count': value['inProgressCoursesCount'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -42,6 +42,9 @@ export * from './GetPortalBasicReporting';
|
|
|
42
42
|
export * from './GetPortalBasicReportingCertificates';
|
|
43
43
|
export * from './GetPortalBasicReportingPortalInfo';
|
|
44
44
|
export * from './GetPortalList';
|
|
45
|
+
export * from './GetPortalStudentReporting';
|
|
46
|
+
export * from './GetPortalStudentReportingCertificates';
|
|
47
|
+
export * from './GetPortalStudentReportingPortalInfo';
|
|
45
48
|
export * from './GetPortalUser';
|
|
46
49
|
export * from './GetPortalUserList';
|
|
47
50
|
export * from './GetQuestion';
|