@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,85 @@
|
|
|
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 { ReportColumnFromJSON, ReportColumnToJSON, } from './ReportColumn';
|
|
15
|
+
import { ReportFilterDefinitionFromJSON, ReportFilterDefinitionToJSON, } from './ReportFilterDefinition';
|
|
16
|
+
import { ReportSortFromJSON, ReportSortToJSON, } from './ReportSort';
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ReportDefinitionCategoryEnum = {
|
|
21
|
+
Learners: 'learners',
|
|
22
|
+
Content: 'content',
|
|
23
|
+
Tags: 'tags',
|
|
24
|
+
Managers: 'managers',
|
|
25
|
+
Compliance: 'compliance',
|
|
26
|
+
Trends: 'trends'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ReportDefinition interface.
|
|
30
|
+
*/
|
|
31
|
+
export function instanceOfReportDefinition(value) {
|
|
32
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('permission' in value) || value['permission'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('columns' in value) || value['columns'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('filters' in value) || value['filters'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('defaultSort' in value) || value['defaultSort'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
export function ReportDefinitionFromJSON(json) {
|
|
51
|
+
return ReportDefinitionFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function ReportDefinitionFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'key': json['key'],
|
|
59
|
+
'title': json['title'],
|
|
60
|
+
'description': json['description'],
|
|
61
|
+
'category': json['category'],
|
|
62
|
+
'permission': json['permission'],
|
|
63
|
+
'columns': (json['columns'].map(ReportColumnFromJSON)),
|
|
64
|
+
'filters': (json['filters'].map(ReportFilterDefinitionFromJSON)),
|
|
65
|
+
'defaultSort': ReportSortFromJSON(json['default_sort']),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export function ReportDefinitionToJSON(json) {
|
|
69
|
+
return ReportDefinitionToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
export function ReportDefinitionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'key': value['key'],
|
|
77
|
+
'title': value['title'],
|
|
78
|
+
'description': value['description'],
|
|
79
|
+
'category': value['category'],
|
|
80
|
+
'permission': value['permission'],
|
|
81
|
+
'columns': (value['columns'].map(ReportColumnToJSON)),
|
|
82
|
+
'filters': (value['filters'].map(ReportFilterDefinitionToJSON)),
|
|
83
|
+
'default_sort': ReportSortToJSON(value['defaultSort']),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { ReportFilterOption } from './ReportFilterOption';
|
|
13
|
+
/**
|
|
14
|
+
* 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.
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ReportFilterDefinition
|
|
18
|
+
*/
|
|
19
|
+
export interface ReportFilterDefinition {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ReportFilterDefinitionKeyEnum}
|
|
23
|
+
* @memberof ReportFilterDefinition
|
|
24
|
+
*/
|
|
25
|
+
key: ReportFilterDefinitionKeyEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ReportFilterDefinition
|
|
30
|
+
*/
|
|
31
|
+
label: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ReportFilterDefinitionTypeEnum}
|
|
35
|
+
* @memberof ReportFilterDefinition
|
|
36
|
+
*/
|
|
37
|
+
type: ReportFilterDefinitionTypeEnum;
|
|
38
|
+
/**
|
|
39
|
+
* Allowed values for select filters.
|
|
40
|
+
* @type {Array<ReportFilterOption>}
|
|
41
|
+
* @memberof ReportFilterDefinition
|
|
42
|
+
*/
|
|
43
|
+
options: Array<ReportFilterOption>;
|
|
44
|
+
/**
|
|
45
|
+
* For date_range filters, the number of trailing days applied when neither date_from nor date_to is supplied. Null means no default date limit.
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof ReportFilterDefinition
|
|
49
|
+
*/
|
|
50
|
+
defaultDays: number | null;
|
|
51
|
+
/**
|
|
52
|
+
* For number filters, the value applied when none is supplied.
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof ReportFilterDefinition
|
|
55
|
+
*/
|
|
56
|
+
defaultValue: number | null;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export declare const ReportFilterDefinitionKeyEnum: {
|
|
62
|
+
readonly Search: "search";
|
|
63
|
+
readonly UserType: "user_type";
|
|
64
|
+
readonly Company: "company";
|
|
65
|
+
readonly Status: "status";
|
|
66
|
+
readonly TeamPortalId: "team_portal_id";
|
|
67
|
+
readonly CourseId: "course_id";
|
|
68
|
+
readonly TagId: "tag_id";
|
|
69
|
+
readonly ManagerId: "manager_id";
|
|
70
|
+
readonly DateRange: "date_range";
|
|
71
|
+
readonly InactiveDays: "inactive_days";
|
|
72
|
+
readonly ExpiresWithinDays: "expires_within_days";
|
|
73
|
+
readonly FirstCourseStarted: "first_course_started";
|
|
74
|
+
};
|
|
75
|
+
export type ReportFilterDefinitionKeyEnum = typeof ReportFilterDefinitionKeyEnum[keyof typeof ReportFilterDefinitionKeyEnum];
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const ReportFilterDefinitionTypeEnum: {
|
|
80
|
+
readonly Search: "search";
|
|
81
|
+
readonly Text: "text";
|
|
82
|
+
readonly Select: "select";
|
|
83
|
+
readonly DateRange: "date_range";
|
|
84
|
+
readonly Number: "number";
|
|
85
|
+
};
|
|
86
|
+
export type ReportFilterDefinitionTypeEnum = typeof ReportFilterDefinitionTypeEnum[keyof typeof ReportFilterDefinitionTypeEnum];
|
|
87
|
+
/**
|
|
88
|
+
* Check if a given object implements the ReportFilterDefinition interface.
|
|
89
|
+
*/
|
|
90
|
+
export declare function instanceOfReportFilterDefinition(value: object): value is ReportFilterDefinition;
|
|
91
|
+
export declare function ReportFilterDefinitionFromJSON(json: any): ReportFilterDefinition;
|
|
92
|
+
export declare function ReportFilterDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportFilterDefinition;
|
|
93
|
+
export declare function ReportFilterDefinitionToJSON(json: any): ReportFilterDefinition;
|
|
94
|
+
export declare function ReportFilterDefinitionToJSONTyped(value?: ReportFilterDefinition | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { ReportFilterOptionFromJSON, ReportFilterOptionToJSON, } from './ReportFilterOption';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ReportFilterDefinitionKeyEnum = {
|
|
19
|
+
Search: 'search',
|
|
20
|
+
UserType: 'user_type',
|
|
21
|
+
Company: 'company',
|
|
22
|
+
Status: 'status',
|
|
23
|
+
TeamPortalId: 'team_portal_id',
|
|
24
|
+
CourseId: 'course_id',
|
|
25
|
+
TagId: 'tag_id',
|
|
26
|
+
ManagerId: 'manager_id',
|
|
27
|
+
DateRange: 'date_range',
|
|
28
|
+
InactiveDays: 'inactive_days',
|
|
29
|
+
ExpiresWithinDays: 'expires_within_days',
|
|
30
|
+
FirstCourseStarted: 'first_course_started'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const ReportFilterDefinitionTypeEnum = {
|
|
36
|
+
Search: 'search',
|
|
37
|
+
Text: 'text',
|
|
38
|
+
Select: 'select',
|
|
39
|
+
DateRange: 'date_range',
|
|
40
|
+
Number: 'number'
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ReportFilterDefinition interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfReportFilterDefinition(value) {
|
|
46
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('options' in value) || value['options'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('defaultDays' in value) || value['defaultDays'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('defaultValue' in value) || value['defaultValue'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
export function ReportFilterDefinitionFromJSON(json) {
|
|
61
|
+
return ReportFilterDefinitionFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
export function ReportFilterDefinitionFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'key': json['key'],
|
|
69
|
+
'label': json['label'],
|
|
70
|
+
'type': json['type'],
|
|
71
|
+
'options': (json['options'].map(ReportFilterOptionFromJSON)),
|
|
72
|
+
'defaultDays': json['default_days'],
|
|
73
|
+
'defaultValue': json['default_value'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export function ReportFilterDefinitionToJSON(json) {
|
|
77
|
+
return ReportFilterDefinitionToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
export function ReportFilterDefinitionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'key': value['key'],
|
|
85
|
+
'label': value['label'],
|
|
86
|
+
'type': value['type'],
|
|
87
|
+
'options': (value['options'].map(ReportFilterOptionToJSON)),
|
|
88
|
+
'default_days': value['defaultDays'],
|
|
89
|
+
'default_value': value['defaultValue'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ReportFilterOption
|
|
16
|
+
*/
|
|
17
|
+
export interface ReportFilterOption {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ReportFilterOption
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ReportFilterOption
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ReportFilterOption interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfReportFilterOption(value: object): value is ReportFilterOption;
|
|
35
|
+
export declare function ReportFilterOptionFromJSON(json: any): ReportFilterOption;
|
|
36
|
+
export declare function ReportFilterOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportFilterOption;
|
|
37
|
+
export declare function ReportFilterOptionToJSON(json: any): ReportFilterOption;
|
|
38
|
+
export declare function ReportFilterOptionToJSONTyped(value?: ReportFilterOption | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 ReportFilterOption interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfReportFilterOption(value) {
|
|
18
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ReportFilterOptionFromJSON(json) {
|
|
25
|
+
return ReportFilterOptionFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ReportFilterOptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'value': json['value'],
|
|
33
|
+
'label': json['label'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ReportFilterOptionToJSON(json) {
|
|
37
|
+
return ReportFilterOptionToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ReportFilterOptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'value': value['value'],
|
|
45
|
+
'label': value['label'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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,65 @@
|
|
|
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 ReportFilters interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfReportFilters(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ReportFiltersFromJSON(json) {
|
|
21
|
+
return ReportFiltersFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ReportFiltersFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
29
|
+
'userType': json['user_type'] == null ? undefined : json['user_type'],
|
|
30
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
31
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
32
|
+
'teamPortalId': json['team_portal_id'] == null ? undefined : json['team_portal_id'],
|
|
33
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
34
|
+
'tagId': json['tag_id'] == null ? undefined : json['tag_id'],
|
|
35
|
+
'managerId': json['manager_id'] == null ? undefined : json['manager_id'],
|
|
36
|
+
'dateFrom': json['date_from'] == null ? undefined : (new Date(json['date_from'])),
|
|
37
|
+
'dateTo': json['date_to'] == null ? undefined : (new Date(json['date_to'])),
|
|
38
|
+
'inactiveDays': json['inactive_days'] == null ? undefined : json['inactive_days'],
|
|
39
|
+
'expiresWithinDays': json['expires_within_days'] == null ? undefined : json['expires_within_days'],
|
|
40
|
+
'firstCourseStarted': json['first_course_started'] == null ? undefined : json['first_course_started'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function ReportFiltersToJSON(json) {
|
|
44
|
+
return ReportFiltersToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function ReportFiltersToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'search': value['search'],
|
|
52
|
+
'user_type': value['userType'],
|
|
53
|
+
'company': value['company'],
|
|
54
|
+
'status': value['status'],
|
|
55
|
+
'team_portal_id': value['teamPortalId'],
|
|
56
|
+
'course_id': value['courseId'],
|
|
57
|
+
'tag_id': value['tagId'],
|
|
58
|
+
'manager_id': value['managerId'],
|
|
59
|
+
'date_from': value['dateFrom'] == null ? value['dateFrom'] : value['dateFrom'].toISOString().substring(0, 10),
|
|
60
|
+
'date_to': value['dateTo'] == null ? value['dateTo'] : value['dateTo'].toISOString().substring(0, 10),
|
|
61
|
+
'inactive_days': value['inactiveDays'],
|
|
62
|
+
'expires_within_days': value['expiresWithinDays'],
|
|
63
|
+
'first_course_started': value['firstCourseStarted'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -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,54 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const ReportSortDirectionEnum = {
|
|
18
|
+
Asc: 'asc',
|
|
19
|
+
Desc: 'desc'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ReportSort interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfReportSort(value) {
|
|
25
|
+
if (!('column' in value) || value['column'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('direction' in value) || value['direction'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function ReportSortFromJSON(json) {
|
|
32
|
+
return ReportSortFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function ReportSortFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'column': json['column'],
|
|
40
|
+
'direction': json['direction'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function ReportSortToJSON(json) {
|
|
44
|
+
return ReportSortToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function ReportSortToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'column': value['column'],
|
|
52
|
+
'direction': value['direction'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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';
|