@easyedu/js-lsm-api 1.107.0 → 1.108.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 +4 -0
- package/README.md +4 -2
- package/dist/apis/CourseCatalogApi.d.ts +8 -3
- package/dist/apis/CourseCatalogApi.js +14 -7
- package/dist/apis/CourseShareApi.d.ts +12 -7
- package/dist/apis/CourseShareApi.js +20 -5
- package/dist/esm/apis/CourseCatalogApi.d.ts +8 -3
- package/dist/esm/apis/CourseCatalogApi.js +14 -7
- package/dist/esm/apis/CourseShareApi.d.ts +12 -7
- package/dist/esm/apis/CourseShareApi.js +20 -5
- package/dist/esm/models/GetCourseCatalogList.d.ts +57 -0
- package/dist/esm/models/GetCourseCatalogList.js +60 -0
- package/dist/esm/models/GetCourseShareList.d.ts +57 -0
- package/dist/esm/models/GetCourseShareList.js +60 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/GetCourseCatalogList.d.ts +57 -0
- package/dist/models/GetCourseCatalogList.js +67 -0
- package/dist/models/GetCourseShareList.d.ts +57 -0
- package/dist/models/GetCourseShareList.js +67 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/CourseCatalogApi.md +15 -4
- package/docs/CourseShareApi.md +20 -5
- package/docs/GetCourseCatalogList.md +42 -0
- package/docs/GetCourseShareList.md +42 -0
- package/package.json +1 -1
- package/src/apis/CourseCatalogApi.ts +24 -6
- package/src/apis/CourseShareApi.ts +37 -12
- package/src/models/GetCourseCatalogList.ts +110 -0
- package/src/models/GetCourseShareList.ts +110 -0
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,57 @@
|
|
|
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 { CourseShare } from './CourseShare';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCourseShareList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseShareList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetCourseShareList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetCourseShareList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetCourseShareList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetCourseShareList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<CourseShare>}
|
|
46
|
+
* @memberof GetCourseShareList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<CourseShare>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetCourseShareList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetCourseShareList(value: object): value is GetCourseShareList;
|
|
54
|
+
export declare function GetCourseShareListFromJSON(json: any): GetCourseShareList;
|
|
55
|
+
export declare function GetCourseShareListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseShareList;
|
|
56
|
+
export declare function GetCourseShareListToJSON(json: any): GetCourseShareList;
|
|
57
|
+
export declare function GetCourseShareListToJSONTyped(value?: GetCourseShareList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import { CourseShareFromJSON, CourseShareToJSON, } from './CourseShare';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetCourseShareList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetCourseShareList(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function GetCourseShareListFromJSON(json) {
|
|
32
|
+
return GetCourseShareListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetCourseShareListFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'page': json['page'],
|
|
40
|
+
'pageSize': json['pageSize'],
|
|
41
|
+
'totalPages': json['totalPages'],
|
|
42
|
+
'totalItems': json['totalItems'],
|
|
43
|
+
'items': (json['items'].map(CourseShareFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetCourseShareListToJSON(json) {
|
|
47
|
+
return GetCourseShareListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetCourseShareListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'page': value['page'],
|
|
55
|
+
'pageSize': value['pageSize'],
|
|
56
|
+
'totalPages': value['totalPages'],
|
|
57
|
+
'totalItems': value['totalItems'],
|
|
58
|
+
'items': (value['items'].map(CourseShareToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -56,6 +56,7 @@ export * from './GetContentLibraryVersion';
|
|
|
56
56
|
export * from './GetConversation';
|
|
57
57
|
export * from './GetConversationList';
|
|
58
58
|
export * from './GetCourse';
|
|
59
|
+
export * from './GetCourseCatalogList';
|
|
59
60
|
export * from './GetCourseEnrollment';
|
|
60
61
|
export * from './GetCourseEnrollmentList';
|
|
61
62
|
export * from './GetCourseEnrollmentListItem';
|
|
@@ -63,6 +64,7 @@ export * from './GetCourseExport';
|
|
|
63
64
|
export * from './GetCourseExportList';
|
|
64
65
|
export * from './GetCourseImageUpload';
|
|
65
66
|
export * from './GetCourseList';
|
|
67
|
+
export * from './GetCourseShareList';
|
|
66
68
|
export * from './GetCourseVersion';
|
|
67
69
|
export * from './GetCourseVersionItem';
|
|
68
70
|
export * from './GetCourseVersionItemLaunch';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -58,6 +58,7 @@ export * from './GetContentLibraryVersion';
|
|
|
58
58
|
export * from './GetConversation';
|
|
59
59
|
export * from './GetConversationList';
|
|
60
60
|
export * from './GetCourse';
|
|
61
|
+
export * from './GetCourseCatalogList';
|
|
61
62
|
export * from './GetCourseEnrollment';
|
|
62
63
|
export * from './GetCourseEnrollmentList';
|
|
63
64
|
export * from './GetCourseEnrollmentListItem';
|
|
@@ -65,6 +66,7 @@ export * from './GetCourseExport';
|
|
|
65
66
|
export * from './GetCourseExportList';
|
|
66
67
|
export * from './GetCourseImageUpload';
|
|
67
68
|
export * from './GetCourseList';
|
|
69
|
+
export * from './GetCourseShareList';
|
|
68
70
|
export * from './GetCourseVersion';
|
|
69
71
|
export * from './GetCourseVersionItem';
|
|
70
72
|
export * from './GetCourseVersionItemLaunch';
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { CourseCatalog } from './CourseCatalog';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCourseCatalogList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseCatalogList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetCourseCatalogList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetCourseCatalogList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetCourseCatalogList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetCourseCatalogList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<CourseCatalog>}
|
|
46
|
+
* @memberof GetCourseCatalogList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<CourseCatalog>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetCourseCatalogList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetCourseCatalogList(value: object): value is GetCourseCatalogList;
|
|
54
|
+
export declare function GetCourseCatalogListFromJSON(json: any): GetCourseCatalogList;
|
|
55
|
+
export declare function GetCourseCatalogListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseCatalogList;
|
|
56
|
+
export declare function GetCourseCatalogListToJSON(json: any): GetCourseCatalogList;
|
|
57
|
+
export declare function GetCourseCatalogListToJSONTyped(value?: GetCourseCatalogList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfGetCourseCatalogList = instanceOfGetCourseCatalogList;
|
|
17
|
+
exports.GetCourseCatalogListFromJSON = GetCourseCatalogListFromJSON;
|
|
18
|
+
exports.GetCourseCatalogListFromJSONTyped = GetCourseCatalogListFromJSONTyped;
|
|
19
|
+
exports.GetCourseCatalogListToJSON = GetCourseCatalogListToJSON;
|
|
20
|
+
exports.GetCourseCatalogListToJSONTyped = GetCourseCatalogListToJSONTyped;
|
|
21
|
+
const CourseCatalog_1 = require("./CourseCatalog");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetCourseCatalogList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetCourseCatalogList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetCourseCatalogListFromJSON(json) {
|
|
39
|
+
return GetCourseCatalogListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetCourseCatalogListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(CourseCatalog_1.CourseCatalogFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetCourseCatalogListToJSON(json) {
|
|
54
|
+
return GetCourseCatalogListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetCourseCatalogListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(CourseCatalog_1.CourseCatalogToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { CourseShare } from './CourseShare';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetCourseShareList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetCourseShareList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetCourseShareList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetCourseShareList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetCourseShareList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetCourseShareList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<CourseShare>}
|
|
46
|
+
* @memberof GetCourseShareList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<CourseShare>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetCourseShareList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetCourseShareList(value: object): value is GetCourseShareList;
|
|
54
|
+
export declare function GetCourseShareListFromJSON(json: any): GetCourseShareList;
|
|
55
|
+
export declare function GetCourseShareListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseShareList;
|
|
56
|
+
export declare function GetCourseShareListToJSON(json: any): GetCourseShareList;
|
|
57
|
+
export declare function GetCourseShareListToJSONTyped(value?: GetCourseShareList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfGetCourseShareList = instanceOfGetCourseShareList;
|
|
17
|
+
exports.GetCourseShareListFromJSON = GetCourseShareListFromJSON;
|
|
18
|
+
exports.GetCourseShareListFromJSONTyped = GetCourseShareListFromJSONTyped;
|
|
19
|
+
exports.GetCourseShareListToJSON = GetCourseShareListToJSON;
|
|
20
|
+
exports.GetCourseShareListToJSONTyped = GetCourseShareListToJSONTyped;
|
|
21
|
+
const CourseShare_1 = require("./CourseShare");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetCourseShareList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetCourseShareList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetCourseShareListFromJSON(json) {
|
|
39
|
+
return GetCourseShareListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetCourseShareListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(CourseShare_1.CourseShareFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetCourseShareListToJSON(json) {
|
|
54
|
+
return GetCourseShareListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetCourseShareListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(CourseShare_1.CourseShareToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export * from './GetContentLibraryVersion';
|
|
|
56
56
|
export * from './GetConversation';
|
|
57
57
|
export * from './GetConversationList';
|
|
58
58
|
export * from './GetCourse';
|
|
59
|
+
export * from './GetCourseCatalogList';
|
|
59
60
|
export * from './GetCourseEnrollment';
|
|
60
61
|
export * from './GetCourseEnrollmentList';
|
|
61
62
|
export * from './GetCourseEnrollmentListItem';
|
|
@@ -63,6 +64,7 @@ export * from './GetCourseExport';
|
|
|
63
64
|
export * from './GetCourseExportList';
|
|
64
65
|
export * from './GetCourseImageUpload';
|
|
65
66
|
export * from './GetCourseList';
|
|
67
|
+
export * from './GetCourseShareList';
|
|
66
68
|
export * from './GetCourseVersion';
|
|
67
69
|
export * from './GetCourseVersionItem';
|
|
68
70
|
export * from './GetCourseVersionItemLaunch';
|
package/dist/models/index.js
CHANGED
|
@@ -74,6 +74,7 @@ __exportStar(require("./GetContentLibraryVersion"), exports);
|
|
|
74
74
|
__exportStar(require("./GetConversation"), exports);
|
|
75
75
|
__exportStar(require("./GetConversationList"), exports);
|
|
76
76
|
__exportStar(require("./GetCourse"), exports);
|
|
77
|
+
__exportStar(require("./GetCourseCatalogList"), exports);
|
|
77
78
|
__exportStar(require("./GetCourseEnrollment"), exports);
|
|
78
79
|
__exportStar(require("./GetCourseEnrollmentList"), exports);
|
|
79
80
|
__exportStar(require("./GetCourseEnrollmentListItem"), exports);
|
|
@@ -81,6 +82,7 @@ __exportStar(require("./GetCourseExport"), exports);
|
|
|
81
82
|
__exportStar(require("./GetCourseExportList"), exports);
|
|
82
83
|
__exportStar(require("./GetCourseImageUpload"), exports);
|
|
83
84
|
__exportStar(require("./GetCourseList"), exports);
|
|
85
|
+
__exportStar(require("./GetCourseShareList"), exports);
|
|
84
86
|
__exportStar(require("./GetCourseVersion"), exports);
|
|
85
87
|
__exportStar(require("./GetCourseVersionItem"), exports);
|
|
86
88
|
__exportStar(require("./GetCourseVersionItemLaunch"), exports);
|
package/docs/CourseCatalogApi.md
CHANGED
|
@@ -285,7 +285,7 @@ No authorization required
|
|
|
285
285
|
|
|
286
286
|
## getCourseCatalogs
|
|
287
287
|
|
|
288
|
-
>
|
|
288
|
+
> GetCourseCatalogList getCourseCatalogs(page, pageSize)
|
|
289
289
|
|
|
290
290
|
List catalogs in the current portal
|
|
291
291
|
|
|
@@ -302,8 +302,15 @@ async function example() {
|
|
|
302
302
|
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
303
303
|
const api = new CourseCatalogApi();
|
|
304
304
|
|
|
305
|
+
const body = {
|
|
306
|
+
// number (optional)
|
|
307
|
+
page: 56,
|
|
308
|
+
// number (optional)
|
|
309
|
+
pageSize: 56,
|
|
310
|
+
} satisfies GetCourseCatalogsRequest;
|
|
311
|
+
|
|
305
312
|
try {
|
|
306
|
-
const data = await api.getCourseCatalogs();
|
|
313
|
+
const data = await api.getCourseCatalogs(body);
|
|
307
314
|
console.log(data);
|
|
308
315
|
} catch (error) {
|
|
309
316
|
console.error(error);
|
|
@@ -316,11 +323,15 @@ example().catch(console.error);
|
|
|
316
323
|
|
|
317
324
|
### Parameters
|
|
318
325
|
|
|
319
|
-
|
|
326
|
+
|
|
327
|
+
| Name | Type | Description | Notes |
|
|
328
|
+
|------------- | ------------- | ------------- | -------------|
|
|
329
|
+
| **page** | `number` | | [Optional] [Defaults to `1`] |
|
|
330
|
+
| **pageSize** | `number` | | [Optional] [Defaults to `20`] |
|
|
320
331
|
|
|
321
332
|
### Return type
|
|
322
333
|
|
|
323
|
-
[**
|
|
334
|
+
[**GetCourseCatalogList**](GetCourseCatalogList.md)
|
|
324
335
|
|
|
325
336
|
### Authorization
|
|
326
337
|
|
package/docs/CourseShareApi.md
CHANGED
|
@@ -87,7 +87,7 @@ No authorization required
|
|
|
87
87
|
|
|
88
88
|
## getCourseSharesOfferedByMe
|
|
89
89
|
|
|
90
|
-
>
|
|
90
|
+
> GetCourseShareList getCourseSharesOfferedByMe(page, pageSize, courseId, state)
|
|
91
91
|
|
|
92
92
|
List shares the current portal has offered out
|
|
93
93
|
|
|
@@ -105,6 +105,12 @@ async function example() {
|
|
|
105
105
|
const api = new CourseShareApi();
|
|
106
106
|
|
|
107
107
|
const body = {
|
|
108
|
+
// number (optional)
|
|
109
|
+
page: 56,
|
|
110
|
+
// number (optional)
|
|
111
|
+
pageSize: 56,
|
|
112
|
+
// string | Filter by an owned course external ID (optional)
|
|
113
|
+
courseId: courseId_example,
|
|
108
114
|
// 'offered' | 'accepted_mirror' | 'accepted_clone' | 'declined' | 'revoked' | Filter by share state (case-insensitive) (optional)
|
|
109
115
|
state: state_example,
|
|
110
116
|
} satisfies GetCourseSharesOfferedByMeRequest;
|
|
@@ -126,11 +132,14 @@ example().catch(console.error);
|
|
|
126
132
|
|
|
127
133
|
| Name | Type | Description | Notes |
|
|
128
134
|
|------------- | ------------- | ------------- | -------------|
|
|
135
|
+
| **page** | `number` | | [Optional] [Defaults to `1`] |
|
|
136
|
+
| **pageSize** | `number` | | [Optional] [Defaults to `20`] |
|
|
137
|
+
| **courseId** | `string` | Filter by an owned course external ID | [Optional] [Defaults to `undefined`] |
|
|
129
138
|
| **state** | `offered`, `accepted_mirror`, `accepted_clone`, `declined`, `revoked` | Filter by share state (case-insensitive) | [Optional] [Defaults to `undefined`] [Enum: offered, accepted_mirror, accepted_clone, declined, revoked] |
|
|
130
139
|
|
|
131
140
|
### Return type
|
|
132
141
|
|
|
133
|
-
[**
|
|
142
|
+
[**GetCourseShareList**](GetCourseShareList.md)
|
|
134
143
|
|
|
135
144
|
### Authorization
|
|
136
145
|
|
|
@@ -153,11 +162,11 @@ No authorization required
|
|
|
153
162
|
|
|
154
163
|
## getCourseSharesOfferedToMe
|
|
155
164
|
|
|
156
|
-
>
|
|
165
|
+
> GetCourseShareList getCourseSharesOfferedToMe(page, pageSize, state)
|
|
157
166
|
|
|
158
167
|
List shares offered to the current portal
|
|
159
168
|
|
|
160
|
-
Returns
|
|
169
|
+
Returns `course_share` rows where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
|
|
161
170
|
|
|
162
171
|
### Example
|
|
163
172
|
|
|
@@ -173,6 +182,10 @@ async function example() {
|
|
|
173
182
|
const api = new CourseShareApi();
|
|
174
183
|
|
|
175
184
|
const body = {
|
|
185
|
+
// number (optional)
|
|
186
|
+
page: 56,
|
|
187
|
+
// number (optional)
|
|
188
|
+
pageSize: 56,
|
|
176
189
|
// 'offered' | 'accepted_mirror' | 'accepted_clone' | 'declined' | 'revoked' | Filter by share state (case-insensitive) (optional)
|
|
177
190
|
state: state_example,
|
|
178
191
|
} satisfies GetCourseSharesOfferedToMeRequest;
|
|
@@ -194,11 +207,13 @@ example().catch(console.error);
|
|
|
194
207
|
|
|
195
208
|
| Name | Type | Description | Notes |
|
|
196
209
|
|------------- | ------------- | ------------- | -------------|
|
|
210
|
+
| **page** | `number` | | [Optional] [Defaults to `1`] |
|
|
211
|
+
| **pageSize** | `number` | | [Optional] [Defaults to `20`] |
|
|
197
212
|
| **state** | `offered`, `accepted_mirror`, `accepted_clone`, `declined`, `revoked` | Filter by share state (case-insensitive) | [Optional] [Defaults to `undefined`] [Enum: offered, accepted_mirror, accepted_clone, declined, revoked] |
|
|
198
213
|
|
|
199
214
|
### Return type
|
|
200
215
|
|
|
201
|
-
[**
|
|
216
|
+
[**GetCourseShareList**](GetCourseShareList.md)
|
|
202
217
|
|
|
203
218
|
### Authorization
|
|
204
219
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# GetCourseCatalogList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`page` | number
|
|
10
|
+
`pageSize` | number
|
|
11
|
+
`totalPages` | number
|
|
12
|
+
`totalItems` | number
|
|
13
|
+
`items` | [Array<CourseCatalog>](CourseCatalog.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { GetCourseCatalogList } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"page": null,
|
|
23
|
+
"pageSize": null,
|
|
24
|
+
"totalPages": null,
|
|
25
|
+
"totalItems": null,
|
|
26
|
+
"items": null,
|
|
27
|
+
} satisfies GetCourseCatalogList
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetCourseCatalogList
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# GetCourseShareList
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`page` | number
|
|
10
|
+
`pageSize` | number
|
|
11
|
+
`totalPages` | number
|
|
12
|
+
`totalItems` | number
|
|
13
|
+
`items` | [Array<CourseShare>](CourseShare.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { GetCourseShareList } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"page": null,
|
|
23
|
+
"pageSize": null,
|
|
24
|
+
"totalPages": null,
|
|
25
|
+
"totalItems": null,
|
|
26
|
+
"items": null,
|
|
27
|
+
} satisfies GetCourseShareList
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as GetCourseShareList
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|