@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
package/.openapi-generator/FILES
CHANGED
|
@@ -71,6 +71,7 @@ docs/GetContentLibraryVersion.md
|
|
|
71
71
|
docs/GetConversation.md
|
|
72
72
|
docs/GetConversationList.md
|
|
73
73
|
docs/GetCourse.md
|
|
74
|
+
docs/GetCourseCatalogList.md
|
|
74
75
|
docs/GetCourseEnrollment.md
|
|
75
76
|
docs/GetCourseEnrollmentList.md
|
|
76
77
|
docs/GetCourseEnrollmentListItem.md
|
|
@@ -78,6 +79,7 @@ docs/GetCourseExport.md
|
|
|
78
79
|
docs/GetCourseExportList.md
|
|
79
80
|
docs/GetCourseImageUpload.md
|
|
80
81
|
docs/GetCourseList.md
|
|
82
|
+
docs/GetCourseShareList.md
|
|
81
83
|
docs/GetCourseVersion.md
|
|
82
84
|
docs/GetCourseVersionItem.md
|
|
83
85
|
docs/GetCourseVersionItemLaunch.md
|
|
@@ -386,6 +388,7 @@ src/models/GetContentLibraryVersion.ts
|
|
|
386
388
|
src/models/GetConversation.ts
|
|
387
389
|
src/models/GetConversationList.ts
|
|
388
390
|
src/models/GetCourse.ts
|
|
391
|
+
src/models/GetCourseCatalogList.ts
|
|
389
392
|
src/models/GetCourseEnrollment.ts
|
|
390
393
|
src/models/GetCourseEnrollmentList.ts
|
|
391
394
|
src/models/GetCourseEnrollmentListItem.ts
|
|
@@ -393,6 +396,7 @@ src/models/GetCourseExport.ts
|
|
|
393
396
|
src/models/GetCourseExportList.ts
|
|
394
397
|
src/models/GetCourseImageUpload.ts
|
|
395
398
|
src/models/GetCourseList.ts
|
|
399
|
+
src/models/GetCourseShareList.ts
|
|
396
400
|
src/models/GetCourseVersion.ts
|
|
397
401
|
src/models/GetCourseVersionItem.ts
|
|
398
402
|
src/models/GetCourseVersionItemLaunch.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.108.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -417,6 +417,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
417
417
|
- [GetConversation](docs/GetConversation.md)
|
|
418
418
|
- [GetConversationList](docs/GetConversationList.md)
|
|
419
419
|
- [GetCourse](docs/GetCourse.md)
|
|
420
|
+
- [GetCourseCatalogList](docs/GetCourseCatalogList.md)
|
|
420
421
|
- [GetCourseEnrollment](docs/GetCourseEnrollment.md)
|
|
421
422
|
- [GetCourseEnrollmentList](docs/GetCourseEnrollmentList.md)
|
|
422
423
|
- [GetCourseEnrollmentListItem](docs/GetCourseEnrollmentListItem.md)
|
|
@@ -424,6 +425,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
424
425
|
- [GetCourseExportList](docs/GetCourseExportList.md)
|
|
425
426
|
- [GetCourseImageUpload](docs/GetCourseImageUpload.md)
|
|
426
427
|
- [GetCourseList](docs/GetCourseList.md)
|
|
428
|
+
- [GetCourseShareList](docs/GetCourseShareList.md)
|
|
427
429
|
- [GetCourseVersion](docs/GetCourseVersion.md)
|
|
428
430
|
- [GetCourseVersionItem](docs/GetCourseVersionItem.md)
|
|
429
431
|
- [GetCourseVersionItemLaunch](docs/GetCourseVersionItemLaunch.md)
|
|
@@ -651,7 +653,7 @@ and is automatically generated by the
|
|
|
651
653
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
652
654
|
|
|
653
655
|
- API version: `1.0.0`
|
|
654
|
-
- Package version: `1.
|
|
656
|
+
- Package version: `1.108.0`
|
|
655
657
|
- Generator version: `7.22.0`
|
|
656
658
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
657
659
|
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type CourseCatalog } from '../models/CourseCatalog';
|
|
14
14
|
import { type GetCourse } from '../models/GetCourse';
|
|
15
|
+
import { type GetCourseCatalogList } from '../models/GetCourseCatalogList';
|
|
15
16
|
import { type PostCourseCatalog } from '../models/PostCourseCatalog';
|
|
16
17
|
import { type PutCourseCatalog } from '../models/PutCourseCatalog';
|
|
17
18
|
export interface AddCourseToCatalogRequest {
|
|
@@ -27,6 +28,10 @@ export interface GetCatalogCoursesRequest {
|
|
|
27
28
|
export interface GetCourseCatalogRequest {
|
|
28
29
|
catalogId: string;
|
|
29
30
|
}
|
|
31
|
+
export interface GetCourseCatalogsRequest {
|
|
32
|
+
page?: number;
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
}
|
|
30
35
|
export interface PostCourseCatalogRequest {
|
|
31
36
|
postCourseCatalog: PostCourseCatalog;
|
|
32
37
|
}
|
|
@@ -93,15 +98,15 @@ export declare class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
93
98
|
/**
|
|
94
99
|
* Creates request options for getCourseCatalogs without sending the request
|
|
95
100
|
*/
|
|
96
|
-
getCourseCatalogsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
101
|
+
getCourseCatalogsRequestOpts(requestParameters: GetCourseCatalogsRequest): Promise<runtime.RequestOpts>;
|
|
97
102
|
/**
|
|
98
103
|
* List catalogs in the current portal
|
|
99
104
|
*/
|
|
100
|
-
getCourseCatalogsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
105
|
+
getCourseCatalogsRaw(requestParameters: GetCourseCatalogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseCatalogList>>;
|
|
101
106
|
/**
|
|
102
107
|
* List catalogs in the current portal
|
|
103
108
|
*/
|
|
104
|
-
getCourseCatalogs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
109
|
+
getCourseCatalogs(requestParameters?: GetCourseCatalogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseCatalogList>;
|
|
105
110
|
/**
|
|
106
111
|
* Creates request options for postCourseCatalog without sending the request
|
|
107
112
|
*/
|
|
@@ -26,6 +26,7 @@ exports.CourseCatalogApi = void 0;
|
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const CourseCatalog_1 = require("../models/CourseCatalog");
|
|
28
28
|
const GetCourse_1 = require("../models/GetCourse");
|
|
29
|
+
const GetCourseCatalogList_1 = require("../models/GetCourseCatalogList");
|
|
29
30
|
const PostCourseCatalog_1 = require("../models/PostCourseCatalog");
|
|
30
31
|
const PutCourseCatalog_1 = require("../models/PutCourseCatalog");
|
|
31
32
|
/**
|
|
@@ -193,9 +194,15 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
193
194
|
/**
|
|
194
195
|
* Creates request options for getCourseCatalogs without sending the request
|
|
195
196
|
*/
|
|
196
|
-
getCourseCatalogsRequestOpts() {
|
|
197
|
+
getCourseCatalogsRequestOpts(requestParameters) {
|
|
197
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
199
|
const queryParameters = {};
|
|
200
|
+
if (requestParameters['page'] != null) {
|
|
201
|
+
queryParameters['page'] = requestParameters['page'];
|
|
202
|
+
}
|
|
203
|
+
if (requestParameters['pageSize'] != null) {
|
|
204
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
205
|
+
}
|
|
199
206
|
const headerParameters = {};
|
|
200
207
|
let urlPath = `/catalogs`;
|
|
201
208
|
return {
|
|
@@ -209,19 +216,19 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
209
216
|
/**
|
|
210
217
|
* List catalogs in the current portal
|
|
211
218
|
*/
|
|
212
|
-
getCourseCatalogsRaw(initOverrides) {
|
|
219
|
+
getCourseCatalogsRaw(requestParameters, initOverrides) {
|
|
213
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
214
|
-
const requestOptions = yield this.getCourseCatalogsRequestOpts();
|
|
221
|
+
const requestOptions = yield this.getCourseCatalogsRequestOpts(requestParameters);
|
|
215
222
|
const response = yield this.request(requestOptions, initOverrides);
|
|
216
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
223
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseCatalogList_1.GetCourseCatalogListFromJSON)(jsonValue));
|
|
217
224
|
});
|
|
218
225
|
}
|
|
219
226
|
/**
|
|
220
227
|
* List catalogs in the current portal
|
|
221
228
|
*/
|
|
222
|
-
getCourseCatalogs(
|
|
223
|
-
return __awaiter(this,
|
|
224
|
-
const response = yield this.getCourseCatalogsRaw(initOverrides);
|
|
229
|
+
getCourseCatalogs() {
|
|
230
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
231
|
+
const response = yield this.getCourseCatalogsRaw(requestParameters, initOverrides);
|
|
225
232
|
return yield response.value();
|
|
226
233
|
});
|
|
227
234
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { type
|
|
13
|
+
import { type GetCourseShareList } from '../models/GetCourseShareList';
|
|
14
14
|
import { type PostOfferCatalog } from '../models/PostOfferCatalog';
|
|
15
15
|
import { type PostOfferCatalogResponse } from '../models/PostOfferCatalogResponse';
|
|
16
16
|
import { type PostOfferCourse } from '../models/PostOfferCourse';
|
|
@@ -19,9 +19,14 @@ export interface DeleteCourseShareRequest {
|
|
|
19
19
|
shareId: string;
|
|
20
20
|
}
|
|
21
21
|
export interface GetCourseSharesOfferedByMeRequest {
|
|
22
|
+
page?: number;
|
|
23
|
+
pageSize?: number;
|
|
24
|
+
courseId?: string;
|
|
22
25
|
state?: GetCourseSharesOfferedByMeStateEnum;
|
|
23
26
|
}
|
|
24
27
|
export interface GetCourseSharesOfferedToMeRequest {
|
|
28
|
+
page?: number;
|
|
29
|
+
pageSize?: number;
|
|
25
30
|
state?: GetCourseSharesOfferedToMeStateEnum;
|
|
26
31
|
}
|
|
27
32
|
export interface PostOfferCatalogRequest {
|
|
@@ -69,25 +74,25 @@ export declare class CourseShareApi extends runtime.BaseAPI {
|
|
|
69
74
|
/**
|
|
70
75
|
* List shares the current portal has offered out
|
|
71
76
|
*/
|
|
72
|
-
getCourseSharesOfferedByMeRaw(requestParameters: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
77
|
+
getCourseSharesOfferedByMeRaw(requestParameters: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseShareList>>;
|
|
73
78
|
/**
|
|
74
79
|
* List shares the current portal has offered out
|
|
75
80
|
*/
|
|
76
|
-
getCourseSharesOfferedByMe(requestParameters?: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
81
|
+
getCourseSharesOfferedByMe(requestParameters?: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseShareList>;
|
|
77
82
|
/**
|
|
78
83
|
* Creates request options for getCourseSharesOfferedToMe without sending the request
|
|
79
84
|
*/
|
|
80
85
|
getCourseSharesOfferedToMeRequestOpts(requestParameters: GetCourseSharesOfferedToMeRequest): Promise<runtime.RequestOpts>;
|
|
81
86
|
/**
|
|
82
|
-
* Returns
|
|
87
|
+
* 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.
|
|
83
88
|
* List shares offered to the current portal
|
|
84
89
|
*/
|
|
85
|
-
getCourseSharesOfferedToMeRaw(requestParameters: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
90
|
+
getCourseSharesOfferedToMeRaw(requestParameters: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseShareList>>;
|
|
86
91
|
/**
|
|
87
|
-
* Returns
|
|
92
|
+
* 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.
|
|
88
93
|
* List shares offered to the current portal
|
|
89
94
|
*/
|
|
90
|
-
getCourseSharesOfferedToMe(requestParameters?: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
95
|
+
getCourseSharesOfferedToMe(requestParameters?: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseShareList>;
|
|
91
96
|
/**
|
|
92
97
|
* Creates request options for postOfferCatalog without sending the request
|
|
93
98
|
*/
|
|
@@ -24,7 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GetCourseSharesOfferedToMeStateEnum = exports.GetCourseSharesOfferedByMeStateEnum = exports.CourseShareApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const GetCourseShareList_1 = require("../models/GetCourseShareList");
|
|
28
28
|
const PostOfferCatalog_1 = require("../models/PostOfferCatalog");
|
|
29
29
|
const PostOfferCatalogResponse_1 = require("../models/PostOfferCatalogResponse");
|
|
30
30
|
const PostOfferCourse_1 = require("../models/PostOfferCourse");
|
|
@@ -79,6 +79,15 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
79
79
|
getCourseSharesOfferedByMeRequestOpts(requestParameters) {
|
|
80
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
81
|
const queryParameters = {};
|
|
82
|
+
if (requestParameters['page'] != null) {
|
|
83
|
+
queryParameters['page'] = requestParameters['page'];
|
|
84
|
+
}
|
|
85
|
+
if (requestParameters['pageSize'] != null) {
|
|
86
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
87
|
+
}
|
|
88
|
+
if (requestParameters['courseId'] != null) {
|
|
89
|
+
queryParameters['course_id'] = requestParameters['courseId'];
|
|
90
|
+
}
|
|
82
91
|
if (requestParameters['state'] != null) {
|
|
83
92
|
queryParameters['state'] = requestParameters['state'];
|
|
84
93
|
}
|
|
@@ -99,7 +108,7 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
99
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
109
|
const requestOptions = yield this.getCourseSharesOfferedByMeRequestOpts(requestParameters);
|
|
101
110
|
const response = yield this.request(requestOptions, initOverrides);
|
|
102
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
111
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseShareList_1.GetCourseShareListFromJSON)(jsonValue));
|
|
103
112
|
});
|
|
104
113
|
}
|
|
105
114
|
/**
|
|
@@ -117,6 +126,12 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
117
126
|
getCourseSharesOfferedToMeRequestOpts(requestParameters) {
|
|
118
127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
119
128
|
const queryParameters = {};
|
|
129
|
+
if (requestParameters['page'] != null) {
|
|
130
|
+
queryParameters['page'] = requestParameters['page'];
|
|
131
|
+
}
|
|
132
|
+
if (requestParameters['pageSize'] != null) {
|
|
133
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
134
|
+
}
|
|
120
135
|
if (requestParameters['state'] != null) {
|
|
121
136
|
queryParameters['state'] = requestParameters['state'];
|
|
122
137
|
}
|
|
@@ -131,18 +146,18 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
131
146
|
});
|
|
132
147
|
}
|
|
133
148
|
/**
|
|
134
|
-
* Returns
|
|
149
|
+
* 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.
|
|
135
150
|
* List shares offered to the current portal
|
|
136
151
|
*/
|
|
137
152
|
getCourseSharesOfferedToMeRaw(requestParameters, initOverrides) {
|
|
138
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
139
154
|
const requestOptions = yield this.getCourseSharesOfferedToMeRequestOpts(requestParameters);
|
|
140
155
|
const response = yield this.request(requestOptions, initOverrides);
|
|
141
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
156
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseShareList_1.GetCourseShareListFromJSON)(jsonValue));
|
|
142
157
|
});
|
|
143
158
|
}
|
|
144
159
|
/**
|
|
145
|
-
* Returns
|
|
160
|
+
* 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.
|
|
146
161
|
* List shares offered to the current portal
|
|
147
162
|
*/
|
|
148
163
|
getCourseSharesOfferedToMe() {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type CourseCatalog } from '../models/CourseCatalog';
|
|
14
14
|
import { type GetCourse } from '../models/GetCourse';
|
|
15
|
+
import { type GetCourseCatalogList } from '../models/GetCourseCatalogList';
|
|
15
16
|
import { type PostCourseCatalog } from '../models/PostCourseCatalog';
|
|
16
17
|
import { type PutCourseCatalog } from '../models/PutCourseCatalog';
|
|
17
18
|
export interface AddCourseToCatalogRequest {
|
|
@@ -27,6 +28,10 @@ export interface GetCatalogCoursesRequest {
|
|
|
27
28
|
export interface GetCourseCatalogRequest {
|
|
28
29
|
catalogId: string;
|
|
29
30
|
}
|
|
31
|
+
export interface GetCourseCatalogsRequest {
|
|
32
|
+
page?: number;
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
}
|
|
30
35
|
export interface PostCourseCatalogRequest {
|
|
31
36
|
postCourseCatalog: PostCourseCatalog;
|
|
32
37
|
}
|
|
@@ -93,15 +98,15 @@ export declare class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
93
98
|
/**
|
|
94
99
|
* Creates request options for getCourseCatalogs without sending the request
|
|
95
100
|
*/
|
|
96
|
-
getCourseCatalogsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
101
|
+
getCourseCatalogsRequestOpts(requestParameters: GetCourseCatalogsRequest): Promise<runtime.RequestOpts>;
|
|
97
102
|
/**
|
|
98
103
|
* List catalogs in the current portal
|
|
99
104
|
*/
|
|
100
|
-
getCourseCatalogsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
105
|
+
getCourseCatalogsRaw(requestParameters: GetCourseCatalogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseCatalogList>>;
|
|
101
106
|
/**
|
|
102
107
|
* List catalogs in the current portal
|
|
103
108
|
*/
|
|
104
|
-
getCourseCatalogs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
109
|
+
getCourseCatalogs(requestParameters?: GetCourseCatalogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseCatalogList>;
|
|
105
110
|
/**
|
|
106
111
|
* Creates request options for postCourseCatalog without sending the request
|
|
107
112
|
*/
|
|
@@ -23,6 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
24
|
import { CourseCatalogFromJSON, } from '../models/CourseCatalog';
|
|
25
25
|
import { GetCourseFromJSON, } from '../models/GetCourse';
|
|
26
|
+
import { GetCourseCatalogListFromJSON, } from '../models/GetCourseCatalogList';
|
|
26
27
|
import { PostCourseCatalogToJSON, } from '../models/PostCourseCatalog';
|
|
27
28
|
import { PutCourseCatalogToJSON, } from '../models/PutCourseCatalog';
|
|
28
29
|
/**
|
|
@@ -190,9 +191,15 @@ export class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
190
191
|
/**
|
|
191
192
|
* Creates request options for getCourseCatalogs without sending the request
|
|
192
193
|
*/
|
|
193
|
-
getCourseCatalogsRequestOpts() {
|
|
194
|
+
getCourseCatalogsRequestOpts(requestParameters) {
|
|
194
195
|
return __awaiter(this, void 0, void 0, function* () {
|
|
195
196
|
const queryParameters = {};
|
|
197
|
+
if (requestParameters['page'] != null) {
|
|
198
|
+
queryParameters['page'] = requestParameters['page'];
|
|
199
|
+
}
|
|
200
|
+
if (requestParameters['pageSize'] != null) {
|
|
201
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
202
|
+
}
|
|
196
203
|
const headerParameters = {};
|
|
197
204
|
let urlPath = `/catalogs`;
|
|
198
205
|
return {
|
|
@@ -206,19 +213,19 @@ export class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
206
213
|
/**
|
|
207
214
|
* List catalogs in the current portal
|
|
208
215
|
*/
|
|
209
|
-
getCourseCatalogsRaw(initOverrides) {
|
|
216
|
+
getCourseCatalogsRaw(requestParameters, initOverrides) {
|
|
210
217
|
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
-
const requestOptions = yield this.getCourseCatalogsRequestOpts();
|
|
218
|
+
const requestOptions = yield this.getCourseCatalogsRequestOpts(requestParameters);
|
|
212
219
|
const response = yield this.request(requestOptions, initOverrides);
|
|
213
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
220
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseCatalogListFromJSON(jsonValue));
|
|
214
221
|
});
|
|
215
222
|
}
|
|
216
223
|
/**
|
|
217
224
|
* List catalogs in the current portal
|
|
218
225
|
*/
|
|
219
|
-
getCourseCatalogs(
|
|
220
|
-
return __awaiter(this,
|
|
221
|
-
const response = yield this.getCourseCatalogsRaw(initOverrides);
|
|
226
|
+
getCourseCatalogs() {
|
|
227
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
228
|
+
const response = yield this.getCourseCatalogsRaw(requestParameters, initOverrides);
|
|
222
229
|
return yield response.value();
|
|
223
230
|
});
|
|
224
231
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { type
|
|
13
|
+
import { type GetCourseShareList } from '../models/GetCourseShareList';
|
|
14
14
|
import { type PostOfferCatalog } from '../models/PostOfferCatalog';
|
|
15
15
|
import { type PostOfferCatalogResponse } from '../models/PostOfferCatalogResponse';
|
|
16
16
|
import { type PostOfferCourse } from '../models/PostOfferCourse';
|
|
@@ -19,9 +19,14 @@ export interface DeleteCourseShareRequest {
|
|
|
19
19
|
shareId: string;
|
|
20
20
|
}
|
|
21
21
|
export interface GetCourseSharesOfferedByMeRequest {
|
|
22
|
+
page?: number;
|
|
23
|
+
pageSize?: number;
|
|
24
|
+
courseId?: string;
|
|
22
25
|
state?: GetCourseSharesOfferedByMeStateEnum;
|
|
23
26
|
}
|
|
24
27
|
export interface GetCourseSharesOfferedToMeRequest {
|
|
28
|
+
page?: number;
|
|
29
|
+
pageSize?: number;
|
|
25
30
|
state?: GetCourseSharesOfferedToMeStateEnum;
|
|
26
31
|
}
|
|
27
32
|
export interface PostOfferCatalogRequest {
|
|
@@ -69,25 +74,25 @@ export declare class CourseShareApi extends runtime.BaseAPI {
|
|
|
69
74
|
/**
|
|
70
75
|
* List shares the current portal has offered out
|
|
71
76
|
*/
|
|
72
|
-
getCourseSharesOfferedByMeRaw(requestParameters: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
77
|
+
getCourseSharesOfferedByMeRaw(requestParameters: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseShareList>>;
|
|
73
78
|
/**
|
|
74
79
|
* List shares the current portal has offered out
|
|
75
80
|
*/
|
|
76
|
-
getCourseSharesOfferedByMe(requestParameters?: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
81
|
+
getCourseSharesOfferedByMe(requestParameters?: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseShareList>;
|
|
77
82
|
/**
|
|
78
83
|
* Creates request options for getCourseSharesOfferedToMe without sending the request
|
|
79
84
|
*/
|
|
80
85
|
getCourseSharesOfferedToMeRequestOpts(requestParameters: GetCourseSharesOfferedToMeRequest): Promise<runtime.RequestOpts>;
|
|
81
86
|
/**
|
|
82
|
-
* Returns
|
|
87
|
+
* 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.
|
|
83
88
|
* List shares offered to the current portal
|
|
84
89
|
*/
|
|
85
|
-
getCourseSharesOfferedToMeRaw(requestParameters: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
90
|
+
getCourseSharesOfferedToMeRaw(requestParameters: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseShareList>>;
|
|
86
91
|
/**
|
|
87
|
-
* Returns
|
|
92
|
+
* 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.
|
|
88
93
|
* List shares offered to the current portal
|
|
89
94
|
*/
|
|
90
|
-
getCourseSharesOfferedToMe(requestParameters?: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
95
|
+
getCourseSharesOfferedToMe(requestParameters?: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseShareList>;
|
|
91
96
|
/**
|
|
92
97
|
* Creates request options for postOfferCatalog without sending the request
|
|
93
98
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import {
|
|
24
|
+
import { GetCourseShareListFromJSON, } from '../models/GetCourseShareList';
|
|
25
25
|
import { PostOfferCatalogToJSON, } from '../models/PostOfferCatalog';
|
|
26
26
|
import { PostOfferCatalogResponseFromJSON, } from '../models/PostOfferCatalogResponse';
|
|
27
27
|
import { PostOfferCourseToJSON, } from '../models/PostOfferCourse';
|
|
@@ -76,6 +76,15 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
76
76
|
getCourseSharesOfferedByMeRequestOpts(requestParameters) {
|
|
77
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
78
|
const queryParameters = {};
|
|
79
|
+
if (requestParameters['page'] != null) {
|
|
80
|
+
queryParameters['page'] = requestParameters['page'];
|
|
81
|
+
}
|
|
82
|
+
if (requestParameters['pageSize'] != null) {
|
|
83
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
84
|
+
}
|
|
85
|
+
if (requestParameters['courseId'] != null) {
|
|
86
|
+
queryParameters['course_id'] = requestParameters['courseId'];
|
|
87
|
+
}
|
|
79
88
|
if (requestParameters['state'] != null) {
|
|
80
89
|
queryParameters['state'] = requestParameters['state'];
|
|
81
90
|
}
|
|
@@ -96,7 +105,7 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
96
105
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
106
|
const requestOptions = yield this.getCourseSharesOfferedByMeRequestOpts(requestParameters);
|
|
98
107
|
const response = yield this.request(requestOptions, initOverrides);
|
|
99
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
108
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseShareListFromJSON(jsonValue));
|
|
100
109
|
});
|
|
101
110
|
}
|
|
102
111
|
/**
|
|
@@ -114,6 +123,12 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
114
123
|
getCourseSharesOfferedToMeRequestOpts(requestParameters) {
|
|
115
124
|
return __awaiter(this, void 0, void 0, function* () {
|
|
116
125
|
const queryParameters = {};
|
|
126
|
+
if (requestParameters['page'] != null) {
|
|
127
|
+
queryParameters['page'] = requestParameters['page'];
|
|
128
|
+
}
|
|
129
|
+
if (requestParameters['pageSize'] != null) {
|
|
130
|
+
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
131
|
+
}
|
|
117
132
|
if (requestParameters['state'] != null) {
|
|
118
133
|
queryParameters['state'] = requestParameters['state'];
|
|
119
134
|
}
|
|
@@ -128,18 +143,18 @@ export class CourseShareApi extends runtime.BaseAPI {
|
|
|
128
143
|
});
|
|
129
144
|
}
|
|
130
145
|
/**
|
|
131
|
-
* Returns
|
|
146
|
+
* 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.
|
|
132
147
|
* List shares offered to the current portal
|
|
133
148
|
*/
|
|
134
149
|
getCourseSharesOfferedToMeRaw(requestParameters, initOverrides) {
|
|
135
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
151
|
const requestOptions = yield this.getCourseSharesOfferedToMeRequestOpts(requestParameters);
|
|
137
152
|
const response = yield this.request(requestOptions, initOverrides);
|
|
138
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
153
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseShareListFromJSON(jsonValue));
|
|
139
154
|
});
|
|
140
155
|
}
|
|
141
156
|
/**
|
|
142
|
-
* Returns
|
|
157
|
+
* 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.
|
|
143
158
|
* List shares offered to the current portal
|
|
144
159
|
*/
|
|
145
160
|
getCourseSharesOfferedToMe() {
|
|
@@ -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,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 { CourseCatalogFromJSON, CourseCatalogToJSON, } from './CourseCatalog';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the GetCourseCatalogList interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfGetCourseCatalogList(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 GetCourseCatalogListFromJSON(json) {
|
|
32
|
+
return GetCourseCatalogListFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function GetCourseCatalogListFromJSONTyped(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(CourseCatalogFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function GetCourseCatalogListToJSON(json) {
|
|
47
|
+
return GetCourseCatalogListToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function GetCourseCatalogListToJSONTyped(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(CourseCatalogToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|