@easyedu/js-lsm-api 1.130.0 → 1.131.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 +22 -0
- package/README.md +16 -2
- package/dist/apis/ReportingApi.d.ts +52 -0
- package/dist/apis/ReportingApi.js +131 -0
- package/dist/esm/apis/ReportingApi.d.ts +52 -0
- package/dist/esm/apis/ReportingApi.js +131 -0
- package/dist/esm/models/GetReportCatalog.d.ts +40 -0
- package/dist/esm/models/GetReportCatalog.js +49 -0
- package/dist/esm/models/GetReportQueryResult.d.ts +84 -0
- package/dist/esm/models/GetReportQueryResult.js +77 -0
- package/dist/esm/models/PostReportExport.d.ts +54 -0
- package/dist/esm/models/PostReportExport.js +56 -0
- package/dist/esm/models/PostReportQuery.d.ts +52 -0
- package/dist/esm/models/PostReportQuery.js +49 -0
- package/dist/esm/models/ReportCategory.d.ts +50 -0
- package/dist/esm/models/ReportCategory.js +58 -0
- package/dist/esm/models/ReportColumn.d.ts +59 -0
- package/dist/esm/models/ReportColumn.js +64 -0
- package/dist/esm/models/ReportDefinition.d.ts +89 -0
- package/dist/esm/models/ReportDefinition.js +85 -0
- package/dist/esm/models/ReportFilterDefinition.d.ts +94 -0
- package/dist/esm/models/ReportFilterDefinition.js +91 -0
- package/dist/esm/models/ReportFilterOption.d.ts +38 -0
- package/dist/esm/models/ReportFilterOption.js +47 -0
- package/dist/esm/models/ReportFilters.d.ts +105 -0
- package/dist/esm/models/ReportFilters.js +65 -0
- package/dist/esm/models/ReportSort.d.ts +46 -0
- package/dist/esm/models/ReportSort.js +54 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/GetReportCatalog.d.ts +40 -0
- package/dist/models/GetReportCatalog.js +56 -0
- package/dist/models/GetReportQueryResult.d.ts +84 -0
- package/dist/models/GetReportQueryResult.js +84 -0
- package/dist/models/PostReportExport.d.ts +54 -0
- package/dist/models/PostReportExport.js +64 -0
- package/dist/models/PostReportQuery.d.ts +52 -0
- package/dist/models/PostReportQuery.js +56 -0
- package/dist/models/ReportCategory.d.ts +50 -0
- package/dist/models/ReportCategory.js +66 -0
- package/dist/models/ReportColumn.d.ts +59 -0
- package/dist/models/ReportColumn.js +72 -0
- package/dist/models/ReportDefinition.d.ts +89 -0
- package/dist/models/ReportDefinition.js +93 -0
- package/dist/models/ReportFilterDefinition.d.ts +94 -0
- package/dist/models/ReportFilterDefinition.js +99 -0
- package/dist/models/ReportFilterOption.d.ts +38 -0
- package/dist/models/ReportFilterOption.js +54 -0
- package/dist/models/ReportFilters.d.ts +105 -0
- package/dist/models/ReportFilters.js +72 -0
- package/dist/models/ReportSort.d.ts +46 -0
- package/dist/models/ReportSort.js +62 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/GetReportCatalog.md +37 -0
- package/docs/GetReportQueryResult.md +50 -0
- package/docs/PostReportExport.md +38 -0
- package/docs/PostReportQuery.md +40 -0
- package/docs/ReportCategory.md +36 -0
- package/docs/ReportColumn.md +39 -0
- package/docs/ReportDefinition.md +48 -0
- package/docs/ReportFilterDefinition.md +45 -0
- package/docs/ReportFilterOption.md +36 -0
- package/docs/ReportFilters.md +59 -0
- package/docs/ReportSort.md +36 -0
- package/docs/ReportingApi.md +207 -0
- package/package.json +1 -1
- package/src/apis/ReportingApi.ts +181 -0
- package/src/models/GetReportCatalog.ts +90 -0
- package/src/models/GetReportQueryResult.ts +153 -0
- package/src/models/PostReportExport.ts +108 -0
- package/src/models/PostReportQuery.ts +104 -0
- package/src/models/ReportCategory.ts +90 -0
- package/src/models/ReportColumn.ts +102 -0
- package/src/models/ReportDefinition.ts +166 -0
- package/src/models/ReportFilterDefinition.ts +154 -0
- package/src/models/ReportFilterOption.ts +75 -0
- package/src/models/ReportFilters.ts +162 -0
- package/src/models/ReportSort.ts +86 -0
- package/src/models/index.ts +11 -0
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
* Report filters. Only filters listed in the report definition may be supplied; any other non-null filter is rejected with HTTP 400.
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ReportFilters
|
|
17
|
+
*/
|
|
18
|
+
export interface ReportFilters {
|
|
19
|
+
/**
|
|
20
|
+
* Case-insensitive match against names, emails and titles.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ReportFilters
|
|
23
|
+
*/
|
|
24
|
+
search?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Role base type, such as Learner or ClientManager.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ReportFilters
|
|
29
|
+
*/
|
|
30
|
+
userType?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Case-insensitive match against the company user field.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ReportFilters
|
|
35
|
+
*/
|
|
36
|
+
company?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ReportFilters
|
|
41
|
+
*/
|
|
42
|
+
status?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Limits the report to one team portal and its descendants.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ReportFilters
|
|
47
|
+
*/
|
|
48
|
+
teamPortalId?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof ReportFilters
|
|
53
|
+
*/
|
|
54
|
+
courseId?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ReportFilters
|
|
59
|
+
*/
|
|
60
|
+
tagId?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof ReportFilters
|
|
65
|
+
*/
|
|
66
|
+
managerId?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof ReportFilters
|
|
71
|
+
*/
|
|
72
|
+
dateFrom?: Date | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Date}
|
|
76
|
+
* @memberof ReportFilters
|
|
77
|
+
*/
|
|
78
|
+
dateTo?: Date | null;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof ReportFilters
|
|
83
|
+
*/
|
|
84
|
+
inactiveDays?: number | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof ReportFilters
|
|
89
|
+
*/
|
|
90
|
+
expiresWithinDays?: number | null;
|
|
91
|
+
/**
|
|
92
|
+
* Either yes or no.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof ReportFilters
|
|
95
|
+
*/
|
|
96
|
+
firstCourseStarted?: string | null;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the ReportFilters interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfReportFilters(value: object): value is ReportFilters;
|
|
102
|
+
export declare function ReportFiltersFromJSON(json: any): ReportFilters;
|
|
103
|
+
export declare function ReportFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportFilters;
|
|
104
|
+
export declare function ReportFiltersToJSON(json: any): ReportFilters;
|
|
105
|
+
export declare function ReportFiltersToJSONTyped(value?: ReportFilters | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.instanceOfReportFilters = instanceOfReportFilters;
|
|
17
|
+
exports.ReportFiltersFromJSON = ReportFiltersFromJSON;
|
|
18
|
+
exports.ReportFiltersFromJSONTyped = ReportFiltersFromJSONTyped;
|
|
19
|
+
exports.ReportFiltersToJSON = ReportFiltersToJSON;
|
|
20
|
+
exports.ReportFiltersToJSONTyped = ReportFiltersToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ReportFilters interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfReportFilters(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ReportFiltersFromJSON(json) {
|
|
28
|
+
return ReportFiltersFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ReportFiltersFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
36
|
+
'userType': json['user_type'] == null ? undefined : json['user_type'],
|
|
37
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
38
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
39
|
+
'teamPortalId': json['team_portal_id'] == null ? undefined : json['team_portal_id'],
|
|
40
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
41
|
+
'tagId': json['tag_id'] == null ? undefined : json['tag_id'],
|
|
42
|
+
'managerId': json['manager_id'] == null ? undefined : json['manager_id'],
|
|
43
|
+
'dateFrom': json['date_from'] == null ? undefined : (new Date(json['date_from'])),
|
|
44
|
+
'dateTo': json['date_to'] == null ? undefined : (new Date(json['date_to'])),
|
|
45
|
+
'inactiveDays': json['inactive_days'] == null ? undefined : json['inactive_days'],
|
|
46
|
+
'expiresWithinDays': json['expires_within_days'] == null ? undefined : json['expires_within_days'],
|
|
47
|
+
'firstCourseStarted': json['first_course_started'] == null ? undefined : json['first_course_started'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ReportFiltersToJSON(json) {
|
|
51
|
+
return ReportFiltersToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ReportFiltersToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'search': value['search'],
|
|
59
|
+
'user_type': value['userType'],
|
|
60
|
+
'company': value['company'],
|
|
61
|
+
'status': value['status'],
|
|
62
|
+
'team_portal_id': value['teamPortalId'],
|
|
63
|
+
'course_id': value['courseId'],
|
|
64
|
+
'tag_id': value['tagId'],
|
|
65
|
+
'manager_id': value['managerId'],
|
|
66
|
+
'date_from': value['dateFrom'] == null ? value['dateFrom'] : value['dateFrom'].toISOString().substring(0, 10),
|
|
67
|
+
'date_to': value['dateTo'] == null ? value['dateTo'] : value['dateTo'].toISOString().substring(0, 10),
|
|
68
|
+
'inactive_days': value['inactiveDays'],
|
|
69
|
+
'expires_within_days': value['expiresWithinDays'],
|
|
70
|
+
'first_course_started': value['firstCourseStarted'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 ReportSort
|
|
16
|
+
*/
|
|
17
|
+
export interface ReportSort {
|
|
18
|
+
/**
|
|
19
|
+
* A column key from the report definition.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ReportSort
|
|
22
|
+
*/
|
|
23
|
+
column: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {ReportSortDirectionEnum}
|
|
27
|
+
* @memberof ReportSort
|
|
28
|
+
*/
|
|
29
|
+
direction: ReportSortDirectionEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ReportSortDirectionEnum: {
|
|
35
|
+
readonly Asc: "asc";
|
|
36
|
+
readonly Desc: "desc";
|
|
37
|
+
};
|
|
38
|
+
export type ReportSortDirectionEnum = typeof ReportSortDirectionEnum[keyof typeof ReportSortDirectionEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the ReportSort interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfReportSort(value: object): value is ReportSort;
|
|
43
|
+
export declare function ReportSortFromJSON(json: any): ReportSort;
|
|
44
|
+
export declare function ReportSortFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportSort;
|
|
45
|
+
export declare function ReportSortToJSON(json: any): ReportSort;
|
|
46
|
+
export declare function ReportSortToJSONTyped(value?: ReportSort | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.ReportSortDirectionEnum = void 0;
|
|
17
|
+
exports.instanceOfReportSort = instanceOfReportSort;
|
|
18
|
+
exports.ReportSortFromJSON = ReportSortFromJSON;
|
|
19
|
+
exports.ReportSortFromJSONTyped = ReportSortFromJSONTyped;
|
|
20
|
+
exports.ReportSortToJSON = ReportSortToJSON;
|
|
21
|
+
exports.ReportSortToJSONTyped = ReportSortToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ReportSortDirectionEnum = {
|
|
26
|
+
Asc: 'asc',
|
|
27
|
+
Desc: 'desc'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ReportSort interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfReportSort(value) {
|
|
33
|
+
if (!('column' in value) || value['column'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('direction' in value) || value['direction'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ReportSortFromJSON(json) {
|
|
40
|
+
return ReportSortFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ReportSortFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'column': json['column'],
|
|
48
|
+
'direction': json['direction'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function ReportSortToJSON(json) {
|
|
52
|
+
return ReportSortToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function ReportSortToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'column': value['column'],
|
|
60
|
+
'direction': value['direction'],
|
|
61
|
+
};
|
|
62
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -133,6 +133,8 @@ export * from './GetQuestionAnswerChoicesInner';
|
|
|
133
133
|
export * from './GetQuestionList';
|
|
134
134
|
export * from './GetQuestionListFilters';
|
|
135
135
|
export * from './GetQuestionQuizzesInner';
|
|
136
|
+
export * from './GetReportCatalog';
|
|
137
|
+
export * from './GetReportQueryResult';
|
|
136
138
|
export * from './GetResource';
|
|
137
139
|
export * from './GetResourceList';
|
|
138
140
|
export * from './GetResourceSession';
|
|
@@ -274,6 +276,8 @@ export * from './PostQuestionImportCommit';
|
|
|
274
276
|
export * from './PostQuestionImportCommitItem';
|
|
275
277
|
export * from './PostQuestionImportCommitResponse';
|
|
276
278
|
export * from './PostQuestionImportParseResponse';
|
|
279
|
+
export * from './PostReportExport';
|
|
280
|
+
export * from './PostReportQuery';
|
|
277
281
|
export * from './PostResetPassword';
|
|
278
282
|
export * from './PostResource';
|
|
279
283
|
export * from './PostResourceSessionActivityEvent';
|
|
@@ -349,6 +353,13 @@ export * from './QuestionImportPreviewImage';
|
|
|
349
353
|
export * from './QuestionImportSource';
|
|
350
354
|
export * from './QuestionImportSourceSummary';
|
|
351
355
|
export * from './QuestionSelectionMethod';
|
|
356
|
+
export * from './ReportCategory';
|
|
357
|
+
export * from './ReportColumn';
|
|
358
|
+
export * from './ReportDefinition';
|
|
359
|
+
export * from './ReportFilterDefinition';
|
|
360
|
+
export * from './ReportFilterOption';
|
|
361
|
+
export * from './ReportFilters';
|
|
362
|
+
export * from './ReportSort';
|
|
352
363
|
export * from './ResourceSessionEnvironment';
|
|
353
364
|
export * from './ResourceSessionScormApiLogItem';
|
|
354
365
|
export * from './ResourceType';
|
package/dist/models/index.js
CHANGED
|
@@ -151,6 +151,8 @@ __exportStar(require("./GetQuestionAnswerChoicesInner"), exports);
|
|
|
151
151
|
__exportStar(require("./GetQuestionList"), exports);
|
|
152
152
|
__exportStar(require("./GetQuestionListFilters"), exports);
|
|
153
153
|
__exportStar(require("./GetQuestionQuizzesInner"), exports);
|
|
154
|
+
__exportStar(require("./GetReportCatalog"), exports);
|
|
155
|
+
__exportStar(require("./GetReportQueryResult"), exports);
|
|
154
156
|
__exportStar(require("./GetResource"), exports);
|
|
155
157
|
__exportStar(require("./GetResourceList"), exports);
|
|
156
158
|
__exportStar(require("./GetResourceSession"), exports);
|
|
@@ -292,6 +294,8 @@ __exportStar(require("./PostQuestionImportCommit"), exports);
|
|
|
292
294
|
__exportStar(require("./PostQuestionImportCommitItem"), exports);
|
|
293
295
|
__exportStar(require("./PostQuestionImportCommitResponse"), exports);
|
|
294
296
|
__exportStar(require("./PostQuestionImportParseResponse"), exports);
|
|
297
|
+
__exportStar(require("./PostReportExport"), exports);
|
|
298
|
+
__exportStar(require("./PostReportQuery"), exports);
|
|
295
299
|
__exportStar(require("./PostResetPassword"), exports);
|
|
296
300
|
__exportStar(require("./PostResource"), exports);
|
|
297
301
|
__exportStar(require("./PostResourceSessionActivityEvent"), exports);
|
|
@@ -367,6 +371,13 @@ __exportStar(require("./QuestionImportPreviewImage"), exports);
|
|
|
367
371
|
__exportStar(require("./QuestionImportSource"), exports);
|
|
368
372
|
__exportStar(require("./QuestionImportSourceSummary"), exports);
|
|
369
373
|
__exportStar(require("./QuestionSelectionMethod"), exports);
|
|
374
|
+
__exportStar(require("./ReportCategory"), exports);
|
|
375
|
+
__exportStar(require("./ReportColumn"), exports);
|
|
376
|
+
__exportStar(require("./ReportDefinition"), exports);
|
|
377
|
+
__exportStar(require("./ReportFilterDefinition"), exports);
|
|
378
|
+
__exportStar(require("./ReportFilterOption"), exports);
|
|
379
|
+
__exportStar(require("./ReportFilters"), exports);
|
|
380
|
+
__exportStar(require("./ReportSort"), exports);
|
|
370
381
|
__exportStar(require("./ResourceSessionEnvironment"), exports);
|
|
371
382
|
__exportStar(require("./ResourceSessionScormApiLogItem"), exports);
|
|
372
383
|
__exportStar(require("./ResourceType"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
# GetReportCatalog
|
|
3
|
+
|
|
4
|
+
Reports the caller may run in the selected portal.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`categories` | [Array<ReportCategory>](ReportCategory.md)
|
|
11
|
+
`reports` | [Array<ReportDefinition>](ReportDefinition.md)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { GetReportCatalog } from '@easyedu/js-lsm-api'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"categories": null,
|
|
21
|
+
"reports": null,
|
|
22
|
+
} satisfies GetReportCatalog
|
|
23
|
+
|
|
24
|
+
console.log(example)
|
|
25
|
+
|
|
26
|
+
// Convert the instance to a JSON string
|
|
27
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
28
|
+
console.log(exampleJSON)
|
|
29
|
+
|
|
30
|
+
// Parse the JSON string back to an object
|
|
31
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetReportCatalog
|
|
32
|
+
console.log(exampleParsed)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
36
|
+
|
|
37
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# GetReportQueryResult
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`reportKey` | string
|
|
10
|
+
`columns` | [Array<ReportColumn>](ReportColumn.md)
|
|
11
|
+
`rows` | Array<{ [key: string]: any; }>
|
|
12
|
+
`sort` | [ReportSort](ReportSort.md)
|
|
13
|
+
`page` | number
|
|
14
|
+
`pageSize` | number
|
|
15
|
+
`totalItems` | number
|
|
16
|
+
`totalPages` | number
|
|
17
|
+
`generatedAt` | number
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { GetReportQueryResult } from '@easyedu/js-lsm-api'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"reportKey": null,
|
|
27
|
+
"columns": null,
|
|
28
|
+
"rows": null,
|
|
29
|
+
"sort": null,
|
|
30
|
+
"page": null,
|
|
31
|
+
"pageSize": null,
|
|
32
|
+
"totalItems": null,
|
|
33
|
+
"totalPages": null,
|
|
34
|
+
"generatedAt": null,
|
|
35
|
+
} satisfies GetReportQueryResult
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetReportQueryResult
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# PostReportExport
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`filters` | [ReportFilters](ReportFilters.md)
|
|
10
|
+
`sort` | [ReportSort](ReportSort.md)
|
|
11
|
+
`format` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { PostReportExport } from '@easyedu/js-lsm-api'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"filters": null,
|
|
21
|
+
"sort": null,
|
|
22
|
+
"format": null,
|
|
23
|
+
} satisfies PostReportExport
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostReportExport
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# PostReportQuery
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`filters` | [ReportFilters](ReportFilters.md)
|
|
10
|
+
`sort` | [ReportSort](ReportSort.md)
|
|
11
|
+
`page` | number
|
|
12
|
+
`pageSize` | number
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { PostReportQuery } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"filters": null,
|
|
22
|
+
"sort": null,
|
|
23
|
+
"page": null,
|
|
24
|
+
"pageSize": null,
|
|
25
|
+
} satisfies PostReportQuery
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostReportQuery
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ReportCategory
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`key` | string
|
|
10
|
+
`label` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ReportCategory } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"key": null,
|
|
20
|
+
"label": null,
|
|
21
|
+
} satisfies ReportCategory
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReportCategory
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
# ReportColumn
|
|
3
|
+
|
|
4
|
+
One column in a report result. Row objects are keyed by column key.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`key` | string
|
|
11
|
+
`label` | string
|
|
12
|
+
`type` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { ReportColumn } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"key": null,
|
|
22
|
+
"label": null,
|
|
23
|
+
"type": null,
|
|
24
|
+
} satisfies ReportColumn
|
|
25
|
+
|
|
26
|
+
console.log(example)
|
|
27
|
+
|
|
28
|
+
// Convert the instance to a JSON string
|
|
29
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
30
|
+
console.log(exampleJSON)
|
|
31
|
+
|
|
32
|
+
// Parse the JSON string back to an object
|
|
33
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReportColumn
|
|
34
|
+
console.log(exampleParsed)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
38
|
+
|
|
39
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# ReportDefinition
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`key` | string
|
|
10
|
+
`title` | string
|
|
11
|
+
`description` | string
|
|
12
|
+
`category` | string
|
|
13
|
+
`permission` | string
|
|
14
|
+
`columns` | [Array<ReportColumn>](ReportColumn.md)
|
|
15
|
+
`filters` | [Array<ReportFilterDefinition>](ReportFilterDefinition.md)
|
|
16
|
+
`defaultSort` | [ReportSort](ReportSort.md)
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { ReportDefinition } from '@easyedu/js-lsm-api'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"key": null,
|
|
26
|
+
"title": null,
|
|
27
|
+
"description": null,
|
|
28
|
+
"category": null,
|
|
29
|
+
"permission": null,
|
|
30
|
+
"columns": null,
|
|
31
|
+
"filters": null,
|
|
32
|
+
"defaultSort": null,
|
|
33
|
+
} satisfies ReportDefinition
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReportDefinition
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
# ReportFilterDefinition
|
|
3
|
+
|
|
4
|
+
A filter accepted by a report. The key names the matching property in ReportFilters; a date_range filter maps to date_from and date_to.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`key` | string
|
|
11
|
+
`label` | string
|
|
12
|
+
`type` | string
|
|
13
|
+
`options` | [Array<ReportFilterOption>](ReportFilterOption.md)
|
|
14
|
+
`defaultDays` | number
|
|
15
|
+
`defaultValue` | number
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import type { ReportFilterDefinition } from '@easyedu/js-lsm-api'
|
|
21
|
+
|
|
22
|
+
// TODO: Update the object below with actual values
|
|
23
|
+
const example = {
|
|
24
|
+
"key": null,
|
|
25
|
+
"label": null,
|
|
26
|
+
"type": null,
|
|
27
|
+
"options": null,
|
|
28
|
+
"defaultDays": null,
|
|
29
|
+
"defaultValue": null,
|
|
30
|
+
} satisfies ReportFilterDefinition
|
|
31
|
+
|
|
32
|
+
console.log(example)
|
|
33
|
+
|
|
34
|
+
// Convert the instance to a JSON string
|
|
35
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
36
|
+
console.log(exampleJSON)
|
|
37
|
+
|
|
38
|
+
// Parse the JSON string back to an object
|
|
39
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReportFilterDefinition
|
|
40
|
+
console.log(exampleParsed)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
44
|
+
|
|
45
|
+
|