@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
@@ -1,12 +1,12 @@
1
1
  export * from './Certificate';
2
2
  export * from './CertificateConfig';
3
3
  export * from './CertificatePublic';
4
+ export * from './ContentLaunchMode';
4
5
  export * from './CourseCatalog';
5
6
  export * from './CourseShare';
6
7
  export * from './CriteriaBasedSelection';
7
8
  export * from './CriteriaBasedSelectionCriteria';
8
9
  export * from './CriteriaBasedSelectionDistribution';
9
- export * from './DownloadSupportTicketAttachment200Response';
10
10
  export * from './EffectiveCertificateConfig';
11
11
  export * from './Essay';
12
12
  export * from './Essay1';
@@ -3,12 +3,12 @@
3
3
  export * from './Certificate';
4
4
  export * from './CertificateConfig';
5
5
  export * from './CertificatePublic';
6
+ export * from './ContentLaunchMode';
6
7
  export * from './CourseCatalog';
7
8
  export * from './CourseShare';
8
9
  export * from './CriteriaBasedSelection';
9
10
  export * from './CriteriaBasedSelectionCriteria';
10
11
  export * from './CriteriaBasedSelectionDistribution';
11
- export * from './DownloadSupportTicketAttachment200Response';
12
12
  export * from './EffectiveCertificateConfig';
13
13
  export * from './Essay';
14
14
  export * from './Essay1';
