@instructure/athena-api-client 2.17.0 → 2.18.1
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/README.md +63 -0
- package/dist/apis/AccountsApi.d.ts +7 -7
- package/dist/apis/AccountsApi.js +9 -6
- package/dist/apis/AdminApi.d.ts +23 -23
- package/dist/apis/AdminApi.js +33 -22
- package/dist/apis/ChatsApi.d.ts +11 -11
- package/dist/apis/ChatsApi.js +15 -10
- package/dist/apis/DailyQuizApi.d.ts +5 -4
- package/dist/apis/DailyQuizApi.js +7 -4
- package/dist/apis/FilesApi.d.ts +3 -3
- package/dist/apis/FilesApi.js +3 -2
- package/dist/apis/LearningDaysApi.d.ts +3 -2
- package/dist/apis/LearningDaysApi.js +4 -2
- package/dist/apis/LearningMomentsApi.d.ts +5 -4
- package/dist/apis/LearningMomentsApi.js +7 -4
- package/dist/apis/LearningSessionEvaluationsApi.d.ts +3 -2
- package/dist/apis/LearningSessionEvaluationsApi.js +4 -2
- package/dist/apis/MessagesApi.d.ts +9 -9
- package/dist/apis/MessagesApi.js +12 -8
- package/dist/apis/PlansApi.d.ts +9 -9
- package/dist/apis/PlansApi.js +12 -8
- package/dist/apis/QuizSessionsApi.d.ts +11 -11
- package/dist/apis/QuizSessionsApi.js +15 -10
- package/dist/apis/QuizzesApi.d.ts +5 -4
- package/dist/apis/QuizzesApi.js +7 -4
- package/dist/apis/ServiceTokensApi.d.ts +9 -9
- package/dist/apis/ServiceTokensApi.js +12 -8
- package/dist/apis/TaxonomiesApi.d.ts +9 -8
- package/dist/apis/TaxonomiesApi.js +13 -8
- package/dist/apis/TaxonomyEnrollmentsApi.d.ts +7 -6
- package/dist/apis/TaxonomyEnrollmentsApi.js +10 -6
- package/dist/apis/UserConceptsApi.d.ts +5 -5
- package/dist/apis/UserConceptsApi.js +6 -4
- package/dist/apis/UserContextApi.d.ts +5 -5
- package/dist/apis/UserContextApi.js +6 -4
- package/dist/apis/VotesApi.d.ts +5 -5
- package/dist/apis/VotesApi.js +6 -4
- package/dist/esm/apis/AccountsApi.d.ts +7 -7
- package/dist/esm/apis/AccountsApi.js +10 -7
- package/dist/esm/apis/AdminApi.d.ts +23 -23
- package/dist/esm/apis/AdminApi.js +34 -23
- package/dist/esm/apis/ChatsApi.d.ts +11 -11
- package/dist/esm/apis/ChatsApi.js +16 -11
- package/dist/esm/apis/DailyQuizApi.d.ts +5 -4
- package/dist/esm/apis/DailyQuizApi.js +7 -4
- package/dist/esm/apis/FilesApi.d.ts +3 -3
- package/dist/esm/apis/FilesApi.js +4 -3
- package/dist/esm/apis/LearningDaysApi.d.ts +3 -2
- package/dist/esm/apis/LearningDaysApi.js +4 -2
- package/dist/esm/apis/LearningMomentsApi.d.ts +5 -4
- package/dist/esm/apis/LearningMomentsApi.js +7 -4
- package/dist/esm/apis/LearningSessionEvaluationsApi.d.ts +3 -2
- package/dist/esm/apis/LearningSessionEvaluationsApi.js +4 -2
- package/dist/esm/apis/MessagesApi.d.ts +9 -9
- package/dist/esm/apis/MessagesApi.js +13 -9
- package/dist/esm/apis/PlansApi.d.ts +9 -9
- package/dist/esm/apis/PlansApi.js +13 -9
- package/dist/esm/apis/QuizSessionsApi.d.ts +11 -11
- package/dist/esm/apis/QuizSessionsApi.js +16 -11
- package/dist/esm/apis/QuizzesApi.d.ts +5 -4
- package/dist/esm/apis/QuizzesApi.js +7 -4
- package/dist/esm/apis/ServiceTokensApi.d.ts +9 -9
- package/dist/esm/apis/ServiceTokensApi.js +13 -9
- package/dist/esm/apis/TaxonomiesApi.d.ts +9 -8
- package/dist/esm/apis/TaxonomiesApi.js +13 -8
- package/dist/esm/apis/TaxonomyEnrollmentsApi.d.ts +7 -6
- package/dist/esm/apis/TaxonomyEnrollmentsApi.js +10 -6
- package/dist/esm/apis/UserConceptsApi.d.ts +5 -5
- package/dist/esm/apis/UserConceptsApi.js +7 -5
- package/dist/esm/apis/UserContextApi.d.ts +5 -5
- package/dist/esm/apis/UserContextApi.js +7 -5
- package/dist/esm/apis/VotesApi.d.ts +5 -5
- package/dist/esm/apis/VotesApi.js +7 -5
- package/dist/esm/models/TaxonomySummary.d.ts +6 -0
- package/dist/esm/models/TaxonomySummary.js +4 -0
- package/dist/esm/models/index.d.ts +63 -0
- package/dist/esm/models/index.js +63 -0
- package/dist/models/TaxonomySummary.d.ts +6 -0
- package/dist/models/TaxonomySummary.js +4 -0
- package/dist/models/index.d.ts +63 -0
- package/dist/models/index.js +63 -0
- package/package.json +1 -1
package/dist/apis/ChatsApi.js
CHANGED
|
@@ -58,7 +58,7 @@ class ChatsApi extends runtime.BaseAPI {
|
|
|
58
58
|
query: queryParameters,
|
|
59
59
|
body: (0, index_1.CreateChatRequestToJSON)(requestParameters['createChatRequest']),
|
|
60
60
|
}, initOverrides);
|
|
61
|
-
return new runtime.
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatFromJSON)(jsonValue));
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
@@ -67,7 +67,8 @@ class ChatsApi extends runtime.BaseAPI {
|
|
|
67
67
|
*/
|
|
68
68
|
createChat(requestParameters, initOverrides) {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
yield this.createChatRaw(requestParameters, initOverrides);
|
|
70
|
+
const response = yield this.createChatRaw(requestParameters, initOverrides);
|
|
71
|
+
return yield response.value();
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
74
|
/**
|
|
@@ -138,7 +139,7 @@ class ChatsApi extends runtime.BaseAPI {
|
|
|
138
139
|
headers: headerParameters,
|
|
139
140
|
query: queryParameters,
|
|
140
141
|
}, initOverrides);
|
|
141
|
-
return new runtime.
|
|
142
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatFromJSON)(jsonValue));
|
|
142
143
|
});
|
|
143
144
|
}
|
|
144
145
|
/**
|
|
@@ -147,7 +148,8 @@ class ChatsApi extends runtime.BaseAPI {
|
|
|
147
148
|
*/
|
|
148
149
|
getChat(requestParameters, initOverrides) {
|
|
149
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
-
yield this.getChatRaw(requestParameters, initOverrides);
|
|
151
|
+
const response = yield this.getChatRaw(requestParameters, initOverrides);
|
|
152
|
+
return yield response.value();
|
|
151
153
|
});
|
|
152
154
|
}
|
|
153
155
|
/**
|
|
@@ -183,7 +185,7 @@ class ChatsApi extends runtime.BaseAPI {
|
|
|
183
185
|
headers: headerParameters,
|
|
184
186
|
query: queryParameters,
|
|
185
187
|
}, initOverrides);
|
|
186
|
-
return new runtime.
|
|
188
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedChatsFromJSON)(jsonValue));
|
|
187
189
|
});
|
|
188
190
|
}
|
|
189
191
|
/**
|
|
@@ -192,7 +194,8 @@ class ChatsApi extends runtime.BaseAPI {
|
|
|
192
194
|
*/
|
|
193
195
|
listChats(requestParameters, initOverrides) {
|
|
194
196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
-
yield this.listChatsRaw(requestParameters, initOverrides);
|
|
197
|
+
const response = yield this.listChatsRaw(requestParameters, initOverrides);
|
|
198
|
+
return yield response.value();
|
|
196
199
|
});
|
|
197
200
|
}
|
|
198
201
|
/**
|
|
@@ -223,7 +226,7 @@ class ChatsApi extends runtime.BaseAPI {
|
|
|
223
226
|
headers: headerParameters,
|
|
224
227
|
query: queryParameters,
|
|
225
228
|
}, initOverrides);
|
|
226
|
-
return new runtime.
|
|
229
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatFromJSON)(jsonValue));
|
|
227
230
|
});
|
|
228
231
|
}
|
|
229
232
|
/**
|
|
@@ -232,7 +235,8 @@ class ChatsApi extends runtime.BaseAPI {
|
|
|
232
235
|
*/
|
|
233
236
|
markChatAsViewed(requestParameters, initOverrides) {
|
|
234
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
|
-
yield this.markChatAsViewedRaw(requestParameters, initOverrides);
|
|
238
|
+
const response = yield this.markChatAsViewedRaw(requestParameters, initOverrides);
|
|
239
|
+
return yield response.value();
|
|
236
240
|
});
|
|
237
241
|
}
|
|
238
242
|
/**
|
|
@@ -377,7 +381,7 @@ class ChatsApi extends runtime.BaseAPI {
|
|
|
377
381
|
query: queryParameters,
|
|
378
382
|
body: (0, index_1.UpdateChatRequestToJSON)(requestParameters['updateChatRequest']),
|
|
379
383
|
}, initOverrides);
|
|
380
|
-
return new runtime.
|
|
384
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChatFromJSON)(jsonValue));
|
|
381
385
|
});
|
|
382
386
|
}
|
|
383
387
|
/**
|
|
@@ -386,7 +390,8 @@ class ChatsApi extends runtime.BaseAPI {
|
|
|
386
390
|
*/
|
|
387
391
|
updateChat(requestParameters, initOverrides) {
|
|
388
392
|
return __awaiter(this, void 0, void 0, function* () {
|
|
389
|
-
yield this.updateChatRaw(requestParameters, initOverrides);
|
|
393
|
+
const response = yield this.updateChatRaw(requestParameters, initOverrides);
|
|
394
|
+
return yield response.value();
|
|
390
395
|
});
|
|
391
396
|
}
|
|
392
397
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import type { DailyQuizStatus } from '../models/index';
|
|
13
14
|
export interface CreateDailyQuizRequest {
|
|
14
15
|
xUserId: string;
|
|
15
16
|
}
|
|
@@ -24,20 +25,20 @@ export declare class DailyQuizApi extends runtime.BaseAPI {
|
|
|
24
25
|
* Atomically finds today\'s daily-quiz chat or creates one if none exists. Returns featureEnabled: false when the user lacks enhanced-quizzing.
|
|
25
26
|
* Get or create today\'s daily quiz
|
|
26
27
|
*/
|
|
27
|
-
createDailyQuizRaw(requestParameters: CreateDailyQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
28
|
+
createDailyQuizRaw(requestParameters: CreateDailyQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DailyQuizStatus>>;
|
|
28
29
|
/**
|
|
29
30
|
* Atomically finds today\'s daily-quiz chat or creates one if none exists. Returns featureEnabled: false when the user lacks enhanced-quizzing.
|
|
30
31
|
* Get or create today\'s daily quiz
|
|
31
32
|
*/
|
|
32
|
-
createDailyQuiz(requestParameters: CreateDailyQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
33
|
+
createDailyQuiz(requestParameters: CreateDailyQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DailyQuizStatus>;
|
|
33
34
|
/**
|
|
34
35
|
* Returns entitlement (featureEnabled), today\'s calendar label in the user\'s timezone (todayDate), and chatId when a daily-quiz chat already exists for that calendar day. featureEnabled reflects enhanced-quizzing; chatId distinguishes \"not started today\" (null) vs \"already have today\'s chat\" (uuid).
|
|
35
36
|
* Get today\'s daily quiz
|
|
36
37
|
*/
|
|
37
|
-
getDailyQuizRaw(requestParameters: GetDailyQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
38
|
+
getDailyQuizRaw(requestParameters: GetDailyQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DailyQuizStatus>>;
|
|
38
39
|
/**
|
|
39
40
|
* Returns entitlement (featureEnabled), today\'s calendar label in the user\'s timezone (todayDate), and chatId when a daily-quiz chat already exists for that calendar day. featureEnabled reflects enhanced-quizzing; chatId distinguishes \"not started today\" (null) vs \"already have today\'s chat\" (uuid).
|
|
40
41
|
* Get today\'s daily quiz
|
|
41
42
|
*/
|
|
42
|
-
getDailyQuiz(requestParameters: GetDailyQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
43
|
+
getDailyQuiz(requestParameters: GetDailyQuizRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DailyQuizStatus>;
|
|
43
44
|
}
|
|
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.DailyQuizApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
27
28
|
/**
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
@@ -52,7 +53,7 @@ class DailyQuizApi extends runtime.BaseAPI {
|
|
|
52
53
|
headers: headerParameters,
|
|
53
54
|
query: queryParameters,
|
|
54
55
|
}, initOverrides);
|
|
55
|
-
return new runtime.
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DailyQuizStatusFromJSON)(jsonValue));
|
|
56
57
|
});
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
@@ -61,7 +62,8 @@ class DailyQuizApi extends runtime.BaseAPI {
|
|
|
61
62
|
*/
|
|
62
63
|
createDailyQuiz(requestParameters, initOverrides) {
|
|
63
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
yield this.createDailyQuizRaw(requestParameters, initOverrides);
|
|
65
|
+
const response = yield this.createDailyQuizRaw(requestParameters, initOverrides);
|
|
66
|
+
return yield response.value();
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
69
|
/**
|
|
@@ -88,7 +90,7 @@ class DailyQuizApi extends runtime.BaseAPI {
|
|
|
88
90
|
headers: headerParameters,
|
|
89
91
|
query: queryParameters,
|
|
90
92
|
}, initOverrides);
|
|
91
|
-
return new runtime.
|
|
93
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DailyQuizStatusFromJSON)(jsonValue));
|
|
92
94
|
});
|
|
93
95
|
}
|
|
94
96
|
/**
|
|
@@ -97,7 +99,8 @@ class DailyQuizApi extends runtime.BaseAPI {
|
|
|
97
99
|
*/
|
|
98
100
|
getDailyQuiz(requestParameters, initOverrides) {
|
|
99
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
-
yield this.getDailyQuizRaw(requestParameters, initOverrides);
|
|
102
|
+
const response = yield this.getDailyQuizRaw(requestParameters, initOverrides);
|
|
103
|
+
return yield response.value();
|
|
101
104
|
});
|
|
102
105
|
}
|
|
103
106
|
}
|
package/dist/apis/FilesApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { UploadUrlRequest } from '../models/index';
|
|
13
|
+
import type { UploadUrlRequest, UploadUrlResponse } from '../models/index';
|
|
14
14
|
export interface GetFileUploadUrlsRequest {
|
|
15
15
|
xUserId: string;
|
|
16
16
|
uploadUrlRequest: UploadUrlRequest;
|
|
@@ -23,10 +23,10 @@ export declare class FilesApi extends runtime.BaseAPI {
|
|
|
23
23
|
* Returns signed S3 PUT/GET/DELETE URLs for uploading files. Only the chat owner can request upload URLs.
|
|
24
24
|
* Get presigned upload URLs
|
|
25
25
|
*/
|
|
26
|
-
getFileUploadUrlsRaw(requestParameters: GetFileUploadUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
26
|
+
getFileUploadUrlsRaw(requestParameters: GetFileUploadUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadUrlResponse>>;
|
|
27
27
|
/**
|
|
28
28
|
* Returns signed S3 PUT/GET/DELETE URLs for uploading files. Only the chat owner can request upload URLs.
|
|
29
29
|
* Get presigned upload URLs
|
|
30
30
|
*/
|
|
31
|
-
getFileUploadUrls(requestParameters: GetFileUploadUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
31
|
+
getFileUploadUrls(requestParameters: GetFileUploadUrlsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadUrlResponse>;
|
|
32
32
|
}
|
package/dist/apis/FilesApi.js
CHANGED
|
@@ -58,7 +58,7 @@ class FilesApi extends runtime.BaseAPI {
|
|
|
58
58
|
query: queryParameters,
|
|
59
59
|
body: (0, index_1.UploadUrlRequestToJSON)(requestParameters['uploadUrlRequest']),
|
|
60
60
|
}, initOverrides);
|
|
61
|
-
return new runtime.
|
|
61
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UploadUrlResponseFromJSON)(jsonValue));
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
@@ -67,7 +67,8 @@ class FilesApi extends runtime.BaseAPI {
|
|
|
67
67
|
*/
|
|
68
68
|
getFileUploadUrls(requestParameters, initOverrides) {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
yield this.getFileUploadUrlsRaw(requestParameters, initOverrides);
|
|
70
|
+
const response = yield this.getFileUploadUrlsRaw(requestParameters, initOverrides);
|
|
71
|
+
return yield response.value();
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
74
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import type { LearningDaysResponse } from '../models/index';
|
|
13
14
|
export interface GetLearningDaysRequest {
|
|
14
15
|
startDate: Date;
|
|
15
16
|
endDate: Date;
|
|
@@ -23,10 +24,10 @@ export declare class LearningDaysApi extends runtime.BaseAPI {
|
|
|
23
24
|
* Returns distinct dates within the given range on which the user had at least one learning moment, plus the date of their most recent learning moment overall.
|
|
24
25
|
* Get learning days in range
|
|
25
26
|
*/
|
|
26
|
-
getLearningDaysRaw(requestParameters: GetLearningDaysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
27
|
+
getLearningDaysRaw(requestParameters: GetLearningDaysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LearningDaysResponse>>;
|
|
27
28
|
/**
|
|
28
29
|
* Returns distinct dates within the given range on which the user had at least one learning moment, plus the date of their most recent learning moment overall.
|
|
29
30
|
* Get learning days in range
|
|
30
31
|
*/
|
|
31
|
-
getLearningDays(requestParameters: GetLearningDaysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
32
|
+
getLearningDays(requestParameters: GetLearningDaysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LearningDaysResponse>;
|
|
32
33
|
}
|
|
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.LearningDaysApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
27
28
|
/**
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
@@ -64,7 +65,7 @@ class LearningDaysApi extends runtime.BaseAPI {
|
|
|
64
65
|
headers: headerParameters,
|
|
65
66
|
query: queryParameters,
|
|
66
67
|
}, initOverrides);
|
|
67
|
-
return new runtime.
|
|
68
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LearningDaysResponseFromJSON)(jsonValue));
|
|
68
69
|
});
|
|
69
70
|
}
|
|
70
71
|
/**
|
|
@@ -73,7 +74,8 @@ class LearningDaysApi extends runtime.BaseAPI {
|
|
|
73
74
|
*/
|
|
74
75
|
getLearningDays(requestParameters, initOverrides) {
|
|
75
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
yield this.getLearningDaysRaw(requestParameters, initOverrides);
|
|
77
|
+
const response = yield this.getLearningDaysRaw(requestParameters, initOverrides);
|
|
78
|
+
return yield response.value();
|
|
77
79
|
});
|
|
78
80
|
}
|
|
79
81
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import type { LearningMomentCount, PaginatedLearningMoments } from '../models/index';
|
|
13
14
|
export interface GetLearningMomentsCountRequest {
|
|
14
15
|
xUserId: string;
|
|
15
16
|
}
|
|
@@ -26,20 +27,20 @@ export declare class LearningMomentsApi extends runtime.BaseAPI {
|
|
|
26
27
|
* Returns the total number of learning moments for the authenticated user.
|
|
27
28
|
* Get learning moments count
|
|
28
29
|
*/
|
|
29
|
-
getLearningMomentsCountRaw(requestParameters: GetLearningMomentsCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
30
|
+
getLearningMomentsCountRaw(requestParameters: GetLearningMomentsCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LearningMomentCount>>;
|
|
30
31
|
/**
|
|
31
32
|
* Returns the total number of learning moments for the authenticated user.
|
|
32
33
|
* Get learning moments count
|
|
33
34
|
*/
|
|
34
|
-
getLearningMomentsCount(requestParameters: GetLearningMomentsCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
35
|
+
getLearningMomentsCount(requestParameters: GetLearningMomentsCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LearningMomentCount>;
|
|
35
36
|
/**
|
|
36
37
|
* Returns paginated learning moments belonging to the authenticated account user, ordered by creation date (newest first).
|
|
37
38
|
* List learning moments
|
|
38
39
|
*/
|
|
39
|
-
listLearningMomentsRaw(requestParameters: ListLearningMomentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
40
|
+
listLearningMomentsRaw(requestParameters: ListLearningMomentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedLearningMoments>>;
|
|
40
41
|
/**
|
|
41
42
|
* Returns paginated learning moments belonging to the authenticated account user, ordered by creation date (newest first).
|
|
42
43
|
* List learning moments
|
|
43
44
|
*/
|
|
44
|
-
listLearningMoments(requestParameters: ListLearningMomentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
45
|
+
listLearningMoments(requestParameters: ListLearningMomentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedLearningMoments>;
|
|
45
46
|
}
|
|
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.LearningMomentsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
27
28
|
/**
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
@@ -52,7 +53,7 @@ class LearningMomentsApi extends runtime.BaseAPI {
|
|
|
52
53
|
headers: headerParameters,
|
|
53
54
|
query: queryParameters,
|
|
54
55
|
}, initOverrides);
|
|
55
|
-
return new runtime.
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LearningMomentCountFromJSON)(jsonValue));
|
|
56
57
|
});
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
@@ -61,7 +62,8 @@ class LearningMomentsApi extends runtime.BaseAPI {
|
|
|
61
62
|
*/
|
|
62
63
|
getLearningMomentsCount(requestParameters, initOverrides) {
|
|
63
64
|
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
yield this.getLearningMomentsCountRaw(requestParameters, initOverrides);
|
|
65
|
+
const response = yield this.getLearningMomentsCountRaw(requestParameters, initOverrides);
|
|
66
|
+
return yield response.value();
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
69
|
/**
|
|
@@ -94,7 +96,7 @@ class LearningMomentsApi extends runtime.BaseAPI {
|
|
|
94
96
|
headers: headerParameters,
|
|
95
97
|
query: queryParameters,
|
|
96
98
|
}, initOverrides);
|
|
97
|
-
return new runtime.
|
|
99
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedLearningMomentsFromJSON)(jsonValue));
|
|
98
100
|
});
|
|
99
101
|
}
|
|
100
102
|
/**
|
|
@@ -103,7 +105,8 @@ class LearningMomentsApi extends runtime.BaseAPI {
|
|
|
103
105
|
*/
|
|
104
106
|
listLearningMoments(requestParameters, initOverrides) {
|
|
105
107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
-
yield this.listLearningMomentsRaw(requestParameters, initOverrides);
|
|
108
|
+
const response = yield this.listLearningMomentsRaw(requestParameters, initOverrides);
|
|
109
|
+
return yield response.value();
|
|
107
110
|
});
|
|
108
111
|
}
|
|
109
112
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
+
import type { LearningSessionEvaluation } from '../models/index';
|
|
13
14
|
export interface ListLearningSessionEvaluationsRequest {
|
|
14
15
|
chatId: string;
|
|
15
16
|
xUserId: string;
|
|
@@ -22,10 +23,10 @@ export declare class LearningSessionEvaluationsApi extends runtime.BaseAPI {
|
|
|
22
23
|
* Returns the ordered per-turn evaluator signals for a learning-session chat (chatType \'level-up\' or \'quick-practice\'). Powers client-side rehydration of the session-panel reducer when the chat is reopened. Rows are returned in (createdAt, id) ascending order — natural turn order. No pagination: sessions are bounded to <30 turns.
|
|
23
24
|
* List learning session evaluations for a chat
|
|
24
25
|
*/
|
|
25
|
-
listLearningSessionEvaluationsRaw(requestParameters: ListLearningSessionEvaluationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
26
|
+
listLearningSessionEvaluationsRaw(requestParameters: ListLearningSessionEvaluationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LearningSessionEvaluation>>>;
|
|
26
27
|
/**
|
|
27
28
|
* Returns the ordered per-turn evaluator signals for a learning-session chat (chatType \'level-up\' or \'quick-practice\'). Powers client-side rehydration of the session-panel reducer when the chat is reopened. Rows are returned in (createdAt, id) ascending order — natural turn order. No pagination: sessions are bounded to <30 turns.
|
|
28
29
|
* List learning session evaluations for a chat
|
|
29
30
|
*/
|
|
30
|
-
listLearningSessionEvaluations(requestParameters: ListLearningSessionEvaluationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
31
|
+
listLearningSessionEvaluations(requestParameters: ListLearningSessionEvaluationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LearningSessionEvaluation>>;
|
|
31
32
|
}
|
|
@@ -24,6 +24,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.LearningSessionEvaluationsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
27
28
|
/**
|
|
28
29
|
*
|
|
29
30
|
*/
|
|
@@ -56,7 +57,7 @@ class LearningSessionEvaluationsApi extends runtime.BaseAPI {
|
|
|
56
57
|
headers: headerParameters,
|
|
57
58
|
query: queryParameters,
|
|
58
59
|
}, initOverrides);
|
|
59
|
-
return new runtime.
|
|
60
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.LearningSessionEvaluationFromJSON));
|
|
60
61
|
});
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
@@ -65,7 +66,8 @@ class LearningSessionEvaluationsApi extends runtime.BaseAPI {
|
|
|
65
66
|
*/
|
|
66
67
|
listLearningSessionEvaluations(requestParameters, initOverrides) {
|
|
67
68
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
yield this.listLearningSessionEvaluationsRaw(requestParameters, initOverrides);
|
|
69
|
+
const response = yield this.listLearningSessionEvaluationsRaw(requestParameters, initOverrides);
|
|
70
|
+
return yield response.value();
|
|
69
71
|
});
|
|
70
72
|
}
|
|
71
73
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateMessagesRequest } from '../models/index';
|
|
13
|
+
import type { CreateMessagesRequest, CreateMessagesResponse, Message, MessageCountResponse, PaginatedMessages } from '../models/index';
|
|
14
14
|
export interface CreateChatMessagesRequest {
|
|
15
15
|
chatId: string;
|
|
16
16
|
xUserId: string;
|
|
@@ -44,12 +44,12 @@ export declare class MessagesApi extends runtime.BaseAPI {
|
|
|
44
44
|
* Saves one or more messages to the specified chat.
|
|
45
45
|
* Save messages to a chat
|
|
46
46
|
*/
|
|
47
|
-
createChatMessagesRaw(requestParameters: CreateChatMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
47
|
+
createChatMessagesRaw(requestParameters: CreateChatMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateMessagesResponse>>;
|
|
48
48
|
/**
|
|
49
49
|
* Saves one or more messages to the specified chat.
|
|
50
50
|
* Save messages to a chat
|
|
51
51
|
*/
|
|
52
|
-
createChatMessages(requestParameters: CreateChatMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
52
|
+
createChatMessages(requestParameters: CreateChatMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateMessagesResponse>;
|
|
53
53
|
/**
|
|
54
54
|
* Deletes all messages in a chat at or after the given timestamp.
|
|
55
55
|
* Delete messages from timestamp
|
|
@@ -64,30 +64,30 @@ export declare class MessagesApi extends runtime.BaseAPI {
|
|
|
64
64
|
* Returns a single message belonging to the specified chat.
|
|
65
65
|
* Get a chat message
|
|
66
66
|
*/
|
|
67
|
-
getChatMessageRaw(requestParameters: GetChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
67
|
+
getChatMessageRaw(requestParameters: GetChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Message>>;
|
|
68
68
|
/**
|
|
69
69
|
* Returns a single message belonging to the specified chat.
|
|
70
70
|
* Get a chat message
|
|
71
71
|
*/
|
|
72
|
-
getChatMessage(requestParameters: GetChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
72
|
+
getChatMessage(requestParameters: GetChatMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Message>;
|
|
73
73
|
/**
|
|
74
74
|
* Returns paginated messages belonging to the specified chat, ordered by creation date (newest first).
|
|
75
75
|
* List chat messages
|
|
76
76
|
*/
|
|
77
|
-
getChatMessagesRaw(requestParameters: GetChatMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
77
|
+
getChatMessagesRaw(requestParameters: GetChatMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedMessages>>;
|
|
78
78
|
/**
|
|
79
79
|
* Returns paginated messages belonging to the specified chat, ordered by creation date (newest first).
|
|
80
80
|
* List chat messages
|
|
81
81
|
*/
|
|
82
|
-
getChatMessages(requestParameters: GetChatMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
82
|
+
getChatMessages(requestParameters: GetChatMessagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedMessages>;
|
|
83
83
|
/**
|
|
84
84
|
* Returns the number of user-role messages sent by the authenticated account user within the given time window.
|
|
85
85
|
* Count user messages
|
|
86
86
|
*/
|
|
87
|
-
getMessageCountRaw(requestParameters: GetMessageCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
87
|
+
getMessageCountRaw(requestParameters: GetMessageCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MessageCountResponse>>;
|
|
88
88
|
/**
|
|
89
89
|
* Returns the number of user-role messages sent by the authenticated account user within the given time window.
|
|
90
90
|
* Count user messages
|
|
91
91
|
*/
|
|
92
|
-
getMessageCount(requestParameters: GetMessageCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
92
|
+
getMessageCount(requestParameters: GetMessageCountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MessageCountResponse>;
|
|
93
93
|
}
|
package/dist/apis/MessagesApi.js
CHANGED
|
@@ -62,7 +62,7 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
62
62
|
query: queryParameters,
|
|
63
63
|
body: (0, index_1.CreateMessagesRequestToJSON)(requestParameters['createMessagesRequest']),
|
|
64
64
|
}, initOverrides);
|
|
65
|
-
return new runtime.
|
|
65
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateMessagesResponseFromJSON)(jsonValue));
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
@@ -71,7 +71,8 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
71
71
|
*/
|
|
72
72
|
createChatMessages(requestParameters, initOverrides) {
|
|
73
73
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
-
yield this.createChatMessagesRaw(requestParameters, initOverrides);
|
|
74
|
+
const response = yield this.createChatMessagesRaw(requestParameters, initOverrides);
|
|
75
|
+
return yield response.value();
|
|
75
76
|
});
|
|
76
77
|
}
|
|
77
78
|
/**
|
|
@@ -152,7 +153,7 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
152
153
|
headers: headerParameters,
|
|
153
154
|
query: queryParameters,
|
|
154
155
|
}, initOverrides);
|
|
155
|
-
return new runtime.
|
|
156
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MessageFromJSON)(jsonValue));
|
|
156
157
|
});
|
|
157
158
|
}
|
|
158
159
|
/**
|
|
@@ -161,7 +162,8 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
161
162
|
*/
|
|
162
163
|
getChatMessage(requestParameters, initOverrides) {
|
|
163
164
|
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
-
yield this.getChatMessageRaw(requestParameters, initOverrides);
|
|
165
|
+
const response = yield this.getChatMessageRaw(requestParameters, initOverrides);
|
|
166
|
+
return yield response.value();
|
|
165
167
|
});
|
|
166
168
|
}
|
|
167
169
|
/**
|
|
@@ -198,7 +200,7 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
198
200
|
headers: headerParameters,
|
|
199
201
|
query: queryParameters,
|
|
200
202
|
}, initOverrides);
|
|
201
|
-
return new runtime.
|
|
203
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedMessagesFromJSON)(jsonValue));
|
|
202
204
|
});
|
|
203
205
|
}
|
|
204
206
|
/**
|
|
@@ -207,7 +209,8 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
207
209
|
*/
|
|
208
210
|
getChatMessages(requestParameters, initOverrides) {
|
|
209
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
-
yield this.getChatMessagesRaw(requestParameters, initOverrides);
|
|
212
|
+
const response = yield this.getChatMessagesRaw(requestParameters, initOverrides);
|
|
213
|
+
return yield response.value();
|
|
211
214
|
});
|
|
212
215
|
}
|
|
213
216
|
/**
|
|
@@ -240,7 +243,7 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
240
243
|
headers: headerParameters,
|
|
241
244
|
query: queryParameters,
|
|
242
245
|
}, initOverrides);
|
|
243
|
-
return new runtime.
|
|
246
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MessageCountResponseFromJSON)(jsonValue));
|
|
244
247
|
});
|
|
245
248
|
}
|
|
246
249
|
/**
|
|
@@ -249,7 +252,8 @@ class MessagesApi extends runtime.BaseAPI {
|
|
|
249
252
|
*/
|
|
250
253
|
getMessageCount(requestParameters, initOverrides) {
|
|
251
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
|
-
yield this.getMessageCountRaw(requestParameters, initOverrides);
|
|
255
|
+
const response = yield this.getMessageCountRaw(requestParameters, initOverrides);
|
|
256
|
+
return yield response.value();
|
|
253
257
|
});
|
|
254
258
|
}
|
|
255
259
|
}
|
package/dist/apis/PlansApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreatePlanDto, UpdatePlanDto } from '../models/index';
|
|
13
|
+
import type { CreatePlanDto, Plan, UpdatePlanDto } from '../models/index';
|
|
14
14
|
export interface CreatePlanRequest {
|
|
15
15
|
createPlanDto: CreatePlanDto;
|
|
16
16
|
}
|
|
@@ -31,11 +31,11 @@ export declare class PlansApi extends runtime.BaseAPI {
|
|
|
31
31
|
/**
|
|
32
32
|
* Create a new plan
|
|
33
33
|
*/
|
|
34
|
-
createPlanRaw(requestParameters: CreatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
34
|
+
createPlanRaw(requestParameters: CreatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Plan>>;
|
|
35
35
|
/**
|
|
36
36
|
* Create a new plan
|
|
37
37
|
*/
|
|
38
|
-
createPlan(requestParameters: CreatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
38
|
+
createPlan(requestParameters: CreatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Plan>;
|
|
39
39
|
/**
|
|
40
40
|
* Delete a plan
|
|
41
41
|
*/
|
|
@@ -47,25 +47,25 @@ export declare class PlansApi extends runtime.BaseAPI {
|
|
|
47
47
|
/**
|
|
48
48
|
* Get plan by ID
|
|
49
49
|
*/
|
|
50
|
-
getPlanRaw(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
50
|
+
getPlanRaw(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Plan>>;
|
|
51
51
|
/**
|
|
52
52
|
* Get plan by ID
|
|
53
53
|
*/
|
|
54
|
-
getPlan(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
54
|
+
getPlan(requestParameters: GetPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Plan>;
|
|
55
55
|
/**
|
|
56
56
|
* List all plans
|
|
57
57
|
*/
|
|
58
|
-
listPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
58
|
+
listPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Plan>>>;
|
|
59
59
|
/**
|
|
60
60
|
* List all plans
|
|
61
61
|
*/
|
|
62
|
-
listPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
62
|
+
listPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Plan>>;
|
|
63
63
|
/**
|
|
64
64
|
* Update a plan
|
|
65
65
|
*/
|
|
66
|
-
updatePlanRaw(requestParameters: UpdatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
66
|
+
updatePlanRaw(requestParameters: UpdatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Plan>>;
|
|
67
67
|
/**
|
|
68
68
|
* Update a plan
|
|
69
69
|
*/
|
|
70
|
-
updatePlan(requestParameters: UpdatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
70
|
+
updatePlan(requestParameters: UpdatePlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Plan>;
|
|
71
71
|
}
|