@easyedu/js-lsm-api 1.39.0 → 1.41.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 +18 -0
- package/README.md +24 -9
- package/dist/apis/ChatApi.d.ts +95 -0
- package/dist/apis/ChatApi.js +235 -0
- package/dist/apis/PortalApi.d.ts +32 -1
- package/dist/apis/PortalApi.js +99 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ChatApi.d.ts +95 -0
- package/dist/esm/apis/ChatApi.js +231 -0
- package/dist/esm/apis/PortalApi.d.ts +32 -1
- package/dist/esm/apis/PortalApi.js +100 -1
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/GetChatMessage.d.ts +44 -0
- package/dist/esm/models/GetChatMessage.js +51 -0
- package/dist/esm/models/GetConversation.d.ts +50 -0
- package/dist/esm/models/GetConversation.js +53 -0
- package/dist/esm/models/GetConversationList.d.ts +57 -0
- package/dist/esm/models/GetConversationList.js +60 -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/PostConversation.d.ts +32 -0
- package/dist/esm/models/PostConversation.js +43 -0
- package/dist/esm/models/PostConversationResponse.d.ts +44 -0
- package/dist/esm/models/PostConversationResponse.js +51 -0
- package/dist/esm/models/PostMessage.d.ts +32 -0
- package/dist/esm/models/PostMessage.js +43 -0
- package/dist/esm/models/PostMessageResponse.d.ts +38 -0
- package/dist/esm/models/PostMessageResponse.js +47 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/GetChatMessage.d.ts +44 -0
- package/dist/models/GetChatMessage.js +58 -0
- package/dist/models/GetConversation.d.ts +50 -0
- package/dist/models/GetConversation.js +60 -0
- package/dist/models/GetConversationList.d.ts +57 -0
- package/dist/models/GetConversationList.js +67 -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/PostConversation.d.ts +32 -0
- package/dist/models/PostConversation.js +50 -0
- package/dist/models/PostConversationResponse.d.ts +44 -0
- package/dist/models/PostConversationResponse.js +58 -0
- package/dist/models/PostMessage.d.ts +32 -0
- package/dist/models/PostMessage.js +50 -0
- package/dist/models/PostMessageResponse.d.ts +38 -0
- package/dist/models/PostMessageResponse.js +54 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/ChatApi.md +357 -0
- package/docs/GetChatMessage.md +38 -0
- package/docs/GetConversation.md +40 -0
- package/docs/GetConversationList.md +42 -0
- package/docs/GetPortalLogoUpload.md +34 -0
- package/docs/PortalApi.md +138 -0
- package/docs/PostConversation.md +34 -0
- package/docs/PostConversationResponse.md +38 -0
- package/docs/PostMessage.md +34 -0
- package/docs/PostMessageResponse.md +36 -0
- package/package.json +1 -1
- package/src/apis/ChatApi.ts +303 -0
- package/src/apis/PortalApi.ts +129 -0
- package/src/apis/index.ts +1 -0
- package/src/models/GetChatMessage.ts +84 -0
- package/src/models/GetConversation.ts +92 -0
- package/src/models/GetConversationList.ts +110 -0
- package/src/models/GetPortal.ts +2 -3
- package/src/models/GetPortalLogoUpload.ts +66 -0
- package/src/models/PostConversation.ts +66 -0
- package/src/models/PostConversationResponse.ts +84 -0
- package/src/models/PostMessage.ts +66 -0
- package/src/models/PostMessageResponse.ts +75 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,92 @@
|
|
|
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 GetConversation
|
|
20
|
+
*/
|
|
21
|
+
export interface GetConversation {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetConversation
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetConversation
|
|
32
|
+
*/
|
|
33
|
+
title?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
* Unix epoch timestamp
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetConversation
|
|
38
|
+
*/
|
|
39
|
+
createdAt: number;
|
|
40
|
+
/**
|
|
41
|
+
* Unix epoch timestamp
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetConversation
|
|
44
|
+
*/
|
|
45
|
+
updatedAt: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the GetConversation interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfGetConversation(value: object): value is GetConversation {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
54
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GetConversationFromJSON(json: any): GetConversation {
|
|
59
|
+
return GetConversationFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function GetConversationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConversation {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'id': json['id'],
|
|
69
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
70
|
+
'createdAt': json['created_at'],
|
|
71
|
+
'updatedAt': json['updated_at'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function GetConversationToJSON(json: any): GetConversation {
|
|
76
|
+
return GetConversationToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function GetConversationToJSONTyped(value?: GetConversation | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'title': value['title'],
|
|
88
|
+
'created_at': value['createdAt'],
|
|
89
|
+
'updated_at': value['updatedAt'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -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 { GetConversation } from './GetConversation';
|
|
17
|
+
import {
|
|
18
|
+
GetConversationFromJSON,
|
|
19
|
+
GetConversationFromJSONTyped,
|
|
20
|
+
GetConversationToJSON,
|
|
21
|
+
GetConversationToJSONTyped,
|
|
22
|
+
} from './GetConversation';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GetConversationList
|
|
28
|
+
*/
|
|
29
|
+
export interface GetConversationList {
|
|
30
|
+
/**
|
|
31
|
+
* The current page number
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetConversationList
|
|
34
|
+
*/
|
|
35
|
+
page: number;
|
|
36
|
+
/**
|
|
37
|
+
* The number of items per page
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetConversationList
|
|
40
|
+
*/
|
|
41
|
+
pageSize: number;
|
|
42
|
+
/**
|
|
43
|
+
* The total number of pages
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof GetConversationList
|
|
46
|
+
*/
|
|
47
|
+
totalPages: number;
|
|
48
|
+
/**
|
|
49
|
+
* The total number of items
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GetConversationList
|
|
52
|
+
*/
|
|
53
|
+
totalItems: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<GetConversation>}
|
|
57
|
+
* @memberof GetConversationList
|
|
58
|
+
*/
|
|
59
|
+
items: Array<GetConversation>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the GetConversationList interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfGetConversationList(value: object): value is GetConversationList {
|
|
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 GetConversationListFromJSON(json: any): GetConversationList {
|
|
75
|
+
return GetConversationListFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetConversationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConversationList {
|
|
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(GetConversationFromJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetConversationListToJSON(json: any): GetConversationList {
|
|
93
|
+
return GetConversationListToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function GetConversationListToJSONTyped(value?: GetConversationList | 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(GetConversationToJSON)),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
package/src/models/GetPortal.ts
CHANGED
|
@@ -42,7 +42,7 @@ export interface GetPortal {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof GetPortal
|
|
44
44
|
*/
|
|
45
|
-
logoUrl
|
|
45
|
+
logoUrl?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -85,7 +85,6 @@ export type GetPortalBaseTypeEnum = typeof GetPortalBaseTypeEnum[keyof typeof Ge
|
|
|
85
85
|
export function instanceOfGetPortal(value: object): value is GetPortal {
|
|
86
86
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
87
87
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
88
|
-
if (!('logoUrl' in value) || value['logoUrl'] === undefined) return false;
|
|
89
88
|
if (!('headerBackgroundColor' in value) || value['headerBackgroundColor'] === undefined) return false;
|
|
90
89
|
if (!('headerTextColor' in value) || value['headerTextColor'] === undefined) return false;
|
|
91
90
|
return true;
|
|
@@ -104,7 +103,7 @@ export function GetPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
104
103
|
'id': json['id'],
|
|
105
104
|
'name': json['name'],
|
|
106
105
|
'parentPortalId': json['parent_portal_id'] == null ? undefined : json['parent_portal_id'],
|
|
107
|
-
'logoUrl': json['logo_url'],
|
|
106
|
+
'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
|
|
108
107
|
'headerBackgroundColor': json['header_background_color'],
|
|
109
108
|
'headerTextColor': json['header_text_color'],
|
|
110
109
|
'baseType': json['base_type'] == null ? undefined : json['base_type'],
|
|
@@ -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,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 PostConversation
|
|
20
|
+
*/
|
|
21
|
+
export interface PostConversation {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostConversation
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostConversation interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostConversation(value: object): value is PostConversation {
|
|
34
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PostConversationFromJSON(json: any): PostConversation {
|
|
39
|
+
return PostConversationFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PostConversationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostConversation {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'message': json['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostConversationToJSON(json: any): PostConversation {
|
|
53
|
+
return PostConversationToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostConversationToJSONTyped(value?: PostConversation | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'message': value['message'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 PostConversationResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface PostConversationResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostConversationResponse
|
|
26
|
+
*/
|
|
27
|
+
conversationId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostConversationResponse
|
|
32
|
+
*/
|
|
33
|
+
title: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PostConversationResponse
|
|
38
|
+
*/
|
|
39
|
+
response: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PostConversationResponse interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPostConversationResponse(value: object): value is PostConversationResponse {
|
|
46
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined) return false;
|
|
47
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
48
|
+
if (!('response' in value) || value['response'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostConversationResponseFromJSON(json: any): PostConversationResponse {
|
|
53
|
+
return PostConversationResponseFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostConversationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostConversationResponse {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'conversationId': json['conversation_id'],
|
|
63
|
+
'title': json['title'],
|
|
64
|
+
'response': json['response'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PostConversationResponseToJSON(json: any): PostConversationResponse {
|
|
69
|
+
return PostConversationResponseToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PostConversationResponseToJSONTyped(value?: PostConversationResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'conversation_id': value['conversationId'],
|
|
80
|
+
'title': value['title'],
|
|
81
|
+
'response': value['response'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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 PostMessage
|
|
20
|
+
*/
|
|
21
|
+
export interface PostMessage {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostMessage
|
|
26
|
+
*/
|
|
27
|
+
message: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PostMessage interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPostMessage(value: object): value is PostMessage {
|
|
34
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PostMessageFromJSON(json: any): PostMessage {
|
|
39
|
+
return PostMessageFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PostMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostMessage {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'message': json['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PostMessageToJSON(json: any): PostMessage {
|
|
53
|
+
return PostMessageToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PostMessageToJSONTyped(value?: PostMessage | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'message': value['message'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 PostMessageResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface PostMessageResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostMessageResponse
|
|
26
|
+
*/
|
|
27
|
+
conversationId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostMessageResponse
|
|
32
|
+
*/
|
|
33
|
+
response: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PostMessageResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPostMessageResponse(value: object): value is PostMessageResponse {
|
|
40
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined) return false;
|
|
41
|
+
if (!('response' in value) || value['response'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PostMessageResponseFromJSON(json: any): PostMessageResponse {
|
|
46
|
+
return PostMessageResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PostMessageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostMessageResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'conversationId': json['conversation_id'],
|
|
56
|
+
'response': json['response'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PostMessageResponseToJSON(json: any): PostMessageResponse {
|
|
61
|
+
return PostMessageResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PostMessageResponseToJSONTyped(value?: PostMessageResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'conversation_id': value['conversationId'],
|
|
72
|
+
'response': value['response'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './Essay';
|
|
|
7
7
|
export * from './Essay1';
|
|
8
8
|
export * from './FillInBlank';
|
|
9
9
|
export * from './FillInBlank1';
|
|
10
|
+
export * from './GetChatMessage';
|
|
10
11
|
export * from './GetContent';
|
|
11
12
|
export * from './GetContentContentData';
|
|
12
13
|
export * from './GetContentGradeDetail';
|
|
@@ -31,6 +32,8 @@ export * from './GetContentVersionList';
|
|
|
31
32
|
export * from './GetContentVersionListItemsInner';
|
|
32
33
|
export * from './GetContentVersionSandbox';
|
|
33
34
|
export * from './GetContentVersionScormData';
|
|
35
|
+
export * from './GetConversation';
|
|
36
|
+
export * from './GetConversationList';
|
|
34
37
|
export * from './GetCourse';
|
|
35
38
|
export * from './GetCourseEnrollment';
|
|
36
39
|
export * from './GetCourseEnrollmentList';
|
|
@@ -60,6 +63,7 @@ export * from './GetPortalBasicReporting';
|
|
|
60
63
|
export * from './GetPortalBasicReportingCertificates';
|
|
61
64
|
export * from './GetPortalBasicReportingPortalInfo';
|
|
62
65
|
export * from './GetPortalList';
|
|
66
|
+
export * from './GetPortalLogoUpload';
|
|
63
67
|
export * from './GetPortalStudentReporting';
|
|
64
68
|
export * from './GetPortalStudentReportingCertificates';
|
|
65
69
|
export * from './GetPortalStudentReportingPortalInfo';
|
|
@@ -147,11 +151,15 @@ export * from './PostContentQuizQuestionSelection';
|
|
|
147
151
|
export * from './PostContentQuizSettings';
|
|
148
152
|
export * from './PostContentSession';
|
|
149
153
|
export * from './PostContentUpload';
|
|
154
|
+
export * from './PostConversation';
|
|
155
|
+
export * from './PostConversationResponse';
|
|
150
156
|
export * from './PostCourse';
|
|
151
157
|
export * from './PostCourseEnrollment';
|
|
152
158
|
export * from './PostCourseExport';
|
|
153
159
|
export * from './PostLogin';
|
|
154
160
|
export * from './PostManualQuestionSelection';
|
|
161
|
+
export * from './PostMessage';
|
|
162
|
+
export * from './PostMessageResponse';
|
|
155
163
|
export * from './PostModule';
|
|
156
164
|
export * from './PostPortal';
|
|
157
165
|
export * from './PostPortalInvite';
|