@easyedu/js-lsm-api 1.51.0 → 1.52.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 +26 -0
- package/README.md +29 -2
- package/dist/apis/CourseCatalogApi.d.ts +123 -0
- package/dist/apis/CourseCatalogApi.js +313 -0
- package/dist/apis/CourseShareApi.d.ts +153 -0
- package/dist/apis/CourseShareApi.js +385 -0
- package/dist/apis/PortalSublicenseApi.d.ts +36 -0
- package/dist/apis/PortalSublicenseApi.js +79 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/CourseCatalogApi.d.ts +123 -0
- package/dist/esm/apis/CourseCatalogApi.js +309 -0
- package/dist/esm/apis/CourseShareApi.d.ts +153 -0
- package/dist/esm/apis/CourseShareApi.js +381 -0
- package/dist/esm/apis/PortalSublicenseApi.d.ts +36 -0
- package/dist/esm/apis/PortalSublicenseApi.js +75 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/CourseCatalog.d.ts +44 -0
- package/dist/esm/models/CourseCatalog.js +51 -0
- package/dist/esm/models/CourseShare.d.ts +88 -0
- package/dist/esm/models/CourseShare.js +85 -0
- package/dist/esm/models/PortalSublicense.d.ts +65 -0
- package/dist/esm/models/PortalSublicense.js +61 -0
- package/dist/esm/models/PostCourseCatalog.d.ts +38 -0
- package/dist/esm/models/PostCourseCatalog.js +45 -0
- package/dist/esm/models/PostOfferCatalog.d.ts +59 -0
- package/dist/esm/models/PostOfferCatalog.js +59 -0
- package/dist/esm/models/PostOfferCatalogResponse.d.ts +32 -0
- package/dist/esm/models/PostOfferCatalogResponse.js +43 -0
- package/dist/esm/models/PostOfferCourse.d.ts +59 -0
- package/dist/esm/models/PostOfferCourse.js +59 -0
- package/dist/esm/models/PostOfferCourseResponse.d.ts +49 -0
- package/dist/esm/models/PostOfferCourseResponse.js +57 -0
- package/dist/esm/models/PutCourseCatalog.d.ts +38 -0
- package/dist/esm/models/PutCourseCatalog.js +43 -0
- package/dist/esm/models/PutPortalSublicense.d.ts +46 -0
- package/dist/esm/models/PutPortalSublicense.js +45 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/CourseCatalog.d.ts +44 -0
- package/dist/models/CourseCatalog.js +58 -0
- package/dist/models/CourseShare.d.ts +88 -0
- package/dist/models/CourseShare.js +93 -0
- package/dist/models/PortalSublicense.d.ts +65 -0
- package/dist/models/PortalSublicense.js +69 -0
- package/dist/models/PostCourseCatalog.d.ts +38 -0
- package/dist/models/PostCourseCatalog.js +52 -0
- package/dist/models/PostOfferCatalog.d.ts +59 -0
- package/dist/models/PostOfferCatalog.js +67 -0
- package/dist/models/PostOfferCatalogResponse.d.ts +32 -0
- package/dist/models/PostOfferCatalogResponse.js +50 -0
- package/dist/models/PostOfferCourse.d.ts +59 -0
- package/dist/models/PostOfferCourse.js +67 -0
- package/dist/models/PostOfferCourseResponse.d.ts +49 -0
- package/dist/models/PostOfferCourseResponse.js +65 -0
- package/dist/models/PutCourseCatalog.d.ts +38 -0
- package/dist/models/PutCourseCatalog.js +50 -0
- package/dist/models/PutPortalSublicense.d.ts +46 -0
- package/dist/models/PutPortalSublicense.js +52 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/CourseCatalog.md +38 -0
- package/docs/CourseCatalogApi.md +476 -0
- package/docs/CourseShare.md +46 -0
- package/docs/CourseShareApi.md +609 -0
- package/docs/PortalSublicense.md +42 -0
- package/docs/PortalSublicenseApi.md +81 -0
- package/docs/PostCourseCatalog.md +36 -0
- package/docs/PostOfferCatalog.md +40 -0
- package/docs/PostOfferCatalogResponse.md +34 -0
- package/docs/PostOfferCourse.md +40 -0
- package/docs/PostOfferCourseResponse.md +36 -0
- package/docs/PutCourseCatalog.md +36 -0
- package/docs/PutPortalSublicense.md +39 -0
- package/package.json +1 -1
- package/src/apis/CourseCatalogApi.ts +395 -0
- package/src/apis/CourseShareApi.ts +480 -0
- package/src/apis/PortalSublicenseApi.ts +95 -0
- package/src/apis/index.ts +3 -0
- package/src/models/CourseCatalog.ts +84 -0
- package/src/models/CourseShare.ts +144 -0
- package/src/models/PortalSublicense.ts +111 -0
- package/src/models/PostCourseCatalog.ts +74 -0
- package/src/models/PostOfferCatalog.ts +103 -0
- package/src/models/PostOfferCatalogResponse.ts +66 -0
- package/src/models/PostOfferCourse.ts +103 -0
- package/src/models/PostOfferCourseResponse.ts +89 -0
- package/src/models/PutCourseCatalog.ts +73 -0
- package/src/models/PutPortalSublicense.ts +83 -0
- package/src/models/index.ts +10 -0
|
@@ -0,0 +1,73 @@
|
|
|
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 PutCourseCatalog
|
|
20
|
+
*/
|
|
21
|
+
export interface PutCourseCatalog {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PutCourseCatalog
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PutCourseCatalog
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PutCourseCatalog interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPutCourseCatalog(value: object): value is PutCourseCatalog {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PutCourseCatalogFromJSON(json: any): PutCourseCatalog {
|
|
44
|
+
return PutCourseCatalogFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PutCourseCatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCourseCatalog {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
54
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PutCourseCatalogToJSON(json: any): PutCourseCatalog {
|
|
59
|
+
return PutCourseCatalogToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PutCourseCatalogToJSONTyped(value?: PutCourseCatalog | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'description': value['description'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
* All fields are optional. Omit a field to leave it unchanged. Send `null` to
|
|
18
|
+
* clear it (unlimited seats / no license window).
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface PutPortalSublicense
|
|
22
|
+
*/
|
|
23
|
+
export interface PutPortalSublicense {
|
|
24
|
+
/**
|
|
25
|
+
* Maximum active enrollments. null = unlimited.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PutPortalSublicense
|
|
28
|
+
*/
|
|
29
|
+
seatLimit?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Unix epoch seconds when the license becomes active. null = no start gate.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PutPortalSublicense
|
|
34
|
+
*/
|
|
35
|
+
licenseStartAt?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* Unix epoch seconds when the license expires. null = never expires.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PutPortalSublicense
|
|
40
|
+
*/
|
|
41
|
+
licenseEndAt?: number | null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PutPortalSublicense interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfPutPortalSublicense(value: object): value is PutPortalSublicense {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PutPortalSublicenseFromJSON(json: any): PutPortalSublicense {
|
|
52
|
+
return PutPortalSublicenseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PutPortalSublicenseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalSublicense {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'seatLimit': json['seat_limit'] == null ? undefined : json['seat_limit'],
|
|
62
|
+
'licenseStartAt': json['license_start_at'] == null ? undefined : json['license_start_at'],
|
|
63
|
+
'licenseEndAt': json['license_end_at'] == null ? undefined : json['license_end_at'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PutPortalSublicenseToJSON(json: any): PutPortalSublicense {
|
|
68
|
+
return PutPortalSublicenseToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function PutPortalSublicenseToJSONTyped(value?: PutPortalSublicense | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'seat_limit': value['seatLimit'],
|
|
79
|
+
'license_start_at': value['licenseStartAt'],
|
|
80
|
+
'license_end_at': value['licenseEndAt'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
export * from './Certificate';
|
|
4
4
|
export * from './CertificateConfig';
|
|
5
5
|
export * from './CertificatePublic';
|
|
6
|
+
export * from './CourseCatalog';
|
|
7
|
+
export * from './CourseShare';
|
|
6
8
|
export * from './CriteriaBasedSelection';
|
|
7
9
|
export * from './CriteriaBasedSelectionCriteria';
|
|
8
10
|
export * from './CriteriaBasedSelectionDistribution';
|
|
@@ -158,6 +160,7 @@ export * from './MultipleAnswer';
|
|
|
158
160
|
export * from './MultipleAnswer1';
|
|
159
161
|
export * from './NoAnswer';
|
|
160
162
|
export * from './Paginated';
|
|
163
|
+
export * from './PortalSublicense';
|
|
161
164
|
export * from './PostCertificate';
|
|
162
165
|
export * from './PostCertificateConfig';
|
|
163
166
|
export * from './PostContentQuiz';
|
|
@@ -169,6 +172,7 @@ export * from './PostContentUpload';
|
|
|
169
172
|
export * from './PostConversation';
|
|
170
173
|
export * from './PostConversationResponse';
|
|
171
174
|
export * from './PostCourse';
|
|
175
|
+
export * from './PostCourseCatalog';
|
|
172
176
|
export * from './PostCourseEnrollment';
|
|
173
177
|
export * from './PostCourseExport';
|
|
174
178
|
export * from './PostLogin';
|
|
@@ -176,6 +180,10 @@ export * from './PostManualQuestionSelection';
|
|
|
176
180
|
export * from './PostMessage';
|
|
177
181
|
export * from './PostMessageResponse';
|
|
178
182
|
export * from './PostModule';
|
|
183
|
+
export * from './PostOfferCatalog';
|
|
184
|
+
export * from './PostOfferCatalogResponse';
|
|
185
|
+
export * from './PostOfferCourse';
|
|
186
|
+
export * from './PostOfferCourseResponse';
|
|
179
187
|
export * from './PostPortal';
|
|
180
188
|
export * from './PostPortalInvite';
|
|
181
189
|
export * from './PostQuestion';
|
|
@@ -208,10 +216,12 @@ export * from './PutContent';
|
|
|
208
216
|
export * from './PutContentReorder';
|
|
209
217
|
export * from './PutContentVersion';
|
|
210
218
|
export * from './PutCourse';
|
|
219
|
+
export * from './PutCourseCatalog';
|
|
211
220
|
export * from './PutCourseEnrollment';
|
|
212
221
|
export * from './PutModule';
|
|
213
222
|
export * from './PutModuleReorder';
|
|
214
223
|
export * from './PutPortalBranding';
|
|
224
|
+
export * from './PutPortalSublicense';
|
|
215
225
|
export * from './PutQuestion';
|
|
216
226
|
export * from './PutQuestionAnswerChoicesInner';
|
|
217
227
|
export * from './PutQuiz';
|