@easyedu/js-lsm-api 1.40.0 → 1.42.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 (90) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +23 -2
  3. package/dist/apis/PortalApi.d.ts +32 -1
  4. package/dist/apis/PortalApi.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/PortalApi.d.ts +32 -1
  10. package/dist/esm/apis/PortalApi.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/GetPortal.d.ts +1 -1
  18. package/dist/esm/models/GetPortal.js +1 -3
  19. package/dist/esm/models/GetPortalLogoUpload.d.ts +32 -0
  20. package/dist/esm/models/GetPortalLogoUpload.js +43 -0
  21. package/dist/esm/models/GetSupportTicket.d.ts +142 -0
  22. package/dist/esm/models/GetSupportTicket.js +120 -0
  23. package/dist/esm/models/GetSupportTicketAttachment.d.ts +62 -0
  24. package/dist/esm/models/GetSupportTicketAttachment.js +63 -0
  25. package/dist/esm/models/GetSupportTicketComment.d.ts +57 -0
  26. package/dist/esm/models/GetSupportTicketComment.js +60 -0
  27. package/dist/esm/models/GetSupportTicketList.d.ts +57 -0
  28. package/dist/esm/models/GetSupportTicketList.js +60 -0
  29. package/dist/esm/models/PostSupportTicket.d.ts +71 -0
  30. package/dist/esm/models/PostSupportTicket.js +74 -0
  31. package/dist/esm/models/PostSupportTicketComment.d.ts +38 -0
  32. package/dist/esm/models/PostSupportTicketComment.js +45 -0
  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/GetPortal.d.ts +1 -1
  42. package/dist/models/GetPortal.js +1 -3
  43. package/dist/models/GetPortalLogoUpload.d.ts +32 -0
  44. package/dist/models/GetPortalLogoUpload.js +50 -0
  45. package/dist/models/GetSupportTicket.d.ts +142 -0
  46. package/dist/models/GetSupportTicket.js +128 -0
  47. package/dist/models/GetSupportTicketAttachment.d.ts +62 -0
  48. package/dist/models/GetSupportTicketAttachment.js +70 -0
  49. package/dist/models/GetSupportTicketComment.d.ts +57 -0
  50. package/dist/models/GetSupportTicketComment.js +67 -0
  51. package/dist/models/GetSupportTicketList.d.ts +57 -0
  52. package/dist/models/GetSupportTicketList.js +67 -0
  53. package/dist/models/PostSupportTicket.d.ts +71 -0
  54. package/dist/models/PostSupportTicket.js +82 -0
  55. package/dist/models/PostSupportTicketComment.d.ts +38 -0
  56. package/dist/models/PostSupportTicketComment.js +52 -0
  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/DownloadSupportTicketAttachment200Response.md +34 -0
  64. package/docs/GetPortalLogoUpload.md +34 -0
  65. package/docs/GetSupportTicket.md +60 -0
  66. package/docs/GetSupportTicketAttachment.md +44 -0
  67. package/docs/GetSupportTicketComment.md +42 -0
  68. package/docs/GetSupportTicketList.md +42 -0
  69. package/docs/PortalApi.md +138 -0
  70. package/docs/PostSupportTicket.md +40 -0
  71. package/docs/PostSupportTicketComment.md +36 -0
  72. package/docs/PutSupportTicket.md +38 -0
  73. package/docs/SupportTicketApi.md +651 -0
  74. package/docs/SupportTicketUser.md +40 -0
  75. package/package.json +1 -1
  76. package/src/apis/PortalApi.ts +129 -0
  77. package/src/apis/SupportTicketApi.ts +599 -0
  78. package/src/apis/index.ts +1 -0
  79. package/src/models/DownloadSupportTicketAttachment200Response.ts +66 -0
  80. package/src/models/GetPortal.ts +2 -3
  81. package/src/models/GetPortalLogoUpload.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/PutSupportTicket.ts +104 -0
  89. package/src/models/SupportTicketUser.ts +93 -0
  90. package/src/models/index.ts +10 -0
