@easyedu/js-lsm-api 1.41.0 → 1.43.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 (91) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +23 -2
  3. package/dist/apis/CourseApi.d.ts +32 -1
  4. package/dist/apis/CourseApi.js +99 -0
  5. package/dist/apis/SupportTicketApi.d.ts +191 -0
  6. package/dist/apis/SupportTicketApi.js +457 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/CourseApi.d.ts +32 -1
  10. package/dist/esm/apis/CourseApi.js +100 -1
  11. package/dist/esm/apis/SupportTicketApi.d.ts +191 -0
  12. package/dist/esm/apis/SupportTicketApi.js +453 -0
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/DownloadSupportTicketAttachment200Response.d.ts +32 -0
  16. package/dist/esm/models/DownloadSupportTicketAttachment200Response.js +43 -0
  17. package/dist/esm/models/GetCourseImageUpload.d.ts +32 -0
  18. package/dist/esm/models/GetCourseImageUpload.js +43 -0
  19. package/dist/esm/models/GetSupportTicket.d.ts +142 -0
  20. package/dist/esm/models/GetSupportTicket.js +120 -0
  21. package/dist/esm/models/GetSupportTicketAttachment.d.ts +62 -0
  22. package/dist/esm/models/GetSupportTicketAttachment.js +63 -0
  23. package/dist/esm/models/GetSupportTicketComment.d.ts +57 -0
  24. package/dist/esm/models/GetSupportTicketComment.js +60 -0
  25. package/dist/esm/models/GetSupportTicketList.d.ts +57 -0
  26. package/dist/esm/models/GetSupportTicketList.js +60 -0
  27. package/dist/esm/models/PostSupportTicket.d.ts +71 -0
  28. package/dist/esm/models/PostSupportTicket.js +74 -0
  29. package/dist/esm/models/PostSupportTicketComment.d.ts +38 -0
  30. package/dist/esm/models/PostSupportTicketComment.js +45 -0
  31. package/dist/esm/models/PutCourse.d.ts +0 -6
  32. package/dist/esm/models/PutCourse.js +0 -2
  33. package/dist/esm/models/PutSupportTicket.d.ts +63 -0
  34. package/dist/esm/models/PutSupportTicket.js +62 -0
  35. package/dist/esm/models/SupportTicketUser.d.ts +50 -0
  36. package/dist/esm/models/SupportTicketUser.js +55 -0
  37. package/dist/esm/models/index.d.ts +10 -0
  38. package/dist/esm/models/index.js +10 -0
  39. package/dist/models/DownloadSupportTicketAttachment200Response.d.ts +32 -0
  40. package/dist/models/DownloadSupportTicketAttachment200Response.js +50 -0
  41. package/dist/models/GetCourseImageUpload.d.ts +32 -0
  42. package/dist/models/GetCourseImageUpload.js +50 -0
  43. package/dist/models/GetSupportTicket.d.ts +142 -0
  44. package/dist/models/GetSupportTicket.js +128 -0
  45. package/dist/models/GetSupportTicketAttachment.d.ts +62 -0
  46. package/dist/models/GetSupportTicketAttachment.js +70 -0
  47. package/dist/models/GetSupportTicketComment.d.ts +57 -0
  48. package/dist/models/GetSupportTicketComment.js +67 -0
  49. package/dist/models/GetSupportTicketList.d.ts +57 -0
  50. package/dist/models/GetSupportTicketList.js +67 -0
  51. package/dist/models/PostSupportTicket.d.ts +71 -0
  52. package/dist/models/PostSupportTicket.js +82 -0
  53. package/dist/models/PostSupportTicketComment.d.ts +38 -0
  54. package/dist/models/PostSupportTicketComment.js +52 -0
  55. package/dist/models/PutCourse.d.ts +0 -6
  56. package/dist/models/PutCourse.js +0 -2
  57. package/dist/models/PutSupportTicket.d.ts +63 -0
  58. package/dist/models/PutSupportTicket.js +70 -0
  59. package/dist/models/SupportTicketUser.d.ts +50 -0
  60. package/dist/models/SupportTicketUser.js +62 -0
  61. package/dist/models/index.d.ts +10 -0
  62. package/dist/models/index.js +10 -0
  63. package/docs/CourseApi.md +138 -0
  64. package/docs/DownloadSupportTicketAttachment200Response.md +34 -0
  65. package/docs/GetCourseImageUpload.md +34 -0
  66. package/docs/GetSupportTicket.md +60 -0
  67. package/docs/GetSupportTicketAttachment.md +44 -0
  68. package/docs/GetSupportTicketComment.md +42 -0
  69. package/docs/GetSupportTicketList.md +42 -0
  70. package/docs/PostSupportTicket.md +40 -0
  71. package/docs/PostSupportTicketComment.md +36 -0
  72. package/docs/PutCourse.md +0 -2
  73. package/docs/PutSupportTicket.md +38 -0
  74. package/docs/SupportTicketApi.md +651 -0
  75. package/docs/SupportTicketUser.md +40 -0
  76. package/package.json +1 -1
  77. package/src/apis/CourseApi.ts +129 -0
  78. package/src/apis/SupportTicketApi.ts +599 -0
  79. package/src/apis/index.ts +1 -0
  80. package/src/models/DownloadSupportTicketAttachment200Response.ts +66 -0
  81. package/src/models/GetCourseImageUpload.ts +66 -0
  82. package/src/models/GetSupportTicket.ts +231 -0
  83. package/src/models/GetSupportTicketAttachment.ts +111 -0
  84. package/src/models/GetSupportTicketComment.ts +110 -0
  85. package/src/models/GetSupportTicketList.ts +110 -0
  86. package/src/models/PostSupportTicket.ts +118 -0
  87. package/src/models/PostSupportTicketComment.ts +74 -0
  88. package/src/models/PutCourse.ts +0 -8
  89. package/src/models/PutSupportTicket.ts +104 -0
  90. package/src/models/SupportTicketUser.ts +93 -0
  91. package/src/models/index.ts +10 -0
