@easyedu/js-lsm-api 1.39.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.
Files changed (61) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +21 -9
  3. package/dist/apis/ChatApi.d.ts +95 -0
  4. package/dist/apis/ChatApi.js +235 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/ChatApi.d.ts +95 -0
  8. package/dist/esm/apis/ChatApi.js +231 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/GetChatMessage.d.ts +44 -0
  12. package/dist/esm/models/GetChatMessage.js +51 -0
  13. package/dist/esm/models/GetConversation.d.ts +50 -0
  14. package/dist/esm/models/GetConversation.js +53 -0
  15. package/dist/esm/models/GetConversationList.d.ts +57 -0
  16. package/dist/esm/models/GetConversationList.js +60 -0
  17. package/dist/esm/models/PostConversation.d.ts +32 -0
  18. package/dist/esm/models/PostConversation.js +43 -0
  19. package/dist/esm/models/PostConversationResponse.d.ts +44 -0
  20. package/dist/esm/models/PostConversationResponse.js +51 -0
  21. package/dist/esm/models/PostMessage.d.ts +32 -0
  22. package/dist/esm/models/PostMessage.js +43 -0
  23. package/dist/esm/models/PostMessageResponse.d.ts +38 -0
  24. package/dist/esm/models/PostMessageResponse.js +47 -0
  25. package/dist/esm/models/index.d.ts +7 -0
  26. package/dist/esm/models/index.js +7 -0
  27. package/dist/models/GetChatMessage.d.ts +44 -0
  28. package/dist/models/GetChatMessage.js +58 -0
  29. package/dist/models/GetConversation.d.ts +50 -0
  30. package/dist/models/GetConversation.js +60 -0
  31. package/dist/models/GetConversationList.d.ts +57 -0
  32. package/dist/models/GetConversationList.js +67 -0
  33. package/dist/models/PostConversation.d.ts +32 -0
  34. package/dist/models/PostConversation.js +50 -0
  35. package/dist/models/PostConversationResponse.d.ts +44 -0
  36. package/dist/models/PostConversationResponse.js +58 -0
  37. package/dist/models/PostMessage.d.ts +32 -0
  38. package/dist/models/PostMessage.js +50 -0
  39. package/dist/models/PostMessageResponse.d.ts +38 -0
  40. package/dist/models/PostMessageResponse.js +54 -0
  41. package/dist/models/index.d.ts +7 -0
  42. package/dist/models/index.js +7 -0
  43. package/docs/ChatApi.md +357 -0
  44. package/docs/GetChatMessage.md +38 -0
  45. package/docs/GetConversation.md +40 -0
  46. package/docs/GetConversationList.md +42 -0
  47. package/docs/PostConversation.md +34 -0
  48. package/docs/PostConversationResponse.md +38 -0
  49. package/docs/PostMessage.md +34 -0
  50. package/docs/PostMessageResponse.md +36 -0
  51. package/package.json +1 -1
  52. package/src/apis/ChatApi.ts +303 -0
  53. package/src/apis/index.ts +1 -0
  54. package/src/models/GetChatMessage.ts +84 -0
  55. package/src/models/GetConversation.ts +92 -0
  56. package/src/models/GetConversationList.ts +110 -0
  57. package/src/models/PostConversation.ts +66 -0
  58. package/src/models/PostConversationResponse.ts +84 -0
  59. package/src/models/PostMessage.ts +66 -0
  60. package/src/models/PostMessageResponse.ts +75 -0
  61. package/src/models/index.ts +7 -0