@@ -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';
@@ -61,6 +62,7 @@ export * from './GetPortalBasicReporting';
61
62
  export * from './GetPortalBasicReportingCertificates';
62
63
  export * from './GetPortalBasicReportingPortalInfo';
63
64
  export * from './GetPortalList';
65
+ export * from './GetPortalLogoUpload';
64
66
  export * from './GetPortalStudentReporting';
65
67
  export * from './GetPortalStudentReportingCertificates';
66
68
  export * from './GetPortalStudentReportingPortalInfo';
@@ -122,6 +124,10 @@ export * from './GetScormPackage';
122
124
  export * from './GetScormPackagePackageInfo';
123
125
  export * from './GetScormSessionData';
124
126
  export * from './GetScormSessionDataActivity';
127
+ export * from './GetSupportTicket';
128
+ export * from './GetSupportTicketAttachment';
129
+ export * from './GetSupportTicketComment';
130
+ export * from './GetSupportTicketList';
125
131
  export * from './GetUser';
126
132
  export * from './GetUserQuizAttempts';
127
133
  export * from './GetUserQuizAttemptsAllOfAttempts';
@@ -179,6 +185,8 @@ export * from './PostQuizSettings';
179
185
  export * from './PostResetPassword';
180
186
  export * from './PostRole';
181
187
  export * from './PostSendResetPassword';
188
+ export * from './PostSupportTicket';
189
+ export * from './PostSupportTicketComment';
182
190
  export * from './PostVerifyManifest';
183
191
  export * from './PostVerifyManifestItemsInner';
184
192
  export * from './PostVerifyManifestResourcesInner';
@@ -197,6 +205,7 @@ export * from './PutQuizAnswerGrade';
197
205
  export * from './PutQuizSettings';
198
206
  export * from './PutRole';
199
207
  export * from './PutRolePermissions';
208
+ export * from './PutSupportTicket';
200
209
  export * from './PutUser';
201
210
  export * from './QuizContent';
202
211
  export * from './QuizContentAssignment';
@@ -214,3 +223,4 @@ export * from './ScormSetValueResponse';
214
223
  export * from './ShortAnswer';
215
224
  export * from './ShortAnswer1';
216
225
  export * from './SingleAnswer';
226
+ 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);
@@ -79,6 +80,7 @@ __exportStar(require("./GetPortalBasicReporting"), exports);
79
80
  __exportStar(require("./GetPortalBasicReportingCertificates"), exports);
80
81
  __exportStar(require("./GetPortalBasicReportingPortalInfo"), exports);
81
82
  __exportStar(require("./GetPortalList"), exports);
83
+ __exportStar(require("./GetPortalLogoUpload"), exports);
82
84
  __exportStar(require("./GetPortalStudentReporting"), exports);
83
85
  __exportStar(require("./GetPortalStudentReportingCertificates"), exports);
84
86
  __exportStar(require("./GetPortalStudentReportingPortalInfo"), exports);
@@ -140,6 +142,10 @@ __exportStar(require("./GetScormPackage"), exports);
140
142
  __exportStar(require("./GetScormPackagePackageInfo"), exports);
141
143
  __exportStar(require("./GetScormSessionData"), exports);
142
144
  __exportStar(require("./GetScormSessionDataActivity"), exports);
145
+ __exportStar(require("./GetSupportTicket"), exports);
146
+ __exportStar(require("./GetSupportTicketAttachment"), exports);
147
+ __exportStar(require("./GetSupportTicketComment"), exports);
148
+ __exportStar(require("./GetSupportTicketList"), exports);
143
149
  __exportStar(require("./GetUser"), exports);
144
150
  __exportStar(require("./GetUserQuizAttempts"), exports);
145
151
  __exportStar(require("./GetUserQuizAttemptsAllOfAttempts"), exports);
@@ -197,6 +203,8 @@ __exportStar(require("./PostQuizSettings"), exports);
197
203
  __exportStar(require("./PostResetPassword"), exports);