@@ -0,0 +1,62 @@
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.instanceOfSupportTicketUser = instanceOfSupportTicketUser;
17
+ exports.SupportTicketUserFromJSON = SupportTicketUserFromJSON;
18
+ exports.SupportTicketUserFromJSONTyped = SupportTicketUserFromJSONTyped;
19
+ exports.SupportTicketUserToJSON = SupportTicketUserToJSON;
20
+ exports.SupportTicketUserToJSONTyped = SupportTicketUserToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SupportTicketUser interface.
23
+ */
24
+ function instanceOfSupportTicketUser(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('email' in value) || value['email'] === undefined)
28
+ return false;
29
+ if (!('firstName' in value) || value['firstName'] === undefined)
30
+ return false;
31
+ if (!('lastName' in value) || value['lastName'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function SupportTicketUserFromJSON(json) {
36
+ return SupportTicketUserFromJSONTyped(json, false);
37
+ }
38
+ function SupportTicketUserFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'email': json['email'],
45
+ 'firstName': json['first_name'],
46
+ 'lastName': json['last_name'],
47
+ };
48
+ }
49
+ function SupportTicketUserToJSON(json) {
50
+ return SupportTicketUserToJSONTyped(json, false);
51
+ }
52
+ function SupportTicketUserToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'email': value['email'],
59
+ 'first_name': value['firstName'],
60
+ 'last_name': value['lastName'],
61
+ };
62
+ }
@@ -1,6 +1,7 @@
1
1
  export * from './CriteriaBasedSelection';
2
2
  export * from './CriteriaBasedSelectionCriteria';
3
3
  export * from './CriteriaBasedSelectionDistribution';
4
+ export * from './DownloadSupportTicketAttachment200Response';
4
5
  export * from './Essay';
5
6
  export * from './Essay1';
6
7
  export * from './FillInBlank';
@@ -38,6 +39,7 @@ export * from './GetCourseEnrollmentList';
38
39
  export * from './GetCourseEnrollmentListItem';
39
40
  export * from './GetCourseExport';
40
41
  export * from './GetCourseExportList';
42
+ export * from './GetCourseImageUpload';
41
43
  export * from './GetCourseList';
