@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,59 @@
|
|
|
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
|
+
* One column in a report result. Row objects are keyed by column key.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ReportColumn
|
|
16
|
+
*/
|
|
17
|
+
export interface ReportColumn {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ReportColumn
|
|
22
|
+
*/
|
|
23
|
+
key: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ReportColumn
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* 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.
|
|
32
|
+
*
|
|
33
|
+
* @type {ReportColumnTypeEnum}
|
|
34
|
+
* @memberof ReportColumn
|
|
35
|
+
*/
|
|
36
|
+
type: ReportColumnTypeEnum;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const ReportColumnTypeEnum: {
|
|
42
|
+
readonly Text: "text";
|
|
43
|
+
readonly Email: "email";
|
|
44
|
+
readonly Status: "status";
|
|
45
|
+
readonly Number: "number";
|
|
46
|
+
readonly Percent: "percent";
|
|
47
|
+
readonly Hours: "hours";
|
|
48
|
+
readonly Date: "date";
|
|
49
|
+
readonly Tags: "tags";
|
|
50
|
+
};
|
|
51
|
+
export type ReportColumnTypeEnum = typeof ReportColumnTypeEnum[keyof typeof ReportColumnTypeEnum];
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the ReportColumn interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfReportColumn(value: object): value is ReportColumn;
|
|
56
|
+
export declare function ReportColumnFromJSON(json: any): ReportColumn;
|
|
57
|
+
export declare function ReportColumnFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportColumn;
|
|
58
|
+
export declare function ReportColumnToJSON(json: any): ReportColumn;
|
|
59
|
+
export declare function ReportColumnToJSONTyped(value?: ReportColumn | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ReportColumnTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfReportColumn = instanceOfReportColumn;
|
|
18
|
+
exports.ReportColumnFromJSON = ReportColumnFromJSON;
|
|
19
|
+
exports.ReportColumnFromJSONTyped = ReportColumnFromJSONTyped;
|
|
20
|
+
exports.ReportColumnToJSON = ReportColumnToJSON;
|
|
21
|
+
exports.ReportColumnToJSONTyped = ReportColumnToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ReportColumnTypeEnum = {
|
|
26
|
+
Text: 'text',
|
|
27
|
+
Email: 'email',
|
|
28
|
+
Status: 'status',
|
|
29
|
+
Number: 'number',
|
|
30
|
+
Percent: 'percent',
|
|
31
|
+
Hours: 'hours',
|
|
32
|
+
Date: 'date',
|
|
33
|
+
Tags: 'tags'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ReportColumn interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfReportColumn(value) {
|
|
39
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function ReportColumnFromJSON(json) {
|
|
48
|
+
return ReportColumnFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function ReportColumnFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'key': json['key'],
|
|
56
|
+
'label': json['label'],
|
|
57
|
+
'type': json['type'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function ReportColumnToJSON(json) {
|
|
61
|
+
return ReportColumnToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function ReportColumnToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'key': value['key'],
|
|
69
|
+
'label': value['label'],
|
|
70
|
+
'type': value['type'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { ReportFilterDefinition } from './ReportFilterDefinition';
|
|
14
|
+
import type { ReportSort } from './ReportSort';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface ReportDefinition
|
|
19
|
+
*/
|
|
20
|
+
export interface ReportDefinition {
|
|
21
|
+
/**
|
|
22
|
+
* Stable report identifier used in query and export paths.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof ReportDefinition
|
|
25
|
+
*/
|
|
26
|
+
key: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ReportDefinition
|
|
31
|
+
*/
|
|
32
|
+
title: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof ReportDefinition
|
|
37
|
+
*/
|
|
38
|
+
description: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {ReportDefinitionCategoryEnum}
|
|
42
|
+
* @memberof ReportDefinition
|
|
43
|
+
*/
|
|
44
|
+
category: ReportDefinitionCategoryEnum;
|
|
45
|
+
/**
|
|
46
|
+
* Permission required to run the report.
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof ReportDefinition
|
|
49
|
+
*/
|
|
50
|
+
permission: string;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {Array<ReportColumn>}
|
|
54
|
+
* @memberof ReportDefinition
|
|
55
|
+
*/
|
|
56
|
+
columns: Array<ReportColumn>;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<ReportFilterDefinition>}
|
|
60
|
+
* @memberof ReportDefinition
|
|
61
|
+
*/
|
|
62
|
+
filters: Array<ReportFilterDefinition>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {ReportSort}
|
|
66
|
+
* @memberof ReportDefinition
|
|
67
|
+
*/
|
|
68
|
+
defaultSort: ReportSort;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export declare const ReportDefinitionCategoryEnum: {
|
|
74
|
+
readonly Learners: "learners";
|
|
75
|
+
readonly Content: "content";
|
|
76
|
+
readonly Tags: "tags";
|
|
77
|
+
readonly Managers: "managers";
|
|
78
|
+
readonly Compliance: "compliance";
|
|
79
|
+
readonly Trends: "trends";
|
|
80
|
+
};
|
|
81
|
+
export type ReportDefinitionCategoryEnum = typeof ReportDefinitionCategoryEnum[keyof typeof ReportDefinitionCategoryEnum];
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the ReportDefinition interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfReportDefinition(value: object): value is ReportDefinition;
|
|
86
|
+
export declare function ReportDefinitionFromJSON(json: any): ReportDefinition;
|
|
87
|
+
export declare function ReportDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportDefinition;
|
|
88
|
+
export declare function ReportDefinitionToJSON(json: any): ReportDefinition;
|
|
89
|
+
export declare function ReportDefinitionToJSONTyped(value?: ReportDefinition | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,93 @@
|
|
|
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.ReportDefinitionCategoryEnum = void 0;
|
|
17
|
+
exports.instanceOfReportDefinition = instanceOfReportDefinition;
|
|
18
|
+
exports.ReportDefinitionFromJSON = ReportDefinitionFromJSON;
|
|
19
|
+
exports.ReportDefinitionFromJSONTyped = ReportDefinitionFromJSONTyped;
|
|
20
|
+
exports.ReportDefinitionToJSON = ReportDefinitionToJSON;
|
|
21
|
+
exports.ReportDefinitionToJSONTyped = ReportDefinitionToJSONTyped;
|
|
22
|
+
const ReportColumn_1 = require("./ReportColumn");
|
|
23
|
+
const ReportFilterDefinition_1 = require("./ReportFilterDefinition");
|
|
24
|
+
const ReportSort_1 = require("./ReportSort");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.ReportDefinitionCategoryEnum = {
|
|
29
|
+
Learners: 'learners',
|
|
30
|
+
Content: 'content',
|
|
31
|
+
Tags: 'tags',
|
|
32
|
+
Managers: 'managers',
|
|
33
|
+
Compliance: 'compliance',
|
|
34
|
+
Trends: 'trends'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ReportDefinition interface.
|
|
38
|
+
*/
|
|
39
|
+
function instanceOfReportDefinition(value) {
|
|
40
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('permission' in value) || value['permission'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('columns' in value) || value['columns'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('filters' in value) || value['filters'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('defaultSort' in value) || value['defaultSort'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
function ReportDefinitionFromJSON(json) {
|
|
59
|
+
return ReportDefinitionFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function ReportDefinitionFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'key': json['key'],
|
|
67
|
+
'title': json['title'],
|
|
68
|
+
'description': json['description'],
|
|
69
|
+
'category': json['category'],
|
|
70
|
+
'permission': json['permission'],
|
|
71
|
+
'columns': (json['columns'].map(ReportColumn_1.ReportColumnFromJSON)),
|
|
72
|
+
'filters': (json['filters'].map(ReportFilterDefinition_1.ReportFilterDefinitionFromJSON)),
|
|
73
|
+
'defaultSort': (0, ReportSort_1.ReportSortFromJSON)(json['default_sort']),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function ReportDefinitionToJSON(json) {
|
|
77
|
+
return ReportDefinitionToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
function ReportDefinitionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'key': value['key'],
|
|
85
|
+
'title': value['title'],
|
|
86
|
+
'description': value['description'],
|
|
87
|
+
'category': value['category'],
|
|
88
|
+
'permission': value['permission'],
|
|
89
|
+
'columns': (value['columns'].map(ReportColumn_1.ReportColumnToJSON)),
|
|
90
|
+
'filters': (value['filters'].map(ReportFilterDefinition_1.ReportFilterDefinitionToJSON)),
|
|
91
|
+
'default_sort': (0, ReportSort_1.ReportSortToJSON)(value['defaultSort']),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -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,99 @@
|
|
|
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.ReportFilterDefinitionTypeEnum = exports.ReportFilterDefinitionKeyEnum = void 0;
|
|
17
|
+
exports.instanceOfReportFilterDefinition = instanceOfReportFilterDefinition;
|
|
18
|
+
exports.ReportFilterDefinitionFromJSON = ReportFilterDefinitionFromJSON;
|
|
19
|
+
exports.ReportFilterDefinitionFromJSONTyped = ReportFilterDefinitionFromJSONTyped;
|
|
20
|
+
exports.ReportFilterDefinitionToJSON = ReportFilterDefinitionToJSON;
|
|
21
|
+
exports.ReportFilterDefinitionToJSONTyped = ReportFilterDefinitionToJSONTyped;
|
|
22
|
+
const ReportFilterOption_1 = require("./ReportFilterOption");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ReportFilterDefinitionKeyEnum = {
|
|
27
|
+
Search: 'search',
|
|
28
|
+
UserType: 'user_type',
|
|
29
|
+
Company: 'company',
|
|
30
|
+
Status: 'status',
|
|
31
|
+
TeamPortalId: 'team_portal_id',
|
|
32
|
+
CourseId: 'course_id',
|
|
33
|
+
TagId: 'tag_id',
|
|
34
|
+
ManagerId: 'manager_id',
|
|
35
|
+
DateRange: 'date_range',
|
|
36
|
+
InactiveDays: 'inactive_days',
|
|
37
|
+
ExpiresWithinDays: 'expires_within_days',
|
|
38
|
+
FirstCourseStarted: 'first_course_started'
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.ReportFilterDefinitionTypeEnum = {
|
|
44
|
+
Search: 'search',
|
|
45
|
+
Text: 'text',
|
|
46
|
+
Select: 'select',
|
|
47
|
+
DateRange: 'date_range',
|
|
48
|
+
Number: 'number'
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ReportFilterDefinition interface.
|
|
52
|
+
*/
|
|
53
|
+
function instanceOfReportFilterDefinition(value) {
|
|
54
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('options' in value) || value['options'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('defaultDays' in value) || value['defaultDays'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if (!('defaultValue' in value) || value['defaultValue'] === undefined)
|
|
65
|
+
return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
function ReportFilterDefinitionFromJSON(json) {
|
|
69
|
+
return ReportFilterDefinitionFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
function ReportFilterDefinitionFromJSONTyped(json, ignoreDiscriminator) {
|
|
72
|
+
if (json == null) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'key': json['key'],
|
|
77
|
+
'label': json['label'],
|
|
78
|
+
'type': json['type'],
|
|
79
|
+
'options': (json['options'].map(ReportFilterOption_1.ReportFilterOptionFromJSON)),
|
|
80
|
+
'defaultDays': json['default_days'],
|
|
81
|
+
'defaultValue': json['default_value'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function ReportFilterDefinitionToJSON(json) {
|
|
85
|
+
return ReportFilterDefinitionToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
function ReportFilterDefinitionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
'key': value['key'],
|
|
93
|
+
'label': value['label'],
|
|
94
|
+
'type': value['type'],
|
|
95
|
+
'options': (value['options'].map(ReportFilterOption_1.ReportFilterOptionToJSON)),
|
|
96
|
+
'default_days': value['defaultDays'],
|
|
97
|
+
'default_value': value['defaultValue'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -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,54 @@
|
|
|
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.instanceOfReportFilterOption = instanceOfReportFilterOption;
|
|
17
|
+
exports.ReportFilterOptionFromJSON = ReportFilterOptionFromJSON;
|
|
18
|
+
exports.ReportFilterOptionFromJSONTyped = ReportFilterOptionFromJSONTyped;
|
|
19
|
+
exports.ReportFilterOptionToJSON = ReportFilterOptionToJSON;
|
|
20
|
+
exports.ReportFilterOptionToJSONTyped = ReportFilterOptionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ReportFilterOption interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfReportFilterOption(value) {
|
|
25
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ReportFilterOptionFromJSON(json) {
|
|
32
|
+
return ReportFilterOptionFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ReportFilterOptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'value': json['value'],
|
|
40
|
+
'label': json['label'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function ReportFilterOptionToJSON(json) {
|
|
44
|
+
return ReportFilterOptionToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ReportFilterOptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'value': value['value'],
|
|
52
|
+
'label': value['label'],
|
|
53
|
+
};
|
|
54
|
+
}
|