@@ -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;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ContentLaunchMode = void 0;
17
+ exports.instanceOfContentLaunchMode = instanceOfContentLaunchMode;
18
+ exports.ContentLaunchModeFromJSON = ContentLaunchModeFromJSON;
19
+ exports.ContentLaunchModeFromJSONTyped = ContentLaunchModeFromJSONTyped;
20
+ exports.ContentLaunchModeToJSON = ContentLaunchModeToJSON;
21
+ exports.ContentLaunchModeToJSONTyped = ContentLaunchModeToJSONTyped;
22
+ /**
23
+ * How the learner player should present the launched content.
24
+ * @export
25
+ */
26
+ exports.ContentLaunchMode = {
27
+ Embedded: 'embedded',
28
+ Fullscreen: 'fullscreen',
29
+ NewWindow: 'new_window'
30
+ };
31
+ function instanceOfContentLaunchMode(value) {
32
+ for (const key in exports.ContentLaunchMode) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.ContentLaunchMode, key)) {
34
+ if (exports.ContentLaunchMode[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function ContentLaunchModeFromJSON(json) {
42
+ return ContentLaunchModeFromJSONTyped(json, false);
43
+ }
44
+ function ContentLaunchModeFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function ContentLaunchModeToJSON(value) {
48
+ return value;
49
+ }
50
+ function ContentLaunchModeToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { GetContentContentData } from './GetContentContentData';
13
+ import type { ContentLaunchMode } from './ContentLaunchMode';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -46,6 +47,12 @@ export interface GetContent {
46
47
  * @memberof GetContent
47
48
  */
48
49
  contentType: GetContentContentTypeEnum;
50
+ /**
51
+ *
52
+ * @type {ContentLaunchMode}
53
+ * @memberof GetContent
54
+ */
55
+ launchMode: ContentLaunchMode;
49
56
  /**
50
57
  *
51
58
  * @type {GetContentContentData}
@@ -20,6 +20,7 @@ exports.GetContentFromJSONTyped = GetContentFromJSONTyped;
20
20
  exports.GetContentToJSON = GetContentToJSON;
21
21
  exports.GetContentToJSONTyped = GetContentToJSONTyped;
22
22
  const GetContentContentData_1 = require("./GetContentContentData");
23
+ const ContentLaunchMode_1 = require("./ContentLaunchMode");
23
24
  /**
24
25
  * @export
25
26
  */
@@ -44,6 +45,8 @@ function instanceOfGetContent(value) {
44
45
  return false;
45
46
  if (!('contentType' in value) || value['contentType'] === undefined)
46
47
  return false;
48
+ if (!('launchMode' in value) || value['launchMode'] === undefined)
49
+ return false;
47
50
  if (!('contentData' in value) || value['contentData'] === undefined)
48
51
  return false;
49
52
  if (!('published' in value) || value['published'] === undefined)
@@ -63,6 +66,7 @@ function GetContentFromJSONTyped(json, ignoreDiscriminator) {
63
66
  'name': json['name'],
64
67
  'description': json['description'] == null ? undefined : json['description'],
65
68
  'contentType': json['content_type'],
69
+ 'launchMode': (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
66
70
  'contentData': (0, GetContentContentData_1.GetContentContentDataFromJSON)(json['content_data']),
67
71
  'order': json['order'] == null ? undefined : json['order'],
68
72
  'published': json['published'],
@@ -85,6 +89,7 @@ function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
85
89
  'name': value['name'],
86
90
  'description': value['description'],
87
91
  'content_type': value['contentType'],
92
+ 'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
88
93
  'content_data': (0, GetContentContentData_1.GetContentContentDataToJSON)(value['contentData']),
89
94
  'order': value['order'],
90
95
  'published': value['published'],
@@ -46,13 +46,13 @@ export interface GetPortal {
46
46
  */
47
47
  clientDomain?: string | null;
48
48
  /**
49
- *
49
+ * API-proxied portal logo URL when a logo is configured.
50
50
  * @type {string}
51
51
  * @memberof GetPortal
52
52
  */
53
53
  logoUrl?: string | null;
54
54
  /**
55
- *
55
+ * API-proxied portal favicon URL when a favicon is configured.
56
56
  * @type {string}
57
57
  * @memberof GetPortal
58
58
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface GetPortalFaviconUpload {
18
18
  /**
19
- * Presigned URL for the uploaded favicon image
19
+ * API-proxied URL for the uploaded favicon image
20
20
  * @type {string}
21
21
  * @memberof GetPortalFaviconUpload
22
22
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface GetPortalLogoUpload {
18
18
  /**
19
- * Presigned URL for the uploaded logo image
19
+ * API-proxied URL for the uploaded logo image
20
20
  * @type {string}
21
21
  * @memberof GetPortalLogoUpload
22
22
  */
@@ -34,13 +34,13 @@ export interface GetPublicPortalBranding {
34
34
  */
35
35
  slug: string | null;
36
36
  /**
37
- * Presigned portal logo URL when a logo is configured.
37
+ * API-proxied portal logo URL when a logo is configured.
38
38
  * @type {string}
39
39
  * @memberof GetPublicPortalBranding
40
40
  */
41
41
  logoUrl: string | null;
42
42
  /**
43
- * Presigned portal favicon URL when a favicon is configured.
43
+ * API-proxied portal favicon URL when a favicon is configured.
44
44
  * @type {string}
45
45
  * @memberof GetPublicPortalBranding
46
46
  */
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ContentLaunchMode } from './ContentLaunchMode';
12
13
  /**
13
14
  * A content session
14
15
  * @export
@@ -33,6 +34,12 @@ export interface PostContentSession {
33
34
  * @memberof PostContentSession
34
35
  */
35
36
  launchUrl: string;
37
+ /**
38
+ *
39
+ * @type {ContentLaunchMode}
40
+ * @memberof PostContentSession
41
+ */
42
+ launchMode: ContentLaunchMode;
36
43
  /**
37
44
  * The date and time the content session was created
38
45
  * @type {number}
@@ -18,6 +18,7 @@ exports.PostContentSessionFromJSON = PostContentSessionFromJSON;
18
18
  exports.PostContentSessionFromJSONTyped = PostContentSessionFromJSONTyped;
19
19
  exports.PostContentSessionToJSON = PostContentSessionToJSON;
20
20
  exports.PostContentSessionToJSONTyped = PostContentSessionToJSONTyped;
21
+ const ContentLaunchMode_1 = require("./ContentLaunchMode");
21
22
  /**
22
23
  * Check if a given object implements the PostContentSession interface.
23
24
  */
@@ -28,6 +29,8 @@ function instanceOfPostContentSession(value) {
28
29
  return false;
29
30
  if (!('launchUrl' in value) || value['launchUrl'] === undefined)
30
31
  return false;
32
+ if (!('launchMode' in value) || value['launchMode'] === undefined)
33
+ return false;
31
34
  if (!('createdAt' in value) || value['createdAt'] === undefined)
32
35
  return false;
33
36
  return true;
@@ -43,6 +46,7 @@ function PostContentSessionFromJSONTyped(json, ignoreDiscriminator) {
43
46
  'contentId': json['content_id'],
44
47
  'userId': json['user_id'],
45
48
  'launchUrl': json['launch_url'],
49
+ 'launchMode': (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
46
50
  'createdAt': json['created_at'],
47
51
  'playerSessionId': json['player_session_id'] == null ? undefined : json['player_session_id'],
48
52
  };
@@ -58,6 +62,7 @@ function PostContentSessionToJSONTyped(value, ignoreDiscriminator = false) {
58
62
  'content_id': value['contentId'],
59
63
  'user_id': value['userId'],
60
64
  'launch_url': value['launchUrl'],
65
+ 'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
61
66
  'created_at': value['createdAt'],
62
67
  'player_session_id': value['playerSessionId'],
63
68
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ContentLaunchMode } from './ContentLaunchMode';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -27,6 +28,12 @@ export interface PutContent {
27
28
  * @memberof PutContent
28
29
  */
29
30
  published?: boolean;
31
+ /**
32
+ *
33
+ * @type {ContentLaunchMode}
34
+ * @memberof PutContent
35
+ */
36
+ launchMode?: ContentLaunchMode;
30
37
  }
31
38
  /**
32
39
  * Check if a given object implements the PutContent interface.
@@ -18,6 +18,7 @@ exports.PutContentFromJSON = PutContentFromJSON;
18
18
  exports.PutContentFromJSONTyped = PutContentFromJSONTyped;
19
19
  exports.PutContentToJSON = PutContentToJSON;
20
20
  exports.PutContentToJSONTyped = PutContentToJSONTyped;
21
+ const ContentLaunchMode_1 = require("./ContentLaunchMode");
21
22
  /**
22
23
  * Check if a given object implements the PutContent interface.
23
24
  */
@@ -34,6 +35,7 @@ function PutContentFromJSONTyped(json, ignoreDiscriminator) {
34
35
  return {
35
36
  'name': json['name'] == null ? undefined : json['name'],
36
37
  'published': json['published'] == null ? undefined : json['published'],
38
+ 'launchMode': json['launch_mode'] == null ? undefined : (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
37
39
  };
38
40
  }
39
41
  function PutContentToJSON(json) {
@@ -46,5 +48,6 @@ function PutContentToJSONTyped(value, ignoreDiscriminator = false) {
46
48
  return {
47
49
  'name': value['name'],
48
50
  'published': value['published'],
51
+ 'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
49
52
  };
50
53
  }
@@ -1,12 +1,12 @@
1
1
  export * from './Certificate';
2
2
  export * from './CertificateConfig';
3
3
  export * from './CertificatePublic';
4
+ export * from './ContentLaunchMode';
4
5
  export * from './CourseCatalog';
5
6
  export * from './CourseShare';
6
7
  export * from './CriteriaBasedSelection';
7
8
  export * from './CriteriaBasedSelectionCriteria';
8
9
  export * from './CriteriaBasedSelectionDistribution';
9
- export * from './DownloadSupportTicketAttachment200Response';
10
10
  export * from './EffectiveCertificateConfig';
11
11
  export * from './Essay';
12
12
  export * from './Essay1';
@@ -19,12 +19,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./Certificate"), exports);
20
20
  __exportStar(require("./CertificateConfig"), exports);
21
21
  __exportStar(require("./CertificatePublic"), exports);
22
+ __exportStar(require("./ContentLaunchMode"), exports);
22
23
  __exportStar(require("./CourseCatalog"), exports);
23
24
  __exportStar(require("./CourseShare"), exports);
24
25
  __exportStar(require("./CriteriaBasedSelection"), exports);
25
26
  __exportStar(require("./CriteriaBasedSelectionCriteria"), exports);
26
27
  __exportStar(require("./CriteriaBasedSelectionDistribution"), exports);
27
- __exportStar(require("./DownloadSupportTicketAttachment200Response"), exports);
28
28
  __exportStar(require("./EffectiveCertificateConfig"), exports);
29
29
  __exportStar(require("./Essay"), exports);
30
30
  __exportStar(require("./Essay1"), exports);
@@ -26,6 +26,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
26
26
  | [**postContentUpload**](ContentApi.md#postcontentupload) | **POST** /courses/{courseId}/modules/{moduleId}/contents/upload | Post a new content upload |
27
27
  | [**putContent**](ContentApi.md#putcontent) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId} | Update content by id |
28
28
  | [**putContentReorder**](ContentApi.md#putcontentreorder) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/reorder | Reorder content in a module |
29
+ | [**putContentUploadFile**](ContentApi.md#putcontentuploadfile) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/uploads/{uploadId}/file | Upload content file through the API |
29
30
  | [**putContentVersion**](ContentApi.md#putcontentversion) | **PUT** /courses/{courseId}/modules/{moduleId}/contents/{contentId}/versions/{versionId} | Update a content version |
30
31
  | [**setScormValue**](ContentApi.md#setscormvalue) | **POST** /scorm/sessions/{scormSessionId}/set-value | Set a SCORM CMI data element value |
31
32
  | [**terminateScormSession**](ContentApi.md#terminatescormsession) | **POST** /scorm/sessions/{scormSessionId}/terminate | Terminate a SCORM session |
@@ -1657,6 +1658,84 @@ No authorization required
1657
1658
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1658
1659
 
1659
1660
 
1661
+ ## putContentUploadFile
1662
+
1663
+ > putContentUploadFile(courseId, moduleId, uploadId, body)
1664
+
1665
+ Upload content file through the API
1666
+
1667
+ ### Example
1668
+
1669
+ ```ts
1670
+ import {
1671
+ Configuration,
1672
+ ContentApi,
1673
+ } from '@easyedu/js-lsm-api';
1674
+ import type { PutContentUploadFileRequest } from '@easyedu/js-lsm-api';
1675
+
1676
+ async function example() {
1677
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
1678
+ const api = new ContentApi();
1679
+
1680
+ const body = {
1681
+ // string
1682
+ courseId: courseId_example,
1683
+ // string
1684
+ moduleId: moduleId_example,
1685
+ // number
1686
+ uploadId: 56,
1687
+ // Blob
1688
+ body: BINARY_DATA_HERE,
1689
+ } satisfies PutContentUploadFileRequest;
1690
+
1691
+ try {
1692
+ const data = await api.putContentUploadFile(body);
1693
+ console.log(data);
1694
+ } catch (error) {
1695
+ console.error(error);
1696
+ }
1697
+ }
1698
+
1699
+ // Run the test
1700
+ example().catch(console.error);
1701
+ ```
1702
+
1703
+ ### Parameters
1704
+
1705
+
1706
+ | Name | Type | Description | Notes |
1707
+ |------------- | ------------- | ------------- | -------------|
1708
+ | **courseId** | `string` | | [Defaults to `undefined`] |
1709
+ | **moduleId** | `string` | | [Defaults to `undefined`] |
1710
+ | **uploadId** | `number` | | [Defaults to `undefined`] |
1711
+ | **body** | `Blob` | | |
1712
+
1713
+ ### Return type
1714
+
1715
+ `void` (Empty response body)
1716
+
1717
+ ### Authorization
1718
+
1719
+ No authorization required
1720
+
1721
+ ### HTTP request headers
1722
+
1723
+ - **Content-Type**: `application/octet-stream`
1724
+ - **Accept**: Not defined
1725
+
1726
+
1727
+ ### HTTP response details
1728
+ | Status code | Description | Response headers |
1729
+ |-------------|-------------|------------------|
1730
+ | **204** | File uploaded successfully | - |
1731
+ | **401** | Unauthorized | - |
1732
+ | **403** | Forbidden | - |
1733
+ | **404** | Course, module, or content upload not found | - |
1734
+ | **413** | File too large | - |
1735
+
1736
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1737
+
1738
+
1660
1739
  ## putContentVersion
1661
1740
 
1662
1741
  > GetContentVersion putContentVersion(contentId, moduleId, courseId, versionId, putContentVersion)
@@ -1,22 +1,21 @@
1
1
 
2
- # DownloadSupportTicketAttachment200Response
2
+ # ContentLaunchMode
3
3
 
4
+ How the learner player should present the launched content.
4
5
 
5
6
  ## Properties
6
7
 
7
8
  Name | Type
8
9
  ------------ | -------------
9
- `downloadUrl` | string
10
10
 
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { DownloadSupportTicketAttachment200Response } from '@easyedu/js-lsm-api'
14
+ import type { ContentLaunchMode } from '@easyedu/js-lsm-api'
15
15
 
16
16
  // TODO: Update the object below with actual values
17
17
  const example = {
18
- "downloadUrl": null,
19
- } satisfies DownloadSupportTicketAttachment200Response
18
+ } satisfies ContentLaunchMode
20
19
 
21
20
  console.log(example)
22
21
 
@@ -25,7 +24,7 @@ const exampleJSON: string = JSON.stringify(example)
25
24
  console.log(exampleJSON)
26
25
 
27
26
  // Parse the JSON string back to an object
28
- const exampleParsed = JSON.parse(exampleJSON) as DownloadSupportTicketAttachment200Response
27
+ const exampleParsed = JSON.parse(exampleJSON) as ContentLaunchMode
29
28
  console.log(exampleParsed)
30
29
  ```
31
30
 
package/docs/CourseApi.md CHANGED
@@ -8,6 +8,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
8
8
  | [**deleteCourseEnrollment**](CourseApi.md#deletecourseenrollment) | **DELETE** /courses/{courseId}/enrollments/{enrollmentId} | Remove a course enrollment |
9
9
  | [**deleteCourseExport**](CourseApi.md#deletecourseexport) | **DELETE** /courses/{courseId}/exports/{exportId} | Delete a course export |
10
10
  | [**deleteCourseImage**](CourseApi.md#deletecourseimage) | **DELETE** /courses/{courseId}/image | Remove the course image |
11
+ | [**downloadCourseExport**](CourseApi.md#downloadcourseexport) | **GET** /courses/{courseId}/exports/{exportId}/download | Download a completed course export |
11
12
  | [**getCourse**](CourseApi.md#getcourse) | **GET** /courses/{courseId} | get course |
12
13
  | [**getCourseEnrollment**](CourseApi.md#getcourseenrollment) | **GET** /courses/{courseId}/enrollments/{enrollmentId} | Get a specific course enrollment |
13
14
  | [**getCourseEnrollments**](CourseApi.md#getcourseenrollments) | **GET** /courses/{courseId}/enrollments | Get course enrollments |
@@ -299,6 +300,77 @@ No authorization required
299
300
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
300
301
 
301
302
 
303
+ ## downloadCourseExport
304
+
305
+ > Blob downloadCourseExport(courseId, exportId)
306
+
307
+ Download a completed course export
308
+
309
+ ### Example
310
+
311
+ ```ts
312
+ import {
313
+ Configuration,
314
+ CourseApi,
315
+ } from '@easyedu/js-lsm-api';
316
+ import type { DownloadCourseExportRequest } from '@easyedu/js-lsm-api';
317
+
318
+ async function example() {
319
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
320
+ const api = new CourseApi();
321
+
322
+ const body = {
323
+ // string
324
+ courseId: courseId_example,
325
+ // string
326
+ exportId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
327
+ } satisfies DownloadCourseExportRequest;
328
+
329
+ try {
330
+ const data = await api.downloadCourseExport(body);
331
+ console.log(data);
332
+ } catch (error) {
333
+ console.error(error);
334
+ }
335
+ }
336
+
337
+ // Run the test
338
+ example().catch(console.error);
339
+ ```
340
+
341
+ ### Parameters
342
+
343
+
344
+ | Name | Type | Description | Notes |
345
+ |------------- | ------------- | ------------- | -------------|
346
+ | **courseId** | `string` | | [Defaults to `undefined`] |
347
+ | **exportId** | `string` | | [Defaults to `undefined`] |
348
+
349
+ ### Return type
350
+
351
+ **Blob**
352
+
353
+ ### Authorization
354
+
355
+ No authorization required
356
+
357
+ ### HTTP request headers
358
+
359
+ - **Content-Type**: Not defined
360
+ - **Accept**: `application/zip`
361
+
362
+
363
+ ### HTTP response details
364
+ | Status code | Description | Response headers |
365
+ |-------------|-------------|------------------|
366
+ | **200** | Export ZIP | - |
367
+ | **401** | Unauthorized | - |
368
+ | **403** | Forbidden | - |
369
+ | **404** | Export or course not found | - |
370
+
371
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
372
+
373
+
302
374
  ## getCourse
303
375
 
304
376
  > GetCourse getCourse(courseId)
@@ -11,6 +11,7 @@ Name | Type
11
11
  `name` | string
12
12
  `description` | string
13
13
  `contentType` | string
14
+ `launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
14
15
  `contentData` | [GetContentContentData](GetContentContentData.md)
15
16
  `order` | number
16
17
  `published` | boolean
@@ -32,6 +33,7 @@ const example = {
32
33
  "name": null,
33
34
  "description": null,
34
35
  "contentType": null,
36
+ "launchMode": null,
35
37
  "contentData": null,
36
38
  "order": null,
37
39
  "published": null,