@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.
Files changed (103) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/README.md +19 -2
  3. package/dist/apis/MarketingApi.d.ts +34 -0
  4. package/dist/apis/MarketingApi.js +74 -0
  5. package/dist/apis/ReportingApi.d.ts +52 -0
  6. package/dist/apis/ReportingApi.js +131 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/MarketingApi.d.ts +34 -0
  10. package/dist/esm/apis/MarketingApi.js +70 -0
  11. package/dist/esm/apis/ReportingApi.d.ts +52 -0
  12. package/dist/esm/apis/ReportingApi.js +131 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/GetReportCatalog.d.ts +40 -0
  16. package/dist/esm/models/GetReportCatalog.js +49 -0
  17. package/dist/esm/models/GetReportQueryResult.d.ts +84 -0
  18. package/dist/esm/models/GetReportQueryResult.js +77 -0
  19. package/dist/esm/models/PostDemoRequest.d.ts +100 -0
  20. package/dist/esm/models/PostDemoRequest.js +83 -0
  21. package/dist/esm/models/PostDemoRequestResponse.d.ts +38 -0
  22. package/dist/esm/models/PostDemoRequestResponse.js +47 -0
  23. package/dist/esm/models/PostReportExport.d.ts +54 -0
  24. package/dist/esm/models/PostReportExport.js +56 -0
  25. package/dist/esm/models/PostReportQuery.d.ts +52 -0
  26. package/dist/esm/models/PostReportQuery.js +49 -0
  27. package/dist/esm/models/ReportCategory.d.ts +50 -0
  28. package/dist/esm/models/ReportCategory.js +58 -0
  29. package/dist/esm/models/ReportColumn.d.ts +59 -0
  30. package/dist/esm/models/ReportColumn.js +64 -0
  31. package/dist/esm/models/ReportDefinition.d.ts +89 -0
  32. package/dist/esm/models/ReportDefinition.js +85 -0
  33. package/dist/esm/models/ReportFilterDefinition.d.ts +94 -0
  34. package/dist/esm/models/ReportFilterDefinition.js +91 -0
  35. package/dist/esm/models/ReportFilterOption.d.ts +38 -0
  36. package/dist/esm/models/ReportFilterOption.js +47 -0
  37. package/dist/esm/models/ReportFilters.d.ts +105 -0
  38. package/dist/esm/models/ReportFilters.js +65 -0
  39. package/dist/esm/models/ReportSort.d.ts +46 -0
  40. package/dist/esm/models/ReportSort.js +54 -0
  41. package/dist/esm/models/index.d.ts +13 -0
  42. package/dist/esm/models/index.js +13 -0
  43. package/dist/models/GetReportCatalog.d.ts +40 -0
  44. package/dist/models/GetReportCatalog.js +56 -0
  45. package/dist/models/GetReportQueryResult.d.ts +84 -0
  46. package/dist/models/GetReportQueryResult.js +84 -0
  47. package/dist/models/PostDemoRequest.d.ts +100 -0
  48. package/dist/models/PostDemoRequest.js +91 -0
  49. package/dist/models/PostDemoRequestResponse.d.ts +38 -0
  50. package/dist/models/PostDemoRequestResponse.js +54 -0
  51. package/dist/models/PostReportExport.d.ts +54 -0
  52. package/dist/models/PostReportExport.js +64 -0
  53. package/dist/models/PostReportQuery.d.ts +52 -0
  54. package/dist/models/PostReportQuery.js +56 -0
  55. package/dist/models/ReportCategory.d.ts +50 -0
  56. package/dist/models/ReportCategory.js +66 -0
  57. package/dist/models/ReportColumn.d.ts +59 -0
  58. package/dist/models/ReportColumn.js +72 -0
  59. package/dist/models/ReportDefinition.d.ts +89 -0
  60. package/dist/models/ReportDefinition.js +93 -0
  61. package/dist/models/ReportFilterDefinition.d.ts +94 -0
  62. package/dist/models/ReportFilterDefinition.js +99 -0
  63. package/dist/models/ReportFilterOption.d.ts +38 -0
  64. package/dist/models/ReportFilterOption.js +54 -0
  65. package/dist/models/ReportFilters.d.ts +105 -0
  66. package/dist/models/ReportFilters.js +72 -0
  67. package/dist/models/ReportSort.d.ts +46 -0
  68. package/dist/models/ReportSort.js +62 -0
  69. package/dist/models/index.d.ts +13 -0
  70. package/dist/models/index.js +13 -0
  71. package/docs/GetReportCatalog.md +37 -0
  72. package/docs/GetReportQueryResult.md +50 -0
  73. package/docs/MarketingApi.md +78 -0
  74. package/docs/PostDemoRequest.md +50 -0
  75. package/docs/PostDemoRequestResponse.md +36 -0
  76. package/docs/PostReportExport.md +38 -0
  77. package/docs/PostReportQuery.md +40 -0
  78. package/docs/ReportCategory.md +36 -0
  79. package/docs/ReportColumn.md +39 -0
  80. package/docs/ReportDefinition.md +48 -0
  81. package/docs/ReportFilterDefinition.md +45 -0
  82. package/docs/ReportFilterOption.md +36 -0
  83. package/docs/ReportFilters.md +59 -0
  84. package/docs/ReportSort.md +36 -0
  85. package/docs/ReportingApi.md +207 -0
  86. package/package.json +1 -1
  87. package/src/apis/MarketingApi.ts +83 -0
  88. package/src/apis/ReportingApi.ts +181 -0
  89. package/src/apis/index.ts +1 -0
  90. package/src/models/GetReportCatalog.ts +90 -0
  91. package/src/models/GetReportQueryResult.ts +153 -0
  92. package/src/models/PostDemoRequest.ts +157 -0
  93. package/src/models/PostDemoRequestResponse.ts +75 -0
  94. package/src/models/PostReportExport.ts +108 -0
  95. package/src/models/PostReportQuery.ts +104 -0
  96. package/src/models/ReportCategory.ts +90 -0
  97. package/src/models/ReportColumn.ts +102 -0
  98. package/src/models/ReportDefinition.ts +166 -0
  99. package/src/models/ReportFilterDefinition.ts +154 -0
  100. package/src/models/ReportFilterOption.ts +75 -0
  101. package/src/models/ReportFilters.ts +162 -0
  102. package/src/models/ReportSort.ts +86 -0
  103. package/src/models/index.ts +13 -0
