@thomas-labs/scrape-service-lib 1.1.15 → 1.1.16
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/dist/AppClient.js +1 -1
- package/dist/core/OpenAPI.js +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +5 -1
- package/dist/models/StudyActionDto.d.ts +6 -0
- package/dist/models/StudyActionDto.js +14 -0
- package/dist/models/StudyAnswerResponseDto.d.ts +4 -8
- package/dist/models/StudyAnswerResultDto.d.ts +10 -0
- package/dist/models/StudyAnswerResultDto.js +2 -0
- package/dist/models/StudyAnswerUiHintDto.d.ts +5 -0
- package/dist/models/StudyAnswerUiHintDto.js +2 -0
- package/dist/models/StudyCollocationItemDto.d.ts +5 -0
- package/dist/models/StudyCollocationItemDto.js +2 -0
- package/dist/models/StudyContentDto.d.ts +8 -0
- package/dist/models/StudyContentDto.js +2 -0
- package/dist/models/StudyExampleItemDto.d.ts +4 -0
- package/dist/models/StudyExampleItemDto.js +2 -0
- package/dist/models/StudyMeaningItemDto.d.ts +4 -0
- package/dist/models/StudyMeaningItemDto.js +2 -0
- package/dist/models/StudyNextActionDto.d.ts +3 -0
- package/dist/models/StudyNextActionDto.js +11 -0
- package/dist/models/StudyNextResponseDto.d.ts +8 -0
- package/dist/models/StudySessionDto.d.ts +6 -0
- package/dist/models/StudySessionDto.js +2 -0
- package/dist/models/StudyTermDto.d.ts +5 -0
- package/dist/models/StudyTermDto.js +2 -0
- package/package.json +1 -1
package/dist/AppClient.js
CHANGED
|
@@ -16,7 +16,7 @@ class AppClient {
|
|
|
16
16
|
constructor(config, HttpRequest = FetchHttpRequest_1.FetchHttpRequest) {
|
|
17
17
|
this.request = new HttpRequest({
|
|
18
18
|
BASE: config?.BASE ?? '/api',
|
|
19
|
-
VERSION: config?.VERSION ?? '1.0.
|
|
19
|
+
VERSION: config?.VERSION ?? '1.0.17',
|
|
20
20
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
21
21
|
CREDENTIALS: config?.CREDENTIALS ?? 'include',
|
|
22
22
|
TOKEN: config?.TOKEN,
|
package/dist/core/OpenAPI.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -19,11 +19,21 @@ export type { RefreshTokenDto } from './models/RefreshTokenDto';
|
|
|
19
19
|
export type { RegisterDto } from './models/RegisterDto';
|
|
20
20
|
export type { StartCollectionDto } from './models/StartCollectionDto';
|
|
21
21
|
export type { StopCollectionDto } from './models/StopCollectionDto';
|
|
22
|
+
export { StudyActionDto } from './models/StudyActionDto';
|
|
22
23
|
export type { StudyAnswerDto } from './models/StudyAnswerDto';
|
|
23
24
|
export type { StudyAnswerResponseDto } from './models/StudyAnswerResponseDto';
|
|
25
|
+
export type { StudyAnswerResultDto } from './models/StudyAnswerResultDto';
|
|
26
|
+
export type { StudyAnswerUiHintDto } from './models/StudyAnswerUiHintDto';
|
|
27
|
+
export type { StudyCollocationItemDto } from './models/StudyCollocationItemDto';
|
|
28
|
+
export type { StudyContentDto } from './models/StudyContentDto';
|
|
29
|
+
export type { StudyExampleItemDto } from './models/StudyExampleItemDto';
|
|
30
|
+
export type { StudyMeaningItemDto } from './models/StudyMeaningItemDto';
|
|
24
31
|
export { StudyModeDto } from './models/StudyModeDto';
|
|
32
|
+
export { StudyNextActionDto } from './models/StudyNextActionDto';
|
|
25
33
|
export type { StudyNextResponseDto } from './models/StudyNextResponseDto';
|
|
34
|
+
export type { StudySessionDto } from './models/StudySessionDto';
|
|
26
35
|
export { StudySourceDto } from './models/StudySourceDto';
|
|
36
|
+
export type { StudyTermDto } from './models/StudyTermDto';
|
|
27
37
|
export type { TelegramCallbackQuery } from './models/TelegramCallbackQuery';
|
|
28
38
|
export { TelegramChat } from './models/TelegramChat';
|
|
29
39
|
export type { TelegramMessage } from './models/TelegramMessage';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserService = exports.TermsService = exports.TelegramService = exports.StudyService = exports.StatsService = exports.DefaultService = exports.CollectionsService = exports.ClientService = exports.AuthService = exports.AiService = exports.TelegramChat = exports.StudySourceDto = exports.StudyModeDto = exports.ProgressStageDto = exports.GradeTypeDto = exports.AiProviderDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.AppClient = void 0;
|
|
3
|
+
exports.UserService = exports.TermsService = exports.TelegramService = exports.StudyService = exports.StatsService = exports.DefaultService = exports.CollectionsService = exports.ClientService = exports.AuthService = exports.AiService = exports.TelegramChat = exports.StudySourceDto = exports.StudyNextActionDto = exports.StudyModeDto = exports.StudyActionDto = exports.ProgressStageDto = exports.GradeTypeDto = exports.AiProviderDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.AppClient = void 0;
|
|
4
4
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
5
|
/* istanbul ignore file */
|
|
6
6
|
/* tslint:disable */
|
|
@@ -22,8 +22,12 @@ var GradeTypeDto_1 = require("./models/GradeTypeDto");
|
|
|
22
22
|
Object.defineProperty(exports, "GradeTypeDto", { enumerable: true, get: function () { return GradeTypeDto_1.GradeTypeDto; } });
|
|
23
23
|
var ProgressStageDto_1 = require("./models/ProgressStageDto");
|
|
24
24
|
Object.defineProperty(exports, "ProgressStageDto", { enumerable: true, get: function () { return ProgressStageDto_1.ProgressStageDto; } });
|
|
25
|
+
var StudyActionDto_1 = require("./models/StudyActionDto");
|
|
26
|
+
Object.defineProperty(exports, "StudyActionDto", { enumerable: true, get: function () { return StudyActionDto_1.StudyActionDto; } });
|
|
25
27
|
var StudyModeDto_1 = require("./models/StudyModeDto");
|
|
26
28
|
Object.defineProperty(exports, "StudyModeDto", { enumerable: true, get: function () { return StudyModeDto_1.StudyModeDto; } });
|
|
29
|
+
var StudyNextActionDto_1 = require("./models/StudyNextActionDto");
|
|
30
|
+
Object.defineProperty(exports, "StudyNextActionDto", { enumerable: true, get: function () { return StudyNextActionDto_1.StudyNextActionDto; } });
|
|
27
31
|
var StudySourceDto_1 = require("./models/StudySourceDto");
|
|
28
32
|
Object.defineProperty(exports, "StudySourceDto", { enumerable: true, get: function () { return StudySourceDto_1.StudySourceDto; } });
|
|
29
33
|
var TelegramChat_1 = require("./models/TelegramChat");
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StudyActionDto = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var StudyActionDto;
|
|
9
|
+
(function (StudyActionDto) {
|
|
10
|
+
StudyActionDto["AGAIN"] = "AGAIN";
|
|
11
|
+
StudyActionDto["HARD"] = "HARD";
|
|
12
|
+
StudyActionDto["GOOD"] = "GOOD";
|
|
13
|
+
StudyActionDto["EASY"] = "EASY";
|
|
14
|
+
})(StudyActionDto || (exports.StudyActionDto = StudyActionDto = {}));
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { StudyAnswerResultDto } from './StudyAnswerResultDto';
|
|
2
|
+
import type { StudyAnswerUiHintDto } from './StudyAnswerUiHintDto';
|
|
3
3
|
export type StudyAnswerResponseDto = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
stage: ProgressStageDto;
|
|
7
|
-
intervalDays: number;
|
|
8
|
-
ease: number;
|
|
9
|
-
dueAt: string;
|
|
4
|
+
result: StudyAnswerResultDto;
|
|
5
|
+
uiHint: StudyAnswerUiHintDto;
|
|
10
6
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GradeTypeDto } from './GradeTypeDto';
|
|
2
|
+
import type { ProgressStageDto } from './ProgressStageDto';
|
|
3
|
+
export type StudyAnswerResultDto = {
|
|
4
|
+
termId: string;
|
|
5
|
+
grade: GradeTypeDto;
|
|
6
|
+
stage: ProgressStageDto;
|
|
7
|
+
intervalDays: number;
|
|
8
|
+
ease: number;
|
|
9
|
+
dueAt: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StudyCollocationItemDto } from './StudyCollocationItemDto';
|
|
2
|
+
import type { StudyExampleItemDto } from './StudyExampleItemDto';
|
|
3
|
+
import type { StudyMeaningItemDto } from './StudyMeaningItemDto';
|
|
4
|
+
export type StudyContentDto = {
|
|
5
|
+
meanings: Array<StudyMeaningItemDto>;
|
|
6
|
+
examples: Array<StudyExampleItemDto>;
|
|
7
|
+
collocations: Array<StudyCollocationItemDto>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StudyNextActionDto = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var StudyNextActionDto;
|
|
9
|
+
(function (StudyNextActionDto) {
|
|
10
|
+
StudyNextActionDto["FETCH_NEXT"] = "FETCH_NEXT";
|
|
11
|
+
})(StudyNextActionDto || (exports.StudyNextActionDto = StudyNextActionDto = {}));
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import type { StudyActionDto } from './StudyActionDto';
|
|
2
|
+
import type { StudyContentDto } from './StudyContentDto';
|
|
3
|
+
import type { StudySessionDto } from './StudySessionDto';
|
|
1
4
|
import type { StudySourceDto } from './StudySourceDto';
|
|
5
|
+
import type { StudyTermDto } from './StudyTermDto';
|
|
2
6
|
export type StudyNextResponseDto = {
|
|
7
|
+
session: StudySessionDto;
|
|
8
|
+
term: StudyTermDto;
|
|
9
|
+
content: StudyContentDto;
|
|
10
|
+
actions: Array<StudyActionDto>;
|
|
3
11
|
sessionId: string;
|
|
4
12
|
source: StudySourceDto;
|
|
5
13
|
termId: string;
|