@easyedu/js-lsm-api 1.66.0 → 1.68.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 +10 -2
- package/README.md +15 -3
- package/dist/apis/ContentApi.d.ts +74 -0
- package/dist/apis/ContentApi.js +172 -1
- package/dist/apis/CourseApi.d.ts +16 -0
- package/dist/apis/CourseApi.js +43 -0
- package/dist/apis/PortalApi.d.ts +58 -0
- package/dist/apis/PortalApi.js +152 -0
- package/dist/apis/SupportTicketApi.d.ts +2 -3
- package/dist/apis/SupportTicketApi.js +1 -2
- package/dist/esm/apis/ContentApi.d.ts +74 -0
- package/dist/esm/apis/ContentApi.js +171 -0
- package/dist/esm/apis/CourseApi.d.ts +16 -0
- package/dist/esm/apis/CourseApi.js +43 -0
- package/dist/esm/apis/PortalApi.d.ts +58 -0
- package/dist/esm/apis/PortalApi.js +152 -0
- package/dist/esm/apis/SupportTicketApi.d.ts +2 -3
- package/dist/esm/apis/SupportTicketApi.js +1 -2
- package/dist/esm/models/ContentAttemptItem.d.ts +69 -0
- package/dist/esm/models/ContentAttemptItem.js +68 -0
- package/dist/esm/models/ContentAttemptRollupScore.d.ts +38 -0
- package/dist/esm/models/ContentAttemptRollupScore.js +47 -0
- package/dist/esm/models/ContentAttemptScore.d.ts +50 -0
- package/dist/esm/models/ContentAttemptScore.js +47 -0
- package/dist/esm/models/ContentLaunchMode.d.ts +26 -0
- package/dist/esm/models/ContentLaunchMode.js +44 -0
- package/dist/esm/models/GetContent.d.ts +7 -0
- package/dist/esm/models/GetContent.js +5 -0
- package/dist/esm/models/GetContentAttempts.d.ts +90 -0
- package/dist/esm/models/GetContentAttempts.js +84 -0
- package/dist/esm/models/GetContentSession.d.ts +12 -0
- package/dist/esm/models/GetContentSession.js +8 -0
- package/dist/esm/models/GetContentSessionDetail.d.ts +12 -0
- package/dist/esm/models/GetContentSessionDetail.js +8 -0
- package/dist/esm/models/GetContentSessionListItem.d.ts +24 -0
- package/dist/esm/models/GetContentSessionListItem.js +16 -0
- package/dist/esm/models/GetPortal.d.ts +2 -2
- package/dist/esm/models/GetPortalFaviconUpload.d.ts +1 -1
- package/dist/esm/models/GetPortalLogoUpload.d.ts +1 -1
- package/dist/esm/models/GetPublicPortalBranding.d.ts +2 -2
- package/dist/esm/models/PostContentSession.d.ts +19 -0
- package/dist/esm/models/PostContentSession.js +13 -0
- package/dist/esm/models/PutContent.d.ts +7 -0
- package/dist/esm/models/PutContent.js +3 -0
- package/dist/esm/models/index.d.ts +5 -1
- package/dist/esm/models/index.js +5 -1
- package/dist/models/ContentAttemptItem.d.ts +69 -0
- package/dist/models/ContentAttemptItem.js +75 -0
- package/dist/models/ContentAttemptRollupScore.d.ts +38 -0
- package/dist/models/ContentAttemptRollupScore.js +54 -0
- package/dist/models/ContentAttemptScore.d.ts +50 -0
- package/dist/models/ContentAttemptScore.js +54 -0
- package/dist/models/ContentLaunchMode.d.ts +26 -0
- package/dist/models/ContentLaunchMode.js +52 -0
- package/dist/models/GetContent.d.ts +7 -0
- package/dist/models/GetContent.js +5 -0
- package/dist/models/GetContentAttempts.d.ts +90 -0
- package/dist/models/GetContentAttempts.js +92 -0
- package/dist/models/GetContentSession.d.ts +12 -0
- package/dist/models/GetContentSession.js +8 -0
- package/dist/models/GetContentSessionDetail.d.ts +12 -0
- package/dist/models/GetContentSessionDetail.js +8 -0
- package/dist/models/GetContentSessionListItem.d.ts +24 -0
- package/dist/models/GetContentSessionListItem.js +16 -0
- package/dist/models/GetPortal.d.ts +2 -2
- package/dist/models/GetPortalFaviconUpload.d.ts +1 -1
- package/dist/models/GetPortalLogoUpload.d.ts +1 -1
- package/dist/models/GetPublicPortalBranding.d.ts +2 -2
- package/dist/models/PostContentSession.d.ts +19 -0
- package/dist/models/PostContentSession.js +13 -0
- package/dist/models/PutContent.d.ts +7 -0
- package/dist/models/PutContent.js +3 -0
- package/dist/models/index.d.ts +5 -1
- package/dist/models/index.js +5 -1
- package/docs/ContentApi.md +238 -0
- package/docs/ContentAttemptItem.md +47 -0
- package/docs/ContentAttemptRollupScore.md +37 -0
- package/docs/ContentAttemptScore.md +41 -0
- package/docs/{DownloadSupportTicketAttachment200Response.md → ContentLaunchMode.md} +5 -6
- package/docs/CourseApi.md +72 -0
- package/docs/GetContent.md +2 -0
- package/docs/GetContentAttempts.md +51 -0
- package/docs/GetContentSession.md +4 -0
- package/docs/GetContentSessionDetail.md +4 -0
- package/docs/GetContentSessionListItem.md +8 -0
- package/docs/PortalApi.md +258 -0
- package/docs/PostContentSession.md +6 -0
- package/docs/PutContent.md +2 -0
- package/docs/SupportTicketApi.md +4 -4
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +249 -0
- package/src/apis/CourseApi.ts +58 -0
- package/src/apis/PortalApi.ts +176 -0
- package/src/apis/SupportTicketApi.ts +3 -8
- package/src/models/ContentAttemptItem.ts +128 -0
- package/src/models/ContentAttemptRollupScore.ts +75 -0
- package/src/models/ContentAttemptScore.ts +89 -0
- package/src/models/ContentLaunchMode.ts +54 -0
- package/src/models/GetContent.ts +16 -0
- package/src/models/GetContentAttempts.ts +164 -0
- package/src/models/GetContentSession.ts +18 -0
- package/src/models/GetContentSessionDetail.ts +18 -0
- package/src/models/GetContentSessionListItem.ts +36 -0
- package/src/models/GetPortal.ts +2 -2
- package/src/models/GetPortalFaviconUpload.ts +1 -1
- package/src/models/GetPortalLogoUpload.ts +1 -1
- package/src/models/GetPublicPortalBranding.ts +2 -2
- package/src/models/PostContentSession.ts +37 -0
- package/src/models/PutContent.ts +18 -0
- package/src/models/index.ts +5 -1
- package/dist/esm/models/DownloadSupportTicketAttachment200Response.d.ts +0 -32
- package/dist/esm/models/DownloadSupportTicketAttachment200Response.js +0 -43
- package/dist/models/DownloadSupportTicketAttachment200Response.d.ts +0 -32
- package/dist/models/DownloadSupportTicketAttachment200Response.js +0 -50
- package/src/models/DownloadSupportTicketAttachment200Response.ts +0 -66
|
@@ -29,6 +29,12 @@ export interface DeletePortalLogoRequest {
|
|
|
29
29
|
export interface GetPortalByIdRequest {
|
|
30
30
|
portalId: string;
|
|
31
31
|
}
|
|
32
|
+
export interface GetPortalFaviconAssetRequest {
|
|
33
|
+
portalId: string;
|
|
34
|
+
}
|
|
35
|
+
export interface GetPortalLogoAssetRequest {
|
|
36
|
+
portalId: string;
|
|
37
|
+
}
|
|
32
38
|
export interface GetPortalUsersRequest {
|
|
33
39
|
portalId: string;
|
|
34
40
|
type?: GetPortalUsersTypeEnum;
|
|
@@ -103,6 +109,18 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
103
109
|
* Get a portal by id (can use \'current\' to get the current users selected portal)
|
|
104
110
|
*/
|
|
105
111
|
getPortalById(requestParameters: GetPortalByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for getPortalFaviconAsset without sending the request
|
|
114
|
+
*/
|
|
115
|
+
getPortalFaviconAssetRequestOpts(requestParameters: GetPortalFaviconAssetRequest): Promise<runtime.RequestOpts>;
|
|
116
|
+
/**
|
|
117
|
+
* Stream the configured portal favicon
|
|
118
|
+
*/
|
|
119
|
+
getPortalFaviconAssetRaw(requestParameters: GetPortalFaviconAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
120
|
+
/**
|
|
121
|
+
* Stream the configured portal favicon
|
|
122
|
+
*/
|
|
123
|
+
getPortalFaviconAsset(requestParameters: GetPortalFaviconAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
106
124
|
/**
|
|
107
125
|
* Creates request options for getPortalList without sending the request
|
|
108
126
|
*/
|
|
@@ -115,6 +133,18 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
115
133
|
* Get all portals a user has access to
|
|
116
134
|
*/
|
|
117
135
|
getPortalList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalList>;
|
|
136
|
+
/**
|
|
137
|
+
* Creates request options for getPortalLogoAsset without sending the request
|
|
138
|
+
*/
|
|
139
|
+
getPortalLogoAssetRequestOpts(requestParameters: GetPortalLogoAssetRequest): Promise<runtime.RequestOpts>;
|
|
140
|
+
/**
|
|
141
|
+
* Stream the configured portal logo
|
|
142
|
+
*/
|
|
143
|
+
getPortalLogoAssetRaw(requestParameters: GetPortalLogoAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
144
|
+
/**
|
|
145
|
+
* Stream the configured portal logo
|
|
146
|
+
*/
|
|
147
|
+
getPortalLogoAsset(requestParameters: GetPortalLogoAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
118
148
|
/**
|
|
119
149
|
* Creates request options for getPortalUsers without sending the request
|
|
120
150
|
*/
|
|
@@ -141,6 +171,34 @@ export declare class PortalApi extends runtime.BaseAPI {
|
|
|
141
171
|
* Public portal branding resolved from the request host
|
|
142
172
|
*/
|
|
143
173
|
getPublicPortalBranding(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPublicPortalBranding>;
|
|
174
|
+
/**
|
|
175
|
+
* Creates request options for getPublicPortalFaviconAsset without sending the request
|
|
176
|
+
*/
|
|
177
|
+
getPublicPortalFaviconAssetRequestOpts(): Promise<runtime.RequestOpts>;
|
|
178
|
+
/**
|
|
179
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured favicon.
|
|
180
|
+
* Public portal favicon resolved from the request host
|
|
181
|
+
*/
|
|
182
|
+
getPublicPortalFaviconAssetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
183
|
+
/**
|
|
184
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured favicon.
|
|
185
|
+
* Public portal favicon resolved from the request host
|
|
186
|
+
*/
|
|
187
|
+
getPublicPortalFaviconAsset(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
188
|
+
/**
|
|
189
|
+
* Creates request options for getPublicPortalLogoAsset without sending the request
|
|
190
|
+
*/
|
|
191
|
+
getPublicPortalLogoAssetRequestOpts(): Promise<runtime.RequestOpts>;
|
|
192
|
+
/**
|
|
193
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured logo.
|
|
194
|
+
* Public portal logo resolved from the request host
|
|
195
|
+
*/
|
|
196
|
+
getPublicPortalLogoAssetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
197
|
+
/**
|
|
198
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured logo.
|
|
199
|
+
* Public portal logo resolved from the request host
|
|
200
|
+
*/
|
|
201
|
+
getPublicPortalLogoAsset(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
144
202
|
/**
|
|
145
203
|
* Creates request options for inviteUserToPortal without sending the request
|
|
146
204
|
*/
|
|
@@ -150,6 +150,45 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
150
150
|
return yield response.value();
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* Creates request options for getPortalFaviconAsset without sending the request
|
|
155
|
+
*/
|
|
156
|
+
getPortalFaviconAssetRequestOpts(requestParameters) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
158
|
+
if (requestParameters['portalId'] == null) {
|
|
159
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getPortalFaviconAsset().');
|
|
160
|
+
}
|
|
161
|
+
const queryParameters = {};
|
|
162
|
+
const headerParameters = {};
|
|
163
|
+
let urlPath = `/portals/{portalId}/branding/favicon`;
|
|
164
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
165
|
+
return {
|
|
166
|
+
path: urlPath,
|
|
167
|
+
method: 'GET',
|
|
168
|
+
headers: headerParameters,
|
|
169
|
+
query: queryParameters,
|
|
170
|
+
};
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Stream the configured portal favicon
|
|
175
|
+
*/
|
|
176
|
+
getPortalFaviconAssetRaw(requestParameters, initOverrides) {
|
|
177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
178
|
+
const requestOptions = yield this.getPortalFaviconAssetRequestOpts(requestParameters);
|
|
179
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
180
|
+
return new runtime.BlobApiResponse(response);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Stream the configured portal favicon
|
|
185
|
+
*/
|
|
186
|
+
getPortalFaviconAsset(requestParameters, initOverrides) {
|
|
187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
188
|
+
const response = yield this.getPortalFaviconAssetRaw(requestParameters, initOverrides);
|
|
189
|
+
return yield response.value();
|
|
190
|
+
});
|
|
191
|
+
}
|
|
153
192
|
/**
|
|
154
193
|
* Creates request options for getPortalList without sending the request
|
|
155
194
|
*/
|
|
@@ -185,6 +224,45 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
185
224
|
return yield response.value();
|
|
186
225
|
});
|
|
187
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* Creates request options for getPortalLogoAsset without sending the request
|
|
229
|
+
*/
|
|
230
|
+
getPortalLogoAssetRequestOpts(requestParameters) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
if (requestParameters['portalId'] == null) {
|
|
233
|
+
throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling getPortalLogoAsset().');
|
|
234
|
+
}
|
|
235
|
+
const queryParameters = {};
|
|
236
|
+
const headerParameters = {};
|
|
237
|
+
let urlPath = `/portals/{portalId}/branding/logo`;
|
|
238
|
+
urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
|
|
239
|
+
return {
|
|
240
|
+
path: urlPath,
|
|
241
|
+
method: 'GET',
|
|
242
|
+
headers: headerParameters,
|
|
243
|
+
query: queryParameters,
|
|
244
|
+
};
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Stream the configured portal logo
|
|
249
|
+
*/
|
|
250
|
+
getPortalLogoAssetRaw(requestParameters, initOverrides) {
|
|
251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
252
|
+
const requestOptions = yield this.getPortalLogoAssetRequestOpts(requestParameters);
|
|
253
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
254
|
+
return new runtime.BlobApiResponse(response);
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Stream the configured portal logo
|
|
259
|
+
*/
|
|
260
|
+
getPortalLogoAsset(requestParameters, initOverrides) {
|
|
261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
262
|
+
const response = yield this.getPortalLogoAssetRaw(requestParameters, initOverrides);
|
|
263
|
+
return yield response.value();
|
|
264
|
+
});
|
|
265
|
+
}
|
|
188
266
|
/**
|
|
189
267
|
* Creates request options for getPortalUsers without sending the request
|
|
190
268
|
*/
|
|
@@ -276,6 +354,80 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
276
354
|
return yield response.value();
|
|
277
355
|
});
|
|
278
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* Creates request options for getPublicPortalFaviconAsset without sending the request
|
|
359
|
+
*/
|
|
360
|
+
getPublicPortalFaviconAssetRequestOpts() {
|
|
361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
362
|
+
const queryParameters = {};
|
|
363
|
+
const headerParameters = {};
|
|
364
|
+
let urlPath = `/public/portal/branding/favicon`;
|
|
365
|
+
return {
|
|
366
|
+
path: urlPath,
|
|
367
|
+
method: 'GET',
|
|
368
|
+
headers: headerParameters,
|
|
369
|
+
query: queryParameters,
|
|
370
|
+
};
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured favicon.
|
|
375
|
+
* Public portal favicon resolved from the request host
|
|
376
|
+
*/
|
|
377
|
+
getPublicPortalFaviconAssetRaw(initOverrides) {
|
|
378
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
379
|
+
const requestOptions = yield this.getPublicPortalFaviconAssetRequestOpts();
|
|
380
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
381
|
+
return new runtime.BlobApiResponse(response);
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured favicon.
|
|
386
|
+
* Public portal favicon resolved from the request host
|
|
387
|
+
*/
|
|
388
|
+
getPublicPortalFaviconAsset(initOverrides) {
|
|
389
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
390
|
+
const response = yield this.getPublicPortalFaviconAssetRaw(initOverrides);
|
|
391
|
+
return yield response.value();
|
|
392
|
+
});
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Creates request options for getPublicPortalLogoAsset without sending the request
|
|
396
|
+
*/
|
|
397
|
+
getPublicPortalLogoAssetRequestOpts() {
|
|
398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
399
|
+
const queryParameters = {};
|
|
400
|
+
const headerParameters = {};
|
|
401
|
+
let urlPath = `/public/portal/branding/logo`;
|
|
402
|
+
return {
|
|
403
|
+
path: urlPath,
|
|
404
|
+
method: 'GET',
|
|
405
|
+
headers: headerParameters,
|
|
406
|
+
query: queryParameters,
|
|
407
|
+
};
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured logo.
|
|
412
|
+
* Public portal logo resolved from the request host
|
|
413
|
+
*/
|
|
414
|
+
getPublicPortalLogoAssetRaw(initOverrides) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
416
|
+
const requestOptions = yield this.getPublicPortalLogoAssetRequestOpts();
|
|
417
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
418
|
+
return new runtime.BlobApiResponse(response);
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Resolves the browser Origin/Referer/Host to a portal and streams its configured logo.
|
|
423
|
+
* Public portal logo resolved from the request host
|
|
424
|
+
*/
|
|
425
|
+
getPublicPortalLogoAsset(initOverrides) {
|
|
426
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
427
|
+
const response = yield this.getPublicPortalLogoAssetRaw(initOverrides);
|
|
428
|
+
return yield response.value();
|
|
429
|
+
});
|
|
430
|
+
}
|
|
279
431
|
/**
|
|
280
432
|
* Creates request options for inviteUserToPortal without sending the request
|
|
281
433
|
*/
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { type DownloadSupportTicketAttachment200Response } from '../models/DownloadSupportTicketAttachment200Response';
|
|
14
13
|
import { type GetSupportTicket } from '../models/GetSupportTicket';
|
|
15
14
|
import { type GetSupportTicketAttachment } from '../models/GetSupportTicketAttachment';
|
|
16
15
|
import { type GetSupportTicketComment } from '../models/GetSupportTicketComment';
|
|
@@ -76,11 +75,11 @@ export declare class SupportTicketApi extends runtime.BaseAPI {
|
|
|
76
75
|
/**
|
|
77
76
|
* Download a ticket attachment
|
|
78
77
|
*/
|
|
79
|
-
downloadSupportTicketAttachmentRaw(requestParameters: DownloadSupportTicketAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
78
|
+
downloadSupportTicketAttachmentRaw(requestParameters: DownloadSupportTicketAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
80
79
|
/**
|
|
81
80
|
* Download a ticket attachment
|
|
82
81
|
*/
|
|
83
|
-
downloadSupportTicketAttachment(requestParameters: DownloadSupportTicketAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
82
|
+
downloadSupportTicketAttachment(requestParameters: DownloadSupportTicketAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
84
83
|
/**
|
|
85
84
|
* Creates request options for getSupportTicket without sending the request
|
|
86
85
|
*/
|
|
@@ -21,7 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { DownloadSupportTicketAttachment200ResponseFromJSON, } from '../models/DownloadSupportTicketAttachment200Response';
|
|
25
24
|
import { GetSupportTicketFromJSON, } from '../models/GetSupportTicket';
|
|
26
25
|
import { GetSupportTicketAttachmentFromJSON, } from '../models/GetSupportTicketAttachment';
|
|
27
26
|
import { GetSupportTicketCommentFromJSON, } from '../models/GetSupportTicketComment';
|
|
@@ -102,7 +101,7 @@ export class SupportTicketApi extends runtime.BaseAPI {
|
|
|
102
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
103
102
|
const requestOptions = yield this.downloadSupportTicketAttachmentRequestOpts(requestParameters);
|
|
104
103
|
const response = yield this.request(requestOptions, initOverrides);
|
|
105
|
-
return new runtime.
|
|
104
|
+
return new runtime.BlobApiResponse(response);
|
|
106
105
|
});
|
|
107
106
|
}
|
|
108
107
|
/**
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ContentAttemptScore } from './ContentAttemptScore';
|
|
13
|
+
/**
|
|
14
|
+
* A single learner attempt for a content item
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ContentAttemptItem
|
|
17
|
+
*/
|
|
18
|
+
export interface ContentAttemptItem {
|
|
19
|
+
/**
|
|
20
|
+
* Content session UUID for this attempt
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ContentAttemptItem
|
|
23
|
+
*/
|
|
24
|
+
sessionId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Learner attempt number for this content item
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ContentAttemptItem
|
|
29
|
+
*/
|
|
30
|
+
attemptNumber: number;
|
|
31
|
+
/**
|
|
32
|
+
* Completion status for this attempt
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ContentAttemptItem
|
|
35
|
+
*/
|
|
36
|
+
completionStatus: string;
|
|
37
|
+
/**
|
|
38
|
+
* Grade status for this attempt
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ContentAttemptItem
|
|
41
|
+
*/
|
|
42
|
+
gradeStatus: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {ContentAttemptScore}
|
|
46
|
+
* @memberof ContentAttemptItem
|
|
47
|
+
*/
|
|
48
|
+
score: ContentAttemptScore | null;
|
|
49
|
+
/**
|
|
50
|
+
* Attempt creation time as a Unix timestamp in seconds
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof ContentAttemptItem
|
|
53
|
+
*/
|
|
54
|
+
createdAt: number;
|
|
55
|
+
/**
|
|
56
|
+
* Attempt update time as a Unix timestamp in seconds
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof ContentAttemptItem
|
|
59
|
+
*/
|
|
60
|
+
updatedAt: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the ContentAttemptItem interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfContentAttemptItem(value: object): value is ContentAttemptItem;
|
|
66
|
+
export declare function ContentAttemptItemFromJSON(json: any): ContentAttemptItem;
|
|
67
|
+
export declare function ContentAttemptItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentAttemptItem;
|
|
68
|
+
export declare function ContentAttemptItemToJSON(json: any): ContentAttemptItem;
|
|
69
|
+
export declare function ContentAttemptItemToJSONTyped(value?: ContentAttemptItem | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ContentAttemptScoreFromJSON, ContentAttemptScoreToJSON, } from './ContentAttemptScore';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the ContentAttemptItem interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfContentAttemptItem(value) {
|
|
19
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('completionStatus' in value) || value['completionStatus'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('score' in value) || value['score'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function ContentAttemptItemFromJSON(json) {
|
|
36
|
+
return ContentAttemptItemFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function ContentAttemptItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'sessionId': json['session_id'],
|
|
44
|
+
'attemptNumber': json['attempt_number'],
|
|
45
|
+
'completionStatus': json['completion_status'],
|
|
46
|
+
'gradeStatus': json['grade_status'],
|
|
47
|
+
'score': ContentAttemptScoreFromJSON(json['score']),
|
|
48
|
+
'createdAt': json['created_at'],
|
|
49
|
+
'updatedAt': json['updated_at'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function ContentAttemptItemToJSON(json) {
|
|
53
|
+
return ContentAttemptItemToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function ContentAttemptItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'session_id': value['sessionId'],
|
|
61
|
+
'attempt_number': value['attemptNumber'],
|
|
62
|
+
'completion_status': value['completionStatus'],
|
|
63
|
+
'grade_status': value['gradeStatus'],
|
|
64
|
+
'score': ContentAttemptScoreToJSON(value['score']),
|
|
65
|
+
'created_at': value['createdAt'],
|
|
66
|
+
'updated_at': value['updatedAt'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Rolled-up score for a content item
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContentAttemptRollupScore
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentAttemptRollupScore {
|
|
18
|
+
/**
|
|
19
|
+
* Rolled-up score normalized to a 0-100 percentage
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ContentAttemptRollupScore
|
|
22
|
+
*/
|
|
23
|
+
percentage: number;
|
|
24
|
+
/**
|
|
25
|
+
* Attempt number that supplied the rolled-up score
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ContentAttemptRollupScore
|
|
28
|
+
*/
|
|
29
|
+
sourceAttemptNumber: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ContentAttemptRollupScore interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfContentAttemptRollupScore(value: object): value is ContentAttemptRollupScore;
|
|
35
|
+
export declare function ContentAttemptRollupScoreFromJSON(json: any): ContentAttemptRollupScore;
|
|
36
|
+
export declare function ContentAttemptRollupScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentAttemptRollupScore;
|
|
37
|
+
export declare function ContentAttemptRollupScoreToJSON(json: any): ContentAttemptRollupScore;
|
|
38
|
+
export declare function ContentAttemptRollupScoreToJSONTyped(value?: ContentAttemptRollupScore | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ContentAttemptRollupScore interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfContentAttemptRollupScore(value) {
|
|
18
|
+
if (!('percentage' in value) || value['percentage'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('sourceAttemptNumber' in value) || value['sourceAttemptNumber'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function ContentAttemptRollupScoreFromJSON(json) {
|
|
25
|
+
return ContentAttemptRollupScoreFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function ContentAttemptRollupScoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'percentage': json['percentage'],
|
|
33
|
+
'sourceAttemptNumber': json['source_attempt_number'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function ContentAttemptRollupScoreToJSON(json) {
|
|
37
|
+
return ContentAttemptRollupScoreToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function ContentAttemptRollupScoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'percentage': value['percentage'],
|
|
45
|
+
'source_attempt_number': value['sourceAttemptNumber'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Normalized score data for a content attempt
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ContentAttemptScore
|
|
16
|
+
*/
|
|
17
|
+
export interface ContentAttemptScore {
|
|
18
|
+
/**
|
|
19
|
+
* Raw score reported by the content, if available
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ContentAttemptScore
|
|
22
|
+
*/
|
|
23
|
+
raw?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
* Minimum possible score, if available
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ContentAttemptScore
|
|
28
|
+
*/
|
|
29
|
+
min?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Maximum possible score, if available
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ContentAttemptScore
|
|
34
|
+
*/
|
|
35
|
+
max?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
* Score normalized to a 0-100 percentage, if available
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ContentAttemptScore
|
|
40
|
+
*/
|
|
41
|
+
percentage?: number | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the ContentAttemptScore interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfContentAttemptScore(value: object): value is ContentAttemptScore;
|
|
47
|
+
export declare function ContentAttemptScoreFromJSON(json: any): ContentAttemptScore;
|
|
48
|
+
export declare function ContentAttemptScoreFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentAttemptScore;
|
|
49
|
+
export declare function ContentAttemptScoreToJSON(json: any): ContentAttemptScore;
|
|
50
|
+
export declare function ContentAttemptScoreToJSONTyped(value?: ContentAttemptScore | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the ContentAttemptScore interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfContentAttemptScore(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ContentAttemptScoreFromJSON(json) {
|
|
21
|
+
return ContentAttemptScoreFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ContentAttemptScoreFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'raw': json['raw'] == null ? undefined : json['raw'],
|
|
29
|
+
'min': json['min'] == null ? undefined : json['min'],
|
|
30
|
+
'max': json['max'] == null ? undefined : json['max'],
|
|
31
|
+
'percentage': json['percentage'] == null ? undefined : json['percentage'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ContentAttemptScoreToJSON(json) {
|
|
35
|
+
return ContentAttemptScoreToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ContentAttemptScoreToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'raw': value['raw'],
|
|
43
|
+
'min': value['min'],
|
|
44
|
+
'max': value['max'],
|
|
45
|
+
'percentage': value['percentage'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* How the learner player should present the launched content.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ContentLaunchMode: {
|
|
17
|
+
readonly Embedded: "embedded";
|
|
18
|
+
readonly Fullscreen: "fullscreen";
|
|
19
|
+
readonly NewWindow: "new_window";
|
|
20
|
+
};
|
|
21
|
+
export type ContentLaunchMode = typeof ContentLaunchMode[keyof typeof ContentLaunchMode];
|
|
22
|
+
export declare function instanceOfContentLaunchMode(value: any): boolean;
|
|
23
|
+
export declare function ContentLaunchModeFromJSON(json: any): ContentLaunchMode;
|
|
24
|
+
export declare function ContentLaunchModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLaunchMode;
|
|
25
|
+
export declare function ContentLaunchModeToJSON(value?: ContentLaunchMode | null): any;
|
|
26
|
+
export declare function ContentLaunchModeToJSONTyped(value: any, ignoreDiscriminator: boolean): ContentLaunchMode;
|