@@ -0,0 +1,153 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ReportColumn } from './ReportColumn';
17
+ import {
18
+ ReportColumnFromJSON,
19
+ ReportColumnFromJSONTyped,
20
+ ReportColumnToJSON,
21
+ ReportColumnToJSONTyped,
22
+ } from './ReportColumn';
23
+ import type { ReportSort } from './ReportSort';
24
+ import {
25
+ ReportSortFromJSON,
26
+ ReportSortFromJSONTyped,
27
+ ReportSortToJSON,
28
+ ReportSortToJSONTyped,
29
+ } from './ReportSort';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface GetReportQueryResult
35
+ */
36
+ export interface GetReportQueryResult {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof GetReportQueryResult
41
+ */
42
+ reportKey: string;
43
+ /**
44
+ *
45
+ * @type {Array<ReportColumn>}
46
+ * @memberof GetReportQueryResult
47
+ */
48
+ columns: Array<ReportColumn>;
49
+ /**
50
+ * One object per row, keyed by column key.
51
+ * @type {Array<{ [key: string]: any; }>}
52
+ * @memberof GetReportQueryResult
53
+ */
54
+ rows: Array<{ [key: string]: any; }>;
55
+ /**
56
+ *
57
+ * @type {ReportSort}
58
+ * @memberof GetReportQueryResult
59
+ */
60
+ sort: ReportSort;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof GetReportQueryResult
65
+ */
66
+ page: number;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof GetReportQueryResult
71
+ */
72
+ pageSize: number;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof GetReportQueryResult
77
+ */
78
+ totalItems: number;
79
+ /**
80
+ *
81
+ * @type {number}
82
+ * @memberof GetReportQueryResult
83
+ */
84
+ totalPages: number;
85
+ /**
86
+ * Unix timestamp in seconds.
87
+ * @type {number}
88
+ * @memberof GetReportQueryResult
89
+ */
90
+ generatedAt: number;
91
+ }
92
+
93
+ /**
94
+ * Check if a given object implements the GetReportQueryResult interface.
95
+ */
96
+ export function instanceOfGetReportQueryResult(value: object): value is GetReportQueryResult {
97
+ if (!('reportKey' in value) || value['reportKey'] === undefined) return false;
98
+ if (!('columns' in value) || value['columns'] === undefined) return false;
99
+ if (!('rows' in value) || value['rows'] === undefined) return false;
100
+ if (!('sort' in value) || value['sort'] === undefined) return false;
101
+ if (!('page' in value) || value['page'] === undefined) return false;
102
+ if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
103
+ if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
104
+ if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
105
+ if (!('generatedAt' in value) || value['generatedAt'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function GetReportQueryResultFromJSON(json: any): GetReportQueryResult {
110
+ return GetReportQueryResultFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function GetReportQueryResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetReportQueryResult {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'reportKey': json['report_key'],
120
+ 'columns': ((json['columns'] as Array<any>).map(ReportColumnFromJSON)),
121
+ 'rows': json['rows'],
122
+ 'sort': ReportSortFromJSON(json['sort']),
123
+ 'page': json['page'],
124
+ 'pageSize': json['page_size'],
125
+ 'totalItems': json['total_items'],
126
+ 'totalPages': json['total_pages'],
127
+ 'generatedAt': json['generated_at'],
128
+ };
129
+ }
130
+
131
+ export function GetReportQueryResultToJSON(json: any): GetReportQueryResult {
132
+ return GetReportQueryResultToJSONTyped(json, false);
133
+ }
134
+
135
+ export function GetReportQueryResultToJSONTyped(value?: GetReportQueryResult | null, ignoreDiscriminator: boolean = false): any {
136
+ if (value == null) {
137
+ return value;
138
+ }
139
+
140
+ return {
141
+
142
+ 'report_key': value['reportKey'],
143
+ 'columns': ((value['columns'] as Array<any>).map(ReportColumnToJSON)),
144
+ 'rows': value['rows'],
145
+ 'sort': ReportSortToJSON(value['sort']),
146
+ 'page': value['page'],
147
+ 'page_size': value['pageSize'],
148
+ 'total_items': value['totalItems'],
149
+ 'total_pages': value['totalPages'],
150
+ 'generated_at': value['generatedAt'],
151
+ };
152
+ }
153
+
@@ -0,0 +1,157 @@
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 PostDemoRequest
20
+ */
21
+ export interface PostDemoRequest {
22
+ /**
23
+ * Stable for retries of the same submission; use a new UUID when details change.
24
+ * @type {string}
25
+ * @memberof PostDemoRequest
26
+ */
27
+ submissionId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PostDemoRequest
32
+ */
33
+ fullName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PostDemoRequest
38
+ */
39
+ email: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PostDemoRequest
44
+ */
45
+ organization: string;
46
+ /**
47
+ *
48
+ * @type {PostDemoRequestLearnerRangeEnum}
49
+ * @memberof PostDemoRequest
50
+ */
51
+ learnerRange?: PostDemoRequestLearnerRangeEnum;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof PostDemoRequest
56
+ */
57
+ message?: string;
58
+ /**
59
+ *
60
+ * @type {PostDemoRequestInquiryTypeEnum}
61
+ * @memberof PostDemoRequest
62
+ */
63
+ inquiryType?: PostDemoRequestInquiryTypeEnum;
64
+ /**
65
+ * Originating site pathname; query strings and fragments are removed.
66
+ * @type {string}
67
+ * @memberof PostDemoRequest
68
+ */
69
+ sourcePath?: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof PostDemoRequest
74
+ */
75
+ sourceCta?: string;
76
+ }
77
+
78
+
79
+ /**
80
+ * @export
81
+ */
82
+ export const PostDemoRequestLearnerRangeEnum = {
83
+ _150: '1-50',
84
+ _511000: '51-1000',
85
+ _10013000: '1001-3000',
86
+ _3001: '3001+'
87
+ } as const;
88
+ export type PostDemoRequestLearnerRangeEnum = typeof PostDemoRequestLearnerRangeEnum[keyof typeof PostDemoRequestLearnerRangeEnum];
89
+
90
+ /**
91
+ * @export
92
+ */
93
+ export const PostDemoRequestInquiryTypeEnum = {
94
+ Demo: 'demo',
95
+ Enterprise: 'enterprise',
96
+ Migration: 'migration',
97
+ Sales: 'sales'
98
+ } as const;
99
+ export type PostDemoRequestInquiryTypeEnum = typeof PostDemoRequestInquiryTypeEnum[keyof typeof PostDemoRequestInquiryTypeEnum];
100
+
101
+
102
+ /**
103
+ * Check if a given object implements the PostDemoRequest interface.
104
+ */
105
+ export function instanceOfPostDemoRequest(value: object): value is PostDemoRequest {
106
+ if (!('submissionId' in value) || value['submissionId'] === undefined) return false;
107
+ if (!('fullName' in value) || value['fullName'] === undefined) return false;
108
+ if (!('email' in value) || value['email'] === undefined) return false;
109
+ if (!('organization' in value) || value['organization'] === undefined) return false;
110
+ return true;
111
+ }
112
+
113
+ export function PostDemoRequestFromJSON(json: any): PostDemoRequest {
114
+ return PostDemoRequestFromJSONTyped(json, false);
115
+ }
116
+
117
+ export function PostDemoRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDemoRequest {
118
+ if (json == null) {
119
+ return json;
120
+ }
121
+ return {
122
+
123
+ 'submissionId': json['submission_id'],
124
+ 'fullName': json['full_name'],
125
+ 'email': json['email'],
126
+ 'organization': json['organization'],
127
+ 'learnerRange': json['learner_range'] == null ? undefined : json['learner_range'],
128
+ 'message': json['message'] == null ? undefined : json['message'],
129
+ 'inquiryType': json['inquiry_type'] == null ? undefined : json['inquiry_type'],
130
+ 'sourcePath': json['source_path'] == null ? undefined : json['source_path'],
131
+ 'sourceCta': json['source_cta'] == null ? undefined : json['source_cta'],
132
+ };
133
+ }
134
+
135
+ export function PostDemoRequestToJSON(json: any): PostDemoRequest {
136
+ return PostDemoRequestToJSONTyped(json, false);
137
+ }
138
+
139
+ export function PostDemoRequestToJSONTyped(value?: PostDemoRequest | null, ignoreDiscriminator: boolean = false): any {
140
+ if (value == null) {
141
+ return value;
142
+ }
143
+
144
+ return {
145
+
146
+ 'submission_id': value['submissionId'],
147
+ 'full_name': value['fullName'],
148
+ 'email': value['email'],
149
+ 'organization': value['organization'],
150
+ 'learner_range': value['learnerRange'],
151
+ 'message': value['message'],
152
+ 'inquiry_type': value['inquiryType'],
153
+ 'source_path': value['sourcePath'],
154
+ 'source_cta': value['sourceCta'],
155
+ };
156
+ }
157
+
@@ -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 PostDemoRequestResponse
20
+ */
21
+ export interface PostDemoRequestResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostDemoRequestResponse
26
+ */
27
+ requestId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PostDemoRequestResponse
32
+ */
33
+ message: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PostDemoRequestResponse interface.
38
+ */
39
+ export function instanceOfPostDemoRequestResponse(value: object): value is PostDemoRequestResponse {
40
+ if (!('requestId' in value) || value['requestId'] === undefined) return false;
41
+ if (!('message' in value) || value['message'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function PostDemoRequestResponseFromJSON(json: any): PostDemoRequestResponse {
46
+ return PostDemoRequestResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PostDemoRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostDemoRequestResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'requestId': json['request_id'],
56
+ 'message': json['message'],
57
+ };
58
+ }
59
+
60
+ export function PostDemoRequestResponseToJSON(json: any): PostDemoRequestResponse {
61
+ return PostDemoRequestResponseToJSONTyped(json, false);
62
+ }
63
+
64
+ export function PostDemoRequestResponseToJSONTyped(value?: PostDemoRequestResponse | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'request_id': value['requestId'],
72
+ 'message': value['message'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,108 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ReportFilters } from './ReportFilters';
17
+ import {
18
+ ReportFiltersFromJSON,
19
+ ReportFiltersFromJSONTyped,
20
+ ReportFiltersToJSON,
21
+ ReportFiltersToJSONTyped,
22
+ } from './ReportFilters';
23
+ import type { ReportSort } from './ReportSort';
24
+ import {
25
+ ReportSortFromJSON,
26
+ ReportSortFromJSONTyped,
27
+ ReportSortToJSON,
28
+ ReportSortToJSONTyped,
29
+ } from './ReportSort';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PostReportExport
35
+ */
36
+ export interface PostReportExport {
37
+ /**
38
+ *
39
+ * @type {ReportFilters}
40
+ * @memberof PostReportExport
41
+ */
42
+ filters?: ReportFilters;
43
+ /**
44
+ *
45
+ * @type {ReportSort}
46
+ * @memberof PostReportExport
47
+ */
48
+ sort?: ReportSort;
49
+ /**
50
+ *
51
+ * @type {PostReportExportFormatEnum}
52
+ * @memberof PostReportExport
53
+ */
54
+ format: PostReportExportFormatEnum;
55
+ }
56
+
57
+
58
+ /**
59
+ * @export
60
+ */
61
+ export const PostReportExportFormatEnum = {
62
+ Csv: 'csv',
63
+ Xlsx: 'xlsx'
64
+ } as const;
65
+ export type PostReportExportFormatEnum = typeof PostReportExportFormatEnum[keyof typeof PostReportExportFormatEnum];
66
+
67
+
68
+ /**
69
+ * Check if a given object implements the PostReportExport interface.
70
+ */
71
+ export function instanceOfPostReportExport(value: object): value is PostReportExport {
72
+ if (!('format' in value) || value['format'] === undefined) return false;
73
+ return true;
74
+ }
75
+
76
+ export function PostReportExportFromJSON(json: any): PostReportExport {
77
+ return PostReportExportFromJSONTyped(json, false);
78
+ }
79
+
80
+ export function PostReportExportFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostReportExport {
81
+ if (json == null) {
82
+ return json;
83
+ }
84
+ return {
85
+
86
+ 'filters': json['filters'] == null ? undefined : ReportFiltersFromJSON(json['filters']),
87
+ 'sort': json['sort'] == null ? undefined : ReportSortFromJSON(json['sort']),
88
+ 'format': json['format'],
89
+ };
90
+ }
91
+
92
+ export function PostReportExportToJSON(json: any): PostReportExport {
93
+ return PostReportExportToJSONTyped(json, false);
94
+ }
95
+
96
+ export function PostReportExportToJSONTyped(value?: PostReportExport | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'filters': ReportFiltersToJSON(value['filters']),
104
+ 'sort': ReportSortToJSON(value['sort']),
105
+ 'format': value['format'],
106
+ };
107
+ }
108
+
@@ -0,0 +1,104 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ReportFilters } from './ReportFilters';
17
+ import {
18
+ ReportFiltersFromJSON,
19
+ ReportFiltersFromJSONTyped,
20
+ ReportFiltersToJSON,
21
+ ReportFiltersToJSONTyped,
22
+ } from './ReportFilters';
23
+ import type { ReportSort } from './ReportSort';
24
+ import {
25
+ ReportSortFromJSON,
26
+ ReportSortFromJSONTyped,
27
+ ReportSortToJSON,
28
+ ReportSortToJSONTyped,
29
+ } from './ReportSort';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PostReportQuery
35
+ */
36
+ export interface PostReportQuery {
37
+ /**
38
+ *
39
+ * @type {ReportFilters}
40
+ * @memberof PostReportQuery
41
+ */
42
+ filters?: ReportFilters;
43
+ /**
44
+ *
45
+ * @type {ReportSort}
46
+ * @memberof PostReportQuery
47
+ */
48
+ sort?: ReportSort;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof PostReportQuery
53
+ */
54
+ page?: number;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof PostReportQuery
59
+ */
60
+ pageSize?: number;
61
+ }
62
+
63
+ /**
64
+ * Check if a given object implements the PostReportQuery interface.
65
+ */
66
+ export function instanceOfPostReportQuery(value: object): value is PostReportQuery {
67
+ return true;
68
+ }
69
+
70
+ export function PostReportQueryFromJSON(json: any): PostReportQuery {
71
+ return PostReportQueryFromJSONTyped(json, false);
72
+ }
73
+
74
+ export function PostReportQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostReportQuery {
75
+ if (json == null) {
76
+ return json;
77
+ }
78
+ return {
79
+
80
+ 'filters': json['filters'] == null ? undefined : ReportFiltersFromJSON(json['filters']),
81
+ 'sort': json['sort'] == null ? undefined : ReportSortFromJSON(json['sort']),
82
+ 'page': json['page'] == null ? undefined : json['page'],
83
+ 'pageSize': json['page_size'] == null ? undefined : json['page_size'],
84
+ };
85
+ }
86
+
87
+ export function PostReportQueryToJSON(json: any): PostReportQuery {
88
+ return PostReportQueryToJSONTyped(json, false);
89
+ }
90
+
91
+ export function PostReportQueryToJSONTyped(value?: PostReportQuery | null, ignoreDiscriminator: boolean = false): any {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+
96
+ return {
97
+
98
+ 'filters': ReportFiltersToJSON(value['filters']),
99
+ 'sort': ReportSortToJSON(value['sort']),
100
+ 'page': value['page'],
101
+ 'page_size': value['pageSize'],
102
+ };
103
+ }
104
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReportCategory
20
+ */
21
+ export interface ReportCategory {
22
+ /**
23
+ *
24
+ * @type {ReportCategoryKeyEnum}
25
+ * @memberof ReportCategory
26
+ */
27
+ key: ReportCategoryKeyEnum;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReportCategory
32
+ */
33
+ label: string;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const ReportCategoryKeyEnum = {
41
+ Learners: 'learners',
42
+ Content: 'content',
43
+ Tags: 'tags',
44
+ Managers: 'managers',
45
+ Compliance: 'compliance',
46
+ Trends: 'trends'
47
+ } as const;
48
+ export type ReportCategoryKeyEnum = typeof ReportCategoryKeyEnum[keyof typeof ReportCategoryKeyEnum];
49
+
50
+
51
+ /**
52
+ * Check if a given object implements the ReportCategory interface.
53
+ */
54
+ export function instanceOfReportCategory(value: object): value is ReportCategory {
55
+ if (!('key' in value) || value['key'] === undefined) return false;
56
+ if (!('label' in value) || value['label'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function ReportCategoryFromJSON(json: any): ReportCategory {
61
+ return ReportCategoryFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function ReportCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReportCategory {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'key': json['key'],
71
+ 'label': json['label'],
72
+ };
73
+ }
74
+
75
+ export function ReportCategoryToJSON(json: any): ReportCategory {
76
+ return ReportCategoryToJSONTyped(json, false);
77
+ }
78
+
79
+ export function ReportCategoryToJSONTyped(value?: ReportCategory | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'key': value['key'],
87
+ 'label': value['label'],
88
+ };
89
+ }
90
+