@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.
- package/.openapi-generator/FILES +22 -0
- package/README.md +23 -2
- package/dist/apis/CourseApi.d.ts +32 -1
- package/dist/apis/CourseApi.js +99 -0
- package/dist/apis/SupportTicketApi.d.ts +191 -0
- package/dist/apis/SupportTicketApi.js +457 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/CourseApi.d.ts +32 -1
- package/dist/esm/apis/CourseApi.js +100 -1
- package/dist/esm/apis/SupportTicketApi.d.ts +191 -0
- package/dist/esm/apis/SupportTicketApi.js +453 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/DownloadSupportTicketAttachment200Response.d.ts +32 -0
- package/dist/esm/models/DownloadSupportTicketAttachment200Response.js +43 -0
- package/dist/esm/models/GetCourseImageUpload.d.ts +32 -0
- package/dist/esm/models/GetCourseImageUpload.js +43 -0
- package/dist/esm/models/GetSupportTicket.d.ts +142 -0
- package/dist/esm/models/GetSupportTicket.js +120 -0
- package/dist/esm/models/GetSupportTicketAttachment.d.ts +62 -0
- package/dist/esm/models/GetSupportTicketAttachment.js +63 -0
- package/dist/esm/models/GetSupportTicketComment.d.ts +57 -0
- package/dist/esm/models/GetSupportTicketComment.js +60 -0
- package/dist/esm/models/GetSupportTicketList.d.ts +57 -0
- package/dist/esm/models/GetSupportTicketList.js +60 -0
- package/dist/esm/models/PostSupportTicket.d.ts +71 -0
- package/dist/esm/models/PostSupportTicket.js +74 -0
- package/dist/esm/models/PostSupportTicketComment.d.ts +38 -0
- package/dist/esm/models/PostSupportTicketComment.js +45 -0
- package/dist/esm/models/PutCourse.d.ts +0 -6
- package/dist/esm/models/PutCourse.js +0 -2
- package/dist/esm/models/PutSupportTicket.d.ts +63 -0
- package/dist/esm/models/PutSupportTicket.js +62 -0
- package/dist/esm/models/SupportTicketUser.d.ts +50 -0
- package/dist/esm/models/SupportTicketUser.js +55 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/DownloadSupportTicketAttachment200Response.d.ts +32 -0
- package/dist/models/DownloadSupportTicketAttachment200Response.js +50 -0
- package/dist/models/GetCourseImageUpload.d.ts +32 -0
- package/dist/models/GetCourseImageUpload.js +50 -0
- package/dist/models/GetSupportTicket.d.ts +142 -0
- package/dist/models/GetSupportTicket.js +128 -0
- package/dist/models/GetSupportTicketAttachment.d.ts +62 -0
- package/dist/models/GetSupportTicketAttachment.js +70 -0
- package/dist/models/GetSupportTicketComment.d.ts +57 -0
- package/dist/models/GetSupportTicketComment.js +67 -0
- package/dist/models/GetSupportTicketList.d.ts +57 -0
- package/dist/models/GetSupportTicketList.js +67 -0
- package/dist/models/PostSupportTicket.d.ts +71 -0
- package/dist/models/PostSupportTicket.js +82 -0
- package/dist/models/PostSupportTicketComment.d.ts +38 -0
- package/dist/models/PostSupportTicketComment.js +52 -0
- package/dist/models/PutCourse.d.ts +0 -6
- package/dist/models/PutCourse.js +0 -2
- package/dist/models/PutSupportTicket.d.ts +63 -0
- package/dist/models/PutSupportTicket.js +70 -0
- package/dist/models/SupportTicketUser.d.ts +50 -0
- package/dist/models/SupportTicketUser.js +62 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/CourseApi.md +138 -0
- package/docs/DownloadSupportTicketAttachment200Response.md +34 -0
- package/docs/GetCourseImageUpload.md +34 -0
- package/docs/GetSupportTicket.md +60 -0
- package/docs/GetSupportTicketAttachment.md +44 -0
- package/docs/GetSupportTicketComment.md +42 -0
- package/docs/GetSupportTicketList.md +42 -0
- package/docs/PostSupportTicket.md +40 -0
- package/docs/PostSupportTicketComment.md +36 -0
- package/docs/PutCourse.md +0 -2
- package/docs/PutSupportTicket.md +38 -0
- package/docs/SupportTicketApi.md +651 -0
- package/docs/SupportTicketUser.md +40 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +129 -0
- package/src/apis/SupportTicketApi.ts +599 -0
- package/src/apis/index.ts +1 -0
- package/src/models/DownloadSupportTicketAttachment200Response.ts +66 -0
- package/src/models/GetCourseImageUpload.ts +66 -0
- package/src/models/GetSupportTicket.ts +231 -0
- package/src/models/GetSupportTicketAttachment.ts +111 -0
- package/src/models/GetSupportTicketComment.ts +110 -0
- package/src/models/GetSupportTicketList.ts +110 -0
- package/src/models/PostSupportTicket.ts +118 -0
- package/src/models/PostSupportTicketComment.ts +74 -0
- package/src/models/PutCourse.ts +0 -8
- package/src/models/PutSupportTicket.ts +104 -0
- package/src/models/SupportTicketUser.ts +93 -0
- package/src/models/index.ts +10 -0
|
@@ -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
|
+
|
|
@@ -0,0 +1,651 @@
|
|
|
1
|
+
# SupportTicketApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com/stage1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**closeSupportTicket**](SupportTicketApi.md#closesupportticket) | **POST** /support/tickets/{ticketId}/close | Close a support ticket |
|
|
8
|
+
| [**downloadSupportTicketAttachment**](SupportTicketApi.md#downloadsupportticketattachment) | **GET** /support/tickets/{ticketId}/attachments/{attachmentId}/download | Download a ticket attachment |
|
|
9
|
+
| [**getSupportTicket**](SupportTicketApi.md#getsupportticket) | **GET** /support/tickets/{ticketId} | Get support ticket details |
|
|
10
|
+
| [**getSupportTicketComments**](SupportTicketApi.md#getsupportticketcomments) | **GET** /support/tickets/{ticketId}/comments | Get comments for a ticket |
|
|
11
|
+
| [**getSupportTickets**](SupportTicketApi.md#getsupporttickets) | **GET** /support/tickets | List support tickets |
|
|
12
|
+
| [**postSupportTicket**](SupportTicketApi.md#postsupportticket) | **POST** /support/tickets | Create a support ticket |
|
|
13
|
+
| [**postSupportTicketAttachment**](SupportTicketApi.md#postsupportticketattachment) | **POST** /support/tickets/{ticketId}/attachments | Upload an attachment to a ticket |
|
|
14
|
+
| [**postSupportTicketComment**](SupportTicketApi.md#postsupportticketcomment) | **POST** /support/tickets/{ticketId}/comments | Add a comment to a ticket |
|
|
15
|
+
| [**putSupportTicket**](SupportTicketApi.md#putsupportticket) | **PUT** /support/tickets/{ticketId} | Update a support ticket |
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## closeSupportTicket
|
|
20
|
+
|
|
21
|
+
> closeSupportTicket(ticketId)
|
|
22
|
+
|
|
23
|
+
Close a support ticket
|
|
24
|
+
|
|
25
|
+
### Example
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import {
|
|
29
|
+
Configuration,
|
|
30
|
+
SupportTicketApi,
|
|
31
|
+
} from '@easyedu/js-lsm-api';
|
|
32
|
+
import type { CloseSupportTicketRequest } from '@easyedu/js-lsm-api';
|
|
33
|
+
|
|
34
|
+
async function example() {
|
|
35
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
36
|
+
const api = new SupportTicketApi();
|
|
37
|
+
|
|
38
|
+
const body = {
|
|
39
|
+
// string
|
|
40
|
+
ticketId: ticketId_example,
|
|
41
|
+
} satisfies CloseSupportTicketRequest;
|
|
42
|
+
|
|
43
|
+
try {
|
|
44
|
+
const data = await api.closeSupportTicket(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
|
+
| **ticketId** | `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
|
+
| **200** | Ticket closed | - |
|
|
80
|
+
| **401** | Unauthorized | - |
|
|
81
|
+
| **403** | Forbidden | - |
|
|
82
|
+
| **404** | Ticket not found | - |
|
|
83
|
+
|
|
84
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## downloadSupportTicketAttachment
|
|
88
|
+
|
|
89
|
+
> DownloadSupportTicketAttachment200Response downloadSupportTicketAttachment(ticketId, attachmentId)
|
|
90
|
+
|
|
91
|
+
Download a ticket attachment
|
|
92
|
+
|
|
93
|
+
### Example
|
|
94
|
+
|
|
95
|
+
```ts
|
|
96
|
+
import {
|
|
97
|
+
Configuration,
|
|
98
|
+
SupportTicketApi,
|
|
99
|
+
} from '@easyedu/js-lsm-api';
|
|
100
|
+
import type { DownloadSupportTicketAttachmentRequest } from '@easyedu/js-lsm-api';
|
|
101
|
+
|
|
102
|
+
async function example() {
|
|
103
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
104
|
+
const api = new SupportTicketApi();
|
|
105
|
+
|
|
106
|
+
const body = {
|
|
107
|
+
// string
|
|
108
|
+
ticketId: ticketId_example,
|
|
109
|
+
// string
|
|
110
|
+
attachmentId: attachmentId_example,
|
|
111
|
+
} satisfies DownloadSupportTicketAttachmentRequest;
|
|
112
|
+
|
|
113
|
+
try {
|
|
114
|
+
const data = await api.downloadSupportTicketAttachment(body);
|
|
115
|
+
console.log(data);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error(error);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Run the test
|
|
122
|
+
example().catch(console.error);
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Parameters
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
| Name | Type | Description | Notes |
|
|
129
|
+
|------------- | ------------- | ------------- | -------------|
|
|
130
|
+
| **ticketId** | `string` | | [Defaults to `undefined`] |
|
|
131
|
+
| **attachmentId** | `string` | | [Defaults to `undefined`] |
|
|
132
|
+
|
|
133
|
+
### Return type
|
|
134
|
+
|
|
135
|
+
[**DownloadSupportTicketAttachment200Response**](DownloadSupportTicketAttachment200Response.md)
|
|
136
|
+
|
|
137
|
+
### Authorization
|
|
138
|
+
|
|
139
|
+
No authorization required
|
|
140
|
+
|
|
141
|
+
### HTTP request headers
|
|
142
|
+
|
|
143
|
+
- **Content-Type**: Not defined
|
|
144
|
+
- **Accept**: `application/json`
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### HTTP response details
|
|
148
|
+
| Status code | Description | Response headers |
|
|
149
|
+
|-------------|-------------|------------------|
|
|
150
|
+
| **200** | Presigned download URL | - |
|
|
151
|
+
| **401** | Unauthorized | - |
|
|
152
|
+
| **403** | Forbidden | - |
|
|
153
|
+
| **404** | Attachment not found | - |
|
|
154
|
+
|
|
155
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## getSupportTicket
|
|
159
|
+
|
|
160
|
+
> GetSupportTicket getSupportTicket(ticketId)
|
|
161
|
+
|
|
162
|
+
Get support ticket details
|
|
163
|
+
|
|
164
|
+
### Example
|
|
165
|
+
|
|
166
|
+
```ts
|
|
167
|
+
import {
|
|
168
|
+
Configuration,
|
|
169
|
+
SupportTicketApi,
|
|
170
|
+
} from '@easyedu/js-lsm-api';
|
|
171
|
+
import type { GetSupportTicketRequest } from '@easyedu/js-lsm-api';
|
|
172
|
+
|
|
173
|
+
async function example() {
|
|
174
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
175
|
+
const api = new SupportTicketApi();
|
|
176
|
+
|
|
177
|
+
const body = {
|
|
178
|
+
// string
|
|
179
|
+
ticketId: ticketId_example,
|
|
180
|
+
} satisfies GetSupportTicketRequest;
|
|
181
|
+
|
|
182
|
+
try {
|
|
183
|
+
const data = await api.getSupportTicket(body);
|
|
184
|
+
console.log(data);
|
|
185
|
+
} catch (error) {
|
|
186
|
+
console.error(error);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Run the test
|
|
191
|
+
example().catch(console.error);
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Parameters
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
| Name | Type | Description | Notes |
|
|
198
|
+
|------------- | ------------- | ------------- | -------------|
|
|
199
|
+
| **ticketId** | `string` | | [Defaults to `undefined`] |
|
|
200
|
+
|
|
201
|
+
### Return type
|
|
202
|
+
|
|
203
|
+
[**GetSupportTicket**](GetSupportTicket.md)
|
|
204
|
+
|
|
205
|
+
### Authorization
|
|
206
|
+
|
|
207
|
+
No authorization required
|
|
208
|
+
|
|
209
|
+
### HTTP request headers
|
|
210
|
+
|
|
211
|
+
- **Content-Type**: Not defined
|
|
212
|
+
- **Accept**: `application/json`
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### HTTP response details
|
|
216
|
+
| Status code | Description | Response headers |
|
|
217
|
+
|-------------|-------------|------------------|
|
|
218
|
+
| **200** | Support ticket details | - |
|
|
219
|
+
| **401** | Unauthorized | - |
|
|
220
|
+
| **403** | Forbidden | - |
|
|
221
|
+
| **404** | Ticket not found | - |
|
|
222
|
+
|
|
223
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## getSupportTicketComments
|
|
227
|
+
|
|
228
|
+
> Array<GetSupportTicketComment> getSupportTicketComments(ticketId)
|
|
229
|
+
|
|
230
|
+
Get comments for a ticket
|
|
231
|
+
|
|
232
|
+
### Example
|
|
233
|
+
|
|
234
|
+
```ts
|
|
235
|
+
import {
|
|
236
|
+
Configuration,
|
|
237
|
+
SupportTicketApi,
|
|
238
|
+
} from '@easyedu/js-lsm-api';
|
|
239
|
+
import type { GetSupportTicketCommentsRequest } from '@easyedu/js-lsm-api';
|
|
240
|
+
|
|
241
|
+
async function example() {
|
|
242
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
243
|
+
const api = new SupportTicketApi();
|
|
244
|
+
|
|
245
|
+
const body = {
|
|
246
|
+
// string
|
|
247
|
+
ticketId: ticketId_example,
|
|
248
|
+
} satisfies GetSupportTicketCommentsRequest;
|
|
249
|
+
|
|
250
|
+
try {
|
|
251
|
+
const data = await api.getSupportTicketComments(body);
|
|
252
|
+
console.log(data);
|
|
253
|
+
} catch (error) {
|
|
254
|
+
console.error(error);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// Run the test
|
|
259
|
+
example().catch(console.error);
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### Parameters
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
| Name | Type | Description | Notes |
|
|
266
|
+
|------------- | ------------- | ------------- | -------------|
|
|
267
|
+
| **ticketId** | `string` | | [Defaults to `undefined`] |
|
|
268
|
+
|
|
269
|
+
### Return type
|
|
270
|
+
|
|
271
|
+
[**Array<GetSupportTicketComment>**](GetSupportTicketComment.md)
|
|
272
|
+
|
|
273
|
+
### Authorization
|
|
274
|
+
|
|
275
|
+
No authorization required
|
|
276
|
+
|
|
277
|
+
### HTTP request headers
|
|
278
|
+
|
|
279
|
+
- **Content-Type**: Not defined
|
|
280
|
+
- **Accept**: `application/json`
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
### HTTP response details
|
|
284
|
+
| Status code | Description | Response headers |
|
|
285
|
+
|-------------|-------------|------------------|
|
|
286
|
+
| **200** | List of comments | - |
|
|
287
|
+
| **401** | Unauthorized | - |
|
|
288
|
+
| **403** | Forbidden | - |
|
|
289
|
+
| **404** | Ticket not found | - |
|
|
290
|
+
|
|
291
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## getSupportTickets
|
|
295
|
+
|
|
296
|
+
> GetSupportTicketList getSupportTickets(page, pageSize, status, priority, category)
|
|
297
|
+
|
|
298
|
+
List support tickets
|
|
299
|
+
|
|
300
|
+
### Example
|
|
301
|
+
|
|
302
|
+
```ts
|
|
303
|
+
import {
|
|
304
|
+
Configuration,
|
|
305
|
+
SupportTicketApi,
|
|
306
|
+
} from '@easyedu/js-lsm-api';
|
|
307
|
+
import type { GetSupportTicketsRequest } from '@easyedu/js-lsm-api';
|
|
308
|
+
|
|
309
|
+
async function example() {
|
|
310
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
311
|
+
const api = new SupportTicketApi();
|
|
312
|
+
|
|
313
|
+
const body = {
|
|
314
|
+
// number (optional)
|
|
315
|
+
page: 56,
|
|
316
|
+
// number (optional)
|
|
317
|
+
pageSize: 56,
|
|
318
|
+
// 'Open' | 'InProgress' | 'Closed' (optional)
|
|
319
|
+
status: status_example,
|
|
320
|
+
// 'Low' | 'Medium' | 'High' | 'Critical' (optional)
|
|
321
|
+
priority: priority_example,
|
|
322
|
+
// 'Bug' | 'FeatureRequest' | 'AccountIssue' | 'ContentIssue' | 'Other' (optional)
|
|
323
|
+
category: category_example,
|
|
324
|
+
} satisfies GetSupportTicketsRequest;
|
|
325
|
+
|
|
326
|
+
try {
|
|
327
|
+
const data = await api.getSupportTickets(body);
|
|
328
|
+
console.log(data);
|
|
329
|
+
} catch (error) {
|
|
330
|
+
console.error(error);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// Run the test
|
|
335
|
+
example().catch(console.error);
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
### Parameters
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
| Name | Type | Description | Notes |
|
|
342
|
+
|------------- | ------------- | ------------- | -------------|
|
|
343
|
+
| **page** | `number` | | [Optional] [Defaults to `1`] |
|
|
344
|
+
| **pageSize** | `number` | | [Optional] [Defaults to `20`] |
|
|
345
|
+
| **status** | `Open`, `InProgress`, `Closed` | | [Optional] [Defaults to `undefined`] [Enum: Open, InProgress, Closed] |
|
|
346
|
+
| **priority** | `Low`, `Medium`, `High`, `Critical` | | [Optional] [Defaults to `undefined`] [Enum: Low, Medium, High, Critical] |
|
|
347
|
+
| **category** | `Bug`, `FeatureRequest`, `AccountIssue`, `ContentIssue`, `Other` | | [Optional] [Defaults to `undefined`] [Enum: Bug, FeatureRequest, AccountIssue, ContentIssue, Other] |
|
|
348
|
+
|
|
349
|
+
### Return type
|
|
350
|
+
|
|
351
|
+
[**GetSupportTicketList**](GetSupportTicketList.md)
|
|
352
|
+
|
|
353
|
+
### Authorization
|
|
354
|
+
|
|
355
|
+
No authorization required
|
|
356
|
+
|
|
357
|
+
### HTTP request headers
|
|
358
|
+
|
|
359
|
+
- **Content-Type**: Not defined
|
|
360
|
+
- **Accept**: `application/json`
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
### HTTP response details
|
|
364
|
+
| Status code | Description | Response headers |
|
|
365
|
+
|-------------|-------------|------------------|
|
|
366
|
+
| **200** | Paginated list of support tickets | - |
|
|
367
|
+
| **401** | Unauthorized | - |
|
|
368
|
+
| **403** | Forbidden | - |
|
|
369
|
+
|
|
370
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
## postSupportTicket
|
|
374
|
+
|
|
375
|
+
> GetSupportTicket postSupportTicket(postSupportTicket)
|
|
376
|
+
|
|
377
|
+
Create a support ticket
|
|
378
|
+
|
|
379
|
+
### Example
|
|
380
|
+
|
|
381
|
+
```ts
|
|
382
|
+
import {
|
|
383
|
+
Configuration,
|
|
384
|
+
SupportTicketApi,
|
|
385
|
+
} from '@easyedu/js-lsm-api';
|
|
386
|
+
import type { PostSupportTicketRequest } from '@easyedu/js-lsm-api';
|
|
387
|
+
|
|
388
|
+
async function example() {
|
|
389
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
390
|
+
const api = new SupportTicketApi();
|
|
391
|
+
|
|
392
|
+
const body = {
|
|
393
|
+
// PostSupportTicket
|
|
394
|
+
postSupportTicket: ...,
|
|
395
|
+
} satisfies PostSupportTicketRequest;
|
|
396
|
+
|
|
397
|
+
try {
|
|
398
|
+
const data = await api.postSupportTicket(body);
|
|
399
|
+
console.log(data);
|
|
400
|
+
} catch (error) {
|
|
401
|
+
console.error(error);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// Run the test
|
|
406
|
+
example().catch(console.error);
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
### Parameters
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
| Name | Type | Description | Notes |
|
|
413
|
+
|------------- | ------------- | ------------- | -------------|
|
|
414
|
+
| **postSupportTicket** | [PostSupportTicket](PostSupportTicket.md) | | |
|
|
415
|
+
|
|
416
|
+
### Return type
|
|
417
|
+
|
|
418
|
+
[**GetSupportTicket**](GetSupportTicket.md)
|
|
419
|
+
|
|
420
|
+
### Authorization
|
|
421
|
+
|
|
422
|
+
No authorization required
|
|
423
|
+
|
|
424
|
+
### HTTP request headers
|
|
425
|
+
|
|
426
|
+
- **Content-Type**: `application/json`
|
|
427
|
+
- **Accept**: `application/json`
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
### HTTP response details
|
|
431
|
+
| Status code | Description | Response headers |
|
|
432
|
+
|-------------|-------------|------------------|
|
|
433
|
+
| **201** | Ticket created | - |
|
|
434
|
+
| **401** | Unauthorized | - |
|
|
435
|
+
| **403** | Forbidden | - |
|
|
436
|
+
|
|
437
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
## postSupportTicketAttachment
|
|
441
|
+
|
|
442
|
+
> GetSupportTicketAttachment postSupportTicketAttachment(ticketId, file)
|
|
443
|
+
|
|
444
|
+
Upload an attachment to a ticket
|
|
445
|
+
|
|
446
|
+
### Example
|
|
447
|
+
|
|
448
|
+
```ts
|
|
449
|
+
import {
|
|
450
|
+
Configuration,
|
|
451
|
+
SupportTicketApi,
|
|
452
|
+
} from '@easyedu/js-lsm-api';
|
|
453
|
+
import type { PostSupportTicketAttachmentRequest } from '@easyedu/js-lsm-api';
|
|
454
|
+
|
|
455
|
+
async function example() {
|
|
456
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
457
|
+
const api = new SupportTicketApi();
|
|
458
|
+
|
|
459
|
+
const body = {
|
|
460
|
+
// string
|
|
461
|
+
ticketId: ticketId_example,
|
|
462
|
+
// Blob
|
|
463
|
+
file: BINARY_DATA_HERE,
|
|
464
|
+
} satisfies PostSupportTicketAttachmentRequest;
|
|
465
|
+
|
|
466
|
+
try {
|
|
467
|
+
const data = await api.postSupportTicketAttachment(body);
|
|
468
|
+
console.log(data);
|
|
469
|
+
} catch (error) {
|
|
470
|
+
console.error(error);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
// Run the test
|
|
475
|
+
example().catch(console.error);
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
### Parameters
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
| Name | Type | Description | Notes |
|
|
482
|
+
|------------- | ------------- | ------------- | -------------|
|
|
483
|
+
| **ticketId** | `string` | | [Defaults to `undefined`] |
|
|
484
|
+
| **file** | `Blob` | | [Defaults to `undefined`] |
|
|
485
|
+
|
|
486
|
+
### Return type
|
|
487
|
+
|
|
488
|
+
[**GetSupportTicketAttachment**](GetSupportTicketAttachment.md)
|
|
489
|
+
|
|
490
|
+
### Authorization
|
|
491
|
+
|
|
492
|
+
No authorization required
|
|
493
|
+
|
|
494
|
+
### HTTP request headers
|
|
495
|
+
|
|
496
|
+
- **Content-Type**: `multipart/form-data`
|
|
497
|
+
- **Accept**: `application/json`
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
### HTTP response details
|
|
501
|
+
| Status code | Description | Response headers |
|
|
502
|
+
|-------------|-------------|------------------|
|
|
503
|
+
| **201** | Attachment uploaded | - |
|
|
504
|
+
| **401** | Unauthorized | - |
|
|
505
|
+
| **403** | Forbidden | - |
|
|
506
|
+
| **404** | Ticket not found | - |
|
|
507
|
+
|
|
508
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
## postSupportTicketComment
|
|
512
|
+
|
|
513
|
+
> GetSupportTicketComment postSupportTicketComment(ticketId, postSupportTicketComment)
|
|
514
|
+
|
|
515
|
+
Add a comment to a ticket
|
|
516
|
+
|
|
517
|
+
### Example
|
|
518
|
+
|
|
519
|
+
```ts
|
|
520
|
+
import {
|
|
521
|
+
Configuration,
|
|
522
|
+
SupportTicketApi,
|
|
523
|
+
} from '@easyedu/js-lsm-api';
|
|
524
|
+
import type { PostSupportTicketCommentRequest } from '@easyedu/js-lsm-api';
|
|
525
|
+
|
|
526
|
+
async function example() {
|
|
527
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
528
|
+
const api = new SupportTicketApi();
|
|
529
|
+
|
|
530
|
+
const body = {
|
|
531
|
+
// string
|
|
532
|
+
ticketId: ticketId_example,
|
|
533
|
+
// PostSupportTicketComment
|
|
534
|
+
postSupportTicketComment: ...,
|
|
535
|
+
} satisfies PostSupportTicketCommentRequest;
|
|
536
|
+
|
|
537
|
+
try {
|
|
538
|
+
const data = await api.postSupportTicketComment(body);
|
|
539
|
+
console.log(data);
|
|
540
|
+
} catch (error) {
|
|
541
|
+
console.error(error);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
// Run the test
|
|
546
|
+
example().catch(console.error);
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
### Parameters
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
| Name | Type | Description | Notes |
|
|
553
|
+
|------------- | ------------- | ------------- | -------------|
|
|
554
|
+
| **ticketId** | `string` | | [Defaults to `undefined`] |
|
|
555
|
+
| **postSupportTicketComment** | [PostSupportTicketComment](PostSupportTicketComment.md) | | |
|
|
556
|
+
|
|
557
|
+
### Return type
|
|
558
|
+
|
|
559
|
+
[**GetSupportTicketComment**](GetSupportTicketComment.md)
|
|
560
|
+
|
|
561
|
+
### Authorization
|
|
562
|
+
|
|
563
|
+
No authorization required
|
|
564
|
+
|
|
565
|
+
### HTTP request headers
|
|
566
|
+
|
|
567
|
+
- **Content-Type**: `application/json`
|
|
568
|
+
- **Accept**: `application/json`
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
### HTTP response details
|
|
572
|
+
| Status code | Description | Response headers |
|
|
573
|
+
|-------------|-------------|------------------|
|
|
574
|
+
| **201** | Comment added | - |
|
|
575
|
+
| **401** | Unauthorized | - |
|
|
576
|
+
| **403** | Forbidden | - |
|
|
577
|
+
| **404** | Ticket not found | - |
|
|
578
|
+
|
|
579
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
## putSupportTicket
|
|
583
|
+
|
|
584
|
+
> putSupportTicket(ticketId, putSupportTicket)
|
|
585
|
+
|
|
586
|
+
Update a support ticket
|
|
587
|
+
|
|
588
|
+
### Example
|
|
589
|
+
|
|
590
|
+
```ts
|
|
591
|
+
import {
|
|
592
|
+
Configuration,
|
|
593
|
+
SupportTicketApi,
|
|
594
|
+
} from '@easyedu/js-lsm-api';
|
|
595
|
+
import type { PutSupportTicketRequest } from '@easyedu/js-lsm-api';
|
|
596
|
+
|
|
597
|
+
async function example() {
|
|
598
|
+
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
599
|
+
const api = new SupportTicketApi();
|
|
600
|
+
|
|
601
|
+
const body = {
|
|
602
|
+
// string
|
|
603
|
+
ticketId: ticketId_example,
|
|
604
|
+
// PutSupportTicket
|
|
605
|
+
putSupportTicket: ...,
|
|
606
|
+
} satisfies PutSupportTicketRequest;
|
|
607
|
+
|
|
608
|
+
try {
|
|
609
|
+
const data = await api.putSupportTicket(body);
|
|
610
|
+
console.log(data);
|
|
611
|
+
} catch (error) {
|
|
612
|
+
console.error(error);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// Run the test
|
|
617
|
+
example().catch(console.error);
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
### Parameters
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
| Name | Type | Description | Notes |
|
|
624
|
+
|------------- | ------------- | ------------- | -------------|
|
|
625
|
+
| **ticketId** | `string` | | [Defaults to `undefined`] |
|
|
626
|
+
| **putSupportTicket** | [PutSupportTicket](PutSupportTicket.md) | | |
|
|
627
|
+
|
|
628
|
+
### Return type
|
|
629
|
+
|
|
630
|
+
`void` (Empty response body)
|
|
631
|
+
|
|
632
|
+
### Authorization
|
|
633
|
+
|
|
634
|
+
No authorization required
|
|
635
|
+
|
|
636
|
+
### HTTP request headers
|
|
637
|
+
|
|
638
|
+
- **Content-Type**: `application/json`
|
|
639
|
+
- **Accept**: Not defined
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
### HTTP response details
|
|
643
|
+
| Status code | Description | Response headers |
|
|
644
|
+
|-------------|-------------|------------------|
|
|
645
|
+
| **200** | Ticket updated | - |
|
|
646
|
+
| **401** | Unauthorized | - |
|
|
647
|
+
| **403** | Forbidden | - |
|
|
648
|
+
| **404** | Ticket not found | - |
|
|
649
|
+
|
|
650
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
651
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# SupportTicketUser
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`email` | string
|
|
11
|
+
`firstName` | string
|
|
12
|
+
`lastName` | string
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { SupportTicketUser } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"id": null,
|
|
22
|
+
"email": null,
|
|
23
|
+
"firstName": null,
|
|
24
|
+
"lastName": null,
|
|
25
|
+
} satisfies SupportTicketUser
|
|
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 SupportTicketUser
|
|
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
|
+
|