42
44
  export * from './GetCourseReportingBasic';
43
45
  export * from './GetCourseStudentReporting';
@@ -123,6 +125,10 @@ export * from './GetScormPackage';
123
125
  export * from './GetScormPackagePackageInfo';
124
126
  export * from './GetScormSessionData';
125
127
  export * from './GetScormSessionDataActivity';
128
+ export * from './GetSupportTicket';
129
+ export * from './GetSupportTicketAttachment';
130
+ export * from './GetSupportTicketComment';
131
+ export * from './GetSupportTicketList';
126
132
  export * from './GetUser';
127
133
  export * from './GetUserQuizAttempts';
128
134
  export * from './GetUserQuizAttemptsAllOfAttempts';
@@ -180,6 +186,8 @@ export * from './PostQuizSettings';
180
186
  export * from './PostResetPassword';
181
187
  export * from './PostRole';
182
188
  export * from './PostSendResetPassword';
189
+ export * from './PostSupportTicket';
190
+ export * from './PostSupportTicketComment';
183
191
  export * from './PostVerifyManifest';
184
192
  export * from './PostVerifyManifestItemsInner';
185
193
  export * from './PostVerifyManifestResourcesInner';
@@ -198,6 +206,7 @@ export * from './PutQuizAnswerGrade';
198
206
  export * from './PutQuizSettings';
199
207
  export * from './PutRole';
200
208
  export * from './PutRolePermissions';
209
+ export * from './PutSupportTicket';
201
210
  export * from './PutUser';
202
211
  export * from './QuizContent';
203
212
  export * from './QuizContentAssignment';
@@ -215,3 +224,4 @@ export * from './ScormSetValueResponse';
215
224
  export * from './ShortAnswer';
216
225
  export * from './ShortAnswer1';
217
226
  export * from './SingleAnswer';
227
+ export * from './SupportTicketUser';
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./CriteriaBasedSelection"), exports);
20
20
  __exportStar(require("./CriteriaBasedSelectionCriteria"), exports);
21
21
  __exportStar(require("./CriteriaBasedSelectionDistribution"), exports);
22
+ __exportStar(require("./DownloadSupportTicketAttachment200Response"), exports);
22
23
  __exportStar(require("./Essay"), exports);
23
24
  __exportStar(require("./Essay1"), exports);
24
25
  __exportStar(require("./FillInBlank"), exports);
@@ -56,6 +57,7 @@ __exportStar(require("./GetCourseEnrollmentList"), exports);
56
57
  __exportStar(require("./GetCourseEnrollmentListItem"), exports);
57
58
  __exportStar(require("./GetCourseExport"), exports);
58
59
  __exportStar(require("./GetCourseExportList"), exports);
60
+ __exportStar(require("./GetCourseImageUpload"), exports);
59
61
  __exportStar(require("./GetCourseList"), exports);
60
62
  __exportStar(require("./GetCourseReportingBasic"), exports);
61
63
  __exportStar(require("./GetCourseStudentReporting"), exports);
@@ -141,6 +143,10 @@ __exportStar(require("./GetScormPackage"), exports);
141
143
  __exportStar(require("./GetScormPackagePackageInfo"), exports);
142
144
  __exportStar(require("./GetScormSessionData"), exports);
143
145
  __exportStar(require("./GetScormSessionDataActivity"), exports);
146
+ __exportStar(require("./GetSupportTicket"), exports);
147
+ __exportStar(require("./GetSupportTicketAttachment"), exports);
148
+ __exportStar(require("./GetSupportTicketComment"), exports);
149
+ __exportStar(require("./GetSupportTicketList"), exports);
144
150
  __exportStar(require("./GetUser"), exports);
145
151
  __exportStar(require("./GetUserQuizAttempts"), exports);
146
152
  __exportStar(require("./GetUserQuizAttemptsAllOfAttempts"), exports);
@@ -198,6 +204,8 @@ __exportStar(require("./PostQuizSettings"), exports);
198
204
  __exportStar(require("./PostResetPassword"), exports);
199
205
  __exportStar(require("./PostRole"), exports);
200
206
  __exportStar(require("./PostSendResetPassword"), exports);