@@ -0,0 +1,231 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { GetChatMessageFromJSON, GetConversationListFromJSON, PostConversationToJSON, PostConversationResponseFromJSON, PostMessageToJSON, PostMessageResponseFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class ChatApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates request options for deleteConversation without sending the request
31
+ */
32
+ deleteConversationRequestOpts(requestParameters) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['conversationId'] == null) {
35
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling deleteConversation().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ let urlPath = `/chat/conversations/{conversationId}`;
40
+ urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
41
+ return {
42
+ path: urlPath,
43
+ method: 'DELETE',
44
+ headers: headerParameters,
45
+ query: queryParameters,
46
+ };
47
+ });
48
+ }
49
+ /**
50
+ * Delete a conversation
51
+ */
52
+ deleteConversationRaw(requestParameters, initOverrides) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ const requestOptions = yield this.deleteConversationRequestOpts(requestParameters);
55
+ const response = yield this.request(requestOptions, initOverrides);
56
+ return new runtime.VoidApiResponse(response);
57
+ });
58
+ }
59
+ /**
60
+ * Delete a conversation
61
+ */
62
+ deleteConversation(requestParameters, initOverrides) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ yield this.deleteConversationRaw(requestParameters, initOverrides);
65
+ });
66
+ }
67
+ /**
68
+ * Creates request options for getConversationMessages without sending the request
69
+ */
70
+ getConversationMessagesRequestOpts(requestParameters) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ if (requestParameters['conversationId'] == null) {
73
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getConversationMessages().');
74
+ }
75
+ const queryParameters = {};
76
+ const headerParameters = {};
77
+ let urlPath = `/chat/conversations/{conversationId}/messages`;
78
+ urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
79
+ return {
80
+ path: urlPath,
81
+ method: 'GET',
82
+ headers: headerParameters,
83
+ query: queryParameters,
84
+ };
85
+ });
86
+ }
87
+ /**
88
+ * Get all messages in a conversation
89
+ */
90
+ getConversationMessagesRaw(requestParameters, initOverrides) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ const requestOptions = yield this.getConversationMessagesRequestOpts(requestParameters);
93
+ const response = yield this.request(requestOptions, initOverrides);
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetChatMessageFromJSON));
95
+ });
96
+ }
97
+ /**
98
+ * Get all messages in a conversation
99
+ */
100
+ getConversationMessages(requestParameters, initOverrides) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ const response = yield this.getConversationMessagesRaw(requestParameters, initOverrides);
103
+ return yield response.value();
104
+ });
105
+ }
106
+ /**
107
+ * Creates request options for getConversations without sending the request
108
+ */
109
+ getConversationsRequestOpts(requestParameters) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const queryParameters = {};
112
+ if (requestParameters['page'] != null) {
113
+ queryParameters['page'] = requestParameters['page'];
114
+ }
115
+ if (requestParameters['pageSize'] != null) {
116
+ queryParameters['pageSize'] = requestParameters['pageSize'];
117
+ }
118
+ const headerParameters = {};
119
+ let urlPath = `/chat/conversations`;
120
+ return {
121
+ path: urlPath,
122
+ method: 'GET',
123
+ headers: headerParameters,
124
+ query: queryParameters,
125
+ };
126
+ });
127
+ }
128
+ /**
129
+ * List conversations for the current user
130
+ */
131
+ getConversationsRaw(requestParameters, initOverrides) {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ const requestOptions = yield this.getConversationsRequestOpts(requestParameters);
134
+ const response = yield this.request(requestOptions, initOverrides);
135
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetConversationListFromJSON(jsonValue));
136
+ });
137
+ }
138
+ /**
139
+ * List conversations for the current user
140
+ */
141
+ getConversations() {
142
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
143
+ const response = yield this.getConversationsRaw(requestParameters, initOverrides);
144
+ return yield response.value();
145
+ });
146
+ }
147
+ /**
148
+ * Creates request options for postConversation without sending the request
149
+ */
150
+ postConversationRequestOpts(requestParameters) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ if (requestParameters['postConversation'] == null) {
153
+ throw new runtime.RequiredError('postConversation', 'Required parameter "postConversation" was null or undefined when calling postConversation().');
154
+ }
155
+ const queryParameters = {};
156
+ const headerParameters = {};
157
+ headerParameters['Content-Type'] = 'application/json';
158
+ let urlPath = `/chat/conversations`;
159
+ return {
160
+ path: urlPath,
161
+ method: 'POST',
162
+ headers: headerParameters,
163
+ query: queryParameters,
164
+ body: PostConversationToJSON(requestParameters['postConversation']),
165
+ };
166
+ });
167
+ }
168
+ /**
169
+ * Create a new conversation
170
+ */
171
+ postConversationRaw(requestParameters, initOverrides) {
172
+ return __awaiter(this, void 0, void 0, function* () {
173
+ const requestOptions = yield this.postConversationRequestOpts(requestParameters);
174
+ const response = yield this.request(requestOptions, initOverrides);
175
+ return new runtime.JSONApiResponse(response, (jsonValue) => PostConversationResponseFromJSON(jsonValue));
176
+ });
177
+ }
178
+ /**
179
+ * Create a new conversation
180
+ */
181
+ postConversation(requestParameters, initOverrides) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ const response = yield this.postConversationRaw(requestParameters, initOverrides);
184
+ return yield response.value();
185
+ });
186
+ }
187
+ /**
188
+ * Creates request options for postMessage without sending the request
189
+ */
190
+ postMessageRequestOpts(requestParameters) {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ if (requestParameters['conversationId'] == null) {
193
+ throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling postMessage().');
194
+ }
195
+ if (requestParameters['postMessage'] == null) {
196
+ throw new runtime.RequiredError('postMessage', 'Required parameter "postMessage" was null or undefined when calling postMessage().');
197
+ }
198
+ const queryParameters = {};
199
+ const headerParameters = {};
200
+ headerParameters['Content-Type'] = 'application/json';
201
+ let urlPath = `/chat/conversations/{conversationId}/messages`;
202
+ urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
203
+ return {
204
+ path: urlPath,
205
+ method: 'POST',
206
+ headers: headerParameters,
207
+ query: queryParameters,
208
+ body: PostMessageToJSON(requestParameters['postMessage']),
209
+ };
210
+ });
211
+ }
212
+ /**
213
+ * Send a message to a conversation
214
+ */
215
+ postMessageRaw(requestParameters, initOverrides) {
216
+ return __awaiter(this, void 0, void 0, function* () {
217
+ const requestOptions = yield this.postMessageRequestOpts(requestParameters);
218
+ const response = yield this.request(requestOptions, initOverrides);
219
+ return new runtime.JSONApiResponse(response, (jsonValue) => PostMessageResponseFromJSON(jsonValue));
220
+ });
221
+ }
222
+ /**
223
+ * Send a message to a conversation
224
+ */
225
+ postMessage(requestParameters, initOverrides) {
226
+ return __awaiter(this, void 0, void 0, function* () {
227
+ const response = yield this.postMessageRaw(requestParameters, initOverrides);
228
+ return yield response.value();
229
+ });
230
+ }
231
+ }
@@ -1,3 +1,4 @@
1
+ export * from './ChatApi';
1
2
  export * from './ContentApi';
