@thomas-labs/scrape-service-lib 1.1.41 → 1.1.42

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.42',
23
+ VERSION: config?.VERSION ?? '1.0.43',
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.42',
6
+ VERSION: '1.0.43',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
package/dist/index.d.ts CHANGED
@@ -25,6 +25,7 @@ export type { RegisterDto } from './models/RegisterDto';
25
25
  export type { ReplyReportDto } from './models/ReplyReportDto';
26
26
  export { ReportStatusDto } from './models/ReportStatusDto';
27
27
  export { RequestTermsImportDto } from './models/RequestTermsImportDto';
28
+ export type { ResolveTermImportRequestDto } from './models/ResolveTermImportRequestDto';
28
29
  export type { SaveCollectionTestAnswerDto } from './models/SaveCollectionTestAnswerDto';
29
30
  export type { StartCollectionDto } from './models/StartCollectionDto';
30
31
  export type { StopCollectionDto } from './models/StopCollectionDto';
@@ -0,0 +1,4 @@
1
+ export type ResolveTermImportRequestDto = {
2
+ payload: any;
3
+ note?: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  import type { CreateTermImportRequestDto } from '../models/CreateTermImportRequestDto';
2
+ import type { ResolveTermImportRequestDto } from '../models/ResolveTermImportRequestDto';
2
3
  import type { TaskRequestStatusDto } from '../models/TaskRequestStatusDto';
3
4
  import type { TaskRequestTypeDto } from '../models/TaskRequestTypeDto';
4
5
  import type { UpdateTaskRequestStatusDto } from '../models/UpdateTaskRequestStatusDto';
@@ -44,4 +45,11 @@ export declare class TaskRequestsService {
44
45
  * @throws ApiError
45
46
  */
46
47
  updateStatus(requestId: string, requestBody: UpdateTaskRequestStatusDto): CancelablePromise<any>;
48
+ /**
49
+ * @param requestId
50
+ * @param requestBody
51
+ * @returns any Ok
52
+ * @throws ApiError
53
+ */
54
+ resolveTerms(requestId: string, requestBody: ResolveTermImportRequestDto): CancelablePromise<any>;
47
55
  }
@@ -89,5 +89,22 @@ class TaskRequestsService {
89
89
  mediaType: 'application/json',
90
90
  });
91
91
  }
92
+ /**
93
+ * @param requestId
94
+ * @param requestBody
95
+ * @returns any Ok
96
+ * @throws ApiError
97
+ */
98
+ resolveTerms(requestId, requestBody) {
99
+ return this.httpRequest.request({
100
+ method: 'POST',
101
+ url: '/task-requests/admin/{requestId}/resolve-terms',
102
+ path: {
103
+ 'requestId': requestId,
104
+ },
105
+ body: requestBody,
106
+ mediaType: 'application/json',
107
+ });
108
+ }
92
109
  }
93
110
  exports.TaskRequestsService = TaskRequestsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thomas-labs/scrape-service-lib",
3
- "version": "1.1.41",
3
+ "version": "1.1.42",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",