@easyedu/js-lsm-api 1.71.0 → 1.73.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 (43) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +10 -2
  3. package/dist/apis/ContentApi.d.ts +2 -2
  4. package/dist/apis/ContentApi.js +2 -2
  5. package/dist/apis/SystemApi.d.ts +97 -0
  6. package/dist/apis/SystemApi.js +234 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/ContentApi.d.ts +2 -2
  10. package/dist/esm/apis/ContentApi.js +2 -2
  11. package/dist/esm/apis/SystemApi.d.ts +97 -0
  12. package/dist/esm/apis/SystemApi.js +230 -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/GetSystemBillingItem.d.ts +80 -0
  16. package/dist/esm/models/GetSystemBillingItem.js +71 -0
  17. package/dist/esm/models/GetSystemBillingList.d.ts +57 -0
  18. package/dist/esm/models/GetSystemBillingList.js +60 -0
  19. package/dist/esm/models/GetSystemMetrics.d.ts +50 -0
  20. package/dist/esm/models/GetSystemMetrics.js +55 -0
  21. package/dist/esm/models/index.d.ts +3 -0
  22. package/dist/esm/models/index.js +3 -0
  23. package/dist/models/GetSystemBillingItem.d.ts +80 -0
  24. package/dist/models/GetSystemBillingItem.js +78 -0
  25. package/dist/models/GetSystemBillingList.d.ts +57 -0
  26. package/dist/models/GetSystemBillingList.js +67 -0
  27. package/dist/models/GetSystemMetrics.d.ts +50 -0
  28. package/dist/models/GetSystemMetrics.js +62 -0
  29. package/dist/models/index.d.ts +3 -0
  30. package/dist/models/index.js +3 -0
  31. package/docs/ContentApi.md +2 -1
  32. package/docs/GetSystemBillingItem.md +51 -0
  33. package/docs/GetSystemBillingList.md +42 -0
  34. package/docs/GetSystemMetrics.md +41 -0
  35. package/docs/SystemApi.md +345 -0
  36. package/package.json +1 -1
  37. package/src/apis/ContentApi.ts +2 -2
  38. package/src/apis/SystemApi.ts +283 -0
  39. package/src/apis/index.ts +1 -0
  40. package/src/models/GetSystemBillingItem.ts +136 -0
  41. package/src/models/GetSystemBillingList.ts +110 -0
  42. package/src/models/GetSystemMetrics.ts +93 -0
  43. package/src/models/index.ts +3 -0
