@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
|
@@ -0,0 +1,66 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetPortalLogoUpload
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPortalLogoUpload {
|
|
22
|
+
/**
|
|
23
|
+
* Presigned URL for the uploaded logo image
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetPortalLogoUpload
|
|
26
|
+
*/
|
|
27
|
+
logoUrl: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GetPortalLogoUpload interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGetPortalLogoUpload(value: object): value is GetPortalLogoUpload {
|
|
34
|
+
if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function GetPortalLogoUploadFromJSON(json: any): GetPortalLogoUpload {
|
|
39
|
+
return GetPortalLogoUploadFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function GetPortalLogoUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalLogoUpload {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'logoUrl': json['logo_url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GetPortalLogoUploadToJSON(json: any): GetPortalLogoUpload {
|
|
53
|
+
return GetPortalLogoUploadToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GetPortalLogoUploadToJSONTyped(value?: GetPortalLogoUpload | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'logo_url': value['logoUrl'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,231 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { GetSupportTicketAttachment } from './GetSupportTicketAttachment';
|
|
17
|
+
import {
|
|
18
|
+
GetSupportTicketAttachmentFromJSON,
|
|
19
|
+
GetSupportTicketAttachmentFromJSONTyped,
|
|
20
|
+
GetSupportTicketAttachmentToJSON,
|
|
21
|
+
GetSupportTicketAttachmentToJSONTyped,
|
|
22
|
+
} from './GetSupportTicketAttachment';
|
|
23
|
+
import type { SupportTicketUser } from './SupportTicketUser';
|
|
24
|
+
import {
|
|
25
|
+
SupportTicketUserFromJSON,
|
|
26
|
+
SupportTicketUserFromJSONTyped,
|
|
27
|
+
SupportTicketUserToJSON,
|
|
28
|
+
SupportTicketUserToJSONTyped,
|
|
29
|
+
} from './SupportTicketUser';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetSupportTicket
|
|
35
|
+
*/
|
|
36
|
+
export interface GetSupportTicket {
|
|
37
|
+
/**
|
|
38
|
+
* External ID of the ticket
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetSupportTicket
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* External ID of the portal
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetSupportTicket
|
|
47
|
+
*/
|
|
48
|
+
portalId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetSupportTicket
|
|
53
|
+
*/
|
|
54
|
+
subject: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof GetSupportTicket
|
|
59
|
+
*/
|
|
60
|
+
description: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {GetSupportTicketStatusEnum}
|
|
64
|
+
* @memberof GetSupportTicket
|
|
65
|
+
*/
|
|
66
|
+
status: GetSupportTicketStatusEnum;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {GetSupportTicketPriorityEnum}
|
|
70
|
+
* @memberof GetSupportTicket
|
|
71
|
+
*/
|
|
72
|
+
priority: GetSupportTicketPriorityEnum;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {GetSupportTicketCategoryEnum}
|
|
76
|
+
* @memberof GetSupportTicket
|
|
77
|
+
*/
|
|
78
|
+
category: GetSupportTicketCategoryEnum;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @type {SupportTicketUser}
|
|
82
|
+
* @memberof GetSupportTicket
|
|
83
|
+
*/
|
|
84
|
+
reporter: SupportTicketUser;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {SupportTicketUser}
|
|
88
|
+
* @memberof GetSupportTicket
|
|
89
|
+
*/
|
|
90
|
+
assignedTo?: SupportTicketUser | null;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof GetSupportTicket
|
|
95
|
+
*/
|
|
96
|
+
commentCount: number;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {Array<GetSupportTicketAttachment>}
|
|
100
|
+
* @memberof GetSupportTicket
|
|
101
|
+
*/
|
|
102
|
+
attachments: Array<GetSupportTicketAttachment>;
|
|
103
|
+
/**
|
|
104
|
+
* Unix epoch timestamp
|
|
105
|
+
* @type {number}
|
|
106
|
+
* @memberof GetSupportTicket
|
|
107
|
+
*/
|
|
108
|
+
createdAt: number;
|
|
109
|
+
/**
|
|
110
|
+
* Unix epoch timestamp
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof GetSupportTicket
|
|
113
|
+
*/
|
|
114
|
+
updatedAt: number;
|
|
115
|
+
/**
|
|
116
|
+
* Unix epoch timestamp
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @memberof GetSupportTicket
|
|
119
|
+
*/
|
|
120
|
+
closedAt?: number | null;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export const GetSupportTicketStatusEnum = {
|
|
128
|
+
Open: 'Open',
|
|
129
|
+
InProgress: 'InProgress',
|
|
130
|
+
Closed: 'Closed'
|
|
131
|
+
} as const;
|
|
132
|
+
export type GetSupportTicketStatusEnum = typeof GetSupportTicketStatusEnum[keyof typeof GetSupportTicketStatusEnum];
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @export
|
|
136
|
+
*/
|
|
137
|
+
export const GetSupportTicketPriorityEnum = {
|
|
138
|
+
Low: 'Low',
|
|
139
|
+
Medium: 'Medium',
|
|
140
|
+
High: 'High',
|
|
141
|
+
Critical: 'Critical'
|
|
142
|
+
} as const;
|
|
143
|
+
export type GetSupportTicketPriorityEnum = typeof GetSupportTicketPriorityEnum[keyof typeof GetSupportTicketPriorityEnum];
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @export
|
|
147
|
+
*/
|
|
148
|
+
export const GetSupportTicketCategoryEnum = {
|
|
149
|
+
Bug: 'Bug',
|
|
150
|
+
FeatureRequest: 'FeatureRequest',
|
|
151
|
+
AccountIssue: 'AccountIssue',
|
|
152
|
+
ContentIssue: 'ContentIssue',
|
|
153
|
+
Other: 'Other'
|
|
154
|
+
} as const;
|
|
155
|
+
export type GetSupportTicketCategoryEnum = typeof GetSupportTicketCategoryEnum[keyof typeof GetSupportTicketCategoryEnum];
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Check if a given object implements the GetSupportTicket interface.
|
|
160
|
+
*/
|
|
161
|
+
export function instanceOfGetSupportTicket(value: object): value is GetSupportTicket {
|
|
162
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
163
|
+
if (!('portalId' in value) || value['portalId'] === undefined) return false;
|
|
164
|
+
if (!('subject' in value) || value['subject'] === undefined) return false;
|
|
165
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
166
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
167
|
+
if (!('priority' in value) || value['priority'] === undefined) return false;
|
|
168
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
169
|
+
if (!('reporter' in value) || value['reporter'] === undefined) return false;
|
|
170
|
+
if (!('commentCount' in value) || value['commentCount'] === undefined) return false;
|
|
171
|
+
if (!('attachments' in value) || value['attachments'] === undefined) return false;
|
|
172
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
173
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
174
|
+
return true;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function GetSupportTicketFromJSON(json: any): GetSupportTicket {
|
|
178
|
+
return GetSupportTicketFromJSONTyped(json, false);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export function GetSupportTicketFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupportTicket {
|
|
182
|
+
if (json == null) {
|
|
183
|
+
return json;
|
|
184
|
+
}
|
|
185
|
+
return {
|
|
186
|
+
|
|
187
|
+
'id': json['id'],
|
|
188
|
+
'portalId': json['portal_id'],
|
|
189
|
+
'subject': json['subject'],
|
|
190
|
+
'description': json['description'],
|
|
191
|
+
'status': json['status'],
|
|
192
|
+
'priority': json['priority'],
|
|
193
|
+
'category': json['category'],
|
|
194
|
+
'reporter': SupportTicketUserFromJSON(json['reporter']),
|
|
195
|
+
'assignedTo': json['assigned_to'] == null ? undefined : SupportTicketUserFromJSON(json['assigned_to']),
|
|
196
|
+
'commentCount': json['comment_count'],
|
|
197
|
+
'attachments': ((json['attachments'] as Array<any>).map(GetSupportTicketAttachmentFromJSON)),
|
|
198
|
+
'createdAt': json['created_at'],
|
|
199
|
+
'updatedAt': json['updated_at'],
|
|
200
|
+
'closedAt': json['closed_at'] == null ? undefined : json['closed_at'],
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function GetSupportTicketToJSON(json: any): GetSupportTicket {
|
|
205
|
+
return GetSupportTicketToJSONTyped(json, false);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export function GetSupportTicketToJSONTyped(value?: GetSupportTicket | null, ignoreDiscriminator: boolean = false): any {
|
|
209
|
+
if (value == null) {
|
|
210
|
+
return value;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return {
|
|
214
|
+
|
|
215
|
+
'id': value['id'],
|
|
216
|
+
'portal_id': value['portalId'],
|
|
217
|
+
'subject': value['subject'],
|
|
218
|
+
'description': value['description'],
|
|
219
|
+
'status': value['status'],
|
|
220
|
+
'priority': value['priority'],
|
|
221
|
+
'category': value['category'],
|
|
222
|
+
'reporter': SupportTicketUserToJSON(value['reporter']),
|
|
223
|
+
'assigned_to': SupportTicketUserToJSON(value['assignedTo']),
|
|
224
|
+
'comment_count': value['commentCount'],
|
|
225
|
+
'attachments': ((value['attachments'] as Array<any>).map(GetSupportTicketAttachmentToJSON)),
|
|
226
|
+
'created_at': value['createdAt'],
|
|
227
|
+
'updated_at': value['updatedAt'],
|
|
228
|
+
'closed_at': value['closedAt'],
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetSupportTicketAttachment
|
|
20
|
+
*/
|
|
21
|
+
export interface GetSupportTicketAttachment {
|
|
22
|
+
/**
|
|
23
|
+
* External attachment ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetSupportTicketAttachment
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetSupportTicketAttachment
|
|
32
|
+
*/
|
|
33
|
+
fileName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetSupportTicketAttachment
|
|
38
|
+
*/
|
|
39
|
+
fileSize: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GetSupportTicketAttachment
|
|
44
|
+
*/
|
|
45
|
+
mimeType: string;
|
|
46
|
+
/**
|
|
47
|
+
* Presigned URL to download the attachment
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetSupportTicketAttachment
|
|
50
|
+
*/
|
|
51
|
+
downloadUrl: string;
|
|
52
|
+
/**
|
|
53
|
+
* Unix epoch timestamp
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GetSupportTicketAttachment
|
|
56
|
+
*/
|
|
57
|
+
createdAt: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the GetSupportTicketAttachment interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfGetSupportTicketAttachment(value: object): value is GetSupportTicketAttachment {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
66
|
+
if (!('fileSize' in value) || value['fileSize'] === undefined) return false;
|
|
67
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
68
|
+
if (!('downloadUrl' in value) || value['downloadUrl'] === undefined) return false;
|
|
69
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function GetSupportTicketAttachmentFromJSON(json: any): GetSupportTicketAttachment {
|
|
74
|
+
return GetSupportTicketAttachmentFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function GetSupportTicketAttachmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupportTicketAttachment {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'fileName': json['file_name'],
|
|
85
|
+
'fileSize': json['file_size'],
|
|
86
|
+
'mimeType': json['mime_type'],
|
|
87
|
+
'downloadUrl': json['download_url'],
|
|
88
|
+
'createdAt': json['created_at'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetSupportTicketAttachmentToJSON(json: any): GetSupportTicketAttachment {
|
|
93
|
+
return GetSupportTicketAttachmentToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetSupportTicketAttachmentToJSONTyped(value?: GetSupportTicketAttachment | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'file_name': value['fileName'],
|
|
105
|
+
'file_size': value['fileSize'],
|
|
106
|
+
'mime_type': value['mimeType'],
|
|
107
|
+
'download_url': value['downloadUrl'],
|
|
108
|
+
'created_at': value['createdAt'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { SupportTicketUser } from './SupportTicketUser';
|
|
17
|
+
import {
|
|
18
|
+
SupportTicketUserFromJSON,
|
|
19
|
+
SupportTicketUserFromJSONTyped,
|
|
20
|
+
SupportTicketUserToJSON,
|
|
21
|
+
SupportTicketUserToJSONTyped,
|
|
22
|
+
} from './SupportTicketUser';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetSupportTicketComment
|
|
28
|
+
*/
|
|
29
|
+
export interface GetSupportTicketComment {
|
|
30
|
+
/**
|
|
31
|
+
* External comment ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GetSupportTicketComment
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {SupportTicketUser}
|
|
39
|
+
* @memberof GetSupportTicketComment
|
|
40
|
+
*/
|
|
41
|
+
user: SupportTicketUser;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetSupportTicketComment
|
|
46
|
+
*/
|
|
47
|
+
content: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof GetSupportTicketComment
|
|
52
|
+
*/
|
|
53
|
+
isInternal: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Unix epoch timestamp
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GetSupportTicketComment
|
|
58
|
+
*/
|
|
59
|
+
createdAt: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the GetSupportTicketComment interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfGetSupportTicketComment(value: object): value is GetSupportTicketComment {
|
|
66
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
67
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
68
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
69
|
+
if (!('isInternal' in value) || value['isInternal'] === undefined) return false;
|
|
70
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetSupportTicketCommentFromJSON(json: any): GetSupportTicketComment {
|
|
75
|
+
return GetSupportTicketCommentFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetSupportTicketCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupportTicketComment {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'id': json['id'],
|
|
85
|
+
'user': SupportTicketUserFromJSON(json['user']),
|
|
86
|
+
'content': json['content'],
|
|
87
|
+
'isInternal': json['is_internal'],
|
|
88
|
+
'createdAt': json['created_at'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetSupportTicketCommentToJSON(json: any): GetSupportTicketComment {
|
|
93
|
+
return GetSupportTicketCommentToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetSupportTicketCommentToJSONTyped(value?: GetSupportTicketComment | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'user': SupportTicketUserToJSON(value['user']),
|
|
105
|
+
'content': value['content'],
|
|
106
|
+
'is_internal': value['isInternal'],
|
|
107
|
+
'created_at': value['createdAt'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { GetSupportTicket } from './GetSupportTicket';
|
|
17
|
+
import {
|
|
18
|
+
GetSupportTicketFromJSON,
|
|
19
|
+
GetSupportTicketFromJSONTyped,
|
|
20
|
+
GetSupportTicketToJSON,
|
|
21
|
+
GetSupportTicketToJSONTyped,
|
|
22
|
+
} from './GetSupportTicket';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetSupportTicketList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetSupportTicketList {
|
|
30
|
+
/**
|
|
31
|
+
* The current page number
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetSupportTicketList
|
|
34
|
+
*/
|
|
35
|
+
page: number;
|
|
36
|
+
/**
|
|
37
|
+
* The number of items per page
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetSupportTicketList
|
|
40
|
+
*/
|
|
41
|
+
pageSize: number;
|
|
42
|
+
/**
|
|
43
|
+
* The total number of pages
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetSupportTicketList
|
|
46
|
+
*/
|
|
47
|
+
totalPages: number;
|
|
48
|
+
/**
|
|
49
|
+
* The total number of items
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetSupportTicketList
|
|
52
|
+
*/
|
|
53
|
+
totalItems: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<GetSupportTicket>}
|
|
57
|
+
* @memberof GetSupportTicketList
|
|
58
|
+
*/
|
|
59
|
+
items: Array<GetSupportTicket>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the GetSupportTicketList interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfGetSupportTicketList(value: object): value is GetSupportTicketList {
|
|
66
|
+
if (!('page' in value) || value['page'] === undefined) return false;
|
|
67
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
|
|
68
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
|
|
69
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
|
|
70
|
+
if (!('items' in value) || value['items'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetSupportTicketListFromJSON(json: any): GetSupportTicketList {
|
|
75
|
+
return GetSupportTicketListFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetSupportTicketListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupportTicketList {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'page': json['page'],
|
|
85
|
+
'pageSize': json['pageSize'],
|
|
86
|
+
'totalPages': json['totalPages'],
|
|
87
|
+
'totalItems': json['totalItems'],
|
|
88
|
+
'items': ((json['items'] as Array<any>).map(GetSupportTicketFromJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetSupportTicketListToJSON(json: any): GetSupportTicketList {
|
|
93
|
+
return GetSupportTicketListToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetSupportTicketListToJSONTyped(value?: GetSupportTicketList | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'page': value['page'],
|
|
104
|
+
'pageSize': value['pageSize'],
|
|
105
|
+
'totalPages': value['totalPages'],
|
|
106
|
+
'totalItems': value['totalItems'],
|
|
107
|
+
'items': ((value['items'] as Array<any>).map(GetSupportTicketToJSON)),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|