207
+ __exportStar(require("./PostSupportTicket"), exports);
208
+ __exportStar(require("./PostSupportTicketComment"), exports);
201
209
  __exportStar(require("./PostVerifyManifest"), exports);
202
210
  __exportStar(require("./PostVerifyManifestItemsInner"), exports);
203
211
  __exportStar(require("./PostVerifyManifestResourcesInner"), exports);
@@ -216,6 +224,7 @@ __exportStar(require("./PutQuizAnswerGrade"), exports);
216
224
  __exportStar(require("./PutQuizSettings"), exports);
217
225
  __exportStar(require("./PutRole"), exports);
218
226
  __exportStar(require("./PutRolePermissions"), exports);
227
+ __exportStar(require("./PutSupportTicket"), exports);
219
228
  __exportStar(require("./PutUser"), exports);
220
229
  __exportStar(require("./QuizContent"), exports);
221
230
  __exportStar(require("./QuizContentAssignment"), exports);
@@ -233,3 +242,4 @@ __exportStar(require("./ScormSetValueResponse"), exports);
233
242
  __exportStar(require("./ShortAnswer"), exports);
234
243
  __exportStar(require("./ShortAnswer1"), exports);
235
244
  __exportStar(require("./SingleAnswer"), exports);
245
+ __exportStar(require("./SupportTicketUser"), exports);
package/docs/CourseApi.md CHANGED
@@ -4,6 +4,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**deleteCourseImage**](CourseApi.md#deletecourseimage) | **DELETE** /courses/{courseId}/image | Remove the course image |
7
8
  | [**getCourse**](CourseApi.md#getcourse) | **GET** /courses/{courseId} | get course |
8
9
  | [**getCourseEnrollment**](CourseApi.md#getcourseenrollment) | **GET** /courses/{courseId}/enrollments/{enrollmentId} | Get a specific course enrollment |
9
10
  | [**getCourseEnrollments**](CourseApi.md#getcourseenrollments) | **GET** /courses/{courseId}/enrollments | Get course enrollments |
@@ -14,11 +15,78 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
14
15
  | [**postCourse**](CourseApi.md#postcourse) | **POST** /courses | Post a new course |
15
16
  | [**postCourseEnrollment**](CourseApi.md#postcourseenrollment) | **POST** /courses/{courseId}/enrollments | Create a new course enrollment |
16
17
  | [**postCourseExport**](CourseApi.md#postcourseexport) | **POST** /courses/{courseId}/exports | Create a new SCORM export for a course |
18
+ | [**postCourseImageUpload**](CourseApi.md#postcourseimageupload) | **POST** /courses/{courseId}/image | Upload a course image |
17
19
  | [**putCourse**](CourseApi.md#putcourse) | **PUT** /courses/{courseId} | Update a course by id |
18
20
  | [**putCourseEnrollment**](CourseApi.md#putcourseenrollment) | **PUT** /courses/{courseId}/enrollments/{enrollmentId} | Update a course enrollment |
19
21
 
20
22
 
21
23
 
24
+ ## deleteCourseImage
25
+
26
+ > deleteCourseImage(courseId)
27
+
28
+ Remove the course image
29
+
30
+ ### Example
31
+
32
+ ```ts
33
+ import {
34
+ Configuration,
35
+ CourseApi,
36
+ } from '@easyedu/js-lsm-api';
37
+ import type { DeleteCourseImageRequest } from '@easyedu/js-lsm-api';
38
+
39
+ async function example() {
40
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
41
+ const api = new CourseApi();
42
+
43
+ const body = {
44
+ // string
45
+ courseId: courseId_example,
46
+ } satisfies DeleteCourseImageRequest;
47
+
48
+ try {
49
+ const data = await api.deleteCourseImage(body);
50
+ console.log(data);
51
+ } catch (error) {
52
+ console.error(error);
53
+ }
54
+ }
55
+
56
+ // Run the test
57
+ example().catch(console.error);
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+
63
+ | Name | Type | Description | Notes |
64
+ |------------- | ------------- | ------------- | -------------|
65
+ | **courseId** | `string` | | [Defaults to `undefined`] |
66
+
67
+ ### Return type
68
+
69
+ `void` (Empty response body)
70
+
71
+ ### Authorization
72
+
73
+ No authorization required
74
+
75
+ ### HTTP request headers
76
+
77
+ - **Content-Type**: Not defined
78
+ - **Accept**: Not defined
79
+
80
+
81
+ ### HTTP response details
82
+ | Status code | Description | Response headers |
83
+ |-------------|-------------|------------------|
84
+ | **204** | Image removed successfully | - |
85
+ | **404** | Course not found | - |
86
+
87
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
88
+
89
+
22
90
  ## getCourse
23
91
 
24
92
  > GetCourse getCourse(courseId)
@@ -705,6 +773,76 @@ No authorization required
705
773
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
706
774
 
707
775
 
776
+ ## postCourseImageUpload
777
+
778
+ > GetCourseImageUpload postCourseImageUpload(courseId, file)
779
+
780
+ Upload a course image
781
+
782
+ ### Example
783
+
784
+ ```ts
785
+ import {
786
+ Configuration,
787
+ CourseApi,
788
+ } from '@easyedu/js-lsm-api';
789
+ import type { PostCourseImageUploadRequest } from '@easyedu/js-lsm-api';
790
+
791
+ async function example() {
792
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
793
+ const api = new CourseApi();
794
+
795
+ const body = {
796
+ // string
797
+ courseId: courseId_example,
798
+ // Blob | Course image file (PNG, JPEG, or SVG). Max 5MB.
799
+ file: BINARY_DATA_HERE,
800
+ } satisfies PostCourseImageUploadRequest;
801
+
802
+ try {
803
+ const data = await api.postCourseImageUpload(body);
804
+ console.log(data);
805
+ } catch (error) {
806
+ console.error(error);
807
+ }
808
+ }
809
+
810
+ // Run the test
811
+ example().catch(console.error);
812
+ ```
813
+
814
+ ### Parameters
815
+
816
+
817
+ | Name | Type | Description | Notes |
818
+ |------------- | ------------- | ------------- | -------------|
819
+ | **courseId** | `string` | | [Defaults to `undefined`] |
820
+ | **file** | `Blob` | Course image file (PNG, JPEG, or SVG). Max 5MB. | [Defaults to `undefined`] |
821
+
822
+ ### Return type
823
+
824
+ [**GetCourseImageUpload**](GetCourseImageUpload.md)
825
+
826
+ ### Authorization
827
+
828
+ No authorization required
829
+
830
+ ### HTTP request headers
831
+
832
+ - **Content-Type**: `multipart/form-data`
833
+ - **Accept**: `application/json`
834
+
835
+
836
+ ### HTTP response details
837
+ | Status code | Description | Response headers |
838
+ |-------------|-------------|------------------|
839
+ | **200** | Image uploaded successfully | - |
840
+ | **400** | Invalid file type or file too large | - |
841
+ | **404** | Course not found | - |
842
+
843
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
844
+
845
+
708
846
  ## putCourse
709
847
 
710
848
  > GetCourse putCourse(courseId, putCourse)
@@ -0,0 +1,34 @@
1
+
2
+ # DownloadSupportTicketAttachment200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `downloadUrl` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { DownloadSupportTicketAttachment200Response } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "downloadUrl": null,
19
+ } satisfies DownloadSupportTicketAttachment200Response
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as DownloadSupportTicketAttachment200Response
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,34 @@
1
+
2
+ # GetCourseImageUpload
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `imageUrl` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { GetCourseImageUpload } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "imageUrl": null,
19
+ } satisfies GetCourseImageUpload
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as GetCourseImageUpload
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,60 @@
1
+
2
+ # GetSupportTicket
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `portalId` | string
11
+ `subject` | string
12
+ `description` | string
13
+ `status` | string
14
+ `priority` | string
15
+ `category` | string
16
+ `reporter` | [SupportTicketUser](SupportTicketUser.md)
17
+ `assignedTo` | [SupportTicketUser](SupportTicketUser.md)
18
+ `commentCount` | number
19
+ `attachments` | [Array<GetSupportTicketAttachment>](GetSupportTicketAttachment.md)
20
+ `createdAt` | number
21
+ `updatedAt` | number
22
+ `closedAt` | number
23
+
24
+ ## Example
25
+
26
+ ```typescript
27
+ import type { GetSupportTicket } from '@easyedu/js-lsm-api'
28
+
29
+ // TODO: Update the object below with actual values
30
+ const example = {
31
+ "id": null,
32
+ "portalId": null,
33
+ "subject": null,
34
+ "description": null,
35
+ "status": null,
36
+ "priority": null,
37
+ "category": null,
38
+ "reporter": null,
39
+ "assignedTo": null,
40
+ "commentCount": null,
41
+ "attachments": null,
42
+ "createdAt": null,
43
+ "updatedAt": null,
44
+ "closedAt": null,
45
+ } satisfies GetSupportTicket
46
+
47
+ console.log(example)
48
+
49
+ // Convert the instance to a JSON string
50
+ const exampleJSON: string = JSON.stringify(example)
51
+ console.log(exampleJSON)
52
+
53
+ // Parse the JSON string back to an object
54
+ const exampleParsed = JSON.parse(exampleJSON) as GetSupportTicket
55
+ console.log(exampleParsed)
56
+ ```
57
+
58
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
59
+
60
+
@@ -0,0 +1,44 @@
1
+
2
+ # GetSupportTicketAttachment
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `fileName` | string
11
+ `fileSize` | number
12
+ `mimeType` | string
13
+ `downloadUrl` | string
14
+ `createdAt` | number
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { GetSupportTicketAttachment } from '@easyedu/js-lsm-api'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "id": null,
24
+ "fileName": null,
25
+ "fileSize": null,
26
+ "mimeType": null,
27
+ "downloadUrl": null,
28
+ "createdAt": null,
29
+ } satisfies GetSupportTicketAttachment
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as GetSupportTicketAttachment
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,42 @@
1
+
2
+ # GetSupportTicketComment
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `user` | [SupportTicketUser](SupportTicketUser.md)
11
+ `content` | string
12
+ `isInternal` | boolean
13
+ `createdAt` | number
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { GetSupportTicketComment } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "id": null,
23
+ "user": null,
24
+ "content": null,
25
+ "isInternal": null,
26
+ "createdAt": null,
27
+ } satisfies GetSupportTicketComment
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as GetSupportTicketComment
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,42 @@
1
+
2
+ # GetSupportTicketList
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `page` | number
10
+ `pageSize` | number
11
+ `totalPages` | number
12
+ `totalItems` | number
13
+ `items` | [Array<GetSupportTicket>](GetSupportTicket.md)
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { GetSupportTicketList } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "page": null,
23
+ "pageSize": null,
24
+ "totalPages": null,
25
+ "totalItems": null,
26
+ "items": null,
27
+ } satisfies GetSupportTicketList
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as GetSupportTicketList
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,40 @@
1
+
2
+ # PostSupportTicket
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `subject` | string
10
+ `description` | string
11
+ `priority` | string
12
+ `category` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PostSupportTicket } from '@easyedu/js-lsm-api'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "subject": null,
22
+ "description": null,
23
+ "priority": null,
24
+ "category": null,
25
+ } satisfies PostSupportTicket
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as PostSupportTicket
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,36 @@
1
+
2
+ # PostSupportTicketComment
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `content` | string
10
+ `isInternal` | boolean
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PostSupportTicketComment } from '@easyedu/js-lsm-api'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "content": null,
20
+ "isInternal": null,
21
+ } satisfies PostSupportTicketComment
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as PostSupportTicketComment
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
package/docs/PutCourse.md CHANGED
@@ -10,7 +10,6 @@ Name | Type
10
10
  `name` | string
11
11
  `description` | string
12
12
  `instructor` | string
13
- `imageUrl` | string
14
13
  `published` | boolean
15
14
 
16
15
  ## Example
@@ -24,7 +23,6 @@ const example = {
24
23
  "name": null,
25
24
  "description": null,
26
25
  "instructor": null,
27
- "imageUrl": null,
28
26
  "published": null,
29
27
  } satisfies PutCourse
30
28