@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/UserApi.js
CHANGED
|
@@ -24,11 +24,55 @@ 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
|
*/
|
|
31
37
|
class UserApi extends runtime.BaseAPI {
|
|
38
|
+
/**
|
|
39
|
+
* Creates request options for deleteUserAvatar without sending the request
|
|
40
|
+
*/
|
|
41
|
+
deleteUserAvatarRequestOpts(requestParameters) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
if (requestParameters['userId'] == null) {
|
|
44
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteUserAvatar().');
|
|
45
|
+
}
|
|
46
|
+
const queryParameters = {};
|
|
47
|
+
const headerParameters = {};
|
|
48
|
+
let urlPath = `/users/{userId}/avatar`;
|
|
49
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
50
|
+
return {
|
|
51
|
+
path: urlPath,
|
|
52
|
+
method: 'DELETE',
|
|
53
|
+
headers: headerParameters,
|
|
54
|
+
query: queryParameters,
|
|
55
|
+
};
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Remove the current user\'s profile photo
|
|
60
|
+
*/
|
|
61
|
+
deleteUserAvatarRaw(requestParameters, initOverrides) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const requestOptions = yield this.deleteUserAvatarRequestOpts(requestParameters);
|
|
64
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
65
|
+
return new runtime.VoidApiResponse(response);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Remove the current user\'s profile photo
|
|
70
|
+
*/
|
|
71
|
+
deleteUserAvatar(requestParameters, initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
yield this.deleteUserAvatarRaw(requestParameters, initOverrides);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
32
76
|
/**
|
|
33
77
|
* Creates request options for getAuthCheck without sending the request
|
|
34
78
|
*/
|
|
@@ -111,7 +155,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
111
155
|
const queryParameters = {};
|
|
112
156
|
const headerParameters = {};
|
|
113
157
|
let urlPath = `/users/{userId}`;
|
|
114
|
-
urlPath = urlPath.replace(
|
|
158
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
115
159
|
return {
|
|
116
160
|
path: urlPath,
|
|
117
161
|
method: 'GET',
|
|
@@ -127,7 +171,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
127
171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
128
172
|
const requestOptions = yield this.getUserRequestOpts(requestParameters);
|
|
129
173
|
const response = yield this.request(requestOptions, initOverrides);
|
|
130
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
174
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetUser_1.GetUserFromJSON)(jsonValue));
|
|
131
175
|
});
|
|
132
176
|
}
|
|
133
177
|
/**
|
|
@@ -156,7 +200,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
156
200
|
method: 'POST',
|
|
157
201
|
headers: headerParameters,
|
|
158
202
|
query: queryParameters,
|
|
159
|
-
body: (0,
|
|
203
|
+
body: (0, PostLogin_1.PostLoginToJSON)(requestParameters['postLogin']),
|
|
160
204
|
};
|
|
161
205
|
});
|
|
162
206
|
}
|
|
@@ -167,7 +211,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
167
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
212
|
const requestOptions = yield this.postLoginRequestOpts(requestParameters);
|
|
169
213
|
const response = yield this.request(requestOptions, initOverrides);
|
|
170
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
214
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, LoginRes_1.LoginResFromJSON)(jsonValue));
|
|
171
215
|
});
|
|
172
216
|
}
|
|
173
217
|
/**
|
|
@@ -213,6 +257,67 @@ class UserApi extends runtime.BaseAPI {
|
|
|
213
257
|
yield this.postLogoutRaw(initOverrides);
|
|
214
258
|
});
|
|
215
259
|
}
|
|
260
|
+
/**
|
|
261
|
+
* Creates request options for postUserAvatarUpload without sending the request
|
|
262
|
+
*/
|
|
263
|
+
postUserAvatarUploadRequestOpts(requestParameters) {
|
|
264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
265
|
+
if (requestParameters['userId'] == null) {
|
|
266
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling postUserAvatarUpload().');
|
|
267
|
+
}
|
|
268
|
+
if (requestParameters['file'] == null) {
|
|
269
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling postUserAvatarUpload().');
|
|
270
|
+
}
|
|
271
|
+
const queryParameters = {};
|
|
272
|
+
const headerParameters = {};
|
|
273
|
+
const consumes = [
|
|
274
|
+
{ contentType: 'multipart/form-data' },
|
|
275
|
+
];
|
|
276
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
277
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
278
|
+
let formParams;
|
|
279
|
+
let useForm = false;
|
|
280
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
281
|
+
useForm = canConsumeForm;
|
|
282
|
+
if (useForm) {
|
|
283
|
+
formParams = new FormData();
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
formParams = new URLSearchParams();
|
|
287
|
+
}
|
|
288
|
+
if (requestParameters['file'] != null) {
|
|
289
|
+
formParams.append('file', requestParameters['file']);
|
|
290
|
+
}
|
|
291
|
+
let urlPath = `/users/{userId}/avatar`;
|
|
292
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
293
|
+
return {
|
|
294
|
+
path: urlPath,
|
|
295
|
+
method: 'POST',
|
|
296
|
+
headers: headerParameters,
|
|
297
|
+
query: queryParameters,
|
|
298
|
+
body: formParams,
|
|
299
|
+
};
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Upload a profile photo for the current user
|
|
304
|
+
*/
|
|
305
|
+
postUserAvatarUploadRaw(requestParameters, initOverrides) {
|
|
306
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
307
|
+
const requestOptions = yield this.postUserAvatarUploadRequestOpts(requestParameters);
|
|
308
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
309
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetUserAvatarUpload_1.GetUserAvatarUploadFromJSON)(jsonValue));
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Upload a profile photo for the current user
|
|
314
|
+
*/
|
|
315
|
+
postUserAvatarUpload(requestParameters, initOverrides) {
|
|
316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
+
const response = yield this.postUserAvatarUploadRaw(requestParameters, initOverrides);
|
|
318
|
+
return yield response.value();
|
|
319
|
+
});
|
|
320
|
+
}
|
|
216
321
|
/**
|
|
217
322
|
* Creates request options for putUser without sending the request
|
|
218
323
|
*/
|
|
@@ -228,13 +333,13 @@ class UserApi extends runtime.BaseAPI {
|
|
|
228
333
|
const headerParameters = {};
|
|
229
334
|
headerParameters['Content-Type'] = 'application/json';
|
|
230
335
|
let urlPath = `/users/{userId}`;
|
|
231
|
-
urlPath = urlPath.replace(
|
|
336
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
232
337
|
return {
|
|
233
338
|
path: urlPath,
|
|
234
339
|
method: 'PUT',
|
|
235
340
|
headers: headerParameters,
|
|
236
341
|
query: queryParameters,
|
|
237
|
-
body: (0,
|
|
342
|
+
body: (0, PutUser_1.PutUserToJSON)(requestParameters['putUser']),
|
|
238
343
|
};
|
|
239
344
|
});
|
|
240
345
|
}
|
|
@@ -245,7 +350,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
245
350
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
351
|
const requestOptions = yield this.putUserRequestOpts(requestParameters);
|
|
247
352
|
const response = yield this.request(requestOptions, initOverrides);
|
|
248
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
353
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetUser_1.GetUserFromJSON)(jsonValue));
|
|
249
354
|
});
|
|
250
355
|
}
|
|
251
356
|
/**
|
|
@@ -274,7 +379,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
274
379
|
method: 'POST',
|
|
275
380
|
headers: headerParameters,
|
|
276
381
|
query: queryParameters,
|
|
277
|
-
body: (0,
|
|
382
|
+
body: (0, PostResetPassword_1.PostResetPasswordToJSON)(requestParameters['postResetPassword']),
|
|
278
383
|
};
|
|
279
384
|
});
|
|
280
385
|
}
|
|
@@ -313,7 +418,7 @@ class UserApi extends runtime.BaseAPI {
|
|
|
313
418
|
method: 'POST',
|
|
314
419
|
headers: headerParameters,
|
|
315
420
|
query: queryParameters,
|
|
316
|
-
body: (0,
|
|
421
|
+
body: (0, PostSendResetPassword_1.PostSendResetPasswordToJSON)(requestParameters['postSendResetPassword']),
|
|
317
422
|
};
|
|
318
423
|
});
|
|
319
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
|
}
|