@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,153 @@
|
|
|
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 { ReportColumn } from './ReportColumn';
|
|
17
|
+
import {
|
|
18
|
+
ReportColumnFromJSON,
|
|
19
|
+
ReportColumnFromJSONTyped,
|
|
20
|
+
ReportColumnToJSON,
|
|
21
|
+
ReportColumnToJSONTyped,
|
|
22
|
+
} from './ReportColumn';
|
|
23
|
+
import type { ReportSort } from './ReportSort';
|
|
24
|
+
import {
|
|
25
|
+
ReportSortFromJSON,
|
|
26
|
+
ReportSortFromJSONTyped,
|
|
27
|
+
ReportSortToJSON,
|
|
28
|
+
ReportSortToJSONTyped,
|
|
29
|
+
} from './ReportSort';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetReportQueryResult
|
|
35
|
+
*/
|
|
36
|
+
export interface GetReportQueryResult {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetReportQueryResult
|
|
41
|
+
*/
|
|
42
|
+
reportKey: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<ReportColumn>}
|
|
46
|
+
* @memberof GetReportQueryResult
|
|
47
|
+
*/
|
|
48
|
+
columns: Array<ReportColumn>;
|
|
49
|
+
/**
|
|
50
|
+
* One object per row, keyed by column key.
|
|
51
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
52
|
+
* @memberof GetReportQueryResult
|
|
53
|
+
*/
|
|
54
|
+
rows: Array<{ [key: string]: any; }>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {ReportSort}
|
|
58
|
+
* @memberof GetReportQueryResult
|
|
59
|
+
*/
|
|
60
|
+
sort: ReportSort;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof GetReportQueryResult
|
|
65
|
+
*/
|
|
66
|
+
page: number;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof GetReportQueryResult
|
|
71
|
+
*/
|
|
72
|
+
pageSize: number;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof GetReportQueryResult
|
|
77
|
+
*/
|
|
78
|
+
totalItems: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof GetReportQueryResult
|
|
83
|
+
*/
|
|
84
|
+
totalPages: number;
|
|
85
|
+
/**
|
|
86
|
+
* Unix timestamp in seconds.
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof GetReportQueryResult
|
|
89
|
+
*/
|
|
90
|
+
generatedAt: number;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Check if a given object implements the GetReportQueryResult interface.
|
|
95
|
+
*/
|
|
96
|
+
export function instanceOfGetReportQueryResult(value: object): value is GetReportQueryResult {
|
|
97
|
+
if (!('reportKey' in value) || value['reportKey'] === undefined) return false;
|
|
98
|
+
if (!('columns' in value) || value['columns'] === undefined) return false;
|
|
99
|
+
if (!('rows' in value) || value['rows'] === undefined) return false;
|
|
100
|
+
if (!('sort' in value) || value['sort'] === undefined) return false;
|
|
101
|
+
if (!('page' in value) || value['page'] === undefined) return false;
|
|
102
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
|
|
103
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
104
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
105
|
+
if (!('generatedAt' in value) || value['generatedAt'] === undefined) return false;
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function GetReportQueryResultFromJSON(json: any): GetReportQueryResult {
|
|
110
|
+
return GetReportQueryResultFromJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function GetReportQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReportQueryResult {
|
|
114
|
+
if (json == null) {
|
|
115
|
+
return json;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'reportKey': json['report_key'],
|
|
120
|
+
'columns': ((json['columns'] as Array<any>).map(ReportColumnFromJSON)),
|
|
121
|
+
'rows': json['rows'],
|
|
122
|
+
'sort': ReportSortFromJSON(json['sort']),
|
|
123
|
+
'page': json['page'],
|
|
124
|
+
'pageSize': json['page_size'],
|
|
125
|
+
'totalItems': json['total_items'],
|
|
126
|
+
'totalPages': json['total_pages'],
|
|
127
|
+
'generatedAt': json['generated_at'],
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function GetReportQueryResultToJSON(json: any): GetReportQueryResult {
|
|
132
|
+
return GetReportQueryResultToJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function GetReportQueryResultToJSONTyped(value?: GetReportQueryResult | null, ignoreDiscriminator: boolean = false): any {
|
|
136
|
+
if (value == null) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
|
|
142
|
+
'report_key': value['reportKey'],
|
|
143
|
+
'columns': ((value['columns'] as Array<any>).map(ReportColumnToJSON)),
|
|
144
|
+
'rows': value['rows'],
|
|
145
|
+
'sort': ReportSortToJSON(value['sort']),
|
|
146
|
+
'page': value['page'],
|
|
147
|
+
'page_size': value['pageSize'],
|
|
148
|
+
'total_items': value['totalItems'],
|
|
149
|
+
'total_pages': value['totalPages'],
|
|
150
|
+
'generated_at': value['generatedAt'],
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
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 { ReportFilters } from './ReportFilters';
|
|
17
|
+
import {
|
|
18
|
+
ReportFiltersFromJSON,
|
|
19
|
+
ReportFiltersFromJSONTyped,
|
|
20
|
+
ReportFiltersToJSON,
|
|
21
|
+
ReportFiltersToJSONTyped,
|
|
22
|
+
} from './ReportFilters';
|
|
23
|
+
import type { ReportSort } from './ReportSort';
|
|
24
|
+
import {
|
|
25
|
+
ReportSortFromJSON,
|
|
26
|
+
ReportSortFromJSONTyped,
|
|
27
|
+
ReportSortToJSON,
|
|
28
|
+
ReportSortToJSONTyped,
|
|
29
|
+
} from './ReportSort';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PostReportExport
|
|
35
|
+
*/
|
|
36
|
+
export interface PostReportExport {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ReportFilters}
|
|
40
|
+
* @memberof PostReportExport
|
|
41
|
+
*/
|
|
42
|
+
filters?: ReportFilters;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ReportSort}
|
|
46
|
+
* @memberof PostReportExport
|
|
47
|
+
*/
|
|
48
|
+
sort?: ReportSort;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {PostReportExportFormatEnum}
|
|
52
|
+
* @memberof PostReportExport
|
|
53
|
+
*/
|
|
54
|
+
format: PostReportExportFormatEnum;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export const PostReportExportFormatEnum = {
|
|
62
|
+
Csv: 'csv',
|
|
63
|
+
Xlsx: 'xlsx'
|
|
64
|
+
} as const;
|
|
65
|
+
export type PostReportExportFormatEnum = typeof PostReportExportFormatEnum[keyof typeof PostReportExportFormatEnum];
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the PostReportExport interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfPostReportExport(value: object): value is PostReportExport {
|
|
72
|
+
if (!('format' in value) || value['format'] === undefined) return false;
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PostReportExportFromJSON(json: any): PostReportExport {
|
|
77
|
+
return PostReportExportFromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PostReportExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostReportExport {
|
|
81
|
+
if (json == null) {
|
|
82
|
+
return json;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'filters': json['filters'] == null ? undefined : ReportFiltersFromJSON(json['filters']),
|
|
87
|
+
'sort': json['sort'] == null ? undefined : ReportSortFromJSON(json['sort']),
|
|
88
|
+
'format': json['format'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function PostReportExportToJSON(json: any): PostReportExport {
|
|
93
|
+
return PostReportExportToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function PostReportExportToJSONTyped(value?: PostReportExport | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'filters': ReportFiltersToJSON(value['filters']),
|
|
104
|
+
'sort': ReportSortToJSON(value['sort']),
|
|
105
|
+
'format': value['format'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
@@ -0,0 +1,104 @@
|
|
|
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 { ReportFilters } from './ReportFilters';
|
|
17
|
+
import {
|
|
18
|
+
ReportFiltersFromJSON,
|
|
19
|
+
ReportFiltersFromJSONTyped,
|
|
20
|
+
ReportFiltersToJSON,
|
|
21
|
+
ReportFiltersToJSONTyped,
|
|
22
|
+
} from './ReportFilters';
|
|
23
|
+
import type { ReportSort } from './ReportSort';
|
|
24
|
+
import {
|
|
25
|
+
ReportSortFromJSON,
|
|
26
|
+
ReportSortFromJSONTyped,
|
|
27
|
+
ReportSortToJSON,
|
|
28
|
+
ReportSortToJSONTyped,
|
|
29
|
+
} from './ReportSort';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PostReportQuery
|
|
35
|
+
*/
|
|
36
|
+
export interface PostReportQuery {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {ReportFilters}
|
|
40
|
+
* @memberof PostReportQuery
|
|
41
|
+
*/
|
|
42
|
+
filters?: ReportFilters;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ReportSort}
|
|
46
|
+
* @memberof PostReportQuery
|
|
47
|
+
*/
|
|
48
|
+
sort?: ReportSort;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof PostReportQuery
|
|
53
|
+
*/
|
|
54
|
+
page?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof PostReportQuery
|
|
59
|
+
*/
|
|
60
|
+
pageSize?: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the PostReportQuery interface.
|
|
65
|
+
*/
|
|
66
|
+
export function instanceOfPostReportQuery(value: object): value is PostReportQuery {
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function PostReportQueryFromJSON(json: any): PostReportQuery {
|
|
71
|
+
return PostReportQueryFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function PostReportQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostReportQuery {
|
|
75
|
+
if (json == null) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'filters': json['filters'] == null ? undefined : ReportFiltersFromJSON(json['filters']),
|
|
81
|
+
'sort': json['sort'] == null ? undefined : ReportSortFromJSON(json['sort']),
|
|
82
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
83
|
+
'pageSize': json['page_size'] == null ? undefined : json['page_size'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function PostReportQueryToJSON(json: any): PostReportQuery {
|
|
88
|
+
return PostReportQueryToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function PostReportQueryToJSONTyped(value?: PostReportQuery | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'filters': ReportFiltersToJSON(value['filters']),
|
|
99
|
+
'sort': ReportSortToJSON(value['sort']),
|
|
100
|
+
'page': value['page'],
|
|
101
|
+
'page_size': value['pageSize'],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ReportCategory
|
|
20
|
+
*/
|
|
21
|
+
export interface ReportCategory {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {ReportCategoryKeyEnum}
|
|
25
|
+
* @memberof ReportCategory
|
|
26
|
+
*/
|
|
27
|
+
key: ReportCategoryKeyEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ReportCategory
|
|
32
|
+
*/
|
|
33
|
+
label: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ReportCategoryKeyEnum = {
|
|
41
|
+
Learners: 'learners',
|
|
42
|
+
Content: 'content',
|
|
43
|
+
Tags: 'tags',
|
|
44
|
+
Managers: 'managers',
|
|
45
|
+
Compliance: 'compliance',
|
|
46
|
+
Trends: 'trends'
|
|
47
|
+
} as const;
|
|
48
|
+
export type ReportCategoryKeyEnum = typeof ReportCategoryKeyEnum[keyof typeof ReportCategoryKeyEnum];
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the ReportCategory interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfReportCategory(value: object): value is ReportCategory {
|
|
55
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
56
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ReportCategoryFromJSON(json: any): ReportCategory {
|
|
61
|
+
return ReportCategoryFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ReportCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCategory {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'key': json['key'],
|
|
71
|
+
'label': json['label'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ReportCategoryToJSON(json: any): ReportCategory {
|
|
76
|
+
return ReportCategoryToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ReportCategoryToJSONTyped(value?: ReportCategory | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'key': value['key'],
|
|
87
|
+
'label': value['label'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
* One column in a report result. Row objects are keyed by column key.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ReportColumn
|
|
20
|
+
*/
|
|
21
|
+
export interface ReportColumn {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReportColumn
|
|
26
|
+
*/
|
|
27
|
+
key: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ReportColumn
|
|
32
|
+
*/
|
|
33
|
+
label: string;
|
|
34
|
+
/**
|
|
35
|
+
* Value format. text, email and status are strings; number, percent and hours are numbers (percent is 0-100); date is an ISO 8601 calendar date; tags is an array of tag names.
|
|
36
|
+
*
|
|
37
|
+
* @type {ReportColumnTypeEnum}
|
|
38
|
+
* @memberof ReportColumn
|
|
39
|
+
*/
|
|
40
|
+
type: ReportColumnTypeEnum;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export const ReportColumnTypeEnum = {
|
|
48
|
+
Text: 'text',
|
|
49
|
+
Email: 'email',
|
|
50
|
+
Status: 'status',
|
|
51
|
+
Number: 'number',
|
|
52
|
+
Percent: 'percent',
|
|
53
|
+
Hours: 'hours',
|
|
54
|
+
Date: 'date',
|
|
55
|
+
Tags: 'tags'
|
|
56
|
+
} as const;
|
|
57
|
+
export type ReportColumnTypeEnum = typeof ReportColumnTypeEnum[keyof typeof ReportColumnTypeEnum];
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ReportColumn interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfReportColumn(value: object): value is ReportColumn {
|
|
64
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
65
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
66
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ReportColumnFromJSON(json: any): ReportColumn {
|
|
71
|
+
return ReportColumnFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function ReportColumnFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportColumn {
|
|
75
|
+
if (json == null) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'key': json['key'],
|
|
81
|
+
'label': json['label'],
|
|
82
|
+
'type': json['type'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ReportColumnToJSON(json: any): ReportColumn {
|
|
87
|
+
return ReportColumnToJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function ReportColumnToJSONTyped(value?: ReportColumn | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'key': value['key'],
|
|
98
|
+
'label': value['label'],
|
|
99
|
+
'type': value['type'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|