@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 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.16',
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,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '/api',
6
- VERSION: '1.0.16',
6
+ VERSION: '1.0.17',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
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,6 @@
1
+ export declare enum StudyActionDto {
2
+ AGAIN = "AGAIN",
3
+ HARD = "HARD",
4
+ GOOD = "GOOD",
5
+ EASY = "EASY"
6
+ }
@@ -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 { GradeTypeDto } from './GradeTypeDto';
2
- import type { ProgressStageDto } from './ProgressStageDto';
1
+ import type { StudyAnswerResultDto } from './StudyAnswerResultDto';
2
+ import type { StudyAnswerUiHintDto } from './StudyAnswerUiHintDto';
3
3
  export type StudyAnswerResponseDto = {
4
- termId: string;
5
- grade: GradeTypeDto;
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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import type { StudyNextActionDto } from './StudyNextActionDto';
2
+ export type StudyAnswerUiHintDto = {
3
+ message: string;
4
+ nextAction: StudyNextActionDto;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export type StudyCollocationItemDto = {
2
+ phrase: string;
3
+ meaningVi: string;
4
+ exampleEn: string;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export type StudyExampleItemDto = {
2
+ type: string;
3
+ text: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export type StudyMeaningItemDto = {
2
+ lang: string;
3
+ text: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export declare enum StudyNextActionDto {
2
+ FETCH_NEXT = "FETCH_NEXT"
3
+ }
@@ -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;
@@ -0,0 +1,6 @@
1
+ import type { StudyModeDto } from './StudyModeDto';
2
+ import type { StudySourceDto } from './StudySourceDto';
3
+ export type StudySessionDto = {
4
+ mode: StudyModeDto;
5
+ source: StudySourceDto;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export type StudyTermDto = {
2
+ id: string;
3
+ raw: string;
4
+ ipaAudioUrl?: string | null;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thomas-labs/scrape-service-lib",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",