@easyedu/js-lsm-api 1.38.0 → 1.40.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 +16 -0
- package/README.md +21 -9
- package/dist/apis/ChatApi.d.ts +95 -0
- package/dist/apis/ChatApi.js +235 -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/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/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 +7 -0
- package/dist/esm/models/index.js +7 -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/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 +7 -0
- package/dist/models/index.js +7 -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/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/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/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 +7 -0
|
@@ -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';
|
|
@@ -147,11 +150,15 @@ export * from './PostContentQuizQuestionSelection';
|
|
|
147
150
|
export * from './PostContentQuizSettings';
|
|
148
151
|
export * from './PostContentSession';
|
|
149
152
|
export * from './PostContentUpload';
|
|
153
|
+
export * from './PostConversation';
|
|
154
|
+
export * from './PostConversationResponse';
|
|
150
155
|
export * from './PostCourse';
|
|
151
156
|
export * from './PostCourseEnrollment';
|
|
152
157
|
export * from './PostCourseExport';
|
|
153
158
|
export * from './PostLogin';
|
|
154
159
|
export * from './PostManualQuestionSelection';
|
|
160
|
+
export * from './PostMessage';
|
|
161
|
+
export * from './PostMessageResponse';
|
|
155
162
|
export * from './PostModule';
|
|
156
163
|
export * from './PostPortal';
|
|
157
164
|
export * from './PostPortalInvite';
|