@escapenavigator/services 2.0.33 → 2.0.35
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.
|
@@ -8,6 +8,12 @@ declare const count: ApiMethodDeclaration<QueryDto, number>;
|
|
|
8
8
|
declare const getOne: ApiMethodDeclaration<{
|
|
9
9
|
id: number;
|
|
10
10
|
}, ParseResultRO>;
|
|
11
|
+
/** Следующая задача, ждущая проверки — чтобы не закрывать модалку. */
|
|
12
|
+
declare const next: ApiMethodDeclaration<{
|
|
13
|
+
exclude?: number;
|
|
14
|
+
}, {
|
|
15
|
+
id: number | null;
|
|
16
|
+
}>;
|
|
11
17
|
/** Кнопка «Спарсить сайт» в карточке компании. */
|
|
12
18
|
declare const enqueue: ApiMethodDeclaration<{
|
|
13
19
|
profileId: number;
|
|
@@ -40,6 +46,10 @@ declare const reject: ApiMethodDeclaration<{
|
|
|
40
46
|
}, {
|
|
41
47
|
ok: boolean;
|
|
42
48
|
}>;
|
|
49
|
+
/** Закрыть скопом все задачи «без изменений». */
|
|
50
|
+
declare const bulkMarkApplied: ApiMethodDeclaration<Record<string, never>, {
|
|
51
|
+
affected: number;
|
|
52
|
+
}>;
|
|
43
53
|
declare const retry: ApiMethodDeclaration<{
|
|
44
54
|
id: number;
|
|
45
55
|
}, {
|
|
@@ -49,11 +59,13 @@ type ApiDeclaration = {
|
|
|
49
59
|
query: typeof query;
|
|
50
60
|
count: typeof count;
|
|
51
61
|
getOne: typeof getOne;
|
|
62
|
+
next: typeof next;
|
|
52
63
|
enqueue: typeof enqueue;
|
|
53
64
|
update: typeof update;
|
|
54
65
|
rebuildDiff: typeof rebuildDiff;
|
|
55
66
|
apply: typeof apply;
|
|
56
67
|
markApplied: typeof markApplied;
|
|
68
|
+
bulkMarkApplied: typeof bulkMarkApplied;
|
|
57
69
|
reject: typeof reject;
|
|
58
70
|
retry: typeof retry;
|
|
59
71
|
};
|
|
@@ -18,6 +18,12 @@ var getOne = function (_a) {
|
|
|
18
18
|
method: 'GET',
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
+
/** Следующая задача, ждущая проверки — чтобы не закрывать модалку. */
|
|
22
|
+
var next = function (params) { return ({
|
|
23
|
+
url: '/parse-results/next',
|
|
24
|
+
method: 'GET',
|
|
25
|
+
params: params,
|
|
26
|
+
}); };
|
|
21
27
|
/** Кнопка «Спарсить сайт» в карточке компании. */
|
|
22
28
|
var enqueue = function (_a) {
|
|
23
29
|
var profileId = _a.profileId;
|
|
@@ -63,6 +69,11 @@ var reject = function (_a) {
|
|
|
63
69
|
method: 'POST',
|
|
64
70
|
});
|
|
65
71
|
};
|
|
72
|
+
/** Закрыть скопом все задачи «без изменений». */
|
|
73
|
+
var bulkMarkApplied = function () { return ({
|
|
74
|
+
url: '/parse-results/bulk-mark-applied',
|
|
75
|
+
method: 'POST',
|
|
76
|
+
}); };
|
|
66
77
|
var retry = function (_a) {
|
|
67
78
|
var id = _a.id;
|
|
68
79
|
return ({
|
|
@@ -74,11 +85,13 @@ exports.parseResultsApiDeclaration = {
|
|
|
74
85
|
query: query,
|
|
75
86
|
count: count,
|
|
76
87
|
getOne: getOne,
|
|
88
|
+
next: next,
|
|
77
89
|
enqueue: enqueue,
|
|
78
90
|
update: update,
|
|
79
91
|
rebuildDiff: rebuildDiff,
|
|
80
92
|
apply: apply,
|
|
81
93
|
markApplied: markApplied,
|
|
94
|
+
bulkMarkApplied: bulkMarkApplied,
|
|
82
95
|
reject: reject,
|
|
83
96
|
retry: retry,
|
|
84
97
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.35",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "2c47385d8e152226b70a9b11213eb511b671ad0f",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0.
|
|
18
|
-
"@escapenavigator/utils": "^2.0.
|
|
17
|
+
"@escapenavigator/types": "^2.0.33",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.35",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|