@easyedu/js-lsm-api 1.41.0 → 1.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +20 -2
  3. package/dist/apis/SupportTicketApi.d.ts +191 -0
  4. package/dist/apis/SupportTicketApi.js +457 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/SupportTicketApi.d.ts +191 -0
  8. package/dist/esm/apis/SupportTicketApi.js +453 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/DownloadSupportTicketAttachment200Response.d.ts +32 -0
  12. package/dist/esm/models/DownloadSupportTicketAttachment200Response.js +43 -0
  13. package/dist/esm/models/GetSupportTicket.d.ts +142 -0
  14. package/dist/esm/models/GetSupportTicket.js +120 -0
  15. package/dist/esm/models/GetSupportTicketAttachment.d.ts +62 -0
  16. package/dist/esm/models/GetSupportTicketAttachment.js +63 -0
  17. package/dist/esm/models/GetSupportTicketComment.d.ts +57 -0
  18. package/dist/esm/models/GetSupportTicketComment.js +60 -0
  19. package/dist/esm/models/GetSupportTicketList.d.ts +57 -0
  20. package/dist/esm/models/GetSupportTicketList.js +60 -0
  21. package/dist/esm/models/PostSupportTicket.d.ts +71 -0
  22. package/dist/esm/models/PostSupportTicket.js +74 -0
  23. package/dist/esm/models/PostSupportTicketComment.d.ts +38 -0
  24. package/dist/esm/models/PostSupportTicketComment.js +45 -0
  25. package/dist/esm/models/PutSupportTicket.d.ts +63 -0
  26. package/dist/esm/models/PutSupportTicket.js +62 -0
  27. package/dist/esm/models/SupportTicketUser.d.ts +50 -0
  28. package/dist/esm/models/SupportTicketUser.js +55 -0
  29. package/dist/esm/models/index.d.ts +9 -0
  30. package/dist/esm/models/index.js +9 -0
  31. package/dist/models/DownloadSupportTicketAttachment200Response.d.ts +32 -0
  32. package/dist/models/DownloadSupportTicketAttachment200Response.js +50 -0
  33. package/dist/models/GetSupportTicket.d.ts +142 -0
  34. package/dist/models/GetSupportTicket.js +128 -0
  35. package/dist/models/GetSupportTicketAttachment.d.ts +62 -0
  36. package/dist/models/GetSupportTicketAttachment.js +70 -0
  37. package/dist/models/GetSupportTicketComment.d.ts +57 -0
  38. package/dist/models/GetSupportTicketComment.js +67 -0
  39. package/dist/models/GetSupportTicketList.d.ts +57 -0
  40. package/dist/models/GetSupportTicketList.js +67 -0
  41. package/dist/models/PostSupportTicket.d.ts +71 -0
  42. package/dist/models/PostSupportTicket.js +82 -0
  43. package/dist/models/PostSupportTicketComment.d.ts +38 -0
  44. package/dist/models/PostSupportTicketComment.js +52 -0
  45. package/dist/models/PutSupportTicket.d.ts +63 -0
  46. package/dist/models/PutSupportTicket.js +70 -0
  47. package/dist/models/SupportTicketUser.d.ts +50 -0
  48. package/dist/models/SupportTicketUser.js +62 -0
  49. package/dist/models/index.d.ts +9 -0
  50. package/dist/models/index.js +9 -0
  51. package/docs/DownloadSupportTicketAttachment200Response.md +34 -0
  52. package/docs/GetSupportTicket.md +60 -0
  53. package/docs/GetSupportTicketAttachment.md +44 -0
  54. package/docs/GetSupportTicketComment.md +42 -0
  55. package/docs/GetSupportTicketList.md +42 -0
  56. package/docs/PostSupportTicket.md +40 -0
  57. package/docs/PostSupportTicketComment.md +36 -0
  58. package/docs/PutSupportTicket.md +38 -0
  59. package/docs/SupportTicketApi.md +651 -0
  60. package/docs/SupportTicketUser.md +40 -0
  61. package/package.json +1 -1
  62. package/src/apis/SupportTicketApi.ts +599 -0
  63. package/src/apis/index.ts +1 -0
  64. package/src/models/DownloadSupportTicketAttachment200Response.ts +66 -0
  65. package/src/models/GetSupportTicket.ts +231 -0
  66. package/src/models/GetSupportTicketAttachment.ts +111 -0
  67. package/src/models/GetSupportTicketComment.ts +110 -0
  68. package/src/models/GetSupportTicketList.ts +110 -0
  69. package/src/models/PostSupportTicket.ts +118 -0
  70. package/src/models/PostSupportTicketComment.ts +74 -0
  71. package/src/models/PutSupportTicket.ts +104 -0
  72. package/src/models/SupportTicketUser.ts +93 -0
  73. package/src/models/index.ts +9 -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 DownloadSupportTicketAttachment200Response
20
+ */
21
+ export interface DownloadSupportTicketAttachment200Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof DownloadSupportTicketAttachment200Response
26
+ */
27
+ downloadUrl: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the DownloadSupportTicketAttachment200Response interface.
32
+ */
33
+ export function instanceOfDownloadSupportTicketAttachment200Response(value: object): value is DownloadSupportTicketAttachment200Response {
34
+ if (!('downloadUrl' in value) || value['downloadUrl'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function DownloadSupportTicketAttachment200ResponseFromJSON(json: any): DownloadSupportTicketAttachment200Response {
39
+ return DownloadSupportTicketAttachment200ResponseFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function DownloadSupportTicketAttachment200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DownloadSupportTicketAttachment200Response {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'downloadUrl': json['download_url'],
49
+ };
50
+ }
51
+
52
+ export function DownloadSupportTicketAttachment200ResponseToJSON(json: any): DownloadSupportTicketAttachment200Response {
53
+ return DownloadSupportTicketAttachment200ResponseToJSONTyped(json, false);
54
+ }
55
+
56
+ export function DownloadSupportTicketAttachment200ResponseToJSONTyped(value?: DownloadSupportTicketAttachment200Response | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'download_url': value['downloadUrl'],
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
+