@easyedu/js-lsm-api 1.66.0 → 1.67.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.
Files changed (73) hide show
  1. package/.openapi-generator/FILES +2 -2
  2. package/README.md +9 -3
  3. package/dist/apis/ContentApi.d.ts +18 -0
  4. package/dist/apis/ContentApi.js +51 -0
  5. package/dist/apis/CourseApi.d.ts +16 -0
  6. package/dist/apis/CourseApi.js +43 -0
  7. package/dist/apis/PortalApi.d.ts +58 -0
  8. package/dist/apis/PortalApi.js +152 -0
  9. package/dist/apis/SupportTicketApi.d.ts +2 -3
  10. package/dist/apis/SupportTicketApi.js +1 -2
  11. package/dist/esm/apis/ContentApi.d.ts +18 -0
  12. package/dist/esm/apis/ContentApi.js +51 -0
  13. package/dist/esm/apis/CourseApi.d.ts +16 -0
  14. package/dist/esm/apis/CourseApi.js +43 -0
  15. package/dist/esm/apis/PortalApi.d.ts +58 -0
  16. package/dist/esm/apis/PortalApi.js +152 -0
  17. package/dist/esm/apis/SupportTicketApi.d.ts +2 -3
  18. package/dist/esm/apis/SupportTicketApi.js +1 -2
  19. package/dist/esm/models/ContentLaunchMode.d.ts +26 -0
  20. package/dist/esm/models/ContentLaunchMode.js +44 -0
  21. package/dist/esm/models/GetContent.d.ts +7 -0
  22. package/dist/esm/models/GetContent.js +5 -0
  23. package/dist/esm/models/GetPortal.d.ts +2 -2
  24. package/dist/esm/models/GetPortalFaviconUpload.d.ts +1 -1
  25. package/dist/esm/models/GetPortalLogoUpload.d.ts +1 -1
  26. package/dist/esm/models/GetPublicPortalBranding.d.ts +2 -2
  27. package/dist/esm/models/PostContentSession.d.ts +7 -0
  28. package/dist/esm/models/PostContentSession.js +5 -0
  29. package/dist/esm/models/PutContent.d.ts +7 -0
  30. package/dist/esm/models/PutContent.js +3 -0
  31. package/dist/esm/models/index.d.ts +1 -1
  32. package/dist/esm/models/index.js +1 -1
  33. package/dist/models/ContentLaunchMode.d.ts +26 -0
  34. package/dist/models/ContentLaunchMode.js +52 -0
  35. package/dist/models/GetContent.d.ts +7 -0
  36. package/dist/models/GetContent.js +5 -0
  37. package/dist/models/GetPortal.d.ts +2 -2
  38. package/dist/models/GetPortalFaviconUpload.d.ts +1 -1
  39. package/dist/models/GetPortalLogoUpload.d.ts +1 -1
  40. package/dist/models/GetPublicPortalBranding.d.ts +2 -2
  41. package/dist/models/PostContentSession.d.ts +7 -0
  42. package/dist/models/PostContentSession.js +5 -0
  43. package/dist/models/PutContent.d.ts +7 -0
  44. package/dist/models/PutContent.js +3 -0
  45. package/dist/models/index.d.ts +1 -1
  46. package/dist/models/index.js +1 -1
  47. package/docs/ContentApi.md +79 -0
  48. package/docs/{DownloadSupportTicketAttachment200Response.md → ContentLaunchMode.md} +5 -6
  49. package/docs/CourseApi.md +72 -0
  50. package/docs/GetContent.md +2 -0
  51. package/docs/PortalApi.md +258 -0
  52. package/docs/PostContentSession.md +2 -0
  53. package/docs/PutContent.md +2 -0
  54. package/docs/SupportTicketApi.md +4 -4
  55. package/package.json +1 -1
  56. package/src/apis/ContentApi.ts +77 -0
  57. package/src/apis/CourseApi.ts +58 -0
  58. package/src/apis/PortalApi.ts +176 -0
  59. package/src/apis/SupportTicketApi.ts +3 -8
  60. package/src/models/ContentLaunchMode.ts +54 -0
  61. package/src/models/GetContent.ts +16 -0
  62. package/src/models/GetPortal.ts +2 -2
  63. package/src/models/GetPortalFaviconUpload.ts +1 -1
  64. package/src/models/GetPortalLogoUpload.ts +1 -1
  65. package/src/models/GetPublicPortalBranding.ts +2 -2
  66. package/src/models/PostContentSession.ts +19 -0
  67. package/src/models/PutContent.ts +18 -0
  68. package/src/models/index.ts +1 -1
  69. package/dist/esm/models/DownloadSupportTicketAttachment200Response.d.ts +0 -32
  70. package/dist/esm/models/DownloadSupportTicketAttachment200Response.js +0 -43
  71. package/dist/models/DownloadSupportTicketAttachment200Response.d.ts +0 -32
  72. package/dist/models/DownloadSupportTicketAttachment200Response.js +0 -50
  73. package/src/models/DownloadSupportTicketAttachment200Response.ts +0 -66