198
204
  __exportStar(require("./PostRole"), exports);
199
205
  __exportStar(require("./PostSendResetPassword"), exports);
206
+ __exportStar(require("./PostSupportTicket"), exports);
207
+ __exportStar(require("./PostSupportTicketComment"), exports);
200
208
  __exportStar(require("./PostVerifyManifest"), exports);
201
209
  __exportStar(require("./PostVerifyManifestItemsInner"), exports);
202
210
  __exportStar(require("./PostVerifyManifestResourcesInner"), exports);
@@ -215,6 +223,7 @@ __exportStar(require("./PutQuizAnswerGrade"), exports);
215
223
  __exportStar(require("./PutQuizSettings"), exports);
216
224
  __exportStar(require("./PutRole"), exports);
217
225
  __exportStar(require("./PutRolePermissions"), exports);
226
+ __exportStar(require("./PutSupportTicket"), exports);
218
227
  __exportStar(require("./PutUser"), exports);
219
228
  __exportStar(require("./QuizContent"), exports);
220
229
  __exportStar(require("./QuizContentAssignment"), exports);
@@ -232,3 +241,4 @@ __exportStar(require("./ScormSetValueResponse"), exports);
232
241
  __exportStar(require("./ShortAnswer"), exports);
233
242
  __exportStar(require("./ShortAnswer1"), exports);
234
243
  __exportStar(require("./SingleAnswer"), exports);
