@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.
- package/.openapi-generator/FILES +22 -0
- package/README.md +23 -2
- package/dist/apis/PortalApi.d.ts +32 -1
- package/dist/apis/PortalApi.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/PortalApi.d.ts +32 -1
- package/dist/esm/apis/PortalApi.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/GetPortal.d.ts +1 -1
- package/dist/esm/models/GetPortal.js +1 -3
- package/dist/esm/models/GetPortalLogoUpload.d.ts +32 -0
- package/dist/esm/models/GetPortalLogoUpload.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/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/GetPortal.d.ts +1 -1
- package/dist/models/GetPortal.js +1 -3
- package/dist/models/GetPortalLogoUpload.d.ts +32 -0
- package/dist/models/GetPortalLogoUpload.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/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/DownloadSupportTicketAttachment200Response.md +34 -0
- package/docs/GetPortalLogoUpload.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/PortalApi.md +138 -0
- package/docs/PostSupportTicket.md +40 -0
- package/docs/PostSupportTicketComment.md +36 -0
- 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/PortalApi.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/GetPortal.ts +2 -3
- package/src/models/GetPortalLogoUpload.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/PutSupportTicket.ts +104 -0
- package/src/models/SupportTicketUser.ts +93 -0
- package/src/models/index.ts +10 -0
package/src/apis/PortalApi.ts
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
GetPortal,
|
|
19
19
|
GetPortalList,
|
|
20
|
+
GetPortalLogoUpload,
|
|
20
21
|
GetPortalUserList,
|
|
21
22
|
PostPortal,
|
|
22
23
|
PostPortalInvite,
|
|
@@ -27,6 +28,8 @@ import {
|
|
|
27
28
|
GetPortalToJSON,
|
|
28
29
|
GetPortalListFromJSON,
|
|
29
30
|
GetPortalListToJSON,
|
|
31
|
+
GetPortalLogoUploadFromJSON,
|
|
32
|
+
GetPortalLogoUploadToJSON,
|
|
30
33
|
GetPortalUserListFromJSON,
|
|
31
34
|
GetPortalUserListToJSON,
|
|
32
35
|
PostPortalFromJSON,
|
|
@@ -37,6 +40,10 @@ import {
|
|
|
37
40
|
PutPortalBrandingToJSON,
|
|
38
41
|
} from '../models/index';
|
|
39
42
|
|
|
43
|
+
export interface DeletePortalLogoRequest {
|
|
44
|
+
portalId: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
export interface GetPortalByIdRequest {
|
|
41
48
|
portalId: string;
|
|
42
49
|
}
|
|
@@ -59,6 +66,11 @@ export interface PostPortalRequest {
|
|
|
59
66
|
postPortal: PostPortal;
|
|
60
67
|
}
|
|
61
68
|
|
|
69
|
+
export interface PostPortalLogoUploadRequest {
|
|
70
|
+
portalId: string;
|
|
71
|
+
file: Blob;
|
|
72
|
+
}
|
|
73
|
+
|
|
62
74
|
export interface PutPortalBrandingRequest {
|
|
63
75
|
portalId: string;
|
|
64
76
|
putPortalBranding: PutPortalBranding;
|
|
@@ -73,6 +85,50 @@ export interface UpdateSelectedPortalRequest {
|
|
|
73
85
|
*/
|
|
74
86
|
export class PortalApi extends runtime.BaseAPI {
|
|
75
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Creates request options for deletePortalLogo without sending the request
|
|
90
|
+
*/
|
|
91
|
+
async deletePortalLogoRequestOpts(requestParameters: DeletePortalLogoRequest): Promise<runtime.RequestOpts> {
|
|
92
|
+
if (requestParameters['portalId'] == null) {
|
|
93
|
+
throw new runtime.RequiredError(
|
|
94
|
+
'portalId',
|
|
95
|
+
'Required parameter "portalId" was null or undefined when calling deletePortalLogo().'
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const queryParameters: any = {};
|
|
100
|
+
|
|
101
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
let urlPath = `/portals/{portalId}/branding/logo`;
|
|
105
|
+
urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
path: urlPath,
|
|
109
|
+
method: 'DELETE',
|
|
110
|
+
headers: headerParameters,
|
|
111
|
+
query: queryParameters,
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Remove the portal logo
|
|
117
|
+
*/
|
|
118
|
+
async deletePortalLogoRaw(requestParameters: DeletePortalLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
119
|
+
const requestOptions = await this.deletePortalLogoRequestOpts(requestParameters);
|
|
120
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
121
|
+
|
|
122
|
+
return new runtime.VoidApiResponse(response);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Remove the portal logo
|
|
127
|
+
*/
|
|
128
|
+
async deletePortalLogo(requestParameters: DeletePortalLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
129
|
+
await this.deletePortalLogoRaw(requestParameters, initOverrides);
|
|
130
|
+
}
|
|
131
|
+
|
|
76
132
|
/**
|
|
77
133
|
* Creates request options for getPortalById without sending the request
|
|
78
134
|
*/
|
|
@@ -321,6 +377,79 @@ export class PortalApi extends runtime.BaseAPI {
|
|
|
321
377
|
return await response.value();
|
|
322
378
|
}
|
|
323
379
|
|
|
380
|
+
/**
|
|
381
|
+
* Creates request options for postPortalLogoUpload without sending the request
|
|
382
|
+
*/
|
|
383
|
+
async postPortalLogoUploadRequestOpts(requestParameters: PostPortalLogoUploadRequest): Promise<runtime.RequestOpts> {
|
|
384
|
+
if (requestParameters['portalId'] == null) {
|
|
385
|
+
throw new runtime.RequiredError(
|
|
386
|
+
'portalId',
|
|
387
|
+
'Required parameter "portalId" was null or undefined when calling postPortalLogoUpload().'
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
if (requestParameters['file'] == null) {
|
|
392
|
+
throw new runtime.RequiredError(
|
|
393
|
+
'file',
|
|
394
|
+
'Required parameter "file" was null or undefined when calling postPortalLogoUpload().'
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
const queryParameters: any = {};
|
|
399
|
+
|
|
400
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
401
|
+
|
|
402
|
+
const consumes: runtime.Consume[] = [
|
|
403
|
+
{ contentType: 'multipart/form-data' },
|
|
404
|
+
];
|
|
405
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
406
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
407
|
+
|
|
408
|
+
let formParams: { append(param: string, value: any): any };
|
|
409
|
+
let useForm = false;
|
|
410
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
411
|
+
useForm = canConsumeForm;
|
|
412
|
+
if (useForm) {
|
|
413
|
+
formParams = new FormData();
|
|
414
|
+
} else {
|
|
415
|
+
formParams = new URLSearchParams();
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
if (requestParameters['file'] != null) {
|
|
419
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
let urlPath = `/portals/{portalId}/branding/logo`;
|
|
424
|
+
urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
|
|
425
|
+
|
|
426
|
+
return {
|
|
427
|
+
path: urlPath,
|
|
428
|
+
method: 'POST',
|
|
429
|
+
headers: headerParameters,
|
|
430
|
+
query: queryParameters,
|
|
431
|
+
body: formParams,
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Upload a logo image for portal branding
|
|
437
|
+
*/
|
|
438
|
+
async postPortalLogoUploadRaw(requestParameters: PostPortalLogoUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortalLogoUpload>> {
|
|
439
|
+
const requestOptions = await this.postPortalLogoUploadRequestOpts(requestParameters);
|
|
440
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
441
|
+
|
|
442
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalLogoUploadFromJSON(jsonValue));
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Upload a logo image for portal branding
|
|
447
|
+
*/
|
|
448
|
+
async postPortalLogoUpload(requestParameters: PostPortalLogoUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortalLogoUpload> {
|
|
449
|
+
const response = await this.postPortalLogoUploadRaw(requestParameters, initOverrides);
|
|
450
|
+
return await response.value();
|
|
451
|
+
}
|
|
452
|
+
|
|
324
453
|
/**
|
|
325
454
|
* Creates request options for putPortalBranding without sending the request
|
|
326
455
|
*/
|