@easyedu/js-lsm-api 1.129.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 +28 -0
- package/README.md +19 -2
- package/dist/apis/MarketingApi.d.ts +34 -0
- package/dist/apis/MarketingApi.js +74 -0
- package/dist/apis/ReportingApi.d.ts +52 -0
- package/dist/apis/ReportingApi.js +131 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/MarketingApi.d.ts +34 -0
- package/dist/esm/apis/MarketingApi.js +70 -0
- package/dist/esm/apis/ReportingApi.d.ts +52 -0
- package/dist/esm/apis/ReportingApi.js +131 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -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/PostDemoRequest.d.ts +100 -0
- package/dist/esm/models/PostDemoRequest.js +83 -0
- package/dist/esm/models/PostDemoRequestResponse.d.ts +38 -0
- package/dist/esm/models/PostDemoRequestResponse.js +47 -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 +13 -0
- package/dist/esm/models/index.js +13 -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/PostDemoRequest.d.ts +100 -0
- package/dist/models/PostDemoRequest.js +91 -0
- package/dist/models/PostDemoRequestResponse.d.ts +38 -0
- package/dist/models/PostDemoRequestResponse.js +54 -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 +13 -0
- package/dist/models/index.js +13 -0
- package/docs/GetReportCatalog.md +37 -0
- package/docs/GetReportQueryResult.md +50 -0
- package/docs/MarketingApi.md +78 -0
- package/docs/PostDemoRequest.md +50 -0
- package/docs/PostDemoRequestResponse.md +36 -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/MarketingApi.ts +83 -0
- package/src/apis/ReportingApi.ts +181 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetReportCatalog.ts +90 -0
- package/src/models/GetReportQueryResult.ts +153 -0
- package/src/models/PostDemoRequest.ts +157 -0
- package/src/models/PostDemoRequestResponse.ts +75 -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 +13 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PostReportExportFormatEnum = void 0;
|
|
17
|
+
exports.instanceOfPostReportExport = instanceOfPostReportExport;
|
|
18
|
+
exports.PostReportExportFromJSON = PostReportExportFromJSON;
|
|
19
|
+
exports.PostReportExportFromJSONTyped = PostReportExportFromJSONTyped;
|
|
20
|
+
exports.PostReportExportToJSON = PostReportExportToJSON;
|
|
21
|
+
exports.PostReportExportToJSONTyped = PostReportExportToJSONTyped;
|
|
22
|
+
const ReportFilters_1 = require("./ReportFilters");
|
|
23
|
+
const ReportSort_1 = require("./ReportSort");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.PostReportExportFormatEnum = {
|
|
28
|
+
Csv: 'csv',
|
|
29
|
+
Xlsx: 'xlsx'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PostReportExport interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfPostReportExport(value) {
|
|
35
|
+
if (!('format' in value) || value['format'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function PostReportExportFromJSON(json) {
|
|
40
|
+
return PostReportExportFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function PostReportExportFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'filters': json['filters'] == null ? undefined : (0, ReportFilters_1.ReportFiltersFromJSON)(json['filters']),
|
|
48
|
+
'sort': json['sort'] == null ? undefined : (0, ReportSort_1.ReportSortFromJSON)(json['sort']),
|
|
49
|
+
'format': json['format'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function PostReportExportToJSON(json) {
|
|
53
|
+
return PostReportExportToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function PostReportExportToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'filters': (0, ReportFilters_1.ReportFiltersToJSON)(value['filters']),
|
|
61
|
+
'sort': (0, ReportSort_1.ReportSortToJSON)(value['sort']),
|
|
62
|
+
'format': value['format'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ReportFilters } from './ReportFilters';
|
|
13
|
+
import type { ReportSort } from './ReportSort';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PostReportQuery
|
|
18
|
+
*/
|
|
19
|
+
export interface PostReportQuery {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ReportFilters}
|
|
23
|
+
* @memberof PostReportQuery
|
|
24
|
+
*/
|
|
25
|
+
filters?: ReportFilters;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {ReportSort}
|
|
29
|
+
* @memberof PostReportQuery
|
|
30
|
+
*/
|
|
31
|
+
sort?: ReportSort;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof PostReportQuery
|
|
36
|
+
*/
|
|
37
|
+
page?: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof PostReportQuery
|
|
42
|
+
*/
|
|
43
|
+
pageSize?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the PostReportQuery interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfPostReportQuery(value: object): value is PostReportQuery;
|
|
49
|
+
export declare function PostReportQueryFromJSON(json: any): PostReportQuery;
|
|
50
|
+
export declare function PostReportQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostReportQuery;
|
|
51
|
+
export declare function PostReportQueryToJSON(json: any): PostReportQuery;
|
|
52
|
+
export declare function PostReportQueryToJSONTyped(value?: PostReportQuery | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPostReportQuery = instanceOfPostReportQuery;
|
|
17
|
+
exports.PostReportQueryFromJSON = PostReportQueryFromJSON;
|
|
18
|
+
exports.PostReportQueryFromJSONTyped = PostReportQueryFromJSONTyped;
|
|
19
|
+
exports.PostReportQueryToJSON = PostReportQueryToJSON;
|
|
20
|
+
exports.PostReportQueryToJSONTyped = PostReportQueryToJSONTyped;
|
|
21
|
+
const ReportFilters_1 = require("./ReportFilters");
|
|
22
|
+
const ReportSort_1 = require("./ReportSort");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PostReportQuery interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPostReportQuery(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostReportQueryFromJSON(json) {
|
|
30
|
+
return PostReportQueryFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostReportQueryFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'filters': json['filters'] == null ? undefined : (0, ReportFilters_1.ReportFiltersFromJSON)(json['filters']),
|
|
38
|
+
'sort': json['sort'] == null ? undefined : (0, ReportSort_1.ReportSortFromJSON)(json['sort']),
|
|
39
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
40
|
+
'pageSize': json['page_size'] == null ? undefined : json['page_size'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PostReportQueryToJSON(json) {
|
|
44
|
+
return PostReportQueryToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PostReportQueryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'filters': (0, ReportFilters_1.ReportFiltersToJSON)(value['filters']),
|
|
52
|
+
'sort': (0, ReportSort_1.ReportSortToJSON)(value['sort']),
|
|
53
|
+
'page': value['page'],
|
|
54
|
+
'page_size': value['pageSize'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ReportCategory
|
|
16
|
+
*/
|
|
17
|
+
export interface ReportCategory {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {ReportCategoryKeyEnum}
|
|
21
|
+
* @memberof ReportCategory
|
|
22
|
+
*/
|
|
23
|
+
key: ReportCategoryKeyEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ReportCategory
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ReportCategoryKeyEnum: {
|
|
35
|
+
readonly Learners: "learners";
|
|
36
|
+
readonly Content: "content";
|
|
37
|
+
readonly Tags: "tags";
|
|
38
|
+
readonly Managers: "managers";
|
|
39
|
+
readonly Compliance: "compliance";
|
|
40
|
+
readonly Trends: "trends";
|
|
41
|
+
};
|
|
42
|
+
export type ReportCategoryKeyEnum = typeof ReportCategoryKeyEnum[keyof typeof ReportCategoryKeyEnum];
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ReportCategory interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfReportCategory(value: object): value is ReportCategory;
|
|
47
|
+
export declare function ReportCategoryFromJSON(json: any): ReportCategory;
|
|
48
|
+
export declare function ReportCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCategory;
|
|
49
|
+
export declare function ReportCategoryToJSON(json: any): ReportCategory;
|
|
50
|
+
export declare function ReportCategoryToJSONTyped(value?: ReportCategory | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ReportCategoryKeyEnum = void 0;
|
|
17
|
+
exports.instanceOfReportCategory = instanceOfReportCategory;
|
|
18
|
+
exports.ReportCategoryFromJSON = ReportCategoryFromJSON;
|
|
19
|
+
exports.ReportCategoryFromJSONTyped = ReportCategoryFromJSONTyped;
|
|
20
|
+
exports.ReportCategoryToJSON = ReportCategoryToJSON;
|
|
21
|
+
exports.ReportCategoryToJSONTyped = ReportCategoryToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ReportCategoryKeyEnum = {
|
|
26
|
+
Learners: 'learners',
|
|
27
|
+
Content: 'content',
|
|
28
|
+
Tags: 'tags',
|
|
29
|
+
Managers: 'managers',
|
|
30
|
+
Compliance: 'compliance',
|
|
31
|
+
Trends: 'trends'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the ReportCategory interface.
|
|
35
|
+
*/
|
|
36
|
+
function instanceOfReportCategory(value) {
|
|
37
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function ReportCategoryFromJSON(json) {
|
|
44
|
+
return ReportCategoryFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function ReportCategoryFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'key': json['key'],
|
|
52
|
+
'label': json['label'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function ReportCategoryToJSON(json) {
|
|
56
|
+
return ReportCategoryToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ReportCategoryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'key': value['key'],
|
|
64
|
+
'label': value['label'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -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
|
+
}
|