244
+ __exportStar(require("./SupportTicketUser"), exports);
@@ -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
+ # GetPortalLogoUpload
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `logoUrl` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { GetPortalLogoUpload } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "logoUrl": null,
19
+ } satisfies GetPortalLogoUpload
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 GetPortalLogoUpload
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
+
package/docs/PortalApi.md CHANGED
@@ -4,16 +4,84 @@ 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
+ | [**deletePortalLogo**](PortalApi.md#deleteportallogo) | **DELETE** /portals/{portalId}/branding/logo | Remove the portal logo |
7
8
  | [**getPortalById**](PortalApi.md#getportalbyid) | **GET** /portals/{portalId} | Get a portal by id (can use \'current\' to get the current users selected portal) |
8
9
  | [**getPortalList**](PortalApi.md#getportallist) | **GET** /portals | Get all portals a user has access to |
9
10
  | [**getPortalUsers**](PortalApi.md#getportalusers) | **GET** /portals/{portalId}/users | Get all users for a portal with optional role filtering |
10
11
  | [**inviteUserToPortal**](PortalApi.md#inviteusertoportal) | **POST** /portals/{portalId}/invite | Invite a new user to a portal |
11
12
  | [**postPortal**](PortalApi.md#postportal) | **POST** /portals | Create a new portal as a child of the current selected portal |
13
+ | [**postPortalLogoUpload**](PortalApi.md#postportallogoupload) | **POST** /portals/{portalId}/branding/logo | Upload a logo image for portal branding |
12
14
  | [**putPortalBranding**](PortalApi.md#putportalbranding) | **PUT** /portals/{portalId} | Update portal branding (name, background color, text color) |
13
15
  | [**updateSelectedPortal**](PortalApi.md#updateselectedportal) | **PUT** /portals/{portalId}/selected | Update the users current selected portal. Returns new JWT with updated roles. |
14
16
 
15
17
 
16
18
 
19
+ ## deletePortalLogo
20
+
21
+ > deletePortalLogo(portalId)
22
+
23
+ Remove the portal logo
24
+
25
+ ### Example
26
+
27
+ ```ts
28
+ import {
29
+ Configuration,
30
+ PortalApi,
31
+ } from '@easyedu/js-lsm-api';
32
+ import type { DeletePortalLogoRequest } from '@easyedu/js-lsm-api';
33
+
34
+ async function example() {
35
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
36
+ const api = new PortalApi();
37
+
38
+ const body = {
39
+ // string
40
+ portalId: portalId_example,
41
+ } satisfies DeletePortalLogoRequest;
42
+
43
+ try {
44
+ const data = await api.deletePortalLogo(body);
45
+ console.log(data);
46
+ } catch (error) {
47
+ console.error(error);
48
+ }
49
+ }
50
+
51
+ // Run the test
52
+ example().catch(console.error);
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+
58
+ | Name | Type | Description | Notes |
59
+ |------------- | ------------- | ------------- | -------------|
60
+ | **portalId** | `string` | | [Defaults to `undefined`] |
61
+
62
+ ### Return type
63
+
64
+ `void` (Empty response body)
65
+
66
+ ### Authorization
67
+
68
+ No authorization required
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: Not defined
73
+ - **Accept**: Not defined
74
+
75
+
76
+ ### HTTP response details
77
+ | Status code | Description | Response headers |
78
+ |-------------|-------------|------------------|
79
+ | **204** | Logo removed successfully | - |
80
+ | **404** | Portal not found | - |
81
+
82
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
83
+
84
+
17
85
  ## getPortalById
18
86
 
19
87
  > GetPortal getPortalById(portalId)
@@ -353,6 +421,76 @@ No authorization required
353
421
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
354
422
 
355
423
 
424
+ ## postPortalLogoUpload
425
+
426
+ > GetPortalLogoUpload postPortalLogoUpload(portalId, file)
427
+
428
+ Upload a logo image for portal branding
429
+
430
+ ### Example
431
+
432
+ ```ts
433
+ import {
434
+ Configuration,
435
+ PortalApi,
436
+ } from '@easyedu/js-lsm-api';
437
+ import type { PostPortalLogoUploadRequest } from '@easyedu/js-lsm-api';
438
+
439
+ async function example() {
440
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
441
+ const api = new PortalApi();
442
+
443
+ const body = {
444
+ // string
445
+ portalId: portalId_example,
446
+ // Blob | Logo image file (PNG, JPEG, or SVG). Max 5MB.
447
+ file: BINARY_DATA_HERE,
448
+ } satisfies PostPortalLogoUploadRequest;
449
+
450
+ try {
451
+ const data = await api.postPortalLogoUpload(body);
452
+ console.log(data);
453
+ } catch (error) {
454
+ console.error(error);
455
+ }
456
+ }
457
+
458
+ // Run the test
459
+ example().catch(console.error);
460
+ ```
461
+
462
+ ### Parameters
463
+
464
+
465
+ | Name | Type | Description | Notes |
466
+ |------------- | ------------- | ------------- | -------------|
467
+ | **portalId** | `string` | | [Defaults to `undefined`] |
468
+ | **file** | `Blob` | Logo image file (PNG, JPEG, or SVG). Max 5MB. | [Defaults to `undefined`] |
469
+
470
+ ### Return type
471
+
472
+ [**GetPortalLogoUpload**](GetPortalLogoUpload.md)
473
+
474
+ ### Authorization
475
+
476
+ No authorization required
477
+
478
+ ### HTTP request headers
479
+
480
+ - **Content-Type**: `multipart/form-data`
481
+ - **Accept**: `application/json`
482
+
483
+
484
+ ### HTTP response details
485
+ | Status code | Description | Response headers |
486
+ |-------------|-------------|------------------|
487
+ | **200** | Logo uploaded successfully | - |
488
+ | **400** | Invalid file type or file too large | - |
489
+ | **404** | Portal not found | - |
490
+
491
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
492
+
493
+
356
494
  ## putPortalBranding
357
495
 
358
496
  > GetPortal putPortalBranding(portalId, putPortalBranding)
@@ -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
+
@@ -0,0 +1,38 @@
1
+
2
+ # PutSupportTicket
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `status` | string
10
+ `priority` | string
11
+ `assignedTo` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { PutSupportTicket } from '@easyedu/js-lsm-api'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "status": null,
21
+ "priority": null,
22
+ "assignedTo": null,
23
+ } satisfies PutSupportTicket
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as PutSupportTicket
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+