@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,51 @@
|
|
|
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
|
+
* Check if a given object implements the PostConversationResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostConversationResponse(value) {
|
|
18
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('response' in value) || value['response'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function PostConversationResponseFromJSON(json) {
|
|
27
|
+
return PostConversationResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function PostConversationResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'conversationId': json['conversation_id'],
|
|
35
|
+
'title': json['title'],
|
|
36
|
+
'response': json['response'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function PostConversationResponseToJSON(json) {
|
|
40
|
+
return PostConversationResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function PostConversationResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'conversation_id': value['conversationId'],
|
|
48
|
+
'title': value['title'],
|
|
49
|
+
'response': value['response'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 PostMessage
|
|
16
|
+
*/
|
|
17
|
+
export interface PostMessage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostMessage
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostMessage interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostMessage(value: object): value is PostMessage;
|
|
29
|
+
export declare function PostMessageFromJSON(json: any): PostMessage;
|
|
30
|
+
export declare function PostMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostMessage;
|
|
31
|
+
export declare function PostMessageToJSON(json: any): PostMessage;
|
|
32
|
+
export declare function PostMessageToJSONTyped(value?: PostMessage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Check if a given object implements the PostMessage interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostMessage(value) {
|
|
18
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostMessageFromJSON(json) {
|
|
23
|
+
return PostMessageFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'message': json['message'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PostMessageToJSON(json) {
|
|
34
|
+
return PostMessageToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PostMessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'message': value['message'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -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 PostMessageResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface PostMessageResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostMessageResponse
|
|
22
|
+
*/
|
|
23
|
+
conversationId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostMessageResponse
|
|
28
|
+
*/
|
|
29
|
+
response: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PostMessageResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPostMessageResponse(value: object): value is PostMessageResponse;
|
|
35
|
+
export declare function PostMessageResponseFromJSON(json: any): PostMessageResponse;
|
|
36
|
+
export declare function PostMessageResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostMessageResponse;
|
|
37
|
+
export declare function PostMessageResponseToJSON(json: any): PostMessageResponse;
|
|
38
|
+
export declare function PostMessageResponseToJSONTyped(value?: PostMessageResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
* Check if a given object implements the PostMessageResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostMessageResponse(value) {
|
|
18
|
+
if (!('conversationId' in value) || value['conversationId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('response' in value) || value['response'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PostMessageResponseFromJSON(json) {
|
|
25
|
+
return PostMessageResponseFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PostMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'conversationId': json['conversation_id'],
|
|
33
|
+
'response': json['response'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PostMessageResponseToJSON(json) {
|
|
37
|
+
return PostMessageResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PostMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'conversation_id': value['conversationId'],
|
|
45
|
+
'response': value['response'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from './Essay';
|
|
|
5
5
|
export * from './Essay1';
|
|
6
6
|
export * from './FillInBlank';
|
|
7
7
|
export * from './FillInBlank1';
|
|
8
|
+
export * from './GetChatMessage';
|
|
8
9
|
export * from './GetContent';
|
|
9
10
|
export * from './GetContentContentData';
|
|
10
11
|
export * from './GetContentGradeDetail';
|
|
@@ -29,6 +30,8 @@ export * from './GetContentVersionList';
|
|
|
29
30
|
export * from './GetContentVersionListItemsInner';
|
|
30
31
|
export * from './GetContentVersionSandbox';
|
|
31
32
|
export * from './GetContentVersionScormData';
|
|
33
|
+
export * from './GetConversation';
|
|
34
|
+
export * from './GetConversationList';
|
|
32
35
|
export * from './GetCourse';
|
|
33
36
|
export * from './GetCourseEnrollment';
|
|
34
37
|
export * from './GetCourseEnrollmentList';
|
|
@@ -145,11 +148,15 @@ export * from './PostContentQuizQuestionSelection';
|
|
|
145
148
|
export * from './PostContentQuizSettings';
|
|
146
149
|
export * from './PostContentSession';
|
|
147
150
|
export * from './PostContentUpload';
|
|
151
|
+
export * from './PostConversation';
|
|
152
|
+
export * from './PostConversationResponse';
|
|
148
153
|
export * from './PostCourse';
|
|
149
154
|
export * from './PostCourseEnrollment';
|
|
150
155
|
export * from './PostCourseExport';
|
|
151
156
|
export * from './PostLogin';
|
|
152
157
|
export * from './PostManualQuestionSelection';
|
|
158
|
+
export * from './PostMessage';
|
|
159
|
+
export * from './PostMessageResponse';
|
|
153
160
|
export * from './PostModule';
|
|
154
161
|
export * from './PostPortal';
|
|
155
162
|
export * from './PostPortalInvite';
|
package/dist/esm/models/index.js
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';
|
|
@@ -0,0 +1,44 @@
|
|
|
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 GetChatMessage
|
|
16
|
+
*/
|
|
17
|
+
export interface GetChatMessage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetChatMessage
|
|
22
|
+
*/
|
|
23
|
+
role: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetChatMessage
|
|
28
|
+
*/
|
|
29
|
+
content: string;
|
|
30
|
+
/**
|
|
31
|
+
* Unix epoch timestamp
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetChatMessage
|
|
34
|
+
*/
|
|
35
|
+
createdAt: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GetChatMessage interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGetChatMessage(value: object): value is GetChatMessage;
|
|
41
|
+
export declare function GetChatMessageFromJSON(json: any): GetChatMessage;
|
|
42
|
+
export declare function GetChatMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetChatMessage;
|
|
43
|
+
export declare function GetChatMessageToJSON(json: any): GetChatMessage;
|
|
44
|
+
export declare function GetChatMessageToJSONTyped(value?: GetChatMessage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.instanceOfGetChatMessage = instanceOfGetChatMessage;
|
|
17
|
+
exports.GetChatMessageFromJSON = GetChatMessageFromJSON;
|
|
18
|
+
exports.GetChatMessageFromJSONTyped = GetChatMessageFromJSONTyped;
|
|
19
|
+
exports.GetChatMessageToJSON = GetChatMessageToJSON;
|
|
20
|
+
exports.GetChatMessageToJSONTyped = GetChatMessageToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetChatMessage interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetChatMessage(value) {
|
|
25
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetChatMessageFromJSON(json) {
|
|
34
|
+
return GetChatMessageFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetChatMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'role': json['role'],
|
|
42
|
+
'content': json['content'],
|
|
43
|
+
'createdAt': json['created_at'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function GetChatMessageToJSON(json) {
|
|
47
|
+
return GetChatMessageToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GetChatMessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'role': value['role'],
|
|
55
|
+
'content': value['content'],
|
|
56
|
+
'created_at': value['createdAt'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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 GetConversation
|
|
16
|
+
*/
|
|
17
|
+
export interface GetConversation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetConversation
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GetConversation
|
|
28
|
+
*/
|
|
29
|
+
title?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Unix epoch timestamp
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof GetConversation
|
|
34
|
+
*/
|
|
35
|
+
createdAt: number;
|
|
36
|
+
/**
|
|
37
|
+
* Unix epoch timestamp
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GetConversation
|
|
40
|
+
*/
|
|
41
|
+
updatedAt: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the GetConversation interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfGetConversation(value: object): value is GetConversation;
|
|
47
|
+
export declare function GetConversationFromJSON(json: any): GetConversation;
|
|
48
|
+
export declare function GetConversationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConversation;
|
|
49
|
+
export declare function GetConversationToJSON(json: any): GetConversation;
|
|
50
|
+
export declare function GetConversationToJSONTyped(value?: GetConversation | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfGetConversation = instanceOfGetConversation;
|
|
17
|
+
exports.GetConversationFromJSON = GetConversationFromJSON;
|
|
18
|
+
exports.GetConversationFromJSONTyped = GetConversationFromJSONTyped;
|
|
19
|
+
exports.GetConversationToJSON = GetConversationToJSON;
|
|
20
|
+
exports.GetConversationToJSONTyped = GetConversationToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetConversation interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetConversation(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GetConversationFromJSON(json) {
|
|
34
|
+
return GetConversationFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GetConversationFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
43
|
+
'createdAt': json['created_at'],
|
|
44
|
+
'updatedAt': json['updated_at'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function GetConversationToJSON(json) {
|
|
48
|
+
return GetConversationToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function GetConversationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'title': value['title'],
|
|
57
|
+
'created_at': value['createdAt'],
|
|
58
|
+
'updated_at': value['updatedAt'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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 { GetConversation } from './GetConversation';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GetConversationList
|
|
17
|
+
*/
|
|
18
|
+
export interface GetConversationList {
|
|
19
|
+
/**
|
|
20
|
+
* The current page number
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof GetConversationList
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The number of items per page
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof GetConversationList
|
|
29
|
+
*/
|
|
30
|
+
pageSize: number;
|
|
31
|
+
/**
|
|
32
|
+
* The total number of pages
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof GetConversationList
|
|
35
|
+
*/
|
|
36
|
+
totalPages: number;
|
|
37
|
+
/**
|
|
38
|
+
* The total number of items
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof GetConversationList
|
|
41
|
+
*/
|
|
42
|
+
totalItems: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<GetConversation>}
|
|
46
|
+
* @memberof GetConversationList
|
|
47
|
+
*/
|
|
48
|
+
items: Array<GetConversation>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the GetConversationList interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfGetConversationList(value: object): value is GetConversationList;
|
|
54
|
+
export declare function GetConversationListFromJSON(json: any): GetConversationList;
|
|
55
|
+
export declare function GetConversationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetConversationList;
|
|
56
|
+
export declare function GetConversationListToJSON(json: any): GetConversationList;
|
|
57
|
+
export declare function GetConversationListToJSONTyped(value?: GetConversationList | 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.instanceOfGetConversationList = instanceOfGetConversationList;
|
|
17
|
+
exports.GetConversationListFromJSON = GetConversationListFromJSON;
|
|
18
|
+
exports.GetConversationListFromJSONTyped = GetConversationListFromJSONTyped;
|
|
19
|
+
exports.GetConversationListToJSON = GetConversationListToJSON;
|
|
20
|
+
exports.GetConversationListToJSONTyped = GetConversationListToJSONTyped;
|
|
21
|
+
const GetConversation_1 = require("./GetConversation");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GetConversationList interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGetConversationList(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 GetConversationListFromJSON(json) {
|
|
39
|
+
return GetConversationListFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GetConversationListFromJSONTyped(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(GetConversation_1.GetConversationFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function GetConversationListToJSON(json) {
|
|
54
|
+
return GetConversationListToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function GetConversationListToJSONTyped(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(GetConversation_1.GetConversationToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 PostConversation
|
|
16
|
+
*/
|
|
17
|
+
export interface PostConversation {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostConversation
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostConversation interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostConversation(value: object): value is PostConversation;
|
|
29
|
+
export declare function PostConversationFromJSON(json: any): PostConversation;
|
|
30
|
+
export declare function PostConversationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostConversation;
|
|
31
|
+
export declare function PostConversationToJSON(json: any): PostConversation;
|
|
32
|
+
export declare function PostConversationToJSONTyped(value?: PostConversation | null, ignoreDiscriminator?: boolean): any;
|