@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.
- package/.openapi-generator/FILES +20 -0
- package/README.md +20 -2
- 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/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/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 +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/DownloadSupportTicketAttachment200Response.d.ts +32 -0
- package/dist/models/DownloadSupportTicketAttachment200Response.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 +9 -0
- package/dist/models/index.js +9 -0
- package/docs/DownloadSupportTicketAttachment200Response.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/PutSupportTicket.md +38 -0
- package/docs/SupportTicketApi.md +651 -0
- package/docs/SupportTicketUser.md +40 -0
- package/package.json +1 -1
- package/src/apis/SupportTicketApi.ts +599 -0
- package/src/apis/index.ts +1 -0
- package/src/models/DownloadSupportTicketAttachment200Response.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 +9 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.GetSupportTicketCategoryEnum = exports.GetSupportTicketPriorityEnum = exports.GetSupportTicketStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfGetSupportTicket = instanceOfGetSupportTicket;
|
|
18
|
+
exports.GetSupportTicketFromJSON = GetSupportTicketFromJSON;
|
|
19
|
+
exports.GetSupportTicketFromJSONTyped = GetSupportTicketFromJSONTyped;
|
|
20
|
+
exports.GetSupportTicketToJSON = GetSupportTicketToJSON;
|
|
21
|
+
exports.GetSupportTicketToJSONTyped = GetSupportTicketToJSONTyped;
|
|
22
|
+
const GetSupportTicketAttachment_1 = require("./GetSupportTicketAttachment");
|
|
23
|
+
const SupportTicketUser_1 = require("./SupportTicketUser");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.GetSupportTicketStatusEnum = {
|
|
28
|
+
Open: 'Open',
|
|
29
|
+
InProgress: 'InProgress',
|
|
30
|
+
Closed: 'Closed'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
exports.GetSupportTicketPriorityEnum = {
|
|
36
|
+
Low: 'Low',
|
|
37
|
+
Medium: 'Medium',
|
|
38
|
+
High: 'High',
|
|
39
|
+
Critical: 'Critical'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* @export
|
|
43
|
+
*/
|
|
44
|
+
exports.GetSupportTicketCategoryEnum = {
|
|
45
|
+
Bug: 'Bug',
|
|
46
|
+
FeatureRequest: 'FeatureRequest',
|
|
47
|
+
AccountIssue: 'AccountIssue',
|
|
48
|
+
ContentIssue: 'ContentIssue',
|
|
49
|
+
Other: 'Other'
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the GetSupportTicket interface.
|
|
53
|
+
*/
|
|
54
|
+
function instanceOfGetSupportTicket(value) {
|
|
55
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('portalId' in value) || value['portalId'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('priority' in value) || value['priority'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('reporter' in value) || value['reporter'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('commentCount' in value) || value['commentCount'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('attachments' in value) || value['attachments'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
function GetSupportTicketFromJSON(json) {
|
|
82
|
+
return GetSupportTicketFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
function GetSupportTicketFromJSONTyped(json, ignoreDiscriminator) {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'id': json['id'],
|
|
90
|
+
'portalId': json['portal_id'],
|
|
91
|
+
'subject': json['subject'],
|
|
92
|
+
'description': json['description'],
|
|
93
|
+
'status': json['status'],
|
|
94
|
+
'priority': json['priority'],
|
|
95
|
+
'category': json['category'],
|
|
96
|
+
'reporter': (0, SupportTicketUser_1.SupportTicketUserFromJSON)(json['reporter']),
|
|
97
|
+
'assignedTo': json['assigned_to'] == null ? undefined : (0, SupportTicketUser_1.SupportTicketUserFromJSON)(json['assigned_to']),
|
|
98
|
+
'commentCount': json['comment_count'],
|
|
99
|
+
'attachments': (json['attachments'].map(GetSupportTicketAttachment_1.GetSupportTicketAttachmentFromJSON)),
|
|
100
|
+
'createdAt': json['created_at'],
|
|
101
|
+
'updatedAt': json['updated_at'],
|
|
102
|
+
'closedAt': json['closed_at'] == null ? undefined : json['closed_at'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function GetSupportTicketToJSON(json) {
|
|
106
|
+
return GetSupportTicketToJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
function GetSupportTicketToJSONTyped(value, ignoreDiscriminator = false) {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
'id': value['id'],
|
|
114
|
+
'portal_id': value['portalId'],
|
|
115
|
+
'subject': value['subject'],
|
|
116
|
+
'description': value['description'],
|
|
117
|
+
'status': value['status'],
|
|
118
|
+
'priority': value['priority'],
|
|
119
|
+
'category': value['category'],
|
|
120
|
+
'reporter': (0, SupportTicketUser_1.SupportTicketUserToJSON)(value['reporter']),
|
|
121
|
+
'assigned_to': (0, SupportTicketUser_1.SupportTicketUserToJSON)(value['assignedTo']),
|
|
122
|
+
'comment_count': value['commentCount'],
|
|
123
|
+
'attachments': (value['attachments'].map(GetSupportTicketAttachment_1.GetSupportTicketAttachmentToJSON)),
|
|
124
|
+
'created_at': value['createdAt'],
|
|
125
|
+
'updated_at': value['updatedAt'],
|
|
126
|
+
'closed_at': value['closedAt'],
|
|
127
|
+
};
|
|
128
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetSupportTicketAttachment
|
|
16
|
+
*/
|
|
17
|
+
export interface GetSupportTicketAttachment {
|
|
18
|
+
/**
|
|
19
|
+
* External attachment ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetSupportTicketAttachment
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetSupportTicketAttachment
|
|
28
|
+
*/
|
|
29
|
+
fileName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetSupportTicketAttachment
|
|
34
|
+
*/
|
|
35
|
+
fileSize: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GetSupportTicketAttachment
|
|
40
|
+
*/
|
|
41
|
+
mimeType: string;
|
|
42
|
+
/**
|
|
43
|
+
* Presigned URL to download the attachment
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetSupportTicketAttachment
|
|
46
|
+
*/
|
|
47
|
+
downloadUrl: string;
|
|
48
|
+
/**
|
|
49
|
+
* Unix epoch timestamp
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetSupportTicketAttachment
|
|
52
|
+
*/
|
|
53
|
+
createdAt: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the GetSupportTicketAttachment interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfGetSupportTicketAttachment(value: object): value is GetSupportTicketAttachment;
|
|
59
|
+
export declare function GetSupportTicketAttachmentFromJSON(json: any): GetSupportTicketAttachment;
|
|
60
|
+
export declare function GetSupportTicketAttachmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupportTicketAttachment;
|
|
61
|
+
export declare function GetSupportTicketAttachmentToJSON(json: any): GetSupportTicketAttachment;
|
|
62
|
+
export declare function GetSupportTicketAttachmentToJSONTyped(value?: GetSupportTicketAttachment | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetSupportTicketAttachment = instanceOfGetSupportTicketAttachment;
|
|
17
|
+
exports.GetSupportTicketAttachmentFromJSON = GetSupportTicketAttachmentFromJSON;
|
|
18
|
+
exports.GetSupportTicketAttachmentFromJSONTyped = GetSupportTicketAttachmentFromJSONTyped;
|
|
19
|
+
exports.GetSupportTicketAttachmentToJSON = GetSupportTicketAttachmentToJSON;
|
|
20
|
+
exports.GetSupportTicketAttachmentToJSONTyped = GetSupportTicketAttachmentToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetSupportTicketAttachment interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetSupportTicketAttachment(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('fileSize' in value) || value['fileSize'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('downloadUrl' in value) || value['downloadUrl'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function GetSupportTicketAttachmentFromJSON(json) {
|
|
40
|
+
return GetSupportTicketAttachmentFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function GetSupportTicketAttachmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'fileName': json['file_name'],
|
|
49
|
+
'fileSize': json['file_size'],
|
|
50
|
+
'mimeType': json['mime_type'],
|
|
51
|
+
'downloadUrl': json['download_url'],
|
|
52
|
+
'createdAt': json['created_at'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function GetSupportTicketAttachmentToJSON(json) {
|
|
56
|
+
return GetSupportTicketAttachmentToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function GetSupportTicketAttachmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'file_name': value['fileName'],
|
|
65
|
+
'file_size': value['fileSize'],
|
|
66
|
+
'mime_type': value['mimeType'],
|
|
67
|
+
'download_url': value['downloadUrl'],
|
|
68
|
+
'created_at': value['createdAt'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SupportTicketUser } from './SupportTicketUser';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetSupportTicketComment
|
|
17
|
+
*/
|
|
18
|
+
export interface GetSupportTicketComment {
|
|
19
|
+
/**
|
|
20
|
+
* External comment ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GetSupportTicketComment
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SupportTicketUser}
|
|
28
|
+
* @memberof GetSupportTicketComment
|
|
29
|
+
*/
|
|
30
|
+
user: SupportTicketUser;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GetSupportTicketComment
|
|
35
|
+
*/
|
|
36
|
+
content: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof GetSupportTicketComment
|
|
41
|
+
*/
|
|
42
|
+
isInternal: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Unix epoch timestamp
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof GetSupportTicketComment
|
|
47
|
+
*/
|
|
48
|
+
createdAt: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetSupportTicketComment interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetSupportTicketComment(value: object): value is GetSupportTicketComment;
|
|
54
|
+
export declare function GetSupportTicketCommentFromJSON(json: any): GetSupportTicketComment;
|
|
55
|
+
export declare function GetSupportTicketCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupportTicketComment;
|
|
56
|
+
export declare function GetSupportTicketCommentToJSON(json: any): GetSupportTicketComment;
|
|
57
|
+
export declare function GetSupportTicketCommentToJSONTyped(value?: GetSupportTicketComment | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetSupportTicketComment = instanceOfGetSupportTicketComment;
|
|
17
|
+
exports.GetSupportTicketCommentFromJSON = GetSupportTicketCommentFromJSON;
|
|
18
|
+
exports.GetSupportTicketCommentFromJSONTyped = GetSupportTicketCommentFromJSONTyped;
|
|
19
|
+
exports.GetSupportTicketCommentToJSON = GetSupportTicketCommentToJSON;
|
|
20
|
+
exports.GetSupportTicketCommentToJSONTyped = GetSupportTicketCommentToJSONTyped;
|
|
21
|
+
const SupportTicketUser_1 = require("./SupportTicketUser");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetSupportTicketComment interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetSupportTicketComment(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('isInternal' in value) || value['isInternal'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetSupportTicketCommentFromJSON(json) {
|
|
39
|
+
return GetSupportTicketCommentFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetSupportTicketCommentFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'user': (0, SupportTicketUser_1.SupportTicketUserFromJSON)(json['user']),
|
|
48
|
+
'content': json['content'],
|
|
49
|
+
'isInternal': json['is_internal'],
|
|
50
|
+
'createdAt': json['created_at'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetSupportTicketCommentToJSON(json) {
|
|
54
|
+
return GetSupportTicketCommentToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetSupportTicketCommentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'user': (0, SupportTicketUser_1.SupportTicketUserToJSON)(value['user']),
|
|
63
|
+
'content': value['content'],
|
|
64
|
+
'is_internal': value['isInternal'],
|
|
65
|
+
'created_at': value['createdAt'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GetSupportTicket } from './GetSupportTicket';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetSupportTicketList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetSupportTicketList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetSupportTicketList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetSupportTicketList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetSupportTicketList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetSupportTicketList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetSupportTicket>}
|
|
46
|
+
* @memberof GetSupportTicketList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetSupportTicket>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetSupportTicketList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetSupportTicketList(value: object): value is GetSupportTicketList;
|
|
54
|
+
export declare function GetSupportTicketListFromJSON(json: any): GetSupportTicketList;
|
|
55
|
+
export declare function GetSupportTicketListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSupportTicketList;
|
|
56
|
+
export declare function GetSupportTicketListToJSON(json: any): GetSupportTicketList;
|
|
57
|
+
export declare function GetSupportTicketListToJSONTyped(value?: GetSupportTicketList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetSupportTicketList = instanceOfGetSupportTicketList;
|
|
17
|
+
exports.GetSupportTicketListFromJSON = GetSupportTicketListFromJSON;
|
|
18
|
+
exports.GetSupportTicketListFromJSONTyped = GetSupportTicketListFromJSONTyped;
|
|
19
|
+
exports.GetSupportTicketListToJSON = GetSupportTicketListToJSON;
|
|
20
|
+
exports.GetSupportTicketListToJSONTyped = GetSupportTicketListToJSONTyped;
|
|
21
|
+
const GetSupportTicket_1 = require("./GetSupportTicket");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetSupportTicketList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetSupportTicketList(value) {
|
|
26
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pageSize' in value) || value['pageSize'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('totalPages' in value) || value['totalPages'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('totalItems' in value) || value['totalItems'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function GetSupportTicketListFromJSON(json) {
|
|
39
|
+
return GetSupportTicketListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetSupportTicketListFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'page': json['page'],
|
|
47
|
+
'pageSize': json['pageSize'],
|
|
48
|
+
'totalPages': json['totalPages'],
|
|
49
|
+
'totalItems': json['totalItems'],
|
|
50
|
+
'items': (json['items'].map(GetSupportTicket_1.GetSupportTicketFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetSupportTicketListToJSON(json) {
|
|
54
|
+
return GetSupportTicketListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetSupportTicketListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'page': value['page'],
|
|
62
|
+
'pageSize': value['pageSize'],
|
|
63
|
+
'totalPages': value['totalPages'],
|
|
64
|
+
'totalItems': value['totalItems'],
|
|
65
|
+
'items': (value['items'].map(GetSupportTicket_1.GetSupportTicketToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LMS API
|
|
3
|
+
* LMS API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PostSupportTicket
|
|
16
|
+
*/
|
|
17
|
+
export interface PostSupportTicket {
|
|
18
|
+
/**
|
|
19
|
+
* Brief summary of the issue
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostSupportTicket
|
|
22
|
+
*/
|
|
23
|
+
subject: string;
|
|
24
|
+
/**
|
|
25
|
+
* Detailed description of the issue
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostSupportTicket
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
/**
|
|
31
|
+
* Ticket priority level
|
|
32
|
+
* @type {PostSupportTicketPriorityEnum}
|
|
33
|
+
* @memberof PostSupportTicket
|
|
34
|
+
*/
|
|
35
|
+
priority: PostSupportTicketPriorityEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Ticket category
|
|
38
|
+
* @type {PostSupportTicketCategoryEnum}
|
|
39
|
+
* @memberof PostSupportTicket
|
|
40
|
+
*/
|
|
41
|
+
category: PostSupportTicketCategoryEnum;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const PostSupportTicketPriorityEnum: {
|
|
47
|
+
readonly Low: "Low";
|
|
48
|
+
readonly Medium: "Medium";
|
|
49
|
+
readonly High: "High";
|
|
50
|
+
readonly Critical: "Critical";
|
|
51
|
+
};
|
|
52
|
+
export type PostSupportTicketPriorityEnum = typeof PostSupportTicketPriorityEnum[keyof typeof PostSupportTicketPriorityEnum];
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
export declare const PostSupportTicketCategoryEnum: {
|
|
57
|
+
readonly Bug: "Bug";
|
|
58
|
+
readonly FeatureRequest: "FeatureRequest";
|
|
59
|
+
readonly AccountIssue: "AccountIssue";
|
|
60
|
+
readonly ContentIssue: "ContentIssue";
|
|
61
|
+
readonly Other: "Other";
|
|
62
|
+
};
|
|
63
|
+
export type PostSupportTicketCategoryEnum = typeof PostSupportTicketCategoryEnum[keyof typeof PostSupportTicketCategoryEnum];
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the PostSupportTicket interface.
|
|
66
|
+
*/
|
|
67
|
+
export declare function instanceOfPostSupportTicket(value: object): value is PostSupportTicket;
|
|
68
|
+
export declare function PostSupportTicketFromJSON(json: any): PostSupportTicket;
|
|
69
|
+
export declare function PostSupportTicketFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostSupportTicket;
|
|
70
|
+
export declare function PostSupportTicketToJSON(json: any): PostSupportTicket;
|
|
71
|
+
export declare function PostSupportTicketToJSONTyped(value?: PostSupportTicket | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* LMS API
|
|
6
|
+
* LMS API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PostSupportTicketCategoryEnum = exports.PostSupportTicketPriorityEnum = void 0;
|
|
17
|
+
exports.instanceOfPostSupportTicket = instanceOfPostSupportTicket;
|
|
18
|
+
exports.PostSupportTicketFromJSON = PostSupportTicketFromJSON;
|
|
19
|
+
exports.PostSupportTicketFromJSONTyped = PostSupportTicketFromJSONTyped;
|
|
20
|
+
exports.PostSupportTicketToJSON = PostSupportTicketToJSON;
|
|
21
|
+
exports.PostSupportTicketToJSONTyped = PostSupportTicketToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PostSupportTicketPriorityEnum = {
|
|
26
|
+
Low: 'Low',
|
|
27
|
+
Medium: 'Medium',
|
|
28
|
+
High: 'High',
|
|
29
|
+
Critical: 'Critical'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.PostSupportTicketCategoryEnum = {
|
|
35
|
+
Bug: 'Bug',
|
|
36
|
+
FeatureRequest: 'FeatureRequest',
|
|
37
|
+
AccountIssue: 'AccountIssue',
|
|
38
|
+
ContentIssue: 'ContentIssue',
|
|
39
|
+
Other: 'Other'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the PostSupportTicket interface.
|
|
43
|
+
*/
|
|
44
|
+
function instanceOfPostSupportTicket(value) {
|
|
45
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('priority' in value) || value['priority'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('category' in value) || value['category'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
function PostSupportTicketFromJSON(json) {
|
|
56
|
+
return PostSupportTicketFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function PostSupportTicketFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'subject': json['subject'],
|
|
64
|
+
'description': json['description'],
|
|
65
|
+
'priority': json['priority'],
|
|
66
|
+
'category': json['category'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function PostSupportTicketToJSON(json) {
|
|
70
|
+
return PostSupportTicketToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function PostSupportTicketToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'subject': value['subject'],
|
|
78
|
+
'description': value['description'],
|
|
79
|
+
'priority': value['priority'],
|
|
80
|
+
'category': value['category'],
|
|
81
|
+
};
|
|
82
|
+
}
|