@easyedu/js-lsm-api 1.70.0 → 1.72.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 +8 -0
- package/README.md +10 -2
- package/dist/apis/SystemApi.d.ts +97 -0
- package/dist/apis/SystemApi.js +234 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/SystemApi.d.ts +97 -0
- package/dist/esm/apis/SystemApi.js +230 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetCourseStudentReportingPerformance.d.ts +1 -1
- package/dist/esm/models/GetSystemBillingItem.d.ts +80 -0
- package/dist/esm/models/GetSystemBillingItem.js +71 -0
- package/dist/esm/models/GetSystemBillingList.d.ts +57 -0
- package/dist/esm/models/GetSystemBillingList.js +60 -0
- package/dist/esm/models/GetSystemMetrics.d.ts +50 -0
- package/dist/esm/models/GetSystemMetrics.js +55 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/models/GetCourseStudentReportingPerformance.d.ts +1 -1
- package/dist/models/GetSystemBillingItem.d.ts +80 -0
- package/dist/models/GetSystemBillingItem.js +78 -0
- package/dist/models/GetSystemBillingList.d.ts +57 -0
- package/dist/models/GetSystemBillingList.js +67 -0
- package/dist/models/GetSystemMetrics.d.ts +50 -0
- package/dist/models/GetSystemMetrics.js +62 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/GetSystemBillingItem.md +51 -0
- package/docs/GetSystemBillingList.md +42 -0
- package/docs/GetSystemMetrics.md +41 -0
- package/docs/SystemApi.md +345 -0
- package/package.json +1 -1
- package/src/apis/SystemApi.ts +283 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetCourseStudentReportingPerformance.ts +1 -1
- package/src/models/GetSystemBillingItem.ts +136 -0
- package/src/models/GetSystemBillingList.ts +110 -0
- package/src/models/GetSystemMetrics.ts +93 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
* Mock per-portal billing summary for platform administrators.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetSystemBillingItem
|
|
20
|
+
*/
|
|
21
|
+
export interface GetSystemBillingItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetSystemBillingItem
|
|
26
|
+
*/
|
|
27
|
+
portalId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetSystemBillingItem
|
|
32
|
+
*/
|
|
33
|
+
portalName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetSystemBillingItem
|
|
38
|
+
*/
|
|
39
|
+
plan: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GetSystemBillingItem
|
|
44
|
+
*/
|
|
45
|
+
status: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GetSystemBillingItem
|
|
50
|
+
*/
|
|
51
|
+
seatLimit?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GetSystemBillingItem
|
|
56
|
+
*/
|
|
57
|
+
activeEnrollmentCount: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof GetSystemBillingItem
|
|
62
|
+
*/
|
|
63
|
+
monthlyAmountCents: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof GetSystemBillingItem
|
|
68
|
+
*/
|
|
69
|
+
currency: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof GetSystemBillingItem
|
|
74
|
+
*/
|
|
75
|
+
renewalAt?: number | null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the GetSystemBillingItem interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfGetSystemBillingItem(value: object): value is GetSystemBillingItem {
|
|
82
|
+
if (!('portalId' in value) || value['portalId'] === undefined) return false;
|
|
83
|
+
if (!('portalName' in value) || value['portalName'] === undefined) return false;
|
|
84
|
+
if (!('plan' in value) || value['plan'] === undefined) return false;
|
|
85
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
86
|
+
if (!('activeEnrollmentCount' in value) || value['activeEnrollmentCount'] === undefined) return false;
|
|
87
|
+
if (!('monthlyAmountCents' in value) || value['monthlyAmountCents'] === undefined) return false;
|
|
88
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetSystemBillingItemFromJSON(json: any): GetSystemBillingItem {
|
|
93
|
+
return GetSystemBillingItemFromJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetSystemBillingItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSystemBillingItem {
|
|
97
|
+
if (json == null) {
|
|
98
|
+
return json;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'portalId': json['portal_id'],
|
|
103
|
+
'portalName': json['portal_name'],
|
|
104
|
+
'plan': json['plan'],
|
|
105
|
+
'status': json['status'],
|
|
106
|
+
'seatLimit': json['seat_limit'] == null ? undefined : json['seat_limit'],
|
|
107
|
+
'activeEnrollmentCount': json['active_enrollment_count'],
|
|
108
|
+
'monthlyAmountCents': json['monthly_amount_cents'],
|
|
109
|
+
'currency': json['currency'],
|
|
110
|
+
'renewalAt': json['renewal_at'] == null ? undefined : json['renewal_at'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function GetSystemBillingItemToJSON(json: any): GetSystemBillingItem {
|
|
115
|
+
return GetSystemBillingItemToJSONTyped(json, false);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function GetSystemBillingItemToJSONTyped(value?: GetSystemBillingItem | null, ignoreDiscriminator: boolean = false): any {
|
|
119
|
+
if (value == null) {
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'portal_id': value['portalId'],
|
|
126
|
+
'portal_name': value['portalName'],
|
|
127
|
+
'plan': value['plan'],
|
|
128
|
+
'status': value['status'],
|
|
129
|
+
'seat_limit': value['seatLimit'],
|
|
130
|
+
'active_enrollment_count': value['activeEnrollmentCount'],
|
|
131
|
+
'monthly_amount_cents': value['monthlyAmountCents'],
|
|
132
|
+
'currency': value['currency'],
|
|
133
|
+
'renewal_at': value['renewalAt'],
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { GetSystemBillingItem } from './GetSystemBillingItem';
|
|
17
|
+
import {
|
|
18
|
+
GetSystemBillingItemFromJSON,
|
|
19
|
+
GetSystemBillingItemFromJSONTyped,
|
|
20
|
+
GetSystemBillingItemToJSON,
|
|
21
|
+
GetSystemBillingItemToJSONTyped,
|
|
22
|
+
} from './GetSystemBillingItem';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetSystemBillingList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetSystemBillingList {
|
|
30
|
+
/**
|
|
31
|
+
* The current page number
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetSystemBillingList
|
|
34
|
+
*/
|
|
35
|
+
page: number;
|
|
36
|
+
/**
|
|
37
|
+
* The number of items per page
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetSystemBillingList
|
|
40
|
+
*/
|
|
41
|
+
pageSize: number;
|
|
42
|
+
/**
|
|
43
|
+
* The total number of pages
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetSystemBillingList
|
|
46
|
+
*/
|
|
47
|
+
totalPages: number;
|
|
48
|
+
/**
|
|
49
|
+
* The total number of items
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetSystemBillingList
|
|
52
|
+
*/
|
|
53
|
+
totalItems: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<GetSystemBillingItem>}
|
|
57
|
+
* @memberof GetSystemBillingList
|
|
58
|
+
*/
|
|
59
|
+
items: Array<GetSystemBillingItem>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the GetSystemBillingList interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfGetSystemBillingList(value: object): value is GetSystemBillingList {
|
|
66
|
+
if (!('page' in value) || value['page'] === undefined) return false;
|
|
67
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
|
|
68
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
69
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
70
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetSystemBillingListFromJSON(json: any): GetSystemBillingList {
|
|
75
|
+
return GetSystemBillingListFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetSystemBillingListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSystemBillingList {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'page': json['page'],
|
|
85
|
+
'pageSize': json['pageSize'],
|
|
86
|
+
'totalPages': json['totalPages'],
|
|
87
|
+
'totalItems': json['totalItems'],
|
|
88
|
+
'items': ((json['items'] as Array<any>).map(GetSystemBillingItemFromJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetSystemBillingListToJSON(json: any): GetSystemBillingList {
|
|
93
|
+
return GetSystemBillingListToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetSystemBillingListToJSONTyped(value?: GetSystemBillingList | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'page': value['page'],
|
|
104
|
+
'pageSize': value['pageSize'],
|
|
105
|
+
'totalPages': value['totalPages'],
|
|
106
|
+
'totalItems': value['totalItems'],
|
|
107
|
+
'items': ((value['items'] as Array<any>).map(GetSystemBillingItemToJSON)),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
* Platform-wide read-only metrics for platform administrators.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetSystemMetrics
|
|
20
|
+
*/
|
|
21
|
+
export interface GetSystemMetrics {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetSystemMetrics
|
|
26
|
+
*/
|
|
27
|
+
portalCount: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetSystemMetrics
|
|
32
|
+
*/
|
|
33
|
+
userCount: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetSystemMetrics
|
|
38
|
+
*/
|
|
39
|
+
courseCount: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetSystemMetrics
|
|
44
|
+
*/
|
|
45
|
+
openSupportTicketCount: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the GetSystemMetrics interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfGetSystemMetrics(value: object): value is GetSystemMetrics {
|
|
52
|
+
if (!('portalCount' in value) || value['portalCount'] === undefined) return false;
|
|
53
|
+
if (!('userCount' in value) || value['userCount'] === undefined) return false;
|
|
54
|
+
if (!('courseCount' in value) || value['courseCount'] === undefined) return false;
|
|
55
|
+
if (!('openSupportTicketCount' in value) || value['openSupportTicketCount'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GetSystemMetricsFromJSON(json: any): GetSystemMetrics {
|
|
60
|
+
return GetSystemMetricsFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GetSystemMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSystemMetrics {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'portalCount': json['portal_count'],
|
|
70
|
+
'userCount': json['user_count'],
|
|
71
|
+
'courseCount': json['course_count'],
|
|
72
|
+
'openSupportTicketCount': json['open_support_ticket_count'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function GetSystemMetricsToJSON(json: any): GetSystemMetrics {
|
|
77
|
+
return GetSystemMetricsToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function GetSystemMetricsToJSONTyped(value?: GetSystemMetrics | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'portal_count': value['portalCount'],
|
|
88
|
+
'user_count': value['userCount'],
|
|
89
|
+
'course_count': value['courseCount'],
|
|
90
|
+
'open_support_ticket_count': value['openSupportTicketCount'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -149,6 +149,9 @@ export * from './GetSupportTicket';
|
|
|
149
149
|
export * from './GetSupportTicketAttachment';
|
|
150
150
|
export * from './GetSupportTicketComment';
|
|
151
151
|
export * from './GetSupportTicketList';
|
|
152
|
+
export * from './GetSystemBillingItem';
|
|
153
|
+
export * from './GetSystemBillingList';
|
|
154
|
+
export * from './GetSystemMetrics';
|
|
152
155
|
export * from './GetUser';
|
|
153
156
|
export * from './GetUserAvatarUpload';
|
|
154
157
|
export * from './GetUserQuizAttempts';
|