@thomas-labs/scrape-service-lib 1.1.34 → 1.1.36
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 +1 -0
- package/dist/models/UpdateTermIllustrationDto.d.ts +3 -0
- package/dist/models/UpdateTermIllustrationDto.js +2 -0
- package/dist/services/TermsService.d.ts +12 -0
- package/dist/services/TermsService.js +17 -0
- package/package.json +1 -1
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.
|
|
23
|
+
VERSION: config?.VERSION ?? '1.0.37',
|
|
24
24
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
25
25
|
CREDENTIALS: config?.CREDENTIALS ?? 'include',
|
|
26
26
|
TOKEN: config?.TOKEN,
|
package/dist/core/OpenAPI.js
CHANGED
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';
|
|
@@ -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;
|