@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,166 @@
|
|
|
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 { ReportFilterDefinition } from './ReportFilterDefinition';
|
|
24
|
+
import {
|
|
25
|
+
ReportFilterDefinitionFromJSON,
|
|
26
|
+
ReportFilterDefinitionFromJSONTyped,
|
|
27
|
+
ReportFilterDefinitionToJSON,
|
|
28
|
+
ReportFilterDefinitionToJSONTyped,
|
|
29
|
+
} from './ReportFilterDefinition';
|
|
30
|
+
import type { ReportSort } from './ReportSort';
|
|
31
|
+
import {
|
|
32
|
+
ReportSortFromJSON,
|
|
33
|
+
ReportSortFromJSONTyped,
|
|
34
|
+
ReportSortToJSON,
|
|
35
|
+
ReportSortToJSONTyped,
|
|
36
|
+
} from './ReportSort';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ReportDefinition
|
|
42
|
+
*/
|
|
43
|
+
export interface ReportDefinition {
|
|
44
|
+
/**
|
|
45
|
+
* Stable report identifier used in query and export paths.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ReportDefinition
|
|
48
|
+
*/
|
|
49
|
+
key: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ReportDefinition
|
|
54
|
+
*/
|
|
55
|
+
title: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof ReportDefinition
|
|
60
|
+
*/
|
|
61
|
+
description: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {ReportDefinitionCategoryEnum}
|
|
65
|
+
* @memberof ReportDefinition
|
|
66
|
+
*/
|
|
67
|
+
category: ReportDefinitionCategoryEnum;
|
|
68
|
+
/**
|
|
69
|
+
* Permission required to run the report.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ReportDefinition
|
|
72
|
+
*/
|
|
73
|
+
permission: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Array<ReportColumn>}
|
|
77
|
+
* @memberof ReportDefinition
|
|
78
|
+
*/
|
|
79
|
+
columns: Array<ReportColumn>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {Array<ReportFilterDefinition>}
|
|
83
|
+
* @memberof ReportDefinition
|
|
84
|
+
*/
|
|
85
|
+
filters: Array<ReportFilterDefinition>;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {ReportSort}
|
|
89
|
+
* @memberof ReportDefinition
|
|
90
|
+
*/
|
|
91
|
+
defaultSort: ReportSort;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export const ReportDefinitionCategoryEnum = {
|
|
99
|
+
Learners: 'learners',
|
|
100
|
+
Content: 'content',
|
|
101
|
+
Tags: 'tags',
|
|
102
|
+
Managers: 'managers',
|
|
103
|
+
Compliance: 'compliance',
|
|
104
|
+
Trends: 'trends'
|
|
105
|
+
} as const;
|
|
106
|
+
export type ReportDefinitionCategoryEnum = typeof ReportDefinitionCategoryEnum[keyof typeof ReportDefinitionCategoryEnum];
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the ReportDefinition interface.
|
|
111
|
+
*/
|
|
112
|
+
export function instanceOfReportDefinition(value: object): value is ReportDefinition {
|
|
113
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
114
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
115
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
116
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
117
|
+
if (!('permission' in value) || value['permission'] === undefined) return false;
|
|
118
|
+
if (!('columns' in value) || value['columns'] === undefined) return false;
|
|
119
|
+
if (!('filters' in value) || value['filters'] === undefined) return false;
|
|
120
|
+
if (!('defaultSort' in value) || value['defaultSort'] === undefined) return false;
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function ReportDefinitionFromJSON(json: any): ReportDefinition {
|
|
125
|
+
return ReportDefinitionFromJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function ReportDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDefinition {
|
|
129
|
+
if (json == null) {
|
|
130
|
+
return json;
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
|
|
134
|
+
'key': json['key'],
|
|
135
|
+
'title': json['title'],
|
|
136
|
+
'description': json['description'],
|
|
137
|
+
'category': json['category'],
|
|
138
|
+
'permission': json['permission'],
|
|
139
|
+
'columns': ((json['columns'] as Array<any>).map(ReportColumnFromJSON)),
|
|
140
|
+
'filters': ((json['filters'] as Array<any>).map(ReportFilterDefinitionFromJSON)),
|
|
141
|
+
'defaultSort': ReportSortFromJSON(json['default_sort']),
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function ReportDefinitionToJSON(json: any): ReportDefinition {
|
|
146
|
+
return ReportDefinitionToJSONTyped(json, false);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export function ReportDefinitionToJSONTyped(value?: ReportDefinition | null, ignoreDiscriminator: boolean = false): any {
|
|
150
|
+
if (value == null) {
|
|
151
|
+
return value;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return {
|
|
155
|
+
|
|
156
|
+
'key': value['key'],
|
|
157
|
+
'title': value['title'],
|
|
158
|
+
'description': value['description'],
|
|
159
|
+
'category': value['category'],
|
|
160
|
+
'permission': value['permission'],
|
|
161
|
+
'columns': ((value['columns'] as Array<any>).map(ReportColumnToJSON)),
|
|
162
|
+
'filters': ((value['filters'] as Array<any>).map(ReportFilterDefinitionToJSON)),
|
|
163
|
+
'default_sort': ReportSortToJSON(value['defaultSort']),
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
|
|
@@ -0,0 +1,154 @@
|
|
|
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 { ReportFilterOption } from './ReportFilterOption';
|
|
17
|
+
import {
|
|
18
|
+
ReportFilterOptionFromJSON,
|
|
19
|
+
ReportFilterOptionFromJSONTyped,
|
|
20
|
+
ReportFilterOptionToJSON,
|
|
21
|
+
ReportFilterOptionToJSONTyped,
|
|
22
|
+
} from './ReportFilterOption';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 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.
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface ReportFilterDefinition
|
|
29
|
+
*/
|
|
30
|
+
export interface ReportFilterDefinition {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {ReportFilterDefinitionKeyEnum}
|
|
34
|
+
* @memberof ReportFilterDefinition
|
|
35
|
+
*/
|
|
36
|
+
key: ReportFilterDefinitionKeyEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ReportFilterDefinition
|
|
41
|
+
*/
|
|
42
|
+
label: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ReportFilterDefinitionTypeEnum}
|
|
46
|
+
* @memberof ReportFilterDefinition
|
|
47
|
+
*/
|
|
48
|
+
type: ReportFilterDefinitionTypeEnum;
|
|
49
|
+
/**
|
|
50
|
+
* Allowed values for select filters.
|
|
51
|
+
* @type {Array<ReportFilterOption>}
|
|
52
|
+
* @memberof ReportFilterDefinition
|
|
53
|
+
*/
|
|
54
|
+
options: Array<ReportFilterOption>;
|
|
55
|
+
/**
|
|
56
|
+
* 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.
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof ReportFilterDefinition
|
|
60
|
+
*/
|
|
61
|
+
defaultDays: number | null;
|
|
62
|
+
/**
|
|
63
|
+
* For number filters, the value applied when none is supplied.
|
|
64
|
+
* @type {number}
|
|
65
|
+
* @memberof ReportFilterDefinition
|
|
66
|
+
*/
|
|
67
|
+
defaultValue: number | null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @export
|
|
73
|
+
*/
|
|
74
|
+
export const ReportFilterDefinitionKeyEnum = {
|
|
75
|
+
Search: 'search',
|
|
76
|
+
UserType: 'user_type',
|
|
77
|
+
Company: 'company',
|
|
78
|
+
Status: 'status',
|
|
79
|
+
TeamPortalId: 'team_portal_id',
|
|
80
|
+
CourseId: 'course_id',
|
|
81
|
+
TagId: 'tag_id',
|
|
82
|
+
ManagerId: 'manager_id',
|
|
83
|
+
DateRange: 'date_range',
|
|
84
|
+
InactiveDays: 'inactive_days',
|
|
85
|
+
ExpiresWithinDays: 'expires_within_days',
|
|
86
|
+
FirstCourseStarted: 'first_course_started'
|
|
87
|
+
} as const;
|
|
88
|
+
export type ReportFilterDefinitionKeyEnum = typeof ReportFilterDefinitionKeyEnum[keyof typeof ReportFilterDefinitionKeyEnum];
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @export
|
|
92
|
+
*/
|
|
93
|
+
export const ReportFilterDefinitionTypeEnum = {
|
|
94
|
+
Search: 'search',
|
|
95
|
+
Text: 'text',
|
|
96
|
+
Select: 'select',
|
|
97
|
+
DateRange: 'date_range',
|
|
98
|
+
Number: 'number'
|
|
99
|
+
} as const;
|
|
100
|
+
export type ReportFilterDefinitionTypeEnum = typeof ReportFilterDefinitionTypeEnum[keyof typeof ReportFilterDefinitionTypeEnum];
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the ReportFilterDefinition interface.
|
|
105
|
+
*/
|
|
106
|
+
export function instanceOfReportFilterDefinition(value: object): value is ReportFilterDefinition {
|
|
107
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
108
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
109
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
110
|
+
if (!('options' in value) || value['options'] === undefined) return false;
|
|
111
|
+
if (!('defaultDays' in value) || value['defaultDays'] === undefined) return false;
|
|
112
|
+
if (!('defaultValue' in value) || value['defaultValue'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function ReportFilterDefinitionFromJSON(json: any): ReportFilterDefinition {
|
|
117
|
+
return ReportFilterDefinitionFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function ReportFilterDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportFilterDefinition {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'key': json['key'],
|
|
127
|
+
'label': json['label'],
|
|
128
|
+
'type': json['type'],
|
|
129
|
+
'options': ((json['options'] as Array<any>).map(ReportFilterOptionFromJSON)),
|
|
130
|
+
'defaultDays': json['default_days'],
|
|
131
|
+
'defaultValue': json['default_value'],
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function ReportFilterDefinitionToJSON(json: any): ReportFilterDefinition {
|
|
136
|
+
return ReportFilterDefinitionToJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function ReportFilterDefinitionToJSONTyped(value?: ReportFilterDefinition | null, ignoreDiscriminator: boolean = false): any {
|
|
140
|
+
if (value == null) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'key': value['key'],
|
|
147
|
+
'label': value['label'],
|
|
148
|
+
'type': value['type'],
|
|
149
|
+
'options': ((value['options'] as Array<any>).map(ReportFilterOptionToJSON)),
|
|
150
|
+
'default_days': value['defaultDays'],
|
|
151
|
+
'default_value': value['defaultValue'],
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 ReportFilterOption
|
|
20
|
+
*/
|
|
21
|
+
export interface ReportFilterOption {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReportFilterOption
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ReportFilterOption
|
|
32
|
+
*/
|
|
33
|
+
label: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ReportFilterOption interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfReportFilterOption(value: object): value is ReportFilterOption {
|
|
40
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
41
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ReportFilterOptionFromJSON(json: any): ReportFilterOption {
|
|
46
|
+
return ReportFilterOptionFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ReportFilterOptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportFilterOption {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'value': json['value'],
|
|
56
|
+
'label': json['label'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ReportFilterOptionToJSON(json: any): ReportFilterOption {
|
|
61
|
+
return ReportFilterOptionToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ReportFilterOptionToJSONTyped(value?: ReportFilterOption | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'value': value['value'],
|
|
72
|
+
'label': value['label'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,162 @@
|
|
|
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
|
+
* Report filters. Only filters listed in the report definition may be supplied; any other non-null filter is rejected with HTTP 400.
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ReportFilters
|
|
21
|
+
*/
|
|
22
|
+
export interface ReportFilters {
|
|
23
|
+
/**
|
|
24
|
+
* Case-insensitive match against names, emails and titles.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ReportFilters
|
|
27
|
+
*/
|
|
28
|
+
search?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Role base type, such as Learner or ClientManager.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ReportFilters
|
|
33
|
+
*/
|
|
34
|
+
userType?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Case-insensitive match against the company user field.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ReportFilters
|
|
39
|
+
*/
|
|
40
|
+
company?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ReportFilters
|
|
45
|
+
*/
|
|
46
|
+
status?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Limits the report to one team portal and its descendants.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ReportFilters
|
|
51
|
+
*/
|
|
52
|
+
teamPortalId?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ReportFilters
|
|
57
|
+
*/
|
|
58
|
+
courseId?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ReportFilters
|
|
63
|
+
*/
|
|
64
|
+
tagId?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ReportFilters
|
|
69
|
+
*/
|
|
70
|
+
managerId?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Date}
|
|
74
|
+
* @memberof ReportFilters
|
|
75
|
+
*/
|
|
76
|
+
dateFrom?: Date | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Date}
|
|
80
|
+
* @memberof ReportFilters
|
|
81
|
+
*/
|
|
82
|
+
dateTo?: Date | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof ReportFilters
|
|
87
|
+
*/
|
|
88
|
+
inactiveDays?: number | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof ReportFilters
|
|
93
|
+
*/
|
|
94
|
+
expiresWithinDays?: number | null;
|
|
95
|
+
/**
|
|
96
|
+
* Either yes or no.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof ReportFilters
|
|
99
|
+
*/
|
|
100
|
+
firstCourseStarted?: string | null;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Check if a given object implements the ReportFilters interface.
|
|
105
|
+
*/
|
|
106
|
+
export function instanceOfReportFilters(value: object): value is ReportFilters {
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function ReportFiltersFromJSON(json: any): ReportFilters {
|
|
111
|
+
return ReportFiltersFromJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function ReportFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportFilters {
|
|
115
|
+
if (json == null) {
|
|
116
|
+
return json;
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
121
|
+
'userType': json['user_type'] == null ? undefined : json['user_type'],
|
|
122
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
123
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
124
|
+
'teamPortalId': json['team_portal_id'] == null ? undefined : json['team_portal_id'],
|
|
125
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
126
|
+
'tagId': json['tag_id'] == null ? undefined : json['tag_id'],
|
|
127
|
+
'managerId': json['manager_id'] == null ? undefined : json['manager_id'],
|
|
128
|
+
'dateFrom': json['date_from'] == null ? undefined : (new Date(json['date_from'])),
|
|
129
|
+
'dateTo': json['date_to'] == null ? undefined : (new Date(json['date_to'])),
|
|
130
|
+
'inactiveDays': json['inactive_days'] == null ? undefined : json['inactive_days'],
|
|
131
|
+
'expiresWithinDays': json['expires_within_days'] == null ? undefined : json['expires_within_days'],
|
|
132
|
+
'firstCourseStarted': json['first_course_started'] == null ? undefined : json['first_course_started'],
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function ReportFiltersToJSON(json: any): ReportFilters {
|
|
137
|
+
return ReportFiltersToJSONTyped(json, false);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function ReportFiltersToJSONTyped(value?: ReportFilters | null, ignoreDiscriminator: boolean = false): any {
|
|
141
|
+
if (value == null) {
|
|
142
|
+
return value;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'search': value['search'],
|
|
148
|
+
'user_type': value['userType'],
|
|
149
|
+
'company': value['company'],
|
|
150
|
+
'status': value['status'],
|
|
151
|
+
'team_portal_id': value['teamPortalId'],
|
|
152
|
+
'course_id': value['courseId'],
|
|
153
|
+
'tag_id': value['tagId'],
|
|
154
|
+
'manager_id': value['managerId'],
|
|
155
|
+
'date_from': value['dateFrom'] == null ? value['dateFrom'] : value['dateFrom'].toISOString().substring(0,10),
|
|
156
|
+
'date_to': value['dateTo'] == null ? value['dateTo'] : value['dateTo'].toISOString().substring(0,10),
|
|
157
|
+
'inactive_days': value['inactiveDays'],
|
|
158
|
+
'expires_within_days': value['expiresWithinDays'],
|
|
159
|
+
'first_course_started': value['firstCourseStarted'],
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
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 ReportSort
|
|
20
|
+
*/
|
|
21
|
+
export interface ReportSort {
|
|
22
|
+
/**
|
|
23
|
+
* A column key from the report definition.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReportSort
|
|
26
|
+
*/
|
|
27
|
+
column: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ReportSortDirectionEnum}
|
|
31
|
+
* @memberof ReportSort
|
|
32
|
+
*/
|
|
33
|
+
direction: ReportSortDirectionEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ReportSortDirectionEnum = {
|
|
41
|
+
Asc: 'asc',
|
|
42
|
+
Desc: 'desc'
|
|
43
|
+
} as const;
|
|
44
|
+
export type ReportSortDirectionEnum = typeof ReportSortDirectionEnum[keyof typeof ReportSortDirectionEnum];
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ReportSort interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfReportSort(value: object): value is ReportSort {
|
|
51
|
+
if (!('column' in value) || value['column'] === undefined) return false;
|
|
52
|
+
if (!('direction' in value) || value['direction'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ReportSortFromJSON(json: any): ReportSort {
|
|
57
|
+
return ReportSortFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ReportSortFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportSort {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'column': json['column'],
|
|
67
|
+
'direction': json['direction'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function ReportSortToJSON(json: any): ReportSort {
|
|
72
|
+
return ReportSortToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ReportSortToJSONTyped(value?: ReportSort | null, ignoreDiscriminator: boolean = false): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'column': value['column'],
|
|
83
|
+
'direction': value['direction'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
package/src/models/index.ts
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';
|