@easyedu/js-lsm-api 1.57.0 → 1.59.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 +6 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +8 -3
- package/dist/apis/CertificateApi.d.ts +10 -1
- package/dist/apis/CertificateApi.js +34 -25
- package/dist/apis/ChatApi.d.ts +6 -1
- package/dist/apis/ChatApi.js +15 -10
- package/dist/apis/ContentApi.d.ts +22 -1
- package/dist/apis/ContentApi.js +101 -80
- package/dist/apis/CourseApi.d.ts +14 -1
- package/dist/apis/CourseApi.js +50 -37
- package/dist/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/apis/CourseCatalogApi.js +19 -16
- package/dist/apis/CourseShareApi.d.ts +5 -1
- package/dist/apis/CourseShareApi.js +18 -14
- package/dist/apis/ModuleApi.d.ts +6 -1
- package/dist/apis/ModuleApi.js +24 -19
- package/dist/apis/PortalApi.d.ts +11 -3
- package/dist/apis/PortalApi.js +31 -22
- package/dist/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/apis/PortalSublicenseApi.js +5 -4
- package/dist/apis/QuestionApi.d.ts +4 -1
- package/dist/apis/QuestionApi.js +13 -10
- package/dist/apis/QuizApi.d.ts +22 -1
- package/dist/apis/QuizApi.js +82 -61
- package/dist/apis/ReportingApi.d.ts +9 -1
- package/dist/apis/ReportingApi.js +39 -31
- package/dist/apis/RoleApi.d.ts +6 -1
- package/dist/apis/RoleApi.js +27 -22
- package/dist/apis/SupportTicketApi.d.ts +8 -1
- package/dist/apis/SupportTicketApi.js +26 -19
- package/dist/apis/UserApi.d.ts +38 -1
- package/dist/apis/UserApi.js +115 -10
- package/dist/esm/apis/CertificateApi.d.ts +10 -1
- package/dist/esm/apis/CertificateApi.js +19 -10
- package/dist/esm/apis/ChatApi.d.ts +6 -1
- package/dist/esm/apis/ChatApi.js +9 -4
- package/dist/esm/apis/ContentApi.d.ts +22 -1
- package/dist/esm/apis/ContentApi.js +74 -53
- package/dist/esm/apis/CourseApi.d.ts +14 -1
- package/dist/esm/apis/CourseApi.js +30 -17
- package/dist/esm/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/esm/apis/CourseCatalogApi.js +12 -9
- package/dist/esm/apis/CourseShareApi.d.ts +5 -1
- package/dist/esm/apis/CourseShareApi.js +12 -8
- package/dist/esm/apis/ModuleApi.d.ts +6 -1
- package/dist/esm/apis/ModuleApi.js +15 -10
- package/dist/esm/apis/PortalApi.d.ts +11 -3
- package/dist/esm/apis/PortalApi.js +21 -12
- package/dist/esm/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/esm/apis/PortalSublicenseApi.js +3 -2
- package/dist/esm/apis/QuestionApi.d.ts +4 -1
- package/dist/esm/apis/QuestionApi.js +7 -4
- package/dist/esm/apis/QuizApi.d.ts +22 -1
- package/dist/esm/apis/QuizApi.js +53 -32
- package/dist/esm/apis/ReportingApi.d.ts +9 -1
- package/dist/esm/apis/ReportingApi.js +30 -22
- package/dist/esm/apis/RoleApi.d.ts +6 -1
- package/dist/esm/apis/RoleApi.js +18 -13
- package/dist/esm/apis/SupportTicketApi.d.ts +8 -1
- package/dist/esm/apis/SupportTicketApi.js +16 -9
- package/dist/esm/apis/UserApi.d.ts +38 -1
- package/dist/esm/apis/UserApi.js +108 -3
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +4 -0
- package/dist/esm/models/GetUser.d.ts +6 -0
- package/dist/esm/models/GetUser.js +2 -0
- package/dist/esm/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/esm/models/GetUserAvatarUpload.js +43 -0
- package/dist/esm/models/PostPortal.d.ts +12 -0
- package/dist/esm/models/PostPortal.js +4 -0
- package/dist/esm/models/PutPortalBranding.d.ts +12 -0
- package/dist/esm/models/PutPortalBranding.js +4 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.js +52 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/GetPortal.d.ts +12 -0
- package/dist/models/GetPortal.js +4 -0
- package/dist/models/GetUser.d.ts +6 -0
- package/dist/models/GetUser.js +2 -0
- package/dist/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/models/GetUserAvatarUpload.js +50 -0
- package/dist/models/PostPortal.d.ts +12 -0
- package/dist/models/PostPortal.js +4 -0
- package/dist/models/PutPortalBranding.d.ts +12 -0
- package/dist/models/PutPortalBranding.js +4 -0
- package/dist/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/models/UpdateSelectedPortalResponse.js +59 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +1 -1
- package/docs/GetPortal.md +4 -0
- package/docs/GetUser.md +2 -0
- package/docs/GetUserAvatarUpload.md +34 -0
- package/docs/PortalApi.md +3 -3
- package/docs/PostPortal.md +4 -0
- package/docs/PutPortalBranding.md +4 -0
- package/docs/UpdateSelectedPortalResponse.md +38 -0
- package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
- package/docs/UserApi.md +138 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +38 -23
- package/src/apis/ChatApi.ts +20 -13
- package/src/apis/ContentApi.ts +117 -78
- package/src/apis/CourseApi.ts +57 -34
- package/src/apis/CourseCatalogApi.ts +19 -16
- package/src/apis/CourseShareApi.ts +21 -16
- package/src/apis/ModuleApi.ts +26 -19
- package/src/apis/OtherApi.ts +0 -1
- package/src/apis/PortalApi.ts +42 -25
- package/src/apis/PortalSublicenseApi.ts +6 -7
- package/src/apis/QuestionApi.ts +14 -11
- package/src/apis/QuizApi.ts +96 -57
- package/src/apis/ReportingApi.ts +47 -34
- package/src/apis/RoleApi.ts +29 -22
- package/src/apis/SupportTicketApi.ts +31 -20
- package/src/apis/UserApi.ts +150 -12
- package/src/models/GetPortal.ts +16 -0
- package/src/models/GetUser.ts +8 -0
- package/src/models/GetUserAvatarUpload.ts +66 -0
- package/src/models/PostPortal.ts +16 -0
- package/src/models/PutPortalBranding.ts +16 -0
- package/src/models/UpdateSelectedPortalResponse.ts +92 -0
- package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -2
package/dist/apis/CourseApi.js
CHANGED
|
@@ -24,7 +24,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GetCourseEnrollmentsTypeEnum = exports.CourseApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const GetCourse_1 = require("../models/GetCourse");
|
|
28
|
+
const GetCourseEnrollment_1 = require("../models/GetCourseEnrollment");
|
|
29
|
+
const GetCourseEnrollmentList_1 = require("../models/GetCourseEnrollmentList");
|
|
30
|
+
const GetCourseExport_1 = require("../models/GetCourseExport");
|
|
31
|
+
const GetCourseExportList_1 = require("../models/GetCourseExportList");
|
|
32
|
+
const GetCourseImageUpload_1 = require("../models/GetCourseImageUpload");
|
|
33
|
+
const GetCourseList_1 = require("../models/GetCourseList");
|
|
34
|
+
const GetCourseReportingBasic_1 = require("../models/GetCourseReportingBasic");
|
|
35
|
+
const PostCourse_1 = require("../models/PostCourse");
|
|
36
|
+
const PostCourseEnrollment_1 = require("../models/PostCourseEnrollment");
|
|
37
|
+
const PostCourseExport_1 = require("../models/PostCourseExport");
|
|
38
|
+
const PostDuplicate_1 = require("../models/PostDuplicate");
|
|
39
|
+
const PutCourse_1 = require("../models/PutCourse");
|
|
40
|
+
const PutCourseEnrollment_1 = require("../models/PutCourseEnrollment");
|
|
28
41
|
/**
|
|
29
42
|
*
|
|
30
43
|
*/
|
|
@@ -40,7 +53,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
40
53
|
const queryParameters = {};
|
|
41
54
|
const headerParameters = {};
|
|
42
55
|
let urlPath = `/courses/{courseId}/image`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
56
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
44
57
|
return {
|
|
45
58
|
path: urlPath,
|
|
46
59
|
method: 'DELETE',
|
|
@@ -78,7 +91,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
78
91
|
const queryParameters = {};
|
|
79
92
|
const headerParameters = {};
|
|
80
93
|
let urlPath = `/courses/{courseId}`;
|
|
81
|
-
urlPath = urlPath.replace(
|
|
94
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
82
95
|
return {
|
|
83
96
|
path: urlPath,
|
|
84
97
|
method: 'GET',
|
|
@@ -94,7 +107,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
94
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
108
|
const requestOptions = yield this.getCourseRequestOpts(requestParameters);
|
|
96
109
|
const response = yield this.request(requestOptions, initOverrides);
|
|
97
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
110
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourse_1.GetCourseFromJSON)(jsonValue));
|
|
98
111
|
});
|
|
99
112
|
}
|
|
100
113
|
/**
|
|
@@ -120,8 +133,8 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
120
133
|
const queryParameters = {};
|
|
121
134
|
const headerParameters = {};
|
|
122
135
|
let urlPath = `/courses/{courseId}/enrollments/{enrollmentId}`;
|
|
123
|
-
urlPath = urlPath.replace(
|
|
124
|
-
urlPath = urlPath.replace(
|
|
136
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
137
|
+
urlPath = urlPath.replace('{enrollmentId}', encodeURIComponent(String(requestParameters['enrollmentId'])));
|
|
125
138
|
return {
|
|
126
139
|
path: urlPath,
|
|
127
140
|
method: 'GET',
|
|
@@ -137,7 +150,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
137
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
138
151
|
const requestOptions = yield this.getCourseEnrollmentRequestOpts(requestParameters);
|
|
139
152
|
const response = yield this.request(requestOptions, initOverrides);
|
|
140
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
153
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseEnrollment_1.GetCourseEnrollmentFromJSON)(jsonValue));
|
|
141
154
|
});
|
|
142
155
|
}
|
|
143
156
|
/**
|
|
@@ -172,7 +185,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
172
185
|
}
|
|
173
186
|
const headerParameters = {};
|
|
174
187
|
let urlPath = `/courses/{courseId}/enrollments`;
|
|
175
|
-
urlPath = urlPath.replace(
|
|
188
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
176
189
|
return {
|
|
177
190
|
path: urlPath,
|
|
178
191
|
method: 'GET',
|
|
@@ -188,7 +201,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
188
201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
202
|
const requestOptions = yield this.getCourseEnrollmentsRequestOpts(requestParameters);
|
|
190
203
|
const response = yield this.request(requestOptions, initOverrides);
|
|
191
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
204
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseEnrollmentList_1.GetCourseEnrollmentListFromJSON)(jsonValue));
|
|
192
205
|
});
|
|
193
206
|
}
|
|
194
207
|
/**
|
|
@@ -214,8 +227,8 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
214
227
|
const queryParameters = {};
|
|
215
228
|
const headerParameters = {};
|
|
216
229
|
let urlPath = `/courses/{courseId}/exports/{exportId}`;
|
|
217
|
-
urlPath = urlPath.replace(
|
|
218
|
-
urlPath = urlPath.replace(
|
|
230
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
231
|
+
urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
|
|
219
232
|
return {
|
|
220
233
|
path: urlPath,
|
|
221
234
|
method: 'GET',
|
|
@@ -231,7 +244,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
231
244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
232
245
|
const requestOptions = yield this.getCourseExportRequestOpts(requestParameters);
|
|
233
246
|
const response = yield this.request(requestOptions, initOverrides);
|
|
234
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
247
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseExport_1.GetCourseExportFromJSON)(jsonValue));
|
|
235
248
|
});
|
|
236
249
|
}
|
|
237
250
|
/**
|
|
@@ -260,7 +273,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
260
273
|
}
|
|
261
274
|
const headerParameters = {};
|
|
262
275
|
let urlPath = `/courses/{courseId}/exports`;
|
|
263
|
-
urlPath = urlPath.replace(
|
|
276
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
264
277
|
return {
|
|
265
278
|
path: urlPath,
|
|
266
279
|
method: 'GET',
|
|
@@ -276,7 +289,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
276
289
|
return __awaiter(this, void 0, void 0, function* () {
|
|
277
290
|
const requestOptions = yield this.getCourseExportsRequestOpts(requestParameters);
|
|
278
291
|
const response = yield this.request(requestOptions, initOverrides);
|
|
279
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
292
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseExportList_1.GetCourseExportListFromJSON)(jsonValue));
|
|
280
293
|
});
|
|
281
294
|
}
|
|
282
295
|
/**
|
|
@@ -323,7 +336,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
323
336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
324
337
|
const requestOptions = yield this.getCourseListRequestOpts(requestParameters);
|
|
325
338
|
const response = yield this.request(requestOptions, initOverrides);
|
|
326
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
339
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseList_1.GetCourseListFromJSON)(jsonValue));
|
|
327
340
|
});
|
|
328
341
|
}
|
|
329
342
|
/**
|
|
@@ -346,7 +359,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
346
359
|
const queryParameters = {};
|
|
347
360
|
const headerParameters = {};
|
|
348
361
|
let urlPath = `/courses/{courseId}/reporting/basic`;
|
|
349
|
-
urlPath = urlPath.replace(
|
|
362
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
350
363
|
return {
|
|
351
364
|
path: urlPath,
|
|
352
365
|
method: 'GET',
|
|
@@ -362,7 +375,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
362
375
|
return __awaiter(this, void 0, void 0, function* () {
|
|
363
376
|
const requestOptions = yield this.getCourseReportingBasicRequestOpts(requestParameters);
|
|
364
377
|
const response = yield this.request(requestOptions, initOverrides);
|
|
365
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
378
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseReportingBasic_1.GetCourseReportingBasicFromJSON)(jsonValue));
|
|
366
379
|
});
|
|
367
380
|
}
|
|
368
381
|
/**
|
|
@@ -391,7 +404,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
391
404
|
method: 'POST',
|
|
392
405
|
headers: headerParameters,
|
|
393
406
|
query: queryParameters,
|
|
394
|
-
body: (0,
|
|
407
|
+
body: (0, PostCourse_1.PostCourseToJSON)(requestParameters['postCourse']),
|
|
395
408
|
};
|
|
396
409
|
});
|
|
397
410
|
}
|
|
@@ -402,7 +415,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
402
415
|
return __awaiter(this, void 0, void 0, function* () {
|
|
403
416
|
const requestOptions = yield this.postCourseRequestOpts(requestParameters);
|
|
404
417
|
const response = yield this.request(requestOptions, initOverrides);
|
|
405
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
418
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourse_1.GetCourseFromJSON)(jsonValue));
|
|
406
419
|
});
|
|
407
420
|
}
|
|
408
421
|
/**
|
|
@@ -426,13 +439,13 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
426
439
|
const headerParameters = {};
|
|
427
440
|
headerParameters['Content-Type'] = 'application/json';
|
|
428
441
|
let urlPath = `/courses/{courseId}/duplicate`;
|
|
429
|
-
urlPath = urlPath.replace(
|
|
442
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
430
443
|
return {
|
|
431
444
|
path: urlPath,
|
|
432
445
|
method: 'POST',
|
|
433
446
|
headers: headerParameters,
|
|
434
447
|
query: queryParameters,
|
|
435
|
-
body: (0,
|
|
448
|
+
body: (0, PostDuplicate_1.PostDuplicateToJSON)(requestParameters['postDuplicate']),
|
|
436
449
|
};
|
|
437
450
|
});
|
|
438
451
|
}
|
|
@@ -444,7 +457,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
444
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
445
458
|
const requestOptions = yield this.postCourseDuplicateRequestOpts(requestParameters);
|
|
446
459
|
const response = yield this.request(requestOptions, initOverrides);
|
|
447
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
460
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourse_1.GetCourseFromJSON)(jsonValue));
|
|
448
461
|
});
|
|
449
462
|
}
|
|
450
463
|
/**
|
|
@@ -472,13 +485,13 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
472
485
|
const headerParameters = {};
|
|
473
486
|
headerParameters['Content-Type'] = 'application/json';
|
|
474
487
|
let urlPath = `/courses/{courseId}/enrollments`;
|
|
475
|
-
urlPath = urlPath.replace(
|
|
488
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
476
489
|
return {
|
|
477
490
|
path: urlPath,
|
|
478
491
|
method: 'POST',
|
|
479
492
|
headers: headerParameters,
|
|
480
493
|
query: queryParameters,
|
|
481
|
-
body: (0,
|
|
494
|
+
body: (0, PostCourseEnrollment_1.PostCourseEnrollmentToJSON)(requestParameters['postCourseEnrollment']),
|
|
482
495
|
};
|
|
483
496
|
});
|
|
484
497
|
}
|
|
@@ -489,7 +502,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
489
502
|
return __awaiter(this, void 0, void 0, function* () {
|
|
490
503
|
const requestOptions = yield this.postCourseEnrollmentRequestOpts(requestParameters);
|
|
491
504
|
const response = yield this.request(requestOptions, initOverrides);
|
|
492
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
505
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseEnrollment_1.GetCourseEnrollmentFromJSON)(jsonValue));
|
|
493
506
|
});
|
|
494
507
|
}
|
|
495
508
|
/**
|
|
@@ -516,13 +529,13 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
516
529
|
const headerParameters = {};
|
|
517
530
|
headerParameters['Content-Type'] = 'application/json';
|
|
518
531
|
let urlPath = `/courses/{courseId}/exports`;
|
|
519
|
-
urlPath = urlPath.replace(
|
|
532
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
520
533
|
return {
|
|
521
534
|
path: urlPath,
|
|
522
535
|
method: 'POST',
|
|
523
536
|
headers: headerParameters,
|
|
524
537
|
query: queryParameters,
|
|
525
|
-
body: (0,
|
|
538
|
+
body: (0, PostCourseExport_1.PostCourseExportToJSON)(requestParameters['postCourseExport']),
|
|
526
539
|
};
|
|
527
540
|
});
|
|
528
541
|
}
|
|
@@ -534,7 +547,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
534
547
|
return __awaiter(this, void 0, void 0, function* () {
|
|
535
548
|
const requestOptions = yield this.postCourseExportRequestOpts(requestParameters);
|
|
536
549
|
const response = yield this.request(requestOptions, initOverrides);
|
|
537
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
550
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseExport_1.GetCourseExportFromJSON)(jsonValue));
|
|
538
551
|
});
|
|
539
552
|
}
|
|
540
553
|
/**
|
|
@@ -579,7 +592,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
579
592
|
formParams.append('file', requestParameters['file']);
|
|
580
593
|
}
|
|
581
594
|
let urlPath = `/courses/{courseId}/image`;
|
|
582
|
-
urlPath = urlPath.replace(
|
|
595
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
583
596
|
return {
|
|
584
597
|
path: urlPath,
|
|
585
598
|
method: 'POST',
|
|
@@ -596,7 +609,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
596
609
|
return __awaiter(this, void 0, void 0, function* () {
|
|
597
610
|
const requestOptions = yield this.postCourseImageUploadRequestOpts(requestParameters);
|
|
598
611
|
const response = yield this.request(requestOptions, initOverrides);
|
|
599
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
612
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseImageUpload_1.GetCourseImageUploadFromJSON)(jsonValue));
|
|
600
613
|
});
|
|
601
614
|
}
|
|
602
615
|
/**
|
|
@@ -623,13 +636,13 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
623
636
|
const headerParameters = {};
|
|
624
637
|
headerParameters['Content-Type'] = 'application/json';
|
|
625
638
|
let urlPath = `/courses/{courseId}`;
|
|
626
|
-
urlPath = urlPath.replace(
|
|
639
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
627
640
|
return {
|
|
628
641
|
path: urlPath,
|
|
629
642
|
method: 'PUT',
|
|
630
643
|
headers: headerParameters,
|
|
631
644
|
query: queryParameters,
|
|
632
|
-
body: (0,
|
|
645
|
+
body: (0, PutCourse_1.PutCourseToJSON)(requestParameters['putCourse']),
|
|
633
646
|
};
|
|
634
647
|
});
|
|
635
648
|
}
|
|
@@ -640,7 +653,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
640
653
|
return __awaiter(this, void 0, void 0, function* () {
|
|
641
654
|
const requestOptions = yield this.putCourseRequestOpts(requestParameters);
|
|
642
655
|
const response = yield this.request(requestOptions, initOverrides);
|
|
643
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
656
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourse_1.GetCourseFromJSON)(jsonValue));
|
|
644
657
|
});
|
|
645
658
|
}
|
|
646
659
|
/**
|
|
@@ -670,14 +683,14 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
670
683
|
const headerParameters = {};
|
|
671
684
|
headerParameters['Content-Type'] = 'application/json';
|
|
672
685
|
let urlPath = `/courses/{courseId}/enrollments/{enrollmentId}`;
|
|
673
|
-
urlPath = urlPath.replace(
|
|
674
|
-
urlPath = urlPath.replace(
|
|
686
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
687
|
+
urlPath = urlPath.replace('{enrollmentId}', encodeURIComponent(String(requestParameters['enrollmentId'])));
|
|
675
688
|
return {
|
|
676
689
|
path: urlPath,
|
|
677
690
|
method: 'PUT',
|
|
678
691
|
headers: headerParameters,
|
|
679
692
|
query: queryParameters,
|
|
680
|
-
body: (0,
|
|
693
|
+
body: (0, PutCourseEnrollment_1.PutCourseEnrollmentToJSON)(requestParameters['putCourseEnrollment']),
|
|
681
694
|
};
|
|
682
695
|
});
|
|
683
696
|
}
|
|
@@ -688,7 +701,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
688
701
|
return __awaiter(this, void 0, void 0, function* () {
|
|
689
702
|
const requestOptions = yield this.putCourseEnrollmentRequestOpts(requestParameters);
|
|
690
703
|
const response = yield this.request(requestOptions, initOverrides);
|
|
691
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
704
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseEnrollment_1.GetCourseEnrollmentFromJSON)(jsonValue));
|
|
692
705
|
});
|
|
693
706
|
}
|
|
694
707
|
/**
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type CourseCatalog } from '../models/CourseCatalog';
|
|
14
|
+
import { type GetCourse } from '../models/GetCourse';
|
|
15
|
+
import { type PostCourseCatalog } from '../models/PostCourseCatalog';
|
|
16
|
+
import { type PutCourseCatalog } from '../models/PutCourseCatalog';
|
|
14
17
|
export interface AddCourseToCatalogRequest {
|
|
15
18
|
catalogId: string;
|
|
16
19
|
courseId: string;
|
|
@@ -24,7 +24,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.CourseCatalogApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const CourseCatalog_1 = require("../models/CourseCatalog");
|
|
28
|
+
const GetCourse_1 = require("../models/GetCourse");
|
|
29
|
+
const PostCourseCatalog_1 = require("../models/PostCourseCatalog");
|
|
30
|
+
const PutCourseCatalog_1 = require("../models/PutCourseCatalog");
|
|
28
31
|
/**
|
|
29
32
|
*
|
|
30
33
|
*/
|
|
@@ -43,8 +46,8 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
43
46
|
const queryParameters = {};
|
|
44
47
|
const headerParameters = {};
|
|
45
48
|
let urlPath = `/catalogs/{catalogId}/courses/{courseId}`;
|
|
46
|
-
urlPath = urlPath.replace(
|
|
47
|
-
urlPath = urlPath.replace(
|
|
49
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
50
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
48
51
|
return {
|
|
49
52
|
path: urlPath,
|
|
50
53
|
method: 'POST',
|
|
@@ -82,7 +85,7 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
82
85
|
const queryParameters = {};
|
|
83
86
|
const headerParameters = {};
|
|
84
87
|
let urlPath = `/catalogs/{catalogId}`;
|
|
85
|
-
urlPath = urlPath.replace(
|
|
88
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
86
89
|
return {
|
|
87
90
|
path: urlPath,
|
|
88
91
|
method: 'DELETE',
|
|
@@ -120,7 +123,7 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
120
123
|
const queryParameters = {};
|
|
121
124
|
const headerParameters = {};
|
|
122
125
|
let urlPath = `/catalogs/{catalogId}/courses`;
|
|
123
|
-
urlPath = urlPath.replace(
|
|
126
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
124
127
|
return {
|
|
125
128
|
path: urlPath,
|
|
126
129
|
method: 'GET',
|
|
@@ -136,7 +139,7 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
136
139
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
140
|
const requestOptions = yield this.getCatalogCoursesRequestOpts(requestParameters);
|
|
138
141
|
const response = yield this.request(requestOptions, initOverrides);
|
|
139
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
142
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetCourse_1.GetCourseFromJSON));
|
|
140
143
|
});
|
|
141
144
|
}
|
|
142
145
|
/**
|
|
@@ -159,7 +162,7 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
159
162
|
const queryParameters = {};
|
|
160
163
|
const headerParameters = {};
|
|
161
164
|
let urlPath = `/catalogs/{catalogId}`;
|
|
162
|
-
urlPath = urlPath.replace(
|
|
165
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
163
166
|
return {
|
|
164
167
|
path: urlPath,
|
|
165
168
|
method: 'GET',
|
|
@@ -175,7 +178,7 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
175
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
176
179
|
const requestOptions = yield this.getCourseCatalogRequestOpts(requestParameters);
|
|
177
180
|
const response = yield this.request(requestOptions, initOverrides);
|
|
178
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
181
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CourseCatalog_1.CourseCatalogFromJSON)(jsonValue));
|
|
179
182
|
});
|
|
180
183
|
}
|
|
181
184
|
/**
|
|
@@ -210,7 +213,7 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
210
213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
211
214
|
const requestOptions = yield this.getCourseCatalogsRequestOpts();
|
|
212
215
|
const response = yield this.request(requestOptions, initOverrides);
|
|
213
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
216
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CourseCatalog_1.CourseCatalogFromJSON));
|
|
214
217
|
});
|
|
215
218
|
}
|
|
216
219
|
/**
|
|
@@ -239,7 +242,7 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
239
242
|
method: 'POST',
|
|
240
243
|
headers: headerParameters,
|
|
241
244
|
query: queryParameters,
|
|
242
|
-
body: (0,
|
|
245
|
+
body: (0, PostCourseCatalog_1.PostCourseCatalogToJSON)(requestParameters['postCourseCatalog']),
|
|
243
246
|
};
|
|
244
247
|
});
|
|
245
248
|
}
|
|
@@ -250,7 +253,7 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
250
253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
251
254
|
const requestOptions = yield this.postCourseCatalogRequestOpts(requestParameters);
|
|
252
255
|
const response = yield this.request(requestOptions, initOverrides);
|
|
253
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
256
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CourseCatalog_1.CourseCatalogFromJSON)(jsonValue));
|
|
254
257
|
});
|
|
255
258
|
}
|
|
256
259
|
/**
|
|
@@ -277,13 +280,13 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
277
280
|
const headerParameters = {};
|
|
278
281
|
headerParameters['Content-Type'] = 'application/json';
|
|
279
282
|
let urlPath = `/catalogs/{catalogId}`;
|
|
280
|
-
urlPath = urlPath.replace(
|
|
283
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
281
284
|
return {
|
|
282
285
|
path: urlPath,
|
|
283
286
|
method: 'PUT',
|
|
284
287
|
headers: headerParameters,
|
|
285
288
|
query: queryParameters,
|
|
286
|
-
body: (0,
|
|
289
|
+
body: (0, PutCourseCatalog_1.PutCourseCatalogToJSON)(requestParameters['putCourseCatalog']),
|
|
287
290
|
};
|
|
288
291
|
});
|
|
289
292
|
}
|
|
@@ -294,7 +297,7 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
294
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
295
298
|
const requestOptions = yield this.putCourseCatalogRequestOpts(requestParameters);
|
|
296
299
|
const response = yield this.request(requestOptions, initOverrides);
|
|
297
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
300
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, CourseCatalog_1.CourseCatalogFromJSON)(jsonValue));
|
|
298
301
|
});
|
|
299
302
|
}
|
|
300
303
|
/**
|
|
@@ -320,8 +323,8 @@ class CourseCatalogApi extends runtime.BaseAPI {
|
|
|
320
323
|
const queryParameters = {};
|
|
321
324
|
const headerParameters = {};
|
|
322
325
|
let urlPath = `/catalogs/{catalogId}/courses/{courseId}`;
|
|
323
|
-
urlPath = urlPath.replace(
|
|
324
|
-
urlPath = urlPath.replace(
|
|
326
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
327
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
325
328
|
return {
|
|
326
329
|
path: urlPath,
|
|
327
330
|
method: 'DELETE',
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type CourseShare } from '../models/CourseShare';
|
|
14
|
+
import { type PostOfferCatalog } from '../models/PostOfferCatalog';
|
|
15
|
+
import { type PostOfferCatalogResponse } from '../models/PostOfferCatalogResponse';
|
|
16
|
+
import { type PostOfferCourse } from '../models/PostOfferCourse';
|
|
17
|
+
import { type PostOfferCourseResponse } from '../models/PostOfferCourseResponse';
|
|
14
18
|
export interface DeleteCourseShareRequest {
|
|
15
19
|
shareId: string;
|
|
16
20
|
}
|
|
@@ -24,7 +24,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GetCourseSharesOfferedToMeStateEnum = exports.CourseShareApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const CourseShare_1 = require("../models/CourseShare");
|
|
28
|
+
const PostOfferCatalog_1 = require("../models/PostOfferCatalog");
|
|
29
|
+
const PostOfferCatalogResponse_1 = require("../models/PostOfferCatalogResponse");
|
|
30
|
+
const PostOfferCourse_1 = require("../models/PostOfferCourse");
|
|
31
|
+
const PostOfferCourseResponse_1 = require("../models/PostOfferCourseResponse");
|
|
28
32
|
/**
|
|
29
33
|
*
|
|
30
34
|
*/
|
|
@@ -40,7 +44,7 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
40
44
|
const queryParameters = {};
|
|
41
45
|
const headerParameters = {};
|
|
42
46
|
let urlPath = `/course-shares/{shareId}`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
47
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
44
48
|
return {
|
|
45
49
|
path: urlPath,
|
|
46
50
|
method: 'DELETE',
|
|
@@ -92,7 +96,7 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
92
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
93
97
|
const requestOptions = yield this.getCourseSharesOfferedByMeRequestOpts();
|
|
94
98
|
const response = yield this.request(requestOptions, initOverrides);
|
|
95
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
99
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CourseShare_1.CourseShareFromJSON));
|
|
96
100
|
});
|
|
97
101
|
}
|
|
98
102
|
/**
|
|
@@ -131,7 +135,7 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
131
135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
132
136
|
const requestOptions = yield this.getCourseSharesOfferedToMeRequestOpts(requestParameters);
|
|
133
137
|
const response = yield this.request(requestOptions, initOverrides);
|
|
134
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CourseShare_1.CourseShareFromJSON));
|
|
135
139
|
});
|
|
136
140
|
}
|
|
137
141
|
/**
|
|
@@ -159,13 +163,13 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
159
163
|
const headerParameters = {};
|
|
160
164
|
headerParameters['Content-Type'] = 'application/json';
|
|
161
165
|
let urlPath = `/catalogs/{catalogId}/shares`;
|
|
162
|
-
urlPath = urlPath.replace(
|
|
166
|
+
urlPath = urlPath.replace('{catalogId}', encodeURIComponent(String(requestParameters['catalogId'])));
|
|
163
167
|
return {
|
|
164
168
|
path: urlPath,
|
|
165
169
|
method: 'POST',
|
|
166
170
|
headers: headerParameters,
|
|
167
171
|
query: queryParameters,
|
|
168
|
-
body: (0,
|
|
172
|
+
body: (0, PostOfferCatalog_1.PostOfferCatalogToJSON)(requestParameters['postOfferCatalog']),
|
|
169
173
|
};
|
|
170
174
|
});
|
|
171
175
|
}
|
|
@@ -177,7 +181,7 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
177
181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
178
182
|
const requestOptions = yield this.postOfferCatalogRequestOpts(requestParameters);
|
|
179
183
|
const response = yield this.request(requestOptions, initOverrides);
|
|
180
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostOfferCatalogResponse_1.PostOfferCatalogResponseFromJSON)(jsonValue));
|
|
181
185
|
});
|
|
182
186
|
}
|
|
183
187
|
/**
|
|
@@ -205,13 +209,13 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
205
209
|
const headerParameters = {};
|
|
206
210
|
headerParameters['Content-Type'] = 'application/json';
|
|
207
211
|
let urlPath = `/courses/{courseId}/shares`;
|
|
208
|
-
urlPath = urlPath.replace(
|
|
212
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
209
213
|
return {
|
|
210
214
|
path: urlPath,
|
|
211
215
|
method: 'POST',
|
|
212
216
|
headers: headerParameters,
|
|
213
217
|
query: queryParameters,
|
|
214
|
-
body: (0,
|
|
218
|
+
body: (0, PostOfferCourse_1.PostOfferCourseToJSON)(requestParameters['postOfferCourse']),
|
|
215
219
|
};
|
|
216
220
|
});
|
|
217
221
|
}
|
|
@@ -222,7 +226,7 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
222
226
|
return __awaiter(this, void 0, void 0, function* () {
|
|
223
227
|
const requestOptions = yield this.postOfferCourseRequestOpts(requestParameters);
|
|
224
228
|
const response = yield this.request(requestOptions, initOverrides);
|
|
225
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
229
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostOfferCourseResponse_1.PostOfferCourseResponseFromJSON)(jsonValue));
|
|
226
230
|
});
|
|
227
231
|
}
|
|
228
232
|
/**
|
|
@@ -245,7 +249,7 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
245
249
|
const queryParameters = {};
|
|
246
250
|
const headerParameters = {};
|
|
247
251
|
let urlPath = `/course-shares/{shareId}/unrevoke`;
|
|
248
|
-
urlPath = urlPath.replace(
|
|
252
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
249
253
|
return {
|
|
250
254
|
path: urlPath,
|
|
251
255
|
method: 'POST',
|
|
@@ -283,7 +287,7 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
283
287
|
const queryParameters = {};
|
|
284
288
|
const headerParameters = {};
|
|
285
289
|
let urlPath = `/course-shares/{shareId}/accept-clone`;
|
|
286
|
-
urlPath = urlPath.replace(
|
|
290
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
287
291
|
return {
|
|
288
292
|
path: urlPath,
|
|
289
293
|
method: 'PUT',
|
|
@@ -321,7 +325,7 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
321
325
|
const queryParameters = {};
|
|
322
326
|
const headerParameters = {};
|
|
323
327
|
let urlPath = `/course-shares/{shareId}/accept-mirror`;
|
|
324
|
-
urlPath = urlPath.replace(
|
|
328
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
325
329
|
return {
|
|
326
330
|
path: urlPath,
|
|
327
331
|
method: 'PUT',
|
|
@@ -359,7 +363,7 @@ class CourseShareApi extends runtime.BaseAPI {
|
|
|
359
363
|
const queryParameters = {};
|
|
360
364
|
const headerParameters = {};
|
|
361
365
|
let urlPath = `/course-shares/{shareId}/decline`;
|
|
362
|
-
urlPath = urlPath.replace(
|
|
366
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
363
367
|
return {
|
|
364
368
|
path: urlPath,
|
|
365
369
|
method: 'PUT',
|
package/dist/apis/ModuleApi.d.ts
CHANGED
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type GetModule } from '../models/GetModule';
|
|
14
|
+
import { type GetModuleList } from '../models/GetModuleList';
|
|
15
|
+
import { type PostDuplicate1 } from '../models/PostDuplicate1';
|
|
16
|
+
import { type PostModule } from '../models/PostModule';
|
|
17
|
+
import { type PutModule } from '../models/PutModule';
|
|
18
|
+
import { type PutModuleReorder } from '../models/PutModuleReorder';
|
|
14
19
|
export interface GetModuleRequest {
|
|
15
20
|
moduleId: string;
|
|
16
21
|
courseId: string;
|