@thomas-labs/scrape-service-lib 1.1.46 → 1.1.47
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.
|
|
23
|
+
VERSION: config?.VERSION ?? '1.0.54',
|
|
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
|
@@ -57,6 +57,17 @@ export declare class TermsService {
|
|
|
57
57
|
* @throws ApiError
|
|
58
58
|
*/
|
|
59
59
|
list(search?: string, status?: 'PENDING_ENRICH' | 'READY' | 'FAILED', page?: number, limit?: number, cursorId?: string, take?: number): CancelablePromise<any>;
|
|
60
|
+
/**
|
|
61
|
+
* @param search
|
|
62
|
+
* @param status
|
|
63
|
+
* @param page
|
|
64
|
+
* @param limit
|
|
65
|
+
* @param cursorId
|
|
66
|
+
* @param take
|
|
67
|
+
* @returns any Ok
|
|
68
|
+
* @throws ApiError
|
|
69
|
+
*/
|
|
70
|
+
adminList(search?: string, status?: 'PENDING_ENRICH' | 'READY' | 'FAILED', page?: number, limit?: number, cursorId?: string, take?: number): CancelablePromise<any>;
|
|
60
71
|
/**
|
|
61
72
|
* @param termId
|
|
62
73
|
* @returns any Ok
|
|
@@ -71,6 +82,17 @@ export declare class TermsService {
|
|
|
71
82
|
delete(termId: string): CancelablePromise<{
|
|
72
83
|
ok: boolean;
|
|
73
84
|
}>;
|
|
85
|
+
/**
|
|
86
|
+
* @param termId
|
|
87
|
+
* @returns any Ok
|
|
88
|
+
* @throws ApiError
|
|
89
|
+
*/
|
|
90
|
+
adminDelete(termId: string): CancelablePromise<{
|
|
91
|
+
affectedCollections: number;
|
|
92
|
+
affectedUsers: number;
|
|
93
|
+
termId: string;
|
|
94
|
+
ok: boolean;
|
|
95
|
+
}>;
|
|
74
96
|
/**
|
|
75
97
|
* @param termId
|
|
76
98
|
* @param requestBody
|
|
@@ -68,6 +68,30 @@ class TermsService {
|
|
|
68
68
|
},
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @param search
|
|
73
|
+
* @param status
|
|
74
|
+
* @param page
|
|
75
|
+
* @param limit
|
|
76
|
+
* @param cursorId
|
|
77
|
+
* @param take
|
|
78
|
+
* @returns any Ok
|
|
79
|
+
* @throws ApiError
|
|
80
|
+
*/
|
|
81
|
+
adminList(search, status, page, limit, cursorId, take) {
|
|
82
|
+
return this.httpRequest.request({
|
|
83
|
+
method: 'GET',
|
|
84
|
+
url: '/terms/admin',
|
|
85
|
+
query: {
|
|
86
|
+
'search': search,
|
|
87
|
+
'status': status,
|
|
88
|
+
'page': page,
|
|
89
|
+
'limit': limit,
|
|
90
|
+
'cursorId': cursorId,
|
|
91
|
+
'take': take,
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
}
|
|
71
95
|
/**
|
|
72
96
|
* @param termId
|
|
73
97
|
* @returns any Ok
|
|
@@ -96,6 +120,20 @@ class TermsService {
|
|
|
96
120
|
},
|
|
97
121
|
});
|
|
98
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* @param termId
|
|
125
|
+
* @returns any Ok
|
|
126
|
+
* @throws ApiError
|
|
127
|
+
*/
|
|
128
|
+
adminDelete(termId) {
|
|
129
|
+
return this.httpRequest.request({
|
|
130
|
+
method: 'DELETE',
|
|
131
|
+
url: '/terms/admin/{termId}',
|
|
132
|
+
path: {
|
|
133
|
+
'termId': termId,
|
|
134
|
+
},
|
|
135
|
+
});
|
|
136
|
+
}
|
|
99
137
|
/**
|
|
100
138
|
* @param termId
|
|
101
139
|
* @param requestBody
|