package/docs/PortalApi.md CHANGED
@@ -7,9 +7,13 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
7
7
  | [**deletePortalFavicon**](PortalApi.md#deleteportalfavicon) | **DELETE** /portals/{portalId}/branding/favicon | Remove the portal favicon |
8
8
  | [**deletePortalLogo**](PortalApi.md#deleteportallogo) | **DELETE** /portals/{portalId}/branding/logo | Remove the portal logo |
9
9
  | [**getPortalById**](PortalApi.md#getportalbyid) | **GET** /portals/{portalId} | Get a portal by id (can use \'current\' to get the current users selected portal) |
10
+ | [**getPortalFaviconAsset**](PortalApi.md#getportalfaviconasset) | **GET** /portals/{portalId}/branding/favicon | Stream the configured portal favicon |
10
11
  | [**getPortalList**](PortalApi.md#getportallist) | **GET** /portals | Get all portals a user has access to |
12
+ | [**getPortalLogoAsset**](PortalApi.md#getportallogoasset) | **GET** /portals/{portalId}/branding/logo | Stream the configured portal logo |
11
13
  | [**getPortalUsers**](PortalApi.md#getportalusers) | **GET** /portals/{portalId}/users | Get all users for a portal with optional role filtering |
12
14
  | [**getPublicPortalBranding**](PortalApi.md#getpublicportalbranding) | **GET** /public/portal/branding | Public portal branding resolved from the request host |
15
+ | [**getPublicPortalFaviconAsset**](PortalApi.md#getpublicportalfaviconasset) | **GET** /public/portal/branding/favicon | Public portal favicon resolved from the request host |
16
+ | [**getPublicPortalLogoAsset**](PortalApi.md#getpublicportallogoasset) | **GET** /public/portal/branding/logo | Public portal logo resolved from the request host |
13
17
  | [**inviteUserToPortal**](PortalApi.md#inviteusertoportal) | **POST** /portals/{portalId}/invite | Invite a new user to a portal |
14
18
  | [**postPortal**](PortalApi.md#postportal) | **POST** /portals | Create a new portal as a child of the current selected portal |
15
19
  | [**postPortalFaviconUpload**](PortalApi.md#postportalfaviconupload) | **POST** /portals/{portalId}/branding/favicon | Upload a favicon image for portal branding |
@@ -217,6 +221,72 @@ No authorization required
217
221
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
218
222
 
219
223
 
224
+ ## getPortalFaviconAsset
225
+
226
+ > Blob getPortalFaviconAsset(portalId)
227
+
228
+ Stream the configured portal favicon
229
+
230
+ ### Example
231
+
232
+ ```ts
233
+ import {
234
+ Configuration,
235
+ PortalApi,
236
+ } from '@easyedu/js-lsm-api';
237
+ import type { GetPortalFaviconAssetRequest } from '@easyedu/js-lsm-api';
238
+
239
+ async function example() {
240
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
241
+ const api = new PortalApi();
242
+
243
+ const body = {
244
+ // string
245
+ portalId: portalId_example,
246
+ } satisfies GetPortalFaviconAssetRequest;
247
+
248
+ try {
249
+ const data = await api.getPortalFaviconAsset(body);
250
+ console.log(data);
251
+ } catch (error) {
252
+ console.error(error);
253
+ }
254
+ }
255
+
256
+ // Run the test
257
+ example().catch(console.error);
258
+ ```
259
+
260
+ ### Parameters
261
+
262
+
263
+ | Name | Type | Description | Notes |
264
+ |------------- | ------------- | ------------- | -------------|
265
+ | **portalId** | `string` | | [Defaults to `undefined`] |
266
+
267
+ ### Return type
268
+
269
+ **Blob**
270
+
271
+ ### Authorization
272
+
273
+ No authorization required
274
+
275
+ ### HTTP request headers
276
+
277
+ - **Content-Type**: Not defined
278
+ - **Accept**: `image/png`, `image/jpeg`, `image/svg+xml`, `image/x-icon`, `application/octet-stream`
279
+
280
+
281
+ ### HTTP response details
282
+ | Status code | Description | Response headers |
283
+ |-------------|-------------|------------------|
284
+ | **200** | Portal favicon image | - |
285
+ | **404** | Portal or favicon not found | - |
286
+
287
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
288
+
289
+
220
290
  ## getPortalList
221
291
 
222
292
  > GetPortalList getPortalList()
@@ -274,6 +344,72 @@ No authorization required
274
344
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
275
345
 
276
346
 
347
+ ## getPortalLogoAsset
348
+
349
+ > Blob getPortalLogoAsset(portalId)
350
+
351
+ Stream the configured portal logo
352
+
353
+ ### Example
354
+
355
+ ```ts
356
+ import {
357
+ Configuration,
358
+ PortalApi,
359
+ } from '@easyedu/js-lsm-api';
360
+ import type { GetPortalLogoAssetRequest } from '@easyedu/js-lsm-api';
361
+
362
+ async function example() {
363
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
364
+ const api = new PortalApi();
365
+
366
+ const body = {
367
+ // string
368
+ portalId: portalId_example,
369
+ } satisfies GetPortalLogoAssetRequest;
370
+
371
+ try {
372
+ const data = await api.getPortalLogoAsset(body);
373
+ console.log(data);
374
+ } catch (error) {
375
+ console.error(error);
376
+ }
377
+ }
378
+
379
+ // Run the test
380
+ example().catch(console.error);
381
+ ```
382
+
383
+ ### Parameters
384
+
385
+
386
+ | Name | Type | Description | Notes |
387
+ |------------- | ------------- | ------------- | -------------|
388
+ | **portalId** | `string` | | [Defaults to `undefined`] |
389
+
390
+ ### Return type
391
+
392
+ **Blob**
393
+
394
+ ### Authorization
395
+
396
+ No authorization required
397
+
398
+ ### HTTP request headers
399
+
400
+ - **Content-Type**: Not defined
401
+ - **Accept**: `image/png`, `image/jpeg`, `image/svg+xml`, `application/octet-stream`
402
+
403
+
404
+ ### HTTP response details
405
+ | Status code | Description | Response headers |
406
+ |-------------|-------------|------------------|
407
+ | **200** | Portal logo image | - |
408
+ | **404** | Portal or logo not found | - |
409
+
410
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
411
+
412
+
277
413
  ## getPortalUsers
278
414
 
279
415
  > GetPortalUserList getPortalUsers(portalId, type, roles, search, page, pageSize)
@@ -417,6 +553,128 @@ No authorization required
417
553
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
418
554
 
419
555
 
556
+ ## getPublicPortalFaviconAsset
557
+
558
+ > Blob getPublicPortalFaviconAsset()
559
+
560
+ Public portal favicon resolved from the request host
561
+
562
+ Resolves the browser Origin/Referer/Host to a portal and streams its configured favicon.
563
+
564
+ ### Example
565
+
566
+ ```ts
567
+ import {
568
+ Configuration,
569
+ PortalApi,
570
+ } from '@easyedu/js-lsm-api';
571
+ import type { GetPublicPortalFaviconAssetRequest } from '@easyedu/js-lsm-api';
572
+
573
+ async function example() {
574
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
575
+ const api = new PortalApi();
576
+
577
+ try {
578
+ const data = await api.getPublicPortalFaviconAsset();
579
+ console.log(data);
580
+ } catch (error) {
581
+ console.error(error);
582
+ }
583
+ }
584
+
585
+ // Run the test
586
+ example().catch(console.error);
587
+ ```
588
+
589
+ ### Parameters
590
+
591
+ This endpoint does not need any parameter.
592
+
593
+ ### Return type
594
+
595
+ **Blob**
596
+
597
+ ### Authorization
598
+
599
+ No authorization required
600
+
601
+ ### HTTP request headers
602
+
603
+ - **Content-Type**: Not defined
604
+ - **Accept**: `image/png`, `image/jpeg`, `image/svg+xml`, `image/x-icon`, `application/octet-stream`
605
+
606
+
607
+ ### HTTP response details
608
+ | Status code | Description | Response headers |
609
+ |-------------|-------------|------------------|
610
+ | **200** | Public portal favicon image | - |
611
+ | **400** | Invalid portal host | - |
612
+ | **404** | Portal host or favicon not found | - |
613
+
614
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
615
+
616
+
617
+ ## getPublicPortalLogoAsset
618
+
619
+ > Blob getPublicPortalLogoAsset()
620
+
621
+ Public portal logo resolved from the request host
622
+
623
+ Resolves the browser Origin/Referer/Host to a portal and streams its configured logo.
624
+
625
+ ### Example
626
+
627
+ ```ts
628
+ import {
629
+ Configuration,
630
+ PortalApi,
631
+ } from '@easyedu/js-lsm-api';
632
+ import type { GetPublicPortalLogoAssetRequest } from '@easyedu/js-lsm-api';
633
+
634
+ async function example() {
635
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
636
+ const api = new PortalApi();
637
+
638
+ try {
639
+ const data = await api.getPublicPortalLogoAsset();
640
+ console.log(data);
641
+ } catch (error) {
642
+ console.error(error);
643
+ }
644
+ }
645
+
646
+ // Run the test
647
+ example().catch(console.error);
648
+ ```
649
+
650
+ ### Parameters
651
+
652
+ This endpoint does not need any parameter.
653
+
654
+ ### Return type
655
+
656
+ **Blob**
657
+
658
+ ### Authorization
659
+
660
+ No authorization required
661
+
662
+ ### HTTP request headers
663
+
664
+ - **Content-Type**: Not defined
665
+ - **Accept**: `image/png`, `image/jpeg`, `image/svg+xml`, `application/octet-stream`
666
+
667
+
668
+ ### HTTP response details
669
+ | Status code | Description | Response headers |
670
+ |-------------|-------------|------------------|
671
+ | **200** | Public portal logo image | - |
672
+ | **400** | Invalid portal host | - |
673
+ | **404** | Portal host or logo not found | - |
674
+
675
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
676
+
677
+
420
678
  ## inviteUserToPortal
421
679
 
422
680
  > inviteUserToPortal(portalId, postPortalInvite)
@@ -10,6 +10,7 @@ Name | Type
10
10
  `contentId` | string
11
11
  `userId` | string
12
12
  `launchUrl` | string
13
+ `launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
13
14
  `createdAt` | number
14
15
  `playerSessionId` | string
15
16
 
@@ -23,6 +24,7 @@ const example = {
23
24
  "contentId": null,
24
25
  "userId": null,
25
26
  "launchUrl": null,
27
+ "launchMode": null,
26
28
  "createdAt": null,
27
29
  "playerSessionId": null,
28
30
  } satisfies PostContentSession
@@ -8,6 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `name` | string
10
10
  `published` | boolean
11
+ `launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
11
12
 
12
13
  ## Example
13
14
 
@@ -18,6 +19,7 @@ import type { PutContent } from '@easyedu/js-lsm-api'
18
19
  const example = {
19
20
  "name": null,
20
21
  "published": null,
22
+ "launchMode": null,
21
23
  } satisfies PutContent
22
24
 
23
25
  console.log(example)
@@ -86,7 +86,7 @@ No authorization required
86
86
 
87
87
  ## downloadSupportTicketAttachment
88
88
 
89
- > DownloadSupportTicketAttachment200Response downloadSupportTicketAttachment(ticketId, attachmentId)
89
+ > Blob downloadSupportTicketAttachment(ticketId, attachmentId)
90
90
 
91
91
  Download a ticket attachment
92
92
 
@@ -132,7 +132,7 @@ example().catch(console.error);
132
132
 
133
133
  ### Return type
134
134
 
135
- [**DownloadSupportTicketAttachment200Response**](DownloadSupportTicketAttachment200Response.md)
135
+ **Blob**
136
136
 
137
137
  ### Authorization
138
138
 
@@ -141,13 +141,13 @@ No authorization required
141
141
  ### HTTP request headers
142
142
 
143
143
  - **Content-Type**: Not defined
144
- - **Accept**: `application/json`
144
+ - **Accept**: `application/octet-stream`
145
145
 
146
146
 
147
147
  ### HTTP response details
148
148
  | Status code | Description | Response headers |
149
149
  |-------------|-------------|------------------|
150
- | **200** | Presigned download URL | - |
150
+ | **200** | Attachment file | - |
151
151
  | **401** | Unauthorized | - |
152
152
  | **403** | Forbidden | - |
153
153
  | **404** | Attachment not found | - |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.66.0",
3
+ "version": "1.67.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -258,6 +258,13 @@ export interface PutContentReorderRequest {
258
258
  putContentReorder: PutContentReorder;
259
259
  }
260
260
 
261
+ export interface PutContentUploadFileRequest {
262
+ courseId: string;
263
+ moduleId: string;
264
+ uploadId: number;
265
+ body: Blob;
266
+ }
267
+
261
268
  export interface PutContentVersionRequest {
262
269
  contentId: string;
263
270
  moduleId: string;
@@ -1634,6 +1641,76 @@ export class ContentApi extends runtime.BaseAPI {
1634
1641
  await this.putContentReorderRaw(requestParameters, initOverrides);
1635
1642
  }
1636
1643
 
1644
+ /**
1645
+ * Creates request options for putContentUploadFile without sending the request
1646
+ */
1647
+ async putContentUploadFileRequestOpts(requestParameters: PutContentUploadFileRequest): Promise<runtime.RequestOpts> {
1648
+ if (requestParameters['courseId'] == null) {
1649
+ throw new runtime.RequiredError(
1650
+ 'courseId',
1651
+ 'Required parameter "courseId" was null or undefined when calling putContentUploadFile().'
1652
+ );
1653
+ }
1654
+
1655
+ if (requestParameters['moduleId'] == null) {
1656
+ throw new runtime.RequiredError(
1657
+ 'moduleId',
1658
+ 'Required parameter "moduleId" was null or undefined when calling putContentUploadFile().'
1659
+ );
1660
+ }
1661
+
1662
+ if (requestParameters['uploadId'] == null) {
1663
+ throw new runtime.RequiredError(
1664
+ 'uploadId',
1665
+ 'Required parameter "uploadId" was null or undefined when calling putContentUploadFile().'
1666
+ );
1667
+ }
1668
+
1669
+ if (requestParameters['body'] == null) {
1670
+ throw new runtime.RequiredError(
1671
+ 'body',
1672
+ 'Required parameter "body" was null or undefined when calling putContentUploadFile().'
1673
+ );
1674
+ }
1675
+
1676
+ const queryParameters: any = {};
1677
+
1678
+ const headerParameters: runtime.HTTPHeaders = {};
1679
+
1680
+ headerParameters['Content-Type'] = 'application/octet-stream';
1681
+
1682
+
1683
+ let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/uploads/{uploadId}/file`;
1684
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
1685
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
1686
+ urlPath = urlPath.replace('{uploadId}', encodeURIComponent(String(requestParameters['uploadId'])));
1687
+
1688
+ return {
1689
+ path: urlPath,
1690
+ method: 'PUT',
1691
+ headers: headerParameters,
1692
+ query: queryParameters,
1693
+ body: requestParameters['body'] as any,
1694
+ };
1695
+ }
1696
+
1697
+ /**
1698
+ * Upload content file through the API
1699
+ */
1700
+ async putContentUploadFileRaw(requestParameters: PutContentUploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
1701
+ const requestOptions = await this.putContentUploadFileRequestOpts(requestParameters);
1702
+ const response = await this.request(requestOptions, initOverrides);
1703
+
1704
+ return new runtime.VoidApiResponse(response);
1705
+ }
1706
+
1707
+ /**
1708
+ * Upload content file through the API
1709
+ */
1710
+ async putContentUploadFile(requestParameters: PutContentUploadFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
1711
+ await this.putContentUploadFileRaw(requestParameters, initOverrides);
1712
+ }
1713
+
1637
1714
  /**
1638
1715
  * Creates request options for putContentVersion without sending the request
1639
1716
  */
@@ -102,6 +102,11 @@ export interface DeleteCourseImageRequest {
102
102
  courseId: string;
103
103
  }
104
104
 
105
+ export interface DownloadCourseExportRequest {
106
+ courseId: string;
107
+ exportId: string;
108
+ }
109
+
105
110
  export interface GetCourseRequest {
106
111
  courseId: string;
107
112
  }
@@ -375,6 +380,59 @@ export class CourseApi extends runtime.BaseAPI {
375
380
  await this.deleteCourseImageRaw(requestParameters, initOverrides);
376
381
  }
377
382
 
383
+ /**
384
+ * Creates request options for downloadCourseExport without sending the request
385
+ */
386
+ async downloadCourseExportRequestOpts(requestParameters: DownloadCourseExportRequest): Promise<runtime.RequestOpts> {
387
+ if (requestParameters['courseId'] == null) {
388
+ throw new runtime.RequiredError(
389
+ 'courseId',
390
+ 'Required parameter "courseId" was null or undefined when calling downloadCourseExport().'
391
+ );
392
+ }
393
+
394
+ if (requestParameters['exportId'] == null) {
395
+ throw new runtime.RequiredError(
396
+ 'exportId',
397
+ 'Required parameter "exportId" was null or undefined when calling downloadCourseExport().'
398
+ );
399
+ }
400
+
401
+ const queryParameters: any = {};
402
+
403
+ const headerParameters: runtime.HTTPHeaders = {};
404
+
405
+
406
+ let urlPath = `/courses/{courseId}/exports/{exportId}/download`;
407
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
408
+ urlPath = urlPath.replace('{exportId}', encodeURIComponent(String(requestParameters['exportId'])));
409
+
410
+ return {
411
+ path: urlPath,
412
+ method: 'GET',
413
+ headers: headerParameters,
414
+ query: queryParameters,
415
+ };
416
+ }
417
+
418
+ /**
419
+ * Download a completed course export
420
+ */
421
+ async downloadCourseExportRaw(requestParameters: DownloadCourseExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
422
+ const requestOptions = await this.downloadCourseExportRequestOpts(requestParameters);
423
+ const response = await this.request(requestOptions, initOverrides);
424
+
425
+ return new runtime.BlobApiResponse(response);
426
+ }
427
+
428
+ /**
429
+ * Download a completed course export
430
+ */
431
+ async downloadCourseExport(requestParameters: DownloadCourseExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
432
+ const response = await this.downloadCourseExportRaw(requestParameters, initOverrides);
433
+ return await response.value();
434
+ }
435
+
378
436
  /**
379
437
  * Creates request options for getCourse without sending the request
380
438
  */