@easyedu/js-lsm-api 1.41.0 → 1.43.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/CourseApi.d.ts +32 -1
- package/dist/apis/CourseApi.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/CourseApi.d.ts +32 -1
- package/dist/esm/apis/CourseApi.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/GetCourseImageUpload.d.ts +32 -0
- package/dist/esm/models/GetCourseImageUpload.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/PutCourse.d.ts +0 -6
- package/dist/esm/models/PutCourse.js +0 -2
- 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/GetCourseImageUpload.d.ts +32 -0
- package/dist/models/GetCourseImageUpload.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/PutCourse.d.ts +0 -6
- package/dist/models/PutCourse.js +0 -2
- 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/CourseApi.md +138 -0
- package/docs/DownloadSupportTicketAttachment200Response.md +34 -0
- package/docs/GetCourseImageUpload.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/PutCourse.md +0 -2
- 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/CourseApi.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/GetCourseImageUpload.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/PutCourse.ts +0 -8
- package/src/models/PutSupportTicket.ts +104 -0
- package/src/models/SupportTicketUser.ts +93 -0
- package/src/models/index.ts +10 -0
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 PostSupportTicketComment
|
|
16
|
+
*/
|
|
17
|
+
export interface PostSupportTicketComment {
|
|
18
|
+
/**
|
|
19
|
+
* Comment text
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostSupportTicketComment
|
|
22
|
+
*/
|
|
23
|
+
content: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether this comment is internal (not visible to reporter)
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof PostSupportTicketComment
|
|
28
|
+
*/
|
|
29
|
+
isInternal?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PostSupportTicketComment interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPostSupportTicketComment(value: object): value is PostSupportTicketComment;
|
|
35
|
+
export declare function PostSupportTicketCommentFromJSON(json: any): PostSupportTicketComment;
|
|
36
|
+
export declare function PostSupportTicketCommentFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostSupportTicketComment;
|
|
37
|
+
export declare function PostSupportTicketCommentToJSON(json: any): PostSupportTicketComment;
|
|
38
|
+
export declare function PostSupportTicketCommentToJSONTyped(value?: PostSupportTicketComment | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfPostSupportTicketComment = instanceOfPostSupportTicketComment;
|
|
17
|
+
exports.PostSupportTicketCommentFromJSON = PostSupportTicketCommentFromJSON;
|
|
18
|
+
exports.PostSupportTicketCommentFromJSONTyped = PostSupportTicketCommentFromJSONTyped;
|
|
19
|
+
exports.PostSupportTicketCommentToJSON = PostSupportTicketCommentToJSON;
|
|
20
|
+
exports.PostSupportTicketCommentToJSONTyped = PostSupportTicketCommentToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostSupportTicketComment interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostSupportTicketComment(value) {
|
|
25
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostSupportTicketCommentFromJSON(json) {
|
|
30
|
+
return PostSupportTicketCommentFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostSupportTicketCommentFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'content': json['content'],
|
|
38
|
+
'isInternal': json['is_internal'] == null ? undefined : json['is_internal'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PostSupportTicketCommentToJSON(json) {
|
|
42
|
+
return PostSupportTicketCommentToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PostSupportTicketCommentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'content': value['content'],
|
|
50
|
+
'is_internal': value['isInternal'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -39,12 +39,6 @@ export interface PutCourse {
|
|
|
39
39
|
* @memberof PutCourse
|
|
40
40
|
*/
|
|
41
41
|
instructor?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof PutCourse
|
|
46
|
-
*/
|
|
47
|
-
imageUrl?: string;
|
|
48
42
|
/**
|
|
49
43
|
* Whether the course is published and visible to students
|
|
50
44
|
* @type {boolean}
|
package/dist/models/PutCourse.js
CHANGED
|
@@ -36,7 +36,6 @@ function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
36
|
'name': json['name'] == null ? undefined : json['name'],
|
|
37
37
|
'description': json['description'] == null ? undefined : json['description'],
|
|
38
38
|
'instructor': json['instructor'] == null ? undefined : json['instructor'],
|
|
39
|
-
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
|
40
39
|
'published': json['published'] == null ? undefined : json['published'],
|
|
41
40
|
};
|
|
42
41
|
}
|
|
@@ -51,7 +50,6 @@ function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
51
50
|
'name': value['name'],
|
|
52
51
|
'description': value['description'],
|
|
53
52
|
'instructor': value['instructor'],
|
|
54
|
-
'image_url': value['imageUrl'],
|
|
55
53
|
'published': value['published'],
|
|
56
54
|
};
|
|
57
55
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 PutSupportTicket
|
|
16
|
+
*/
|
|
17
|
+
export interface PutSupportTicket {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {PutSupportTicketStatusEnum}
|
|
21
|
+
* @memberof PutSupportTicket
|
|
22
|
+
*/
|
|
23
|
+
status?: PutSupportTicketStatusEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {PutSupportTicketPriorityEnum}
|
|
27
|
+
* @memberof PutSupportTicket
|
|
28
|
+
*/
|
|
29
|
+
priority?: PutSupportTicketPriorityEnum;
|
|
30
|
+
/**
|
|
31
|
+
* External user ID of the assignee, or null to unassign
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PutSupportTicket
|
|
34
|
+
*/
|
|
35
|
+
assignedTo?: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const PutSupportTicketStatusEnum: {
|
|
41
|
+
readonly Open: "Open";
|
|
42
|
+
readonly InProgress: "InProgress";
|
|
43
|
+
readonly Closed: "Closed";
|
|
44
|
+
};
|
|
45
|
+
export type PutSupportTicketStatusEnum = typeof PutSupportTicketStatusEnum[keyof typeof PutSupportTicketStatusEnum];
|
|
46
|
+
/**
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export declare const PutSupportTicketPriorityEnum: {
|
|
50
|
+
readonly Low: "Low";
|
|
51
|
+
readonly Medium: "Medium";
|
|
52
|
+
readonly High: "High";
|
|
53
|
+
readonly Critical: "Critical";
|
|
54
|
+
};
|
|
55
|
+
export type PutSupportTicketPriorityEnum = typeof PutSupportTicketPriorityEnum[keyof typeof PutSupportTicketPriorityEnum];
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PutSupportTicket interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfPutSupportTicket(value: object): value is PutSupportTicket;
|
|
60
|
+
export declare function PutSupportTicketFromJSON(json: any): PutSupportTicket;
|
|
61
|
+
export declare function PutSupportTicketFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutSupportTicket;
|
|
62
|
+
export declare function PutSupportTicketToJSON(json: any): PutSupportTicket;
|
|
63
|
+
export declare function PutSupportTicketToJSONTyped(value?: PutSupportTicket | 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.PutSupportTicketPriorityEnum = exports.PutSupportTicketStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfPutSupportTicket = instanceOfPutSupportTicket;
|
|
18
|
+
exports.PutSupportTicketFromJSON = PutSupportTicketFromJSON;
|
|
19
|
+
exports.PutSupportTicketFromJSONTyped = PutSupportTicketFromJSONTyped;
|
|
20
|
+
exports.PutSupportTicketToJSON = PutSupportTicketToJSON;
|
|
21
|
+
exports.PutSupportTicketToJSONTyped = PutSupportTicketToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.PutSupportTicketStatusEnum = {
|
|
26
|
+
Open: 'Open',
|
|
27
|
+
InProgress: 'InProgress',
|
|
28
|
+
Closed: 'Closed'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.PutSupportTicketPriorityEnum = {
|
|
34
|
+
Low: 'Low',
|
|
35
|
+
Medium: 'Medium',
|
|
36
|
+
High: 'High',
|
|
37
|
+
Critical: 'Critical'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PutSupportTicket interface.
|
|
41
|
+
*/
|
|
42
|
+
function instanceOfPutSupportTicket(value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function PutSupportTicketFromJSON(json) {
|
|
46
|
+
return PutSupportTicketFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PutSupportTicketFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
54
|
+
'priority': json['priority'] == null ? undefined : json['priority'],
|
|
55
|
+
'assignedTo': json['assigned_to'] == null ? undefined : json['assigned_to'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function PutSupportTicketToJSON(json) {
|
|
59
|
+
return PutSupportTicketToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function PutSupportTicketToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'status': value['status'],
|
|
67
|
+
'priority': value['priority'],
|
|
68
|
+
'assigned_to': value['assignedTo'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 SupportTicketUser
|
|
16
|
+
*/
|
|
17
|
+
export interface SupportTicketUser {
|
|
18
|
+
/**
|
|
19
|
+
* External user ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SupportTicketUser
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SupportTicketUser
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SupportTicketUser
|
|
34
|
+
*/
|
|
35
|
+
firstName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SupportTicketUser
|
|
40
|
+
*/
|
|
41
|
+
lastName: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SupportTicketUser interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfSupportTicketUser(value: object): value is SupportTicketUser;
|
|
47
|
+
export declare function SupportTicketUserFromJSON(json: any): SupportTicketUser;
|
|
48
|
+
export declare function SupportTicketUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupportTicketUser;
|
|
49
|
+
export declare function SupportTicketUserToJSON(json: any): SupportTicketUser;
|
|
50
|
+
export declare function SupportTicketUserToJSONTyped(value?: SupportTicketUser | null, ignoreDiscriminator?: boolean): any;
|