2
3
  export * from './CourseApi';
3
4
  export * from './ModuleApi';
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ChatApi';
3
4
  export * from './ContentApi';
4
5
  export * from './CourseApi';
5
6
  export * from './ModuleApi';
@@ -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,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 GetChatMessage interface.
16
+ */
17
+ export function instanceOfGetChatMessage(value) {
18
+ if (!('role' in value) || value['role'] === undefined)
19
+ return false;
20
+ if (!('content' in value) || value['content'] === undefined)
21
+ return false;
22
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function GetChatMessageFromJSON(json) {
27
+ return GetChatMessageFromJSONTyped(json, false);
28
+ }
29
+ export function GetChatMessageFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'role': json['role'],
35
+ 'content': json['content'],
36
+ 'createdAt': json['created_at'],
37
+ };
38
+ }
39
+ export function GetChatMessageToJSON(json) {
40
+ return GetChatMessageToJSONTyped(json, false);
41
+ }
42
+ export function GetChatMessageToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'role': value['role'],
48
+ 'content': value['content'],
49
+ 'created_at': value['createdAt'],
50
+ };
51
+ }
@@ -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,53 @@
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 GetConversation interface.
16
+ */
17
+ export function instanceOfGetConversation(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
21
+ return false;
22
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function GetConversationFromJSON(json) {
27
+ return GetConversationFromJSONTyped(json, false);
28
+ }
29
+ export function GetConversationFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'title': json['title'] == null ? undefined : json['title'],
36
+ 'createdAt': json['created_at'],
37
+ 'updatedAt': json['updated_at'],
38
+ };
39
+ }
40
+ export function GetConversationToJSON(json) {
41
+ return GetConversationToJSONTyped(json, false);
42
+ }
43
+ export function GetConversationToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'title': value['title'],
50
+ 'created_at': value['createdAt'],
51
+ 'updated_at': value['updatedAt'],
52
+ };
53
+ }
@@ -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,60 @@
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
+ import { GetConversationFromJSON, GetConversationToJSON, } from './GetConversation';
15
+ /**
16
+ * Check if a given object implements the GetConversationList interface.
17
+ */
18
+ export function instanceOfGetConversationList(value) {
19
+ if (!('page' in value) || value['page'] === undefined)
20
+ return false;
21
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
22
+ return false;
23
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
24
+ return false;
25
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
26
+ return false;
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetConversationListFromJSON(json) {
32
+ return GetConversationListFromJSONTyped(json, false);
33
+ }
34
+ export function GetConversationListFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'page': json['page'],
40
+ 'pageSize': json['pageSize'],
41
+ 'totalPages': json['totalPages'],
42
+ 'totalItems': json['totalItems'],
43
+ 'items': (json['items'].map(GetConversationFromJSON)),
44
+ };
45
+ }
46
+ export function GetConversationListToJSON(json) {
47
+ return GetConversationListToJSONTyped(json, false);
48
+ }
49
+ export function GetConversationListToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'page': value['page'],
55
+ 'pageSize': value['pageSize'],
56
+ 'totalPages': value['totalPages'],
57
+ 'totalItems': value['totalItems'],
58
+ 'items': (value['items'].map(GetConversationToJSON)),
59
+ };
60
+ }
@@ -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;
@@ -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 PostConversation interface.
16
+ */
17
+ export function instanceOfPostConversation(value) {
18
+ if (!('message' in value) || value['message'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostConversationFromJSON(json) {
23
+ return PostConversationFromJSONTyped(json, false);
24
+ }
25
+ export function PostConversationFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'message': json['message'],
31
+ };
32
+ }
33
+ export function PostConversationToJSON(json) {
34
+ return PostConversationToJSONTyped(json, false);
35
+ }
36
+ export function PostConversationToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'message': value['message'],
42
+ };
43
+ }
@@ -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 PostConversationResponse
16
+ */
17
+ export interface PostConversationResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostConversationResponse
22
+ */
23
+ conversationId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PostConversationResponse
28
+ */
29
+ title: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PostConversationResponse
34
+ */
35
+ response: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PostConversationResponse interface.
39
+ */
40
+ export declare function instanceOfPostConversationResponse(value: object): value is PostConversationResponse;
41
+ export declare function PostConversationResponseFromJSON(json: any): PostConversationResponse;
42
+ export declare function PostConversationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostConversationResponse;
43
+ export declare function PostConversationResponseToJSON(json: any): PostConversationResponse;
44
+ export declare function PostConversationResponseToJSONTyped(value?: PostConversationResponse | null, ignoreDiscriminator?: boolean): any;