@easyedu/js-lsm-api 1.58.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 +4 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +5 -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 +7 -1
- package/dist/apis/UserApi.js +19 -13
- 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 +7 -1
- package/dist/esm/apis/UserApi.js +11 -5
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +4 -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 +2 -0
- package/dist/esm/models/index.js +2 -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/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 +2 -0
- package/dist/models/index.js +2 -0
- package/dist/runtime.js +1 -1
- package/docs/GetPortal.md +4 -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/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 +24 -15
- package/src/models/GetPortal.ts +16 -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 +2 -0
- package/src/runtime.ts +1 -2
package/dist/apis/UserApi.js
CHANGED
|
@@ -24,7 +24,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.UserApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const GetUser_1 = require("../models/GetUser");
|
|
28
|
+
const GetUserAvatarUpload_1 = require("../models/GetUserAvatarUpload");
|
|
29
|
+
const LoginRes_1 = require("../models/LoginRes");
|
|
30
|
+
const PostLogin_1 = require("../models/PostLogin");
|
|
31
|
+
const PostResetPassword_1 = require("../models/PostResetPassword");
|
|
32
|
+
const PostSendResetPassword_1 = require("../models/PostSendResetPassword");
|
|
33
|
+
const PutUser_1 = require("../models/PutUser");
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
*/
|
|
@@ -40,7 +46,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
40
46
|
const queryParameters = {};
|
|
41
47
|
const headerParameters = {};
|
|
42
48
|
let urlPath = `/users/{userId}/avatar`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
49
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
44
50
|
return {
|
|
45
51
|
path: urlPath,
|
|
46
52
|
method: 'DELETE',
|
|
@@ -149,7 +155,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
149
155
|
const queryParameters = {};
|
|
150
156
|
const headerParameters = {};
|
|
151
157
|
let urlPath = `/users/{userId}`;
|
|
152
|
-
urlPath = urlPath.replace(
|
|
158
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
153
159
|
return {
|
|
154
160
|
path: urlPath,
|
|
155
161
|
method: 'GET',
|
|
@@ -165,7 +171,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
165
171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
166
172
|
const requestOptions = yield this.getUserRequestOpts(requestParameters);
|
|
167
173
|
const response = yield this.request(requestOptions, initOverrides);
|
|
168
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
174
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetUser_1.GetUserFromJSON)(jsonValue));
|
|
169
175
|
});
|
|
170
176
|
}
|
|
171
177
|
/**
|
|
@@ -194,7 +200,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
194
200
|
method: 'POST',
|
|
195
201
|
headers: headerParameters,
|
|
196
202
|
query: queryParameters,
|
|
197
|
-
body: (0,
|
|
203
|
+
body: (0, PostLogin_1.PostLoginToJSON)(requestParameters['postLogin']),
|
|
198
204
|
};
|
|
199
205
|
});
|
|
200
206
|
}
|
|
@@ -205,7 +211,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
205
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
212
|
const requestOptions = yield this.postLoginRequestOpts(requestParameters);
|
|
207
213
|
const response = yield this.request(requestOptions, initOverrides);
|
|
208
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
214
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, LoginRes_1.LoginResFromJSON)(jsonValue));
|
|
209
215
|
});
|
|
210
216
|
}
|
|
211
217
|
/**
|
|
@@ -283,7 +289,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
283
289
|
formParams.append('file', requestParameters['file']);
|
|
284
290
|
}
|
|
285
291
|
let urlPath = `/users/{userId}/avatar`;
|
|
286
|
-
urlPath = urlPath.replace(
|
|
292
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
287
293
|
return {
|
|
288
294
|
path: urlPath,
|
|
289
295
|
method: 'POST',
|
|
@@ -300,7 +306,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
300
306
|
return __awaiter(this, void 0, void 0, function* () {
|
|
301
307
|
const requestOptions = yield this.postUserAvatarUploadRequestOpts(requestParameters);
|
|
302
308
|
const response = yield this.request(requestOptions, initOverrides);
|
|
303
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
309
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetUserAvatarUpload_1.GetUserAvatarUploadFromJSON)(jsonValue));
|
|
304
310
|
});
|
|
305
311
|
}
|
|
306
312
|
/**
|
|
@@ -327,13 +333,13 @@ class UserApi extends runtime.BaseAPI {
|
|
|
327
333
|
const headerParameters = {};
|
|
328
334
|
headerParameters['Content-Type'] = 'application/json';
|
|
329
335
|
let urlPath = `/users/{userId}`;
|
|
330
|
-
urlPath = urlPath.replace(
|
|
336
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
331
337
|
return {
|
|
332
338
|
path: urlPath,
|
|
333
339
|
method: 'PUT',
|
|
334
340
|
headers: headerParameters,
|
|
335
341
|
query: queryParameters,
|
|
336
|
-
body: (0,
|
|
342
|
+
body: (0, PutUser_1.PutUserToJSON)(requestParameters['putUser']),
|
|
337
343
|
};
|
|
338
344
|
});
|
|
339
345
|
}
|
|
@@ -344,7 +350,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
344
350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
345
351
|
const requestOptions = yield this.putUserRequestOpts(requestParameters);
|
|
346
352
|
const response = yield this.request(requestOptions, initOverrides);
|
|
347
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
353
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetUser_1.GetUserFromJSON)(jsonValue));
|
|
348
354
|
});
|
|
349
355
|
}
|
|
350
356
|
/**
|
|
@@ -373,7 +379,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
373
379
|
method: 'POST',
|
|
374
380
|
headers: headerParameters,
|
|
375
381
|
query: queryParameters,
|
|
376
|
-
body: (0,
|
|
382
|
+
body: (0, PostResetPassword_1.PostResetPasswordToJSON)(requestParameters['postResetPassword']),
|
|
377
383
|
};
|
|
378
384
|
});
|
|
379
385
|
}
|
|
@@ -412,7 +418,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
412
418
|
method: 'POST',
|
|
413
419
|
headers: headerParameters,
|
|
414
420
|
query: queryParameters,
|
|
415
|
-
body: (0,
|
|
421
|
+
body: (0, PostSendResetPassword_1.PostSendResetPasswordToJSON)(requestParameters['postSendResetPassword']),
|
|
416
422
|
};
|
|
417
423
|
});
|
|
418
424
|
}
|
|
@@ -10,7 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type Certificate } from '../models/Certificate';
|
|
14
|
+
import { type CertificateConfig } from '../models/CertificateConfig';
|
|
15
|
+
import { type CertificatePublic } from '../models/CertificatePublic';
|
|
16
|
+
import { type EffectiveCertificateConfig } from '../models/EffectiveCertificateConfig';
|
|
17
|
+
import { type GetCertificateConfigList } from '../models/GetCertificateConfigList';
|
|
18
|
+
import { type GetCertificateList } from '../models/GetCertificateList';
|
|
19
|
+
import { type PostCertificate } from '../models/PostCertificate';
|
|
20
|
+
import { type PostCertificateConfig } from '../models/PostCertificateConfig';
|
|
21
|
+
import { type PostRevokeCertificate } from '../models/PostRevokeCertificate';
|
|
22
|
+
import { type PutCertificateConfig } from '../models/PutCertificateConfig';
|
|
14
23
|
export interface DeleteCertificateConfigRequest {
|
|
15
24
|
configId: string;
|
|
16
25
|
}
|
|
@@ -21,7 +21,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { CertificateFromJSON,
|
|
24
|
+
import { CertificateFromJSON, } from '../models/Certificate';
|
|
25
|
+
import { CertificateConfigFromJSON, } from '../models/CertificateConfig';
|
|
26
|
+
import { CertificatePublicFromJSON, } from '../models/CertificatePublic';
|
|
27
|
+
import { EffectiveCertificateConfigFromJSON, } from '../models/EffectiveCertificateConfig';
|
|
28
|
+
import { GetCertificateConfigListFromJSON, } from '../models/GetCertificateConfigList';
|
|
29
|
+
import { GetCertificateListFromJSON, } from '../models/GetCertificateList';
|
|
30
|
+
import { PostCertificateToJSON, } from '../models/PostCertificate';
|
|
31
|
+
import { PostCertificateConfigToJSON, } from '../models/PostCertificateConfig';
|
|
32
|
+
import { PostRevokeCertificateToJSON, } from '../models/PostRevokeCertificate';
|
|
33
|
+
import { PutCertificateConfigToJSON, } from '../models/PutCertificateConfig';
|
|
25
34
|
/**
|
|
26
35
|
*
|
|
27
36
|
*/
|
|
@@ -37,7 +46,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
37
46
|
const queryParameters = {};
|
|
38
47
|
const headerParameters = {};
|
|
39
48
|
let urlPath = `/certificate-configs/{configId}`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
49
|
+
urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
|
|
41
50
|
return {
|
|
42
51
|
path: urlPath,
|
|
43
52
|
method: 'DELETE',
|
|
@@ -75,7 +84,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
75
84
|
const queryParameters = {};
|
|
76
85
|
const headerParameters = {};
|
|
77
86
|
let urlPath = `/certificates/{certificateId}`;
|
|
78
|
-
urlPath = urlPath.replace(
|
|
87
|
+
urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
|
|
79
88
|
return {
|
|
80
89
|
path: urlPath,
|
|
81
90
|
method: 'GET',
|
|
@@ -114,7 +123,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
114
123
|
const queryParameters = {};
|
|
115
124
|
const headerParameters = {};
|
|
116
125
|
let urlPath = `/certificate-configs/{configId}`;
|
|
117
|
-
urlPath = urlPath.replace(
|
|
126
|
+
urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
|
|
118
127
|
return {
|
|
119
128
|
path: urlPath,
|
|
120
129
|
method: 'GET',
|
|
@@ -194,7 +203,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
194
203
|
const queryParameters = {};
|
|
195
204
|
const headerParameters = {};
|
|
196
205
|
let urlPath = `/certificates/{certificateId}/pdf`;
|
|
197
|
-
urlPath = urlPath.replace(
|
|
206
|
+
urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
|
|
198
207
|
return {
|
|
199
208
|
path: urlPath,
|
|
200
209
|
method: 'GET',
|
|
@@ -327,7 +336,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
327
336
|
const queryParameters = {};
|
|
328
337
|
const headerParameters = {};
|
|
329
338
|
let urlPath = `/courses/{courseId}/certificate-config/effective`;
|
|
330
|
-
urlPath = urlPath.replace(
|
|
339
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
331
340
|
return {
|
|
332
341
|
path: urlPath,
|
|
333
342
|
method: 'GET',
|
|
@@ -410,7 +419,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
410
419
|
const headerParameters = {};
|
|
411
420
|
headerParameters['Content-Type'] = 'application/json';
|
|
412
421
|
let urlPath = `/courses/{courseId}/certificates`;
|
|
413
|
-
urlPath = urlPath.replace(
|
|
422
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
414
423
|
return {
|
|
415
424
|
path: urlPath,
|
|
416
425
|
method: 'POST',
|
|
@@ -454,7 +463,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
454
463
|
const headerParameters = {};
|
|
455
464
|
headerParameters['Content-Type'] = 'application/json';
|
|
456
465
|
let urlPath = `/certificates/{certificateId}/revoke`;
|
|
457
|
-
urlPath = urlPath.replace(
|
|
466
|
+
urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
|
|
458
467
|
return {
|
|
459
468
|
path: urlPath,
|
|
460
469
|
method: 'POST',
|
|
@@ -498,7 +507,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
498
507
|
const headerParameters = {};
|
|
499
508
|
headerParameters['Content-Type'] = 'application/json';
|
|
500
509
|
let urlPath = `/certificate-configs/{configId}`;
|
|
501
|
-
urlPath = urlPath.replace(
|
|
510
|
+
urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
|
|
502
511
|
return {
|
|
503
512
|
path: urlPath,
|
|
504
513
|
method: 'PUT',
|
|
@@ -538,7 +547,7 @@ export class CertificateApi extends runtime.BaseAPI {
|
|
|
538
547
|
const queryParameters = {};
|
|
539
548
|
const headerParameters = {};
|
|
540
549
|
let urlPath = `/public/certificates/{certificateId}/verify`;
|
|
541
|
-
urlPath = urlPath.replace(
|
|
550
|
+
urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
|
|
542
551
|
return {
|
|
543
552
|
path: urlPath,
|
|
544
553
|
method: 'GET',
|
|
@@ -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 GetChatMessage } from '../models/GetChatMessage';
|
|
14
|
+
import { type GetConversationList } from '../models/GetConversationList';
|
|
15
|
+
import { type PostConversation } from '../models/PostConversation';
|
|
16
|
+
import { type PostConversationResponse } from '../models/PostConversationResponse';
|
|
17
|
+
import { type PostMessage } from '../models/PostMessage';
|
|
18
|
+
import { type PostMessageResponse } from '../models/PostMessageResponse';
|
|
14
19
|
export interface DeleteConversationRequest {
|
|
15
20
|
conversationId: string;
|
|
16
21
|
}
|
package/dist/esm/apis/ChatApi.js
CHANGED
|
@@ -21,7 +21,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetChatMessageFromJSON,
|
|
24
|
+
import { GetChatMessageFromJSON, } from '../models/GetChatMessage';
|
|
25
|
+
import { GetConversationListFromJSON, } from '../models/GetConversationList';
|
|
26
|
+
import { PostConversationToJSON, } from '../models/PostConversation';
|
|
27
|
+
import { PostConversationResponseFromJSON, } from '../models/PostConversationResponse';
|
|
28
|
+
import { PostMessageToJSON, } from '../models/PostMessage';
|
|
29
|
+
import { PostMessageResponseFromJSON, } from '../models/PostMessageResponse';
|
|
25
30
|
/**
|
|
26
31
|
*
|
|
27
32
|
*/
|
|
@@ -37,7 +42,7 @@ export class ChatApi extends runtime.BaseAPI {
|
|
|
37
42
|
const queryParameters = {};
|
|
38
43
|
const headerParameters = {};
|
|
39
44
|
let urlPath = `/chat/conversations/{conversationId}`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
45
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
41
46
|
return {
|
|
42
47
|
path: urlPath,
|
|
43
48
|
method: 'DELETE',
|
|
@@ -75,7 +80,7 @@ export class ChatApi extends runtime.BaseAPI {
|
|
|
75
80
|
const queryParameters = {};
|
|
76
81
|
const headerParameters = {};
|
|
77
82
|
let urlPath = `/chat/conversations/{conversationId}/messages`;
|
|
78
|
-
urlPath = urlPath.replace(
|
|
83
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
79
84
|
return {
|
|
80
85
|
path: urlPath,
|
|
81
86
|
method: 'GET',
|
|
@@ -199,7 +204,7 @@ export class ChatApi extends runtime.BaseAPI {
|
|
|
199
204
|
const headerParameters = {};
|
|
200
205
|
headerParameters['Content-Type'] = 'application/json';
|
|
201
206
|
let urlPath = `/chat/conversations/{conversationId}/messages`;
|
|
202
|
-
urlPath = urlPath.replace(
|
|
207
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
203
208
|
return {
|
|
204
209
|
path: urlPath,
|
|
205
210
|
method: 'POST',
|
|
@@ -10,7 +10,28 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type GetContent } from '../models/GetContent';
|
|
14
|
+
import { type GetContentList } from '../models/GetContentList';
|
|
15
|
+
import { type GetContentSession } from '../models/GetContentSession';
|
|
16
|
+
import { type GetContentSessionDetail } from '../models/GetContentSessionDetail';
|
|
17
|
+
import { type GetContentSessionList } from '../models/GetContentSessionList';
|
|
18
|
+
import { type GetContentUpload } from '../models/GetContentUpload';
|
|
19
|
+
import { type GetContentVersion } from '../models/GetContentVersion';
|
|
20
|
+
import { type GetContentVersionList } from '../models/GetContentVersionList';
|
|
21
|
+
import { type GetScormApiLogs } from '../models/GetScormApiLogs';
|
|
22
|
+
import { type GetScormPackage } from '../models/GetScormPackage';
|
|
23
|
+
import { type GetScormSessionData } from '../models/GetScormSessionData';
|
|
24
|
+
import { type PostContentQuiz } from '../models/PostContentQuiz';
|
|
25
|
+
import { type PostContentSession } from '../models/PostContentSession';
|
|
26
|
+
import { type PostContentUpload } from '../models/PostContentUpload';
|
|
27
|
+
import { type PostDuplicate2 } from '../models/PostDuplicate2';
|
|
28
|
+
import { type PostVerifyManifest } from '../models/PostVerifyManifest';
|
|
29
|
+
import { type PutContent } from '../models/PutContent';
|
|
30
|
+
import { type PutContentReorder } from '../models/PutContentReorder';
|
|
31
|
+
import { type PutContentVersion } from '../models/PutContentVersion';
|
|
32
|
+
import { type ScormGetValueResponse } from '../models/ScormGetValueResponse';
|
|
33
|
+
import { type ScormSetValueRequest } from '../models/ScormSetValueRequest';
|
|
34
|
+
import { type ScormSetValueResponse } from '../models/ScormSetValueResponse';
|
|
14
35
|
export interface CommitScormSessionRequest {
|
|
15
36
|
scormSessionId: string;
|
|
16
37
|
}
|
|
@@ -21,7 +21,28 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetContentFromJSON,
|
|
24
|
+
import { GetContentFromJSON, } from '../models/GetContent';
|
|
25
|
+
import { GetContentListFromJSON, } from '../models/GetContentList';
|
|
26
|
+
import { GetContentSessionFromJSON, } from '../models/GetContentSession';
|
|
27
|
+
import { GetContentSessionDetailFromJSON, } from '../models/GetContentSessionDetail';
|
|
28
|
+
import { GetContentSessionListFromJSON, } from '../models/GetContentSessionList';
|
|
29
|
+
import { GetContentUploadFromJSON, } from '../models/GetContentUpload';
|
|
30
|
+
import { GetContentVersionFromJSON, } from '../models/GetContentVersion';
|
|
31
|
+
import { GetContentVersionListFromJSON, } from '../models/GetContentVersionList';
|
|
32
|
+
import { GetScormApiLogsFromJSON, } from '../models/GetScormApiLogs';
|
|
33
|
+
import { GetScormPackageFromJSON, } from '../models/GetScormPackage';
|
|
34
|
+
import { GetScormSessionDataFromJSON, } from '../models/GetScormSessionData';
|
|
35
|
+
import { PostContentQuizToJSON, } from '../models/PostContentQuiz';
|
|
36
|
+
import { PostContentSessionFromJSON, } from '../models/PostContentSession';
|
|
37
|
+
import { PostContentUploadToJSON, } from '../models/PostContentUpload';
|
|
38
|
+
import { PostDuplicate2ToJSON, } from '../models/PostDuplicate2';
|
|
39
|
+
import { PostVerifyManifestFromJSON, } from '../models/PostVerifyManifest';
|
|
40
|
+
import { PutContentToJSON, } from '../models/PutContent';
|
|
41
|
+
import { PutContentReorderToJSON, } from '../models/PutContentReorder';
|
|
42
|
+
import { PutContentVersionToJSON, } from '../models/PutContentVersion';
|
|
43
|
+
import { ScormGetValueResponseFromJSON, } from '../models/ScormGetValueResponse';
|
|
44
|
+
import { ScormSetValueRequestToJSON, } from '../models/ScormSetValueRequest';
|
|
45
|
+
import { ScormSetValueResponseFromJSON, } from '../models/ScormSetValueResponse';
|
|
25
46
|
/**
|
|
26
47
|
*
|
|
27
48
|
*/
|
|
@@ -37,7 +58,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
37
58
|
const queryParameters = {};
|
|
38
59
|
const headerParameters = {};
|
|
39
60
|
let urlPath = `/scorm/sessions/{scormSessionId}/commit`;
|
|
40
|
-
urlPath = urlPath.replace(
|
|
61
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
41
62
|
return {
|
|
42
63
|
path: urlPath,
|
|
43
64
|
method: 'POST',
|
|
@@ -83,9 +104,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
83
104
|
const queryParameters = {};
|
|
84
105
|
const headerParameters = {};
|
|
85
106
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}`;
|
|
86
|
-
urlPath = urlPath.replace(
|
|
87
|
-
urlPath = urlPath.replace(
|
|
88
|
-
urlPath = urlPath.replace(
|
|
107
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
108
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
109
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
89
110
|
return {
|
|
90
111
|
path: urlPath,
|
|
91
112
|
method: 'GET',
|
|
@@ -127,8 +148,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
127
148
|
const queryParameters = {};
|
|
128
149
|
const headerParameters = {};
|
|
129
150
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents`;
|
|
130
|
-
urlPath = urlPath.replace(
|
|
131
|
-
urlPath = urlPath.replace(
|
|
151
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
152
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
132
153
|
return {
|
|
133
154
|
path: urlPath,
|
|
134
155
|
method: 'GET',
|
|
@@ -173,9 +194,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
173
194
|
const queryParameters = {};
|
|
174
195
|
const headerParameters = {};
|
|
175
196
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/session`;
|
|
176
|
-
urlPath = urlPath.replace(
|
|
177
|
-
urlPath = urlPath.replace(
|
|
178
|
-
urlPath = urlPath.replace(
|
|
197
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
198
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
199
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
179
200
|
return {
|
|
180
201
|
path: urlPath,
|
|
181
202
|
method: 'GET',
|
|
@@ -223,10 +244,10 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
223
244
|
const queryParameters = {};
|
|
224
245
|
const headerParameters = {};
|
|
225
246
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions/{sessionId}`;
|
|
226
|
-
urlPath = urlPath.replace(
|
|
227
|
-
urlPath = urlPath.replace(
|
|
228
|
-
urlPath = urlPath.replace(
|
|
229
|
-
urlPath = urlPath.replace(
|
|
247
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
248
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
249
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
250
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
230
251
|
return {
|
|
231
252
|
path: urlPath,
|
|
232
253
|
method: 'GET',
|
|
@@ -276,10 +297,10 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
276
297
|
const queryParameters = {};
|
|
277
298
|
const headerParameters = {};
|
|
278
299
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId}`;
|
|
279
|
-
urlPath = urlPath.replace(
|
|
280
|
-
urlPath = urlPath.replace(
|
|
281
|
-
urlPath = urlPath.replace(
|
|
282
|
-
urlPath = urlPath.replace(
|
|
300
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
301
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
302
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
303
|
+
urlPath = urlPath.replace('{versionId}', encodeURIComponent(String(requestParameters['versionId'])));
|
|
283
304
|
return {
|
|
284
305
|
path: urlPath,
|
|
285
306
|
method: 'GET',
|
|
@@ -332,9 +353,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
332
353
|
}
|
|
333
354
|
const headerParameters = {};
|
|
334
355
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions`;
|
|
335
|
-
urlPath = urlPath.replace(
|
|
336
|
-
urlPath = urlPath.replace(
|
|
337
|
-
urlPath = urlPath.replace(
|
|
356
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
357
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
358
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
338
359
|
return {
|
|
339
360
|
path: urlPath,
|
|
340
361
|
method: 'GET',
|
|
@@ -381,7 +402,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
381
402
|
}
|
|
382
403
|
const headerParameters = {};
|
|
383
404
|
let urlPath = `/scorm/sessions/{sessionId}/api-logs`;
|
|
384
|
-
urlPath = urlPath.replace(
|
|
405
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
385
406
|
return {
|
|
386
407
|
path: urlPath,
|
|
387
408
|
method: 'GET',
|
|
@@ -422,7 +443,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
422
443
|
const queryParameters = {};
|
|
423
444
|
const headerParameters = {};
|
|
424
445
|
let urlPath = `/scorm/packages/{packageId}`;
|
|
425
|
-
urlPath = urlPath.replace(
|
|
446
|
+
urlPath = urlPath.replace('{packageId}', encodeURIComponent(String(requestParameters['packageId'])));
|
|
426
447
|
return {
|
|
427
448
|
path: urlPath,
|
|
428
449
|
method: 'GET',
|
|
@@ -463,7 +484,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
463
484
|
const queryParameters = {};
|
|
464
485
|
const headerParameters = {};
|
|
465
486
|
let urlPath = `/scorm/sessions/{scormSessionId}/session-data`;
|
|
466
|
-
urlPath = urlPath.replace(
|
|
487
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
467
488
|
return {
|
|
468
489
|
path: urlPath,
|
|
469
490
|
method: 'GET',
|
|
@@ -510,7 +531,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
510
531
|
}
|
|
511
532
|
const headerParameters = {};
|
|
512
533
|
let urlPath = `/scorm/sessions/{scormSessionId}/get-value`;
|
|
513
|
-
urlPath = urlPath.replace(
|
|
534
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
514
535
|
return {
|
|
515
536
|
path: urlPath,
|
|
516
537
|
method: 'GET',
|
|
@@ -551,7 +572,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
551
572
|
const queryParameters = {};
|
|
552
573
|
const headerParameters = {};
|
|
553
574
|
let urlPath = `/scorm/sessions/{scormSessionId}/initialize`;
|
|
554
|
-
urlPath = urlPath.replace(
|
|
575
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
555
576
|
return {
|
|
556
577
|
path: urlPath,
|
|
557
578
|
method: 'POST',
|
|
@@ -609,9 +630,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
609
630
|
}
|
|
610
631
|
const headerParameters = {};
|
|
611
632
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/sessions`;
|
|
612
|
-
urlPath = urlPath.replace(
|
|
613
|
-
urlPath = urlPath.replace(
|
|
614
|
-
urlPath = urlPath.replace(
|
|
633
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
634
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
635
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
615
636
|
return {
|
|
616
637
|
path: urlPath,
|
|
617
638
|
method: 'GET',
|
|
@@ -659,9 +680,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
659
680
|
const headerParameters = {};
|
|
660
681
|
headerParameters['Content-Type'] = 'application/json';
|
|
661
682
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/duplicate`;
|
|
662
|
-
urlPath = urlPath.replace(
|
|
663
|
-
urlPath = urlPath.replace(
|
|
664
|
-
urlPath = urlPath.replace(
|
|
683
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
684
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
685
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
665
686
|
return {
|
|
666
687
|
path: urlPath,
|
|
667
688
|
method: 'POST',
|
|
@@ -709,9 +730,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
709
730
|
const queryParameters = {};
|
|
710
731
|
const headerParameters = {};
|
|
711
732
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/process`;
|
|
712
|
-
urlPath = urlPath.replace(
|
|
713
|
-
urlPath = urlPath.replace(
|
|
714
|
-
urlPath = urlPath.replace(
|
|
733
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
734
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
735
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
715
736
|
return {
|
|
716
737
|
path: urlPath,
|
|
717
738
|
method: 'POST',
|
|
@@ -758,8 +779,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
758
779
|
const headerParameters = {};
|
|
759
780
|
headerParameters['Content-Type'] = 'application/json';
|
|
760
781
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/quiz`;
|
|
761
|
-
urlPath = urlPath.replace(
|
|
762
|
-
urlPath = urlPath.replace(
|
|
782
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
783
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
763
784
|
return {
|
|
764
785
|
path: urlPath,
|
|
765
786
|
method: 'POST',
|
|
@@ -810,9 +831,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
810
831
|
}
|
|
811
832
|
const headerParameters = {};
|
|
812
833
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/session`;
|
|
813
|
-
urlPath = urlPath.replace(
|
|
814
|
-
urlPath = urlPath.replace(
|
|
815
|
-
urlPath = urlPath.replace(
|
|
834
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
835
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
836
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
816
837
|
return {
|
|
817
838
|
path: urlPath,
|
|
818
839
|
method: 'POST',
|
|
@@ -858,8 +879,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
858
879
|
const headerParameters = {};
|
|
859
880
|
headerParameters['Content-Type'] = 'application/json';
|
|
860
881
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/upload`;
|
|
861
|
-
urlPath = urlPath.replace(
|
|
862
|
-
urlPath = urlPath.replace(
|
|
882
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
883
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
863
884
|
return {
|
|
864
885
|
path: urlPath,
|
|
865
886
|
method: 'POST',
|
|
@@ -909,9 +930,9 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
909
930
|
const headerParameters = {};
|
|
910
931
|
headerParameters['Content-Type'] = 'application/json';
|
|
911
932
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}`;
|
|
912
|
-
urlPath = urlPath.replace(
|
|
913
|
-
urlPath = urlPath.replace(
|
|
914
|
-
urlPath = urlPath.replace(
|
|
933
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
934
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
935
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
915
936
|
return {
|
|
916
937
|
path: urlPath,
|
|
917
938
|
method: 'PUT',
|
|
@@ -958,8 +979,8 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
958
979
|
const headerParameters = {};
|
|
959
980
|
headerParameters['Content-Type'] = 'application/json';
|
|
960
981
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/reorder`;
|
|
961
|
-
urlPath = urlPath.replace(
|
|
962
|
-
urlPath = urlPath.replace(
|
|
982
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
983
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
963
984
|
return {
|
|
964
985
|
path: urlPath,
|
|
965
986
|
method: 'PUT',
|
|
@@ -1011,10 +1032,10 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1011
1032
|
const headerParameters = {};
|
|
1012
1033
|
headerParameters['Content-Type'] = 'application/json';
|
|
1013
1034
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId}`;
|
|
1014
|
-
urlPath = urlPath.replace(
|
|
1015
|
-
urlPath = urlPath.replace(
|
|
1016
|
-
urlPath = urlPath.replace(
|
|
1017
|
-
urlPath = urlPath.replace(
|
|
1035
|
+
urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
|
|
1036
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
1037
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1038
|
+
urlPath = urlPath.replace('{versionId}', encodeURIComponent(String(requestParameters['versionId'])));
|
|
1018
1039
|
return {
|
|
1019
1040
|
path: urlPath,
|
|
1020
1041
|
method: 'PUT',
|
|
@@ -1060,7 +1081,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1060
1081
|
const headerParameters = {};
|
|
1061
1082
|
headerParameters['Content-Type'] = 'application/json';
|
|
1062
1083
|
let urlPath = `/scorm/sessions/{scormSessionId}/set-value`;
|
|
1063
|
-
urlPath = urlPath.replace(
|
|
1084
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
1064
1085
|
return {
|
|
1065
1086
|
path: urlPath,
|
|
1066
1087
|
method: 'POST',
|
|
@@ -1102,7 +1123,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1102
1123
|
const queryParameters = {};
|
|
1103
1124
|
const headerParameters = {};
|
|
1104
1125
|
let urlPath = `/scorm/sessions/{scormSessionId}/terminate`;
|
|
1105
|
-
urlPath = urlPath.replace(
|
|
1126
|
+
urlPath = urlPath.replace('{scormSessionId}', encodeURIComponent(String(requestParameters['scormSessionId'])));
|
|
1106
1127
|
return {
|
|
1107
1128
|
path: urlPath,
|
|
1108
1129
|
method: 'POST',
|