@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
package/dist/esm/models/index.js
CHANGED
|
@@ -135,6 +135,8 @@ export * from './GetQuestionAnswerChoicesInner';
|
|
|
135
135
|
export * from './GetQuestionList';
|
|
136
136
|
export * from './GetQuestionListFilters';
|
|
137
137
|
export * from './GetQuestionQuizzesInner';
|
|
138
|
+
export * from './GetReportCatalog';
|
|
139
|
+
export * from './GetReportQueryResult';
|
|
138
140
|
export * from './GetResource';
|
|
139
141
|
export * from './GetResourceList';
|
|
140
142
|
export * from './GetResourceSession';
|
|
@@ -276,6 +278,8 @@ export * from './PostQuestionImportCommit';
|
|
|
276
278
|
export * from './PostQuestionImportCommitItem';
|
|
277
279
|
export * from './PostQuestionImportCommitResponse';
|
|
278
280
|
export * from './PostQuestionImportParseResponse';
|
|
281
|
+
export * from './PostReportExport';
|
|
282
|
+
export * from './PostReportQuery';
|
|
279
283
|
export * from './PostResetPassword';
|
|
280
284
|
export * from './PostResource';
|
|
281
285
|
export * from './PostResourceSessionActivityEvent';
|
|
@@ -351,6 +355,13 @@ export * from './QuestionImportPreviewImage';
|
|
|
351
355
|
export * from './QuestionImportSource';
|
|
352
356
|
export * from './QuestionImportSourceSummary';
|
|
353
357
|
export * from './QuestionSelectionMethod';
|
|
358
|
+
export * from './ReportCategory';
|
|
359
|
+
export * from './ReportColumn';
|
|
360
|
+
export * from './ReportDefinition';
|
|
361
|
+
export * from './ReportFilterDefinition';
|
|
362
|
+
export * from './ReportFilterOption';
|
|
363
|
+
export * from './ReportFilters';
|
|
364
|
+
export * from './ReportSort';
|
|
354
365
|
export * from './ResourceSessionEnvironment';
|
|
355
366
|
export * from './ResourceSessionScormApiLogItem';
|
|
356
367
|
export * from './ResourceType';
|
|
@@ -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 { ReportCategory } from './ReportCategory';
|
|
13
|
+
import type { ReportDefinition } from './ReportDefinition';
|
|
14
|
+
/**
|
|
15
|
+
* Reports the caller may run in the selected portal.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetReportCatalog
|
|
18
|
+
*/
|
|
19
|
+
export interface GetReportCatalog {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<ReportCategory>}
|
|
23
|
+
* @memberof GetReportCatalog
|
|
24
|
+
*/
|
|
25
|
+
categories: Array<ReportCategory>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<ReportDefinition>}
|
|
29
|
+
* @memberof GetReportCatalog
|
|
30
|
+
*/
|
|
31
|
+
reports: Array<ReportDefinition>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the GetReportCatalog interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfGetReportCatalog(value: object): value is GetReportCatalog;
|
|
37
|
+
export declare function GetReportCatalogFromJSON(json: any): GetReportCatalog;
|
|
38
|
+
export declare function GetReportCatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReportCatalog;
|
|
39
|
+
export declare function GetReportCatalogToJSON(json: any): GetReportCatalog;
|
|
40
|
+
export declare function GetReportCatalogToJSONTyped(value?: GetReportCatalog | 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.instanceOfGetReportCatalog = instanceOfGetReportCatalog;
|
|
17
|
+
exports.GetReportCatalogFromJSON = GetReportCatalogFromJSON;
|
|
18
|
+
exports.GetReportCatalogFromJSONTyped = GetReportCatalogFromJSONTyped;
|
|
19
|
+
exports.GetReportCatalogToJSON = GetReportCatalogToJSON;
|
|
20
|
+
exports.GetReportCatalogToJSONTyped = GetReportCatalogToJSONTyped;
|
|
21
|
+
const ReportCategory_1 = require("./ReportCategory");
|
|
22
|
+
const ReportDefinition_1 = require("./ReportDefinition");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetReportCatalog interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetReportCatalog(value) {
|
|
27
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('reports' in value) || value['reports'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetReportCatalogFromJSON(json) {
|
|
34
|
+
return GetReportCatalogFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetReportCatalogFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'categories': (json['categories'].map(ReportCategory_1.ReportCategoryFromJSON)),
|
|
42
|
+
'reports': (json['reports'].map(ReportDefinition_1.ReportDefinitionFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function GetReportCatalogToJSON(json) {
|
|
46
|
+
return GetReportCatalogToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GetReportCatalogToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'categories': (value['categories'].map(ReportCategory_1.ReportCategoryToJSON)),
|
|
54
|
+
'reports': (value['reports'].map(ReportDefinition_1.ReportDefinitionToJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { ReportColumn } from './ReportColumn';
|
|
13
|
+
import type { ReportSort } from './ReportSort';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface GetReportQueryResult
|
|
18
|
+
*/
|
|
19
|
+
export interface GetReportQueryResult {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof GetReportQueryResult
|
|
24
|
+
*/
|
|
25
|
+
reportKey: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<ReportColumn>}
|
|
29
|
+
* @memberof GetReportQueryResult
|
|
30
|
+
*/
|
|
31
|
+
columns: Array<ReportColumn>;
|
|
32
|
+
/**
|
|
33
|
+
* One object per row, keyed by column key.
|
|
34
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
35
|
+
* @memberof GetReportQueryResult
|
|
36
|
+
*/
|
|
37
|
+
rows: Array<{
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {ReportSort}
|
|
43
|
+
* @memberof GetReportQueryResult
|
|
44
|
+
*/
|
|
45
|
+
sort: ReportSort;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GetReportQueryResult
|
|
50
|
+
*/
|
|
51
|
+
page: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GetReportQueryResult
|
|
56
|
+
*/
|
|
57
|
+
pageSize: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof GetReportQueryResult
|
|
62
|
+
*/
|
|
63
|
+
totalItems: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof GetReportQueryResult
|
|
68
|
+
*/
|
|
69
|
+
totalPages: number;
|
|
70
|
+
/**
|
|
71
|
+
* Unix timestamp in seconds.
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof GetReportQueryResult
|
|
74
|
+
*/
|
|
75
|
+
generatedAt: number;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the GetReportQueryResult interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfGetReportQueryResult(value: object): value is GetReportQueryResult;
|
|
81
|
+
export declare function GetReportQueryResultFromJSON(json: any): GetReportQueryResult;
|
|
82
|
+
export declare function GetReportQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReportQueryResult;
|
|
83
|
+
export declare function GetReportQueryResultToJSON(json: any): GetReportQueryResult;
|
|
84
|
+
export declare function GetReportQueryResultToJSONTyped(value?: GetReportQueryResult | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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.instanceOfGetReportQueryResult = instanceOfGetReportQueryResult;
|
|
17
|
+
exports.GetReportQueryResultFromJSON = GetReportQueryResultFromJSON;
|
|
18
|
+
exports.GetReportQueryResultFromJSONTyped = GetReportQueryResultFromJSONTyped;
|
|
19
|
+
exports.GetReportQueryResultToJSON = GetReportQueryResultToJSON;
|
|
20
|
+
exports.GetReportQueryResultToJSONTyped = GetReportQueryResultToJSONTyped;
|
|
21
|
+
const ReportColumn_1 = require("./ReportColumn");
|
|
22
|
+
const ReportSort_1 = require("./ReportSort");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the GetReportQueryResult interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfGetReportQueryResult(value) {
|
|
27
|
+
if (!('reportKey' in value) || value['reportKey'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('columns' in value) || value['columns'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('rows' in value) || value['rows'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('sort' in value) || value['sort'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('generatedAt' in value) || value['generatedAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function GetReportQueryResultFromJSON(json) {
|
|
48
|
+
return GetReportQueryResultFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function GetReportQueryResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'reportKey': json['report_key'],
|
|
56
|
+
'columns': (json['columns'].map(ReportColumn_1.ReportColumnFromJSON)),
|
|
57
|
+
'rows': json['rows'],
|
|
58
|
+
'sort': (0, ReportSort_1.ReportSortFromJSON)(json['sort']),
|
|
59
|
+
'page': json['page'],
|
|
60
|
+
'pageSize': json['page_size'],
|
|
61
|
+
'totalItems': json['total_items'],
|
|
62
|
+
'totalPages': json['total_pages'],
|
|
63
|
+
'generatedAt': json['generated_at'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function GetReportQueryResultToJSON(json) {
|
|
67
|
+
return GetReportQueryResultToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function GetReportQueryResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'report_key': value['reportKey'],
|
|
75
|
+
'columns': (value['columns'].map(ReportColumn_1.ReportColumnToJSON)),
|
|
76
|
+
'rows': value['rows'],
|
|
77
|
+
'sort': (0, ReportSort_1.ReportSortToJSON)(value['sort']),
|
|
78
|
+
'page': value['page'],
|
|
79
|
+
'page_size': value['pageSize'],
|
|
80
|
+
'total_items': value['totalItems'],
|
|
81
|
+
'total_pages': value['totalPages'],
|
|
82
|
+
'generated_at': value['generatedAt'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { ReportFilters } from './ReportFilters';
|
|
13
|
+
import type { ReportSort } from './ReportSort';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PostReportExport
|
|
18
|
+
*/
|
|
19
|
+
export interface PostReportExport {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ReportFilters}
|
|
23
|
+
* @memberof PostReportExport
|
|
24
|
+
*/
|
|
25
|
+
filters?: ReportFilters;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ReportSort}
|
|
29
|
+
* @memberof PostReportExport
|
|
30
|
+
*/
|
|
31
|
+
sort?: ReportSort;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {PostReportExportFormatEnum}
|
|
35
|
+
* @memberof PostReportExport
|
|
36
|
+
*/
|
|
37
|
+
format: PostReportExportFormatEnum;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
export declare const PostReportExportFormatEnum: {
|
|
43
|
+
readonly Csv: "csv";
|
|
44
|
+
readonly Xlsx: "xlsx";
|
|
45
|
+
};
|
|
46
|
+
export type PostReportExportFormatEnum = typeof PostReportExportFormatEnum[keyof typeof PostReportExportFormatEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the PostReportExport interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfPostReportExport(value: object): value is PostReportExport;
|
|
51
|
+
export declare function PostReportExportFromJSON(json: any): PostReportExport;
|
|
52
|
+
export declare function PostReportExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostReportExport;
|
|
53
|
+
export declare function PostReportExportToJSON(json: any): PostReportExport;
|
|
54
|
+
export declare function PostReportExportToJSONTyped(value?: PostReportExport | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.PostReportExportFormatEnum = void 0;
|
|
17
|
+
exports.instanceOfPostReportExport = instanceOfPostReportExport;
|
|
18
|
+
exports.PostReportExportFromJSON = PostReportExportFromJSON;
|
|
19
|
+
exports.PostReportExportFromJSONTyped = PostReportExportFromJSONTyped;
|
|
20
|
+
exports.PostReportExportToJSON = PostReportExportToJSON;
|
|
21
|
+
exports.PostReportExportToJSONTyped = PostReportExportToJSONTyped;
|
|
22
|
+
const ReportFilters_1 = require("./ReportFilters");
|
|
23
|
+
const ReportSort_1 = require("./ReportSort");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.PostReportExportFormatEnum = {
|
|
28
|
+
Csv: 'csv',
|
|
29
|
+
Xlsx: 'xlsx'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PostReportExport interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfPostReportExport(value) {
|
|
35
|
+
if (!('format' in value) || value['format'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function PostReportExportFromJSON(json) {
|
|
40
|
+
return PostReportExportFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function PostReportExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'filters': json['filters'] == null ? undefined : (0, ReportFilters_1.ReportFiltersFromJSON)(json['filters']),
|
|
48
|
+
'sort': json['sort'] == null ? undefined : (0, ReportSort_1.ReportSortFromJSON)(json['sort']),
|
|
49
|
+
'format': json['format'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function PostReportExportToJSON(json) {
|
|
53
|
+
return PostReportExportToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function PostReportExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'filters': (0, ReportFilters_1.ReportFiltersToJSON)(value['filters']),
|
|
61
|
+
'sort': (0, ReportSort_1.ReportSortToJSON)(value['sort']),
|
|
62
|
+
'format': value['format'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { ReportFilters } from './ReportFilters';
|
|
13
|
+
import type { ReportSort } from './ReportSort';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PostReportQuery
|
|
18
|
+
*/
|
|
19
|
+
export interface PostReportQuery {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ReportFilters}
|
|
23
|
+
* @memberof PostReportQuery
|
|
24
|
+
*/
|
|
25
|
+
filters?: ReportFilters;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ReportSort}
|
|
29
|
+
* @memberof PostReportQuery
|
|
30
|
+
*/
|
|
31
|
+
sort?: ReportSort;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof PostReportQuery
|
|
36
|
+
*/
|
|
37
|
+
page?: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof PostReportQuery
|
|
42
|
+
*/
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the PostReportQuery interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfPostReportQuery(value: object): value is PostReportQuery;
|
|
49
|
+
export declare function PostReportQueryFromJSON(json: any): PostReportQuery;
|
|
50
|
+
export declare function PostReportQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostReportQuery;
|
|
51
|
+
export declare function PostReportQueryToJSON(json: any): PostReportQuery;
|
|
52
|
+
export declare function PostReportQueryToJSONTyped(value?: PostReportQuery | 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.instanceOfPostReportQuery = instanceOfPostReportQuery;
|
|
17
|
+
exports.PostReportQueryFromJSON = PostReportQueryFromJSON;
|
|
18
|
+
exports.PostReportQueryFromJSONTyped = PostReportQueryFromJSONTyped;
|
|
19
|
+
exports.PostReportQueryToJSON = PostReportQueryToJSON;
|
|
20
|
+
exports.PostReportQueryToJSONTyped = PostReportQueryToJSONTyped;
|
|
21
|
+
const ReportFilters_1 = require("./ReportFilters");
|
|
22
|
+
const ReportSort_1 = require("./ReportSort");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PostReportQuery interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPostReportQuery(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostReportQueryFromJSON(json) {
|
|
30
|
+
return PostReportQueryFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostReportQueryFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'filters': json['filters'] == null ? undefined : (0, ReportFilters_1.ReportFiltersFromJSON)(json['filters']),
|
|
38
|
+
'sort': json['sort'] == null ? undefined : (0, ReportSort_1.ReportSortFromJSON)(json['sort']),
|
|
39
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
40
|
+
'pageSize': json['page_size'] == null ? undefined : json['page_size'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PostReportQueryToJSON(json) {
|
|
44
|
+
return PostReportQueryToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PostReportQueryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'filters': (0, ReportFilters_1.ReportFiltersToJSON)(value['filters']),
|
|
52
|
+
'sort': (0, ReportSort_1.ReportSortToJSON)(value['sort']),
|
|
53
|
+
'page': value['page'],
|
|
54
|
+
'page_size': value['pageSize'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ReportCategory
|
|
16
|
+
*/
|
|
17
|
+
export interface ReportCategory {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {ReportCategoryKeyEnum}
|
|
21
|
+
* @memberof ReportCategory
|
|
22
|
+
*/
|
|
23
|
+
key: ReportCategoryKeyEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ReportCategory
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ReportCategoryKeyEnum: {
|
|
35
|
+
readonly Learners: "learners";
|
|
36
|
+
readonly Content: "content";
|
|
37
|
+
readonly Tags: "tags";
|
|
38
|
+
readonly Managers: "managers";
|
|
39
|
+
readonly Compliance: "compliance";
|
|
40
|
+
readonly Trends: "trends";
|
|
41
|
+
};
|
|
42
|
+
export type ReportCategoryKeyEnum = typeof ReportCategoryKeyEnum[keyof typeof ReportCategoryKeyEnum];
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ReportCategory interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfReportCategory(value: object): value is ReportCategory;
|
|
47
|
+
export declare function ReportCategoryFromJSON(json: any): ReportCategory;
|
|
48
|
+
export declare function ReportCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCategory;
|
|
49
|
+
export declare function ReportCategoryToJSON(json: any): ReportCategory;
|
|
50
|
+
export declare function ReportCategoryToJSONTyped(value?: ReportCategory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ReportCategoryKeyEnum = void 0;
|
|
17
|
+
exports.instanceOfReportCategory = instanceOfReportCategory;
|
|
18
|
+
exports.ReportCategoryFromJSON = ReportCategoryFromJSON;
|
|
19
|
+
exports.ReportCategoryFromJSONTyped = ReportCategoryFromJSONTyped;
|
|
20
|
+
exports.ReportCategoryToJSON = ReportCategoryToJSON;
|
|
21
|
+
exports.ReportCategoryToJSONTyped = ReportCategoryToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ReportCategoryKeyEnum = {
|
|
26
|
+
Learners: 'learners',
|
|
27
|
+
Content: 'content',
|
|
28
|
+
Tags: 'tags',
|
|
29
|
+
Managers: 'managers',
|
|
30
|
+
Compliance: 'compliance',
|
|
31
|
+
Trends: 'trends'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ReportCategory interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfReportCategory(value) {
|
|
37
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function ReportCategoryFromJSON(json) {
|
|
44
|
+
return ReportCategoryFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ReportCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'key': json['key'],
|
|
52
|
+
'label': json['label'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function ReportCategoryToJSON(json) {
|
|
56
|
+
return ReportCategoryToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ReportCategoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'key': value['key'],
|
|
64
|
+
'label': value['label'],
|
|
65
|
+
};
|
|
66
|
+
}
|