@@ -0,0 +1,345 @@
1
+ # SystemApi
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
+ | [**getSystemBilling**](SystemApi.md#getsystembilling) | **GET** /system/billing | List mock platform billing information |
8
+ | [**getSystemMetrics**](SystemApi.md#getsystemmetrics) | **GET** /system/metrics | Get platform-wide metrics |
9
+ | [**getSystemPortal**](SystemApi.md#getsystemportal) | **GET** /system/portals/{portalId} | Get platform portal detail |
10
+ | [**getSystemPortals**](SystemApi.md#getsystemportals) | **GET** /system/portals | List all platform portals |
11
+ | [**getSystemSupportTickets**](SystemApi.md#getsystemsupporttickets) | **GET** /system/support/tickets | List open support tickets across the platform |
12
+
13
+
14
+
15
+ ## getSystemBilling
16
+
17
+ > GetSystemBillingList getSystemBilling(page, pageSize)
18
+
19
+ List mock platform billing information
20
+
21
+ ### Example
22
+
23
+ ```ts
24
+ import {
25
+ Configuration,
26
+ SystemApi,
27
+ } from '@easyedu/js-lsm-api';
28
+ import type { GetSystemBillingRequest } from '@easyedu/js-lsm-api';
29
+
30
+ async function example() {
31
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
32
+ const api = new SystemApi();
33
+
34
+ const body = {
35
+ // number (optional)
36
+ page: 56,
37
+ // number (optional)
38
+ pageSize: 56,
39
+ } satisfies GetSystemBillingRequest;
40
+
41
+ try {
42
+ const data = await api.getSystemBilling(body);
43
+ console.log(data);
44
+ } catch (error) {
45
+ console.error(error);
46
+ }
47
+ }
48
+
49
+ // Run the test
50
+ example().catch(console.error);
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+
56
+ | Name | Type | Description | Notes |
57
+ |------------- | ------------- | ------------- | -------------|
58
+ | **page** | `number` | | [Optional] [Defaults to `1`] |
59
+ | **pageSize** | `number` | | [Optional] [Defaults to `20`] |
60
+
61
+ ### Return type
62
+
63
+ [**GetSystemBillingList**](GetSystemBillingList.md)
64
+
65
+ ### Authorization
66
+
67
+ No authorization required
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: Not defined
72
+ - **Accept**: `application/json`
73
+
74
+
75
+ ### HTTP response details
76
+ | Status code | Description | Response headers |
77
+ |-------------|-------------|------------------|
78
+ | **200** | Mock billing list | - |
79
+ | **403** | Forbidden | - |
80
+
81
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
82
+
83
+
84
+ ## getSystemMetrics
85
+
86
+ > GetSystemMetrics getSystemMetrics()
87
+
88
+ Get platform-wide metrics
89
+
90
+ ### Example
91
+
92
+ ```ts
93
+ import {
94
+ Configuration,
95
+ SystemApi,
96
+ } from '@easyedu/js-lsm-api';
97
+ import type { GetSystemMetricsRequest } from '@easyedu/js-lsm-api';
98
+
99
+ async function example() {
100
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
101
+ const api = new SystemApi();
102
+
103
+ try {
104
+ const data = await api.getSystemMetrics();
105
+ console.log(data);
106
+ } catch (error) {
107
+ console.error(error);
108
+ }
109
+ }
110
+
111
+ // Run the test
112
+ example().catch(console.error);
113
+ ```
114
+
115
+ ### Parameters
116
+
117
+ This endpoint does not need any parameter.
118
+
119
+ ### Return type
120
+
121
+ [**GetSystemMetrics**](GetSystemMetrics.md)
122
+
123
+ ### Authorization
124
+
125
+ No authorization required
126
+
127
+ ### HTTP request headers
128
+
129
+ - **Content-Type**: Not defined
130
+ - **Accept**: `application/json`
131
+
132
+
133
+ ### HTTP response details
134
+ | Status code | Description | Response headers |
135
+ |-------------|-------------|------------------|
136
+ | **200** | Platform metrics | - |
137
+ | **403** | Forbidden | - |
138
+
139
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
140
+
141
+
142
+ ## getSystemPortal
143
+
144
+ > GetPortal getSystemPortal(portalId)
145
+
146
+ Get platform portal detail
147
+
148
+ ### Example
149
+
150
+ ```ts
151
+ import {
152
+ Configuration,
153
+ SystemApi,
154
+ } from '@easyedu/js-lsm-api';
155
+ import type { GetSystemPortalRequest } from '@easyedu/js-lsm-api';
156
+
157
+ async function example() {
158
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
159
+ const api = new SystemApi();
160
+
161
+ const body = {
162
+ // string
163
+ portalId: portalId_example,
164
+ } satisfies GetSystemPortalRequest;
165
+
166
+ try {
167
+ const data = await api.getSystemPortal(body);
168
+ console.log(data);
169
+ } catch (error) {
170
+ console.error(error);
171
+ }
172
+ }
173
+
174
+ // Run the test
175
+ example().catch(console.error);
176
+ ```
177
+
178
+ ### Parameters
179
+
180
+
181
+ | Name | Type | Description | Notes |
182
+ |------------- | ------------- | ------------- | -------------|
183
+ | **portalId** | `string` | | [Defaults to `undefined`] |
184
+
185
+ ### Return type
186
+
187
+ [**GetPortal**](GetPortal.md)
188
+
189
+ ### Authorization
190
+
191
+ No authorization required
192
+
193
+ ### HTTP request headers
194
+
195
+ - **Content-Type**: Not defined
196
+ - **Accept**: `application/json`
197
+
198
+
199
+ ### HTTP response details
200
+ | Status code | Description | Response headers |
201
+ |-------------|-------------|------------------|
202
+ | **200** | Platform portal detail | - |
203
+ | **403** | Forbidden | - |
204
+ | **404** | Portal not found | - |
205
+
206
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
207
+
208
+
209
+ ## getSystemPortals
210
+
211
+ > GetPortalList getSystemPortals(page, pageSize)
212
+
213
+ List all platform portals
214
+
215
+ ### Example
216
+
217
+ ```ts
218
+ import {
219
+ Configuration,
220
+ SystemApi,
221
+ } from '@easyedu/js-lsm-api';
222
+ import type { GetSystemPortalsRequest } from '@easyedu/js-lsm-api';
223
+
224
+ async function example() {
225
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
226
+ const api = new SystemApi();
227
+
228
+ const body = {
229
+ // number (optional)
230
+ page: 56,
231
+ // number (optional)
232
+ pageSize: 56,
233
+ } satisfies GetSystemPortalsRequest;
234
+
235
+ try {
236
+ const data = await api.getSystemPortals(body);
237
+ console.log(data);
238
+ } catch (error) {
239
+ console.error(error);
240
+ }
241
+ }
242
+
243
+ // Run the test
244
+ example().catch(console.error);
245
+ ```
246
+
247
+ ### Parameters
248
+
249
+
250
+ | Name | Type | Description | Notes |
251
+ |------------- | ------------- | ------------- | -------------|
252
+ | **page** | `number` | | [Optional] [Defaults to `1`] |
253
+ | **pageSize** | `number` | | [Optional] [Defaults to `20`] |
254
+
255
+ ### Return type
256
+
257
+ [**GetPortalList**](GetPortalList.md)
258
+
259
+ ### Authorization
260
+
261
+ No authorization required
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: Not defined
266
+ - **Accept**: `application/json`
267
+
268
+
269
+ ### HTTP response details
270
+ | Status code | Description | Response headers |
271
+ |-------------|-------------|------------------|
272
+ | **200** | Platform portal list | - |
273
+ | **403** | Forbidden | - |
274
+
275
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
276
+
277
+
278
+ ## getSystemSupportTickets
279
+
280
+ > GetSupportTicketList getSystemSupportTickets(page, pageSize)
281
+
282
+ List open support tickets across the platform
283
+
284
+ ### Example
285
+
286
+ ```ts
287
+ import {
288
+ Configuration,
289
+ SystemApi,
290
+ } from '@easyedu/js-lsm-api';
291
+ import type { GetSystemSupportTicketsRequest } from '@easyedu/js-lsm-api';
292
+
293
+ async function example() {
294
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
295
+ const api = new SystemApi();
296
+
297
+ const body = {
298
+ // number (optional)
299
+ page: 56,
300
+ // number (optional)
301
+ pageSize: 56,
302
+ } satisfies GetSystemSupportTicketsRequest;
303
+
304
+ try {
305
+ const data = await api.getSystemSupportTickets(body);
306
+ console.log(data);
307
+ } catch (error) {
308
+ console.error(error);
309
+ }
310
+ }
311
+
312
+ // Run the test
313
+ example().catch(console.error);
314
+ ```
315
+
316
+ ### Parameters
317
+
318
+
319
+ | Name | Type | Description | Notes |
320
+ |------------- | ------------- | ------------- | -------------|
321
+ | **page** | `number` | | [Optional] [Defaults to `1`] |
322
+ | **pageSize** | `number` | | [Optional] [Defaults to `20`] |
323
+
324
+ ### Return type
325
+
326
+ [**GetSupportTicketList**](GetSupportTicketList.md)
327
+
328
+ ### Authorization
329
+
330
+ No authorization required
331
+
332
+ ### HTTP request headers
333
+
334
+ - **Content-Type**: Not defined
335
+ - **Accept**: `application/json`
336
+
337
+
338
+ ### HTTP response details
339
+ | Status code | Description | Response headers |
340
+ |-------------|-------------|------------------|
341
+ | **200** | Open platform support tickets | - |
342
+ | **403** | Forbidden | - |
343
+
344
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
345
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.71.0",
3
+ "version": "1.73.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -2081,7 +2081,7 @@ export class ContentApi extends runtime.BaseAPI {
2081
2081
  }
2082
2082
 
2083
2083
  /**
2084
- * Takes raw imsmanifest.xml content and returns the parsed manifest structure with validation warnings
2084
+ * Public endpoint that takes raw imsmanifest.xml content and returns only parsed values derived from the submitted manifest, plus validation warnings. Request body is limited to 1 MiB.
2085
2085
  * Parse and verify a SCORM manifest
2086
2086
  */
2087
2087
  async verifyScormManifestRaw(requestParameters: VerifyScormManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostVerifyManifest>> {
@@ -2092,7 +2092,7 @@ export class ContentApi extends runtime.BaseAPI {
2092
2092
  }
2093
2093
 
2094
2094
  /**
2095
- * Takes raw imsmanifest.xml content and returns the parsed manifest structure with validation warnings
2095
+ * Public endpoint that takes raw imsmanifest.xml content and returns only parsed values derived from the submitted manifest, plus validation warnings. Request body is limited to 1 MiB.
2096
2096
  * Parse and verify a SCORM manifest
2097
2097
  */
2098
2098
  async verifyScormManifest(requestParameters: VerifyScormManifestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostVerifyManifest> {
@@ -0,0 +1,283 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import * as runtime from '../runtime';
16
+ import {
17
+ type GetPortal,
18
+ GetPortalFromJSON,
19
+ GetPortalToJSON,
20
+ } from '../models/GetPortal';
21
+ import {
22
+ type GetPortalList,
23
+ GetPortalListFromJSON,
24
+ GetPortalListToJSON,
25
+ } from '../models/GetPortalList';
26
+ import {
27
+ type GetSupportTicketList,
28
+ GetSupportTicketListFromJSON,
29
+ GetSupportTicketListToJSON,
30
+ } from '../models/GetSupportTicketList';
31
+ import {
32
+ type GetSystemBillingList,
33
+ GetSystemBillingListFromJSON,
34
+ GetSystemBillingListToJSON,
35
+ } from '../models/GetSystemBillingList';
36
+ import {
37
+ type GetSystemMetrics,
38
+ GetSystemMetricsFromJSON,
39
+ GetSystemMetricsToJSON,
40
+ } from '../models/GetSystemMetrics';
41
+
42
+ export interface GetSystemBillingRequest {
43
+ page?: number;
44
+ pageSize?: number;
45
+ }
46
+
47
+ export interface GetSystemPortalRequest {
48
+ portalId: string;
49
+ }
50
+
51
+ export interface GetSystemPortalsRequest {
52
+ page?: number;
53
+ pageSize?: number;
54
+ }
55
+
56
+ export interface GetSystemSupportTicketsRequest {
57
+ page?: number;
58
+ pageSize?: number;
59
+ }
60
+
61
+ /**
62
+ *
63
+ */
64
+ export class SystemApi extends runtime.BaseAPI {
65
+
66
+ /**
67
+ * Creates request options for getSystemBilling without sending the request
68
+ */
69
+ async getSystemBillingRequestOpts(requestParameters: GetSystemBillingRequest): Promise<runtime.RequestOpts> {
70
+ const queryParameters: any = {};
71
+
72
+ if (requestParameters['page'] != null) {
73
+ queryParameters['page'] = requestParameters['page'];
74
+ }
75
+
76
+ if (requestParameters['pageSize'] != null) {
77
+ queryParameters['pageSize'] = requestParameters['pageSize'];
78
+ }
79
+
80
+ const headerParameters: runtime.HTTPHeaders = {};
81
+
82
+
83
+ let urlPath = `/system/billing`;
84
+
85
+ return {
86
+ path: urlPath,
87
+ method: 'GET',
88
+ headers: headerParameters,
89
+ query: queryParameters,
90
+ };
91
+ }
92
+
93
+ /**
94
+ * List mock platform billing information
95
+ */
96
+ async getSystemBillingRaw(requestParameters: GetSystemBillingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSystemBillingList>> {
97
+ const requestOptions = await this.getSystemBillingRequestOpts(requestParameters);
98
+ const response = await this.request(requestOptions, initOverrides);
99
+
100
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetSystemBillingListFromJSON(jsonValue));
101
+ }
102
+
103
+ /**
104
+ * List mock platform billing information
105
+ */
106
+ async getSystemBilling(requestParameters: GetSystemBillingRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSystemBillingList> {
107
+ const response = await this.getSystemBillingRaw(requestParameters, initOverrides);
108
+ return await response.value();
109
+ }
110
+
111
+ /**
112
+ * Creates request options for getSystemMetrics without sending the request
113
+ */
114
+ async getSystemMetricsRequestOpts(): Promise<runtime.RequestOpts> {
115
+ const queryParameters: any = {};
116
+
117
+ const headerParameters: runtime.HTTPHeaders = {};
118
+
119
+
120
+ let urlPath = `/system/metrics`;
121
+
122
+ return {
123
+ path: urlPath,
124
+ method: 'GET',
125
+ headers: headerParameters,
126
+ query: queryParameters,
127
+ };
128
+ }
129
+
130
+ /**
131
+ * Get platform-wide metrics
132
+ */
133
+ async getSystemMetricsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSystemMetrics>> {
134
+ const requestOptions = await this.getSystemMetricsRequestOpts();
135
+ const response = await this.request(requestOptions, initOverrides);
136
+
137
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetSystemMetricsFromJSON(jsonValue));
138
+ }
139
+
140
+ /**
141
+ * Get platform-wide metrics
142
+ */
143
+ async getSystemMetrics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSystemMetrics> {
144
+ const response = await this.getSystemMetricsRaw(initOverrides);
145
+ return await response.value();
146
+ }
147
+
148
+ /**
149
+ * Creates request options for getSystemPortal without sending the request
150
+ */
151
+ async getSystemPortalRequestOpts(requestParameters: GetSystemPortalRequest): Promise<runtime.RequestOpts> {
152
+ if (requestParameters['portalId'] == null) {
153
+ throw new runtime.RequiredError(
154
+ 'portalId',
155
+ 'Required parameter "portalId" was null or undefined when calling getSystemPortal().'
156
+ );
157
+ }
158
+
159
+ const queryParameters: any = {};
160
+
161
+ const headerParameters: runtime.HTTPHeaders = {};
162
+
163
+
164
+ let urlPath = `/system/portals/{portalId}`;
165
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
166
+
167
+ return {
168
+ path: urlPath,
169
+ method: 'GET',
170
+ headers: headerParameters,
171
+ query: queryParameters,
172
+ };
173
+ }
174
+
175
+ /**
176
+ * Get platform portal detail
177
+ */
178
+ async getSystemPortalRaw(requestParameters: GetSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>> {
179
+ const requestOptions = await this.getSystemPortalRequestOpts(requestParameters);
180
+ const response = await this.request(requestOptions, initOverrides);
181
+
182
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalFromJSON(jsonValue));
183
+ }
184
+
185
+ /**
186
+ * Get platform portal detail
187
+ */
188
+ async getSystemPortal(requestParameters: GetSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal> {
189
+ const response = await this.getSystemPortalRaw(requestParameters, initOverrides);
190
+ return await response.value();
191
+ }
192
+
193
+ /**
194
+ * Creates request options for getSystemPortals without sending the request
195
+ */
196
+ async getSystemPortalsRequestOpts(requestParameters: GetSystemPortalsRequest): Promise<runtime.RequestOpts> {
197
+ const queryParameters: any = {};
198
+
199
+ if (requestParameters['page'] != null) {
200
+ queryParameters['page'] = requestParameters['page'];
201
+ }
202
+
203
+ if (requestParameters['pageSize'] != null) {
204
+ queryParameters['pageSize'] = requestParameters['pageSize'];
205
+ }
206
+
207
+ const headerParameters: runtime.HTTPHeaders = {};
208
+
209
+
210
+ let urlPath = `/system/portals`;
211
+
212
+ return {
213
+ path: urlPath,
214
+ method: 'GET',
215
+ headers: headerParameters,
216
+ query: queryParameters,
217
+ };
218
+ }
219
+
220
+ /**
221
+ * List all platform portals
222
+ */
223
+ async getSystemPortalsRaw(requestParameters: GetSystemPortalsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalList>> {
224
+ const requestOptions = await this.getSystemPortalsRequestOpts(requestParameters);
225
+ const response = await this.request(requestOptions, initOverrides);
226
+
227
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalListFromJSON(jsonValue));
228
+ }
229
+
230
+ /**
231
+ * List all platform portals
232
+ */
233
+ async getSystemPortals(requestParameters: GetSystemPortalsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalList> {
234
+ const response = await this.getSystemPortalsRaw(requestParameters, initOverrides);
235
+ return await response.value();
236
+ }
237
+
238
+ /**
239
+ * Creates request options for getSystemSupportTickets without sending the request
240
+ */
241
+ async getSystemSupportTicketsRequestOpts(requestParameters: GetSystemSupportTicketsRequest): Promise<runtime.RequestOpts> {
242
+ const queryParameters: any = {};
243
+
244
+ if (requestParameters['page'] != null) {
245
+ queryParameters['page'] = requestParameters['page'];
246
+ }
247
+
248
+ if (requestParameters['pageSize'] != null) {
249
+ queryParameters['pageSize'] = requestParameters['pageSize'];
250
+ }
251
+
252
+ const headerParameters: runtime.HTTPHeaders = {};
253
+
254
+
255
+ let urlPath = `/system/support/tickets`;
256
+
257
+ return {
258
+ path: urlPath,
259
+ method: 'GET',
260
+ headers: headerParameters,
261
+ query: queryParameters,
262
+ };
263
+ }
264
+
265
+ /**
266
+ * List open support tickets across the platform
267
+ */
268
+ async getSystemSupportTicketsRaw(requestParameters: GetSystemSupportTicketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetSupportTicketList>> {
269
+ const requestOptions = await this.getSystemSupportTicketsRequestOpts(requestParameters);
270
+ const response = await this.request(requestOptions, initOverrides);
271
+
272
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetSupportTicketListFromJSON(jsonValue));
273
+ }
274
+
275
+ /**
276
+ * List open support tickets across the platform
277
+ */
278
+ async getSystemSupportTickets(requestParameters: GetSystemSupportTicketsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSupportTicketList> {
279
+ const response = await this.getSystemSupportTicketsRaw(requestParameters, initOverrides);
280
+ return await response.value();
281
+ }
282
+
283
+ }
package/src/apis/index.ts CHANGED
@@ -17,4 +17,5 @@ export * from './QuizApi';
17
17
  export * from './ReportingApi';
18
18
  export * from './RoleApi';
19
19
  export * from './SupportTicketApi';
20
+ export * from './SystemApi';
20
21
  export * from './UserApi';