@thomas-labs/scrape-service-lib 1.1.35 → 1.1.37

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
@@ -20,7 +20,7 @@ class AppClient {
20
20
  constructor(config, HttpRequest = FetchHttpRequest_1.FetchHttpRequest) {
21
21
  this.request = new HttpRequest({
22
22
  BASE: config?.BASE ?? '/api',
23
- VERSION: config?.VERSION ?? '1.0.36',
23
+ VERSION: config?.VERSION ?? '1.0.38',
24
24
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
25
25
  CREDENTIALS: config?.CREDENTIALS ?? 'include',
26
26
  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.36',
6
+ VERSION: '1.0.38',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
package/dist/index.d.ts CHANGED
@@ -52,6 +52,7 @@ export type { UpdateCollectionDto } from './models/UpdateCollectionDto';
52
52
  export type { UpdateReportStatusDto } from './models/UpdateReportStatusDto';
53
53
  export type { UpdateTaskRequestStatusDto } from './models/UpdateTaskRequestStatusDto';
54
54
  export type { UpdateTelegramBotConfigDto } from './models/UpdateTelegramBotConfigDto';
55
+ export type { UpdateTermIllustrationDto } from './models/UpdateTermIllustrationDto';
55
56
  export type { UpdateUserProfileDto } from './models/UpdateUserProfileDto';
56
57
  export type { UpsertAiKeyDto } from './models/UpsertAiKeyDto';
57
58
  export type { UpsertTelegramBotConfigDto } from './models/UpsertTelegramBotConfigDto';
@@ -15,4 +15,5 @@ export type StudyNextResponseDto = {
15
15
  aiJson: any;
16
16
  overallConfidence: number | null;
17
17
  ipaAudioUrl?: string | null;
18
+ illustrationUrl?: string | null;
18
19
  };
@@ -2,4 +2,5 @@ export type StudyTermDto = {
2
2
  id: string;
3
3
  raw: string;
4
4
  ipaAudioUrl?: string | null;
5
+ illustrationUrl?: string | null;
5
6
  };
@@ -0,0 +1,3 @@
1
+ export type UpdateTermIllustrationDto = {
2
+ imageUrl: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  import type { RequestTermsImportDto } from '../models/RequestTermsImportDto';
2
+ import type { UpdateTermIllustrationDto } from '../models/UpdateTermIllustrationDto';
2
3
  import type { CancelablePromise } from '../core/CancelablePromise';
3
4
  import type { BaseHttpRequest } from '../core/BaseHttpRequest';
4
5
  export declare class TermsService {
@@ -47,4 +48,15 @@ export declare class TermsService {
47
48
  delete(termId: string): CancelablePromise<{
48
49
  ok: boolean;
49
50
  }>;
51
+ /**
52
+ * @param termId
53
+ * @param requestBody
54
+ * @returns any Ok
55
+ * @throws ApiError
56
+ */
57
+ updateIllustration(termId: string, requestBody: UpdateTermIllustrationDto): CancelablePromise<{
58
+ illustrationUrl: string;
59
+ termId: string;
60
+ ok: boolean;
61
+ }>;
50
62
  }
@@ -70,5 +70,22 @@ class TermsService {
70
70
  },
71
71
  });
72
72
  }
73
+ /**
74
+ * @param termId
75
+ * @param requestBody
76
+ * @returns any Ok
77
+ * @throws ApiError
78
+ */
79
+ updateIllustration(termId, requestBody) {
80
+ return this.httpRequest.request({
81
+ method: 'PATCH',
82
+ url: '/terms/{termId}/illustration',
83
+ path: {
84
+ 'termId': termId,
85
+ },
86
+ body: requestBody,
87
+ mediaType: 'application/json',
88
+ });
89
+ }
73
90
  }
74
91
  exports.TermsService = TermsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thomas-labs/scrape-service-lib",
3
- "version": "1.1.35",
3
+ "version": "1.1.37",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",