@escapenavigator/services 2.0.24 → 2.0.25
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/api/parse-results-api/index.d.ts +12 -0
- package/dist/api/parse-results-api/index.js +17 -0
- package/dist/api/profiles-api/get-sales-board.d.ts +11 -0
- package/dist/api/profiles-api/get-sales-board.js +23 -0
- package/dist/api/profiles-api/index.d.ts +2 -0
- package/dist/api/profiles-api/index.js +2 -0
- package/package.json +4 -4
|
@@ -16,15 +16,25 @@ declare const update: ApiMethodDeclaration<{
|
|
|
16
16
|
id: number;
|
|
17
17
|
data: UpdateParseResultDto;
|
|
18
18
|
}, ParseResultRO>;
|
|
19
|
+
declare const rebuildDiff: ApiMethodDeclaration<{
|
|
20
|
+
id: number;
|
|
21
|
+
}, ParseResultRO>;
|
|
19
22
|
type ApplyResponse = {
|
|
20
23
|
locationsCreated: number;
|
|
21
24
|
questsCreated: number;
|
|
25
|
+
questsUpdated: number;
|
|
22
26
|
questsClosed: number;
|
|
23
27
|
errors: string[];
|
|
24
28
|
};
|
|
25
29
|
declare const apply: ApiMethodDeclaration<{
|
|
26
30
|
id: number;
|
|
27
31
|
}, ApplyResponse>;
|
|
32
|
+
/** Закрыть задачу модерации без записи в каталог. */
|
|
33
|
+
declare const markApplied: ApiMethodDeclaration<{
|
|
34
|
+
id: number;
|
|
35
|
+
}, {
|
|
36
|
+
ok: boolean;
|
|
37
|
+
}>;
|
|
28
38
|
declare const reject: ApiMethodDeclaration<{
|
|
29
39
|
id: number;
|
|
30
40
|
}, {
|
|
@@ -41,7 +51,9 @@ type ApiDeclaration = {
|
|
|
41
51
|
getOne: typeof getOne;
|
|
42
52
|
enqueue: typeof enqueue;
|
|
43
53
|
update: typeof update;
|
|
54
|
+
rebuildDiff: typeof rebuildDiff;
|
|
44
55
|
apply: typeof apply;
|
|
56
|
+
markApplied: typeof markApplied;
|
|
45
57
|
reject: typeof reject;
|
|
46
58
|
retry: typeof retry;
|
|
47
59
|
};
|
|
@@ -34,6 +34,13 @@ var update = function (_a) {
|
|
|
34
34
|
data: data,
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
+
var rebuildDiff = function (_a) {
|
|
38
|
+
var id = _a.id;
|
|
39
|
+
return ({
|
|
40
|
+
url: "/parse-results/".concat(id, "/rebuild-diff"),
|
|
41
|
+
method: 'POST',
|
|
42
|
+
});
|
|
43
|
+
};
|
|
37
44
|
var apply = function (_a) {
|
|
38
45
|
var id = _a.id;
|
|
39
46
|
return ({
|
|
@@ -41,6 +48,14 @@ var apply = function (_a) {
|
|
|
41
48
|
method: 'POST',
|
|
42
49
|
});
|
|
43
50
|
};
|
|
51
|
+
/** Закрыть задачу модерации без записи в каталог. */
|
|
52
|
+
var markApplied = function (_a) {
|
|
53
|
+
var id = _a.id;
|
|
54
|
+
return ({
|
|
55
|
+
url: "/parse-results/".concat(id, "/mark-applied"),
|
|
56
|
+
method: 'POST',
|
|
57
|
+
});
|
|
58
|
+
};
|
|
44
59
|
var reject = function (_a) {
|
|
45
60
|
var id = _a.id;
|
|
46
61
|
return ({
|
|
@@ -61,7 +76,9 @@ exports.parseResultsApiDeclaration = {
|
|
|
61
76
|
getOne: getOne,
|
|
62
77
|
enqueue: enqueue,
|
|
63
78
|
update: update,
|
|
79
|
+
rebuildDiff: rebuildDiff,
|
|
64
80
|
apply: apply,
|
|
81
|
+
markApplied: markApplied,
|
|
65
82
|
reject: reject,
|
|
66
83
|
retry: retry,
|
|
67
84
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SalesBoardColumnRO } from '@escapenavigator/types/dist/profile/sales-board.ro';
|
|
2
|
+
import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
country?: CountriesEnum;
|
|
6
|
+
/** Только компании, у которых ближайшее открытое действие назначено на текущего админа. */
|
|
7
|
+
onlyMy?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type ResponseData = SalesBoardColumnRO[];
|
|
10
|
+
export declare const getSalesBoard: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.getSalesBoard = void 0;
|
|
15
|
+
var getSalesBoard = function (_a) {
|
|
16
|
+
var country = _a.country, onlyMy = _a.onlyMy;
|
|
17
|
+
return ({
|
|
18
|
+
url: '/profiles/sales/board',
|
|
19
|
+
method: 'GET',
|
|
20
|
+
params: __assign(__assign({}, (country ? { country: country } : {})), (onlyMy ? { onlyMy: true } : {})),
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.getSalesBoard = getSalesBoard;
|
|
@@ -52,6 +52,7 @@ import { setDefaultEmailSender } from './email-senders/set-default-email-sender'
|
|
|
52
52
|
import { updateEmailSender } from './email-senders/update-email-sender';
|
|
53
53
|
import { getBySlugForVerify } from './get-by-slug-for-verify';
|
|
54
54
|
import { getInactiveCompaniesShort } from './get-inactive-companies-short';
|
|
55
|
+
import { getSalesBoard } from './get-sales-board';
|
|
55
56
|
import { getOnboardingSteps } from './get-onboarding-steps';
|
|
56
57
|
import { getOne } from './get-one';
|
|
57
58
|
import { getProfilesWithoutNextAction } from './get-profiles-without-next-action';
|
|
@@ -208,6 +209,7 @@ type ApiDeclaration = {
|
|
|
208
209
|
updatePartnerProgram: typeof updatePartnerProgram;
|
|
209
210
|
getInactiveCompaniesShort: typeof getInactiveCompaniesShort;
|
|
210
211
|
getProfilesWithoutNextAction: typeof getProfilesWithoutNextAction;
|
|
212
|
+
getSalesBoard: typeof getSalesBoard;
|
|
211
213
|
finalizeCurrent: typeof finalizeCurrent;
|
|
212
214
|
updateCurrent: typeof updateCurrent;
|
|
213
215
|
updateBookingFields: typeof updateBookingFields;
|
|
@@ -55,6 +55,7 @@ var set_default_email_sender_1 = require("./email-senders/set-default-email-send
|
|
|
55
55
|
var update_email_sender_1 = require("./email-senders/update-email-sender");
|
|
56
56
|
var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
|
|
57
57
|
var get_inactive_companies_short_1 = require("./get-inactive-companies-short");
|
|
58
|
+
var get_sales_board_1 = require("./get-sales-board");
|
|
58
59
|
var get_onboarding_steps_1 = require("./get-onboarding-steps");
|
|
59
60
|
var get_one_1 = require("./get-one");
|
|
60
61
|
var get_profiles_without_next_action_1 = require("./get-profiles-without-next-action");
|
|
@@ -129,6 +130,7 @@ var update_3 = require("./widget-customization/update");
|
|
|
129
130
|
exports.profilesApiDeclaration = {
|
|
130
131
|
getInactiveCompaniesShort: get_inactive_companies_short_1.getInactiveCompaniesShort,
|
|
131
132
|
getProfilesWithoutNextAction: get_profiles_without_next_action_1.getProfilesWithoutNextAction,
|
|
133
|
+
getSalesBoard: get_sales_board_1.getSalesBoard,
|
|
132
134
|
updateNotificationChanel: update_1.updateNotificationChanel,
|
|
133
135
|
deleteAction: delete_action_1.deleteAction,
|
|
134
136
|
queryCalls: query_1.queryCalls,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.25",
|
|
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": "e4f0b2616c58a5431ac40d2b8925b9182240a88a",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0.
|
|
18
|
-
"@escapenavigator/utils": "^2.0.
|
|
17
|
+
"@escapenavigator/types": "^2.0.24",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.25",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|