@easyedu/js-lsm-api 1.58.0 → 1.60.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 +6 -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 +52 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.js +57 -0
- package/dist/esm/models/UpdateSelectedPortalResponseHostPortal.d.ts +44 -0
- package/dist/esm/models/UpdateSelectedPortalResponseHostPortal.js +51 -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/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 +52 -0
- package/dist/models/UpdateSelectedPortalResponse.js +64 -0
- package/dist/models/UpdateSelectedPortalResponseHostPortal.d.ts +44 -0
- package/dist/models/UpdateSelectedPortalResponseHostPortal.js +58 -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/PortalApi.md +3 -3
- package/docs/PostPortal.md +4 -0
- package/docs/PutPortalBranding.md +4 -0
- package/docs/UpdateSelectedPortalResponse.md +40 -0
- package/docs/UpdateSelectedPortalResponseHostPortal.md +39 -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 +108 -0
- package/src/models/UpdateSelectedPortalResponseHostPortal.ts +84 -0
- package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -2
package/dist/apis/ModuleApi.js
CHANGED
|
@@ -24,7 +24,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ModuleApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const GetModule_1 = require("../models/GetModule");
|
|
28
|
+
const GetModuleList_1 = require("../models/GetModuleList");
|
|
29
|
+
const PostDuplicate1_1 = require("../models/PostDuplicate1");
|
|
30
|
+
const PostModule_1 = require("../models/PostModule");
|
|
31
|
+
const PutModule_1 = require("../models/PutModule");
|
|
32
|
+
const PutModuleReorder_1 = require("../models/PutModuleReorder");
|
|
28
33
|
/**
|
|
29
34
|
*
|
|
30
35
|
*/
|
|
@@ -43,8 +48,8 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
43
48
|
const queryParameters = {};
|
|
44
49
|
const headerParameters = {};
|
|
45
50
|
let urlPath = `/courses/{courseId}/modules/{moduleId}`;
|
|
46
|
-
urlPath = urlPath.replace(
|
|
47
|
-
urlPath = urlPath.replace(
|
|
51
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
52
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
48
53
|
return {
|
|
49
54
|
path: urlPath,
|
|
50
55
|
method: 'GET',
|
|
@@ -60,7 +65,7 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
60
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
66
|
const requestOptions = yield this.getModuleRequestOpts(requestParameters);
|
|
62
67
|
const response = yield this.request(requestOptions, initOverrides);
|
|
63
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
68
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetModule_1.GetModuleFromJSON)(jsonValue));
|
|
64
69
|
});
|
|
65
70
|
}
|
|
66
71
|
/**
|
|
@@ -83,7 +88,7 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
83
88
|
const queryParameters = {};
|
|
84
89
|
const headerParameters = {};
|
|
85
90
|
let urlPath = `/courses/{courseId}/modules`;
|
|
86
|
-
urlPath = urlPath.replace(
|
|
91
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
87
92
|
return {
|
|
88
93
|
path: urlPath,
|
|
89
94
|
method: 'GET',
|
|
@@ -99,7 +104,7 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
99
104
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
105
|
const requestOptions = yield this.getModuleListRequestOpts(requestParameters);
|
|
101
106
|
const response = yield this.request(requestOptions, initOverrides);
|
|
102
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
107
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetModuleList_1.GetModuleListFromJSON)(jsonValue));
|
|
103
108
|
});
|
|
104
109
|
}
|
|
105
110
|
/**
|
|
@@ -126,13 +131,13 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
126
131
|
const headerParameters = {};
|
|
127
132
|
headerParameters['Content-Type'] = 'application/json';
|
|
128
133
|
let urlPath = `/courses/{courseId}/modules`;
|
|
129
|
-
urlPath = urlPath.replace(
|
|
134
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
130
135
|
return {
|
|
131
136
|
path: urlPath,
|
|
132
137
|
method: 'POST',
|
|
133
138
|
headers: headerParameters,
|
|
134
139
|
query: queryParameters,
|
|
135
|
-
body: (0,
|
|
140
|
+
body: (0, PostModule_1.PostModuleToJSON)(requestParameters['postModule']),
|
|
136
141
|
};
|
|
137
142
|
});
|
|
138
143
|
}
|
|
@@ -143,7 +148,7 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
143
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
144
149
|
const requestOptions = yield this.postModuleRequestOpts(requestParameters);
|
|
145
150
|
const response = yield this.request(requestOptions, initOverrides);
|
|
146
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetModule_1.GetModuleFromJSON)(jsonValue));
|
|
147
152
|
});
|
|
148
153
|
}
|
|
149
154
|
/**
|
|
@@ -170,14 +175,14 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
170
175
|
const headerParameters = {};
|
|
171
176
|
headerParameters['Content-Type'] = 'application/json';
|
|
172
177
|
let urlPath = `/courses/{courseId}/modules/{moduleId}/duplicate`;
|
|
173
|
-
urlPath = urlPath.replace(
|
|
174
|
-
urlPath = urlPath.replace(
|
|
178
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
179
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
175
180
|
return {
|
|
176
181
|
path: urlPath,
|
|
177
182
|
method: 'POST',
|
|
178
183
|
headers: headerParameters,
|
|
179
184
|
query: queryParameters,
|
|
180
|
-
body: (0,
|
|
185
|
+
body: (0, PostDuplicate1_1.PostDuplicate1ToJSON)(requestParameters['postDuplicate1']),
|
|
181
186
|
};
|
|
182
187
|
});
|
|
183
188
|
}
|
|
@@ -189,7 +194,7 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
189
194
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
195
|
const requestOptions = yield this.postModuleDuplicateRequestOpts(requestParameters);
|
|
191
196
|
const response = yield this.request(requestOptions, initOverrides);
|
|
192
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
197
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetModule_1.GetModuleFromJSON)(jsonValue));
|
|
193
198
|
});
|
|
194
199
|
}
|
|
195
200
|
/**
|
|
@@ -220,14 +225,14 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
220
225
|
const headerParameters = {};
|
|
221
226
|
headerParameters['Content-Type'] = 'application/json';
|
|
222
227
|
let urlPath = `/courses/{courseId}/modules/{moduleId}`;
|
|
223
|
-
urlPath = urlPath.replace(
|
|
224
|
-
urlPath = urlPath.replace(
|
|
228
|
+
urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
|
|
229
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
225
230
|
return {
|
|
226
231
|
path: urlPath,
|
|
227
232
|
method: 'PUT',
|
|
228
233
|
headers: headerParameters,
|
|
229
234
|
query: queryParameters,
|
|
230
|
-
body: (0,
|
|
235
|
+
body: (0, PutModule_1.PutModuleToJSON)(requestParameters['putModule']),
|
|
231
236
|
};
|
|
232
237
|
});
|
|
233
238
|
}
|
|
@@ -238,7 +243,7 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
238
243
|
return __awaiter(this, void 0, void 0, function* () {
|
|
239
244
|
const requestOptions = yield this.putModuleRequestOpts(requestParameters);
|
|
240
245
|
const response = yield this.request(requestOptions, initOverrides);
|
|
241
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
246
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetModule_1.GetModuleFromJSON)(jsonValue));
|
|
242
247
|
});
|
|
243
248
|
}
|
|
244
249
|
/**
|
|
@@ -265,13 +270,13 @@ class ModuleApi extends runtime.BaseAPI {
|
|
|
265
270
|
const headerParameters = {};
|
|
266
271
|
headerParameters['Content-Type'] = 'application/json';
|
|
267
272
|
let urlPath = `/courses/{courseId}/modules/reorder`;
|
|
268
|
-
urlPath = urlPath.replace(
|
|
273
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
269
274
|
return {
|
|
270
275
|
path: urlPath,
|
|
271
276
|
method: 'PUT',
|
|
272
277
|
headers: headerParameters,
|
|
273
278
|
query: queryParameters,
|
|
274
|
-
body: (0,
|
|
279
|
+
body: (0, PutModuleReorder_1.PutModuleReorderToJSON)(requestParameters['putModuleReorder']),
|
|
275
280
|
};
|
|
276
281
|
});
|
|
277
282
|
}
|
package/dist/apis/PortalApi.d.ts
CHANGED
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type GetPortal } from '../models/GetPortal';
|
|
14
|
+
import { type GetPortalFaviconUpload } from '../models/GetPortalFaviconUpload';
|
|
15
|
+
import { type GetPortalList } from '../models/GetPortalList';
|
|
16
|
+
import { type GetPortalLogoUpload } from '../models/GetPortalLogoUpload';
|
|
17
|
+
import { type GetPortalUserList } from '../models/GetPortalUserList';
|
|
18
|
+
import { type PostPortal } from '../models/PostPortal';
|
|
19
|
+
import { type PostPortalInvite } from '../models/PostPortalInvite';
|
|
20
|
+
import { type PutPortalBranding } from '../models/PutPortalBranding';
|
|
21
|
+
import { type UpdateSelectedPortalResponse } from '../models/UpdateSelectedPortalResponse';
|
|
14
22
|
export interface DeletePortalFaviconRequest {
|
|
15
23
|
portalId: string;
|
|
16
24
|
}
|
|
@@ -181,11 +189,11 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
181
189
|
/**
|
|
182
190
|
* Update the users current selected portal. Returns new JWT with updated roles.
|
|
183
191
|
*/
|
|
184
|
-
updateSelectedPortalRaw(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
192
|
+
updateSelectedPortalRaw(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UpdateSelectedPortalResponse>>;
|
|
185
193
|
/**
|
|
186
194
|
* Update the users current selected portal. Returns new JWT with updated roles.
|
|
187
195
|
*/
|
|
188
|
-
updateSelectedPortal(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
196
|
+
updateSelectedPortal(requestParameters: UpdateSelectedPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateSelectedPortalResponse>;
|
|
189
197
|
}
|
|
190
198
|
/**
|
|
191
199
|
* @export
|
package/dist/apis/PortalApi.js
CHANGED
|
@@ -24,7 +24,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GetPortalUsersRolesEnum = exports.GetPortalUsersTypeEnum = exports.PortalApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const GetPortal_1 = require("../models/GetPortal");
|
|
28
|
+
const GetPortalFaviconUpload_1 = require("../models/GetPortalFaviconUpload");
|
|
29
|
+
const GetPortalList_1 = require("../models/GetPortalList");
|
|
30
|
+
const GetPortalLogoUpload_1 = require("../models/GetPortalLogoUpload");
|
|
31
|
+
const GetPortalUserList_1 = require("../models/GetPortalUserList");
|
|
32
|
+
const PostPortal_1 = require("../models/PostPortal");
|
|
33
|
+
const PostPortalInvite_1 = require("../models/PostPortalInvite");
|
|
34
|
+
const PutPortalBranding_1 = require("../models/PutPortalBranding");
|
|
35
|
+
const UpdateSelectedPortalResponse_1 = require("../models/UpdateSelectedPortalResponse");
|
|
28
36
|
/**
|
|
29
37
|
*
|
|
30
38
|
*/
|
|
@@ -40,7 +48,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
40
48
|
const queryParameters = {};
|
|
41
49
|
const headerParameters = {};
|
|
42
50
|
let urlPath = `/portals/{portalId}/branding/favicon`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
51
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
44
52
|
return {
|
|
45
53
|
path: urlPath,
|
|
46
54
|
method: 'DELETE',
|
|
@@ -78,7 +86,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
78
86
|
const queryParameters = {};
|
|
79
87
|
const headerParameters = {};
|
|
80
88
|
let urlPath = `/portals/{portalId}/branding/logo`;
|
|
81
|
-
urlPath = urlPath.replace(
|
|
89
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
82
90
|
return {
|
|
83
91
|
path: urlPath,
|
|
84
92
|
method: 'DELETE',
|
|
@@ -116,7 +124,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
116
124
|
const queryParameters = {};
|
|
117
125
|
const headerParameters = {};
|
|
118
126
|
let urlPath = `/portals/{portalId}`;
|
|
119
|
-
urlPath = urlPath.replace(
|
|
127
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
120
128
|
return {
|
|
121
129
|
path: urlPath,
|
|
122
130
|
method: 'GET',
|
|
@@ -132,7 +140,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
132
140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
141
|
const requestOptions = yield this.getPortalByIdRequestOpts(requestParameters);
|
|
134
142
|
const response = yield this.request(requestOptions, initOverrides);
|
|
135
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
143
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortal_1.GetPortalFromJSON)(jsonValue));
|
|
136
144
|
});
|
|
137
145
|
}
|
|
138
146
|
/**
|
|
@@ -167,7 +175,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
167
175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
176
|
const requestOptions = yield this.getPortalListRequestOpts();
|
|
169
177
|
const response = yield this.request(requestOptions, initOverrides);
|
|
170
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortalList_1.GetPortalListFromJSON)(jsonValue));
|
|
171
179
|
});
|
|
172
180
|
}
|
|
173
181
|
/**
|
|
@@ -205,7 +213,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
205
213
|
}
|
|
206
214
|
const headerParameters = {};
|
|
207
215
|
let urlPath = `/portals/{portalId}/users`;
|
|
208
|
-
urlPath = urlPath.replace(
|
|
216
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
209
217
|
return {
|
|
210
218
|
path: urlPath,
|
|
211
219
|
method: 'GET',
|
|
@@ -221,7 +229,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
221
229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
222
230
|
const requestOptions = yield this.getPortalUsersRequestOpts(requestParameters);
|
|
223
231
|
const response = yield this.request(requestOptions, initOverrides);
|
|
224
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
232
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortalUserList_1.GetPortalUserListFromJSON)(jsonValue));
|
|
225
233
|
});
|
|
226
234
|
}
|
|
227
235
|
/**
|
|
@@ -248,13 +256,13 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
248
256
|
const headerParameters = {};
|
|
249
257
|
headerParameters['Content-Type'] = 'application/json';
|
|
250
258
|
let urlPath = `/portals/{portalId}/invite`;
|
|
251
|
-
urlPath = urlPath.replace(
|
|
259
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
252
260
|
return {
|
|
253
261
|
path: urlPath,
|
|
254
262
|
method: 'POST',
|
|
255
263
|
headers: headerParameters,
|
|
256
264
|
query: queryParameters,
|
|
257
|
-
body: (0,
|
|
265
|
+
body: (0, PostPortalInvite_1.PostPortalInviteToJSON)(requestParameters['postPortalInvite']),
|
|
258
266
|
};
|
|
259
267
|
});
|
|
260
268
|
}
|
|
@@ -293,7 +301,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
293
301
|
method: 'POST',
|
|
294
302
|
headers: headerParameters,
|
|
295
303
|
query: queryParameters,
|
|
296
|
-
body: (0,
|
|
304
|
+
body: (0, PostPortal_1.PostPortalToJSON)(requestParameters['postPortal']),
|
|
297
305
|
};
|
|
298
306
|
});
|
|
299
307
|
}
|
|
@@ -304,7 +312,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
304
312
|
return __awaiter(this, void 0, void 0, function* () {
|
|
305
313
|
const requestOptions = yield this.postPortalRequestOpts(requestParameters);
|
|
306
314
|
const response = yield this.request(requestOptions, initOverrides);
|
|
307
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
315
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortal_1.GetPortalFromJSON)(jsonValue));
|
|
308
316
|
});
|
|
309
317
|
}
|
|
310
318
|
/**
|
|
@@ -348,7 +356,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
348
356
|
formParams.append('file', requestParameters['file']);
|
|
349
357
|
}
|
|
350
358
|
let urlPath = `/portals/{portalId}/branding/favicon`;
|
|
351
|
-
urlPath = urlPath.replace(
|
|
359
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
352
360
|
return {
|
|
353
361
|
path: urlPath,
|
|
354
362
|
method: 'POST',
|
|
@@ -365,7 +373,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
365
373
|
return __awaiter(this, void 0, void 0, function* () {
|
|
366
374
|
const requestOptions = yield this.postPortalFaviconUploadRequestOpts(requestParameters);
|
|
367
375
|
const response = yield this.request(requestOptions, initOverrides);
|
|
368
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortalFaviconUpload_1.GetPortalFaviconUploadFromJSON)(jsonValue));
|
|
369
377
|
});
|
|
370
378
|
}
|
|
371
379
|
/**
|
|
@@ -409,7 +417,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
409
417
|
formParams.append('file', requestParameters['file']);
|
|
410
418
|
}
|
|
411
419
|
let urlPath = `/portals/{portalId}/branding/logo`;
|
|
412
|
-
urlPath = urlPath.replace(
|
|
420
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
413
421
|
return {
|
|
414
422
|
path: urlPath,
|
|
415
423
|
method: 'POST',
|
|
@@ -426,7 +434,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
426
434
|
return __awaiter(this, void 0, void 0, function* () {
|
|
427
435
|
const requestOptions = yield this.postPortalLogoUploadRequestOpts(requestParameters);
|
|
428
436
|
const response = yield this.request(requestOptions, initOverrides);
|
|
429
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
437
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortalLogoUpload_1.GetPortalLogoUploadFromJSON)(jsonValue));
|
|
430
438
|
});
|
|
431
439
|
}
|
|
432
440
|
/**
|
|
@@ -453,13 +461,13 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
453
461
|
const headerParameters = {};
|
|
454
462
|
headerParameters['Content-Type'] = 'application/json';
|
|
455
463
|
let urlPath = `/portals/{portalId}`;
|
|
456
|
-
urlPath = urlPath.replace(
|
|
464
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
457
465
|
return {
|
|
458
466
|
path: urlPath,
|
|
459
467
|
method: 'PUT',
|
|
460
468
|
headers: headerParameters,
|
|
461
469
|
query: queryParameters,
|
|
462
|
-
body: (0,
|
|
470
|
+
body: (0, PutPortalBranding_1.PutPortalBrandingToJSON)(requestParameters['putPortalBranding']),
|
|
463
471
|
};
|
|
464
472
|
});
|
|
465
473
|
}
|
|
@@ -470,7 +478,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
470
478
|
return __awaiter(this, void 0, void 0, function* () {
|
|
471
479
|
const requestOptions = yield this.putPortalBrandingRequestOpts(requestParameters);
|
|
472
480
|
const response = yield this.request(requestOptions, initOverrides);
|
|
473
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
481
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortal_1.GetPortalFromJSON)(jsonValue));
|
|
474
482
|
});
|
|
475
483
|
}
|
|
476
484
|
/**
|
|
@@ -493,7 +501,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
493
501
|
const queryParameters = {};
|
|
494
502
|
const headerParameters = {};
|
|
495
503
|
let urlPath = `/portals/{portalId}/selected`;
|
|
496
|
-
urlPath = urlPath.replace(
|
|
504
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
497
505
|
return {
|
|
498
506
|
path: urlPath,
|
|
499
507
|
method: 'PUT',
|
|
@@ -509,7 +517,7 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
509
517
|
return __awaiter(this, void 0, void 0, function* () {
|
|
510
518
|
const requestOptions = yield this.updateSelectedPortalRequestOpts(requestParameters);
|
|
511
519
|
const response = yield this.request(requestOptions, initOverrides);
|
|
512
|
-
return new runtime.
|
|
520
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, UpdateSelectedPortalResponse_1.UpdateSelectedPortalResponseFromJSON)(jsonValue));
|
|
513
521
|
});
|
|
514
522
|
}
|
|
515
523
|
/**
|
|
@@ -517,7 +525,8 @@ class PortalApi extends runtime.BaseAPI {
|
|
|
517
525
|
*/
|
|
518
526
|
updateSelectedPortal(requestParameters, initOverrides) {
|
|
519
527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
520
|
-
yield this.updateSelectedPortalRaw(requestParameters, initOverrides);
|
|
528
|
+
const response = yield this.updateSelectedPortalRaw(requestParameters, initOverrides);
|
|
529
|
+
return yield response.value();
|
|
521
530
|
});
|
|
522
531
|
}
|
|
523
532
|
}
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type PortalSublicense } from '../models/PortalSublicense';
|
|
14
|
+
import { type PutPortalSublicense } from '../models/PutPortalSublicense';
|
|
14
15
|
export interface PutPortalSublicenseRequest {
|
|
15
16
|
portalId: string;
|
|
16
17
|
putPortalSublicense: PutPortalSublicense;
|
|
@@ -24,7 +24,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.PortalSublicenseApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const PortalSublicense_1 = require("../models/PortalSublicense");
|
|
28
|
+
const PutPortalSublicense_1 = require("../models/PutPortalSublicense");
|
|
28
29
|
/**
|
|
29
30
|
*
|
|
30
31
|
*/
|
|
@@ -44,13 +45,13 @@ class PortalSublicenseApi extends runtime.BaseAPI {
|
|
|
44
45
|
const headerParameters = {};
|
|
45
46
|
headerParameters['Content-Type'] = 'application/json';
|
|
46
47
|
let urlPath = `/portals/{portalId}/sublicense`;
|
|
47
|
-
urlPath = urlPath.replace(
|
|
48
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
48
49
|
return {
|
|
49
50
|
path: urlPath,
|
|
50
51
|
method: 'PUT',
|
|
51
52
|
headers: headerParameters,
|
|
52
53
|
query: queryParameters,
|
|
53
|
-
body: (0,
|
|
54
|
+
body: (0, PutPortalSublicense_1.PutPortalSublicenseToJSON)(requestParameters['putPortalSublicense']),
|
|
54
55
|
};
|
|
55
56
|
});
|
|
56
57
|
}
|
|
@@ -62,7 +63,7 @@ class PortalSublicenseApi extends runtime.BaseAPI {
|
|
|
62
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
64
|
const requestOptions = yield this.putPortalSublicenseRequestOpts(requestParameters);
|
|
64
65
|
const response = yield this.request(requestOptions, initOverrides);
|
|
65
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
66
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PortalSublicense_1.PortalSublicenseFromJSON)(jsonValue));
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
69
|
/**
|
|
@@ -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 GetQuestion } from '../models/GetQuestion';
|
|
14
|
+
import { type GetQuestionList } from '../models/GetQuestionList';
|
|
15
|
+
import { type PostQuestion } from '../models/PostQuestion';
|
|
16
|
+
import { type PutQuestion } from '../models/PutQuestion';
|
|
14
17
|
export interface DeleteQuestionRequest {
|
|
15
18
|
questionId: string;
|
|
16
19
|
}
|
package/dist/apis/QuestionApi.js
CHANGED
|
@@ -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.GetQuestionListDifficultyLevelEnum = exports.GetQuestionListQuestionTypeEnum = exports.QuestionApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const GetQuestion_1 = require("../models/GetQuestion");
|
|
28
|
+
const GetQuestionList_1 = require("../models/GetQuestionList");
|
|
29
|
+
const PostQuestion_1 = require("../models/PostQuestion");
|
|
30
|
+
const PutQuestion_1 = require("../models/PutQuestion");
|
|
28
31
|
/**
|
|
29
32
|
*
|
|
30
33
|
*/
|
|
@@ -40,7 +43,7 @@ class QuestionApi extends runtime.BaseAPI {
|
|
|
40
43
|
const queryParameters = {};
|
|
41
44
|
const headerParameters = {};
|
|
42
45
|
let urlPath = `/questions/{questionId}`;
|
|
43
|
-
urlPath = urlPath.replace(
|
|
46
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
44
47
|
return {
|
|
45
48
|
path: urlPath,
|
|
46
49
|
method: 'DELETE',
|
|
@@ -78,7 +81,7 @@ class QuestionApi extends runtime.BaseAPI {
|
|
|
78
81
|
const queryParameters = {};
|
|
79
82
|
const headerParameters = {};
|
|
80
83
|
let urlPath = `/questions/{questionId}`;
|
|
81
|
-
urlPath = urlPath.replace(
|
|
84
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
82
85
|
return {
|
|
83
86
|
path: urlPath,
|
|
84
87
|
method: 'GET',
|
|
@@ -94,7 +97,7 @@ class QuestionApi extends runtime.BaseAPI {
|
|
|
94
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
98
|
const requestOptions = yield this.getQuestionRequestOpts(requestParameters);
|
|
96
99
|
const response = yield this.request(requestOptions, initOverrides);
|
|
97
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuestion_1.GetQuestionFromJSON)(jsonValue));
|
|
98
101
|
});
|
|
99
102
|
}
|
|
100
103
|
/**
|
|
@@ -150,7 +153,7 @@ class QuestionApi extends runtime.BaseAPI {
|
|
|
150
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
151
154
|
const requestOptions = yield this.getQuestionListRequestOpts(requestParameters);
|
|
152
155
|
const response = yield this.request(requestOptions, initOverrides);
|
|
153
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
156
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuestionList_1.GetQuestionListFromJSON)(jsonValue));
|
|
154
157
|
});
|
|
155
158
|
}
|
|
156
159
|
/**
|
|
@@ -179,7 +182,7 @@ class QuestionApi extends runtime.BaseAPI {
|
|
|
179
182
|
method: 'POST',
|
|
180
183
|
headers: headerParameters,
|
|
181
184
|
query: queryParameters,
|
|
182
|
-
body: (0,
|
|
185
|
+
body: (0, PostQuestion_1.PostQuestionToJSON)(requestParameters['postQuestion']),
|
|
183
186
|
};
|
|
184
187
|
});
|
|
185
188
|
}
|
|
@@ -190,7 +193,7 @@ class QuestionApi extends runtime.BaseAPI {
|
|
|
190
193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
191
194
|
const requestOptions = yield this.postQuestionRequestOpts(requestParameters);
|
|
192
195
|
const response = yield this.request(requestOptions, initOverrides);
|
|
193
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuestion_1.GetQuestionFromJSON)(jsonValue));
|
|
194
197
|
});
|
|
195
198
|
}
|
|
196
199
|
/**
|
|
@@ -217,13 +220,13 @@ class QuestionApi extends runtime.BaseAPI {
|
|
|
217
220
|
const headerParameters = {};
|
|
218
221
|
headerParameters['Content-Type'] = 'application/json';
|
|
219
222
|
let urlPath = `/questions/{questionId}`;
|
|
220
|
-
urlPath = urlPath.replace(
|
|
223
|
+
urlPath = urlPath.replace('{questionId}', encodeURIComponent(String(requestParameters['questionId'])));
|
|
221
224
|
return {
|
|
222
225
|
path: urlPath,
|
|
223
226
|
method: 'PUT',
|
|
224
227
|
headers: headerParameters,
|
|
225
228
|
query: queryParameters,
|
|
226
|
-
body: (0,
|
|
229
|
+
body: (0, PutQuestion_1.PutQuestionToJSON)(requestParameters['putQuestion']),
|
|
227
230
|
};
|
|
228
231
|
});
|
|
229
232
|
}
|
|
@@ -234,7 +237,7 @@ class QuestionApi extends runtime.BaseAPI {
|
|
|
234
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
238
|
const requestOptions = yield this.putQuestionRequestOpts(requestParameters);
|
|
236
239
|
const response = yield this.request(requestOptions, initOverrides);
|
|
237
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
240
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetQuestion_1.GetQuestionFromJSON)(jsonValue));
|
|
238
241
|
});
|
|
239
242
|
}
|
|
240
243
|
/**
|
package/dist/apis/QuizApi.d.ts
CHANGED
|
@@ -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 GetManualQuestionSelectionItem } from '../models/GetManualQuestionSelectionItem';
|
|
14
|
+
import { type GetManualQuestionSelectionList } from '../models/GetManualQuestionSelectionList';
|
|
15
|
+
import { type GetQuiz } from '../models/GetQuiz';
|
|
16
|
+
import { type GetQuizAttempt } from '../models/GetQuizAttempt';
|
|
17
|
+
import { type GetQuizAttemptAnalytics } from '../models/GetQuizAttemptAnalytics';
|
|
18
|
+
import { type GetQuizAttemptList } from '../models/GetQuizAttemptList';
|
|
19
|
+
import { type GetQuizCriteria } from '../models/GetQuizCriteria';
|
|
20
|
+
import { type GetQuizCriteriaItem } from '../models/GetQuizCriteriaItem';
|
|
21
|
+
import { type GetQuizCriteriaList } from '../models/GetQuizCriteriaList';
|
|
22
|
+
import { type GetQuizList } from '../models/GetQuizList';
|
|
23
|
+
import { type GetQuizQuestions } from '../models/GetQuizQuestions';
|
|
24
|
+
import { type GetQuizResults } from '../models/GetQuizResults';
|
|
25
|
+
import { type GetUserQuizAttempts } from '../models/GetUserQuizAttempts';
|
|
26
|
+
import { type PostManualQuestionSelection } from '../models/PostManualQuestionSelection';
|
|
27
|
+
import { type PostQuiz } from '../models/PostQuiz';
|
|
28
|
+
import { type PostQuizAttempt } from '../models/PostQuizAttempt';
|
|
29
|
+
import { type PostQuizAttemptSubmit } from '../models/PostQuizAttemptSubmit';
|
|
30
|
+
import { type PostQuizCriteria } from '../models/PostQuizCriteria';
|
|
31
|
+
import { type PostQuizQuestions } from '../models/PostQuizQuestions';
|
|
32
|
+
import { type PutQuiz } from '../models/PutQuiz';
|
|
33
|
+
import { type PutQuizAnswer } from '../models/PutQuizAnswer';
|
|
34
|
+
import { type PutQuizAnswerGrade } from '../models/PutQuizAnswerGrade';
|
|
14
35
|
export interface AddQuizCriteriaQuestionSelectionRequest {
|
|
15
36
|
quizId: string;
|
|
16
37
|
postQuizCriteria: PostQuizCriteria;
|