@escapenavigator/services 2.0.24 → 2.0.26
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/clients-api/index.d.ts +2 -0
- package/dist/api/clients-api/index.js +2 -0
- package/dist/api/clients-api/search.d.ts +12 -0
- package/dist/api/clients-api/search.js +13 -0
- 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
|
@@ -12,6 +12,7 @@ import { query } from './query';
|
|
|
12
12
|
import { remove } from './remove';
|
|
13
13
|
import { restoreMarketingAudience } from './restore-marketing-audience';
|
|
14
14
|
import { revealContacts } from './reveal-contacts';
|
|
15
|
+
import { search } from './search';
|
|
15
16
|
import { suggestUtm } from './suggest-utm';
|
|
16
17
|
import { toggleBlock } from './tobble-block';
|
|
17
18
|
import { update } from './update';
|
|
@@ -24,6 +25,7 @@ type ApiDeclaration = {
|
|
|
24
25
|
toggleBlock: typeof toggleBlock;
|
|
25
26
|
update: typeof update;
|
|
26
27
|
query: typeof query;
|
|
28
|
+
search: typeof search;
|
|
27
29
|
getAll: typeof getAll;
|
|
28
30
|
getOne: typeof getOne;
|
|
29
31
|
getBillingDefaults: typeof getBillingDefaults;
|
|
@@ -15,6 +15,7 @@ var query_1 = require("./query");
|
|
|
15
15
|
var remove_1 = require("./remove");
|
|
16
16
|
var restore_marketing_audience_1 = require("./restore-marketing-audience");
|
|
17
17
|
var reveal_contacts_1 = require("./reveal-contacts");
|
|
18
|
+
var search_1 = require("./search");
|
|
18
19
|
var suggest_utm_1 = require("./suggest-utm");
|
|
19
20
|
var tobble_block_1 = require("./tobble-block");
|
|
20
21
|
var update_1 = require("./update");
|
|
@@ -27,6 +28,7 @@ exports.clientsApiDeclaration = {
|
|
|
27
28
|
toggleBlock: tobble_block_1.toggleBlock,
|
|
28
29
|
update: update_1.update,
|
|
29
30
|
query: query_1.query,
|
|
31
|
+
search: search_1.search,
|
|
30
32
|
getAll: get_all_1.getAll,
|
|
31
33
|
getOne: get_one_1.getOne,
|
|
32
34
|
getBillingDefaults: get_billing_defaults_1.getBillingDefaults,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
|
|
2
|
+
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
|
+
import { ApiMethodDeclaration } from '..';
|
|
5
|
+
type ParamsData = QueryDto;
|
|
6
|
+
type ResponseData = QueryRO<ClientRO>;
|
|
7
|
+
/**
|
|
8
|
+
* Поиск клиента для выбора (автокомплит). Бэк отдаёт контакты без маскировки,
|
|
9
|
+
* чтобы можно было отличить одноимённых клиентов.
|
|
10
|
+
*/
|
|
11
|
+
export declare const search: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.search = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Поиск клиента для выбора (автокомплит). Бэк отдаёт контакты без маскировки,
|
|
6
|
+
* чтобы можно было отличить одноимённых клиентов.
|
|
7
|
+
*/
|
|
8
|
+
var search = function (params) { return ({
|
|
9
|
+
url: '/clients/search',
|
|
10
|
+
method: 'GET',
|
|
11
|
+
params: params,
|
|
12
|
+
}); };
|
|
13
|
+
exports.search = search;
|
|
@@ -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;
|
|
@@ -55,6 +55,7 @@ import { getInactiveCompaniesShort } from './get-inactive-companies-short';
|
|
|
55
55
|
import { getOnboardingSteps } from './get-onboarding-steps';
|
|
56
56
|
import { getOne } from './get-one';
|
|
57
57
|
import { getProfilesWithoutNextAction } from './get-profiles-without-next-action';
|
|
58
|
+
import { getSalesBoard } from './get-sales-board';
|
|
58
59
|
import { cancelMarketingEmailCampaign } from './marketing-email-campaign/cancel-marketing-email-campaign';
|
|
59
60
|
import { createMarketingEmailCampaign } from './marketing-email-campaign/create-marketing-email-campaign';
|
|
60
61
|
import { getMarketingEmailCampaign } from './marketing-email-campaign/get-marketing-email-campaign';
|
|
@@ -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;
|
|
@@ -58,6 +58,7 @@ var get_inactive_companies_short_1 = require("./get-inactive-companies-short");
|
|
|
58
58
|
var get_onboarding_steps_1 = require("./get-onboarding-steps");
|
|
59
59
|
var get_one_1 = require("./get-one");
|
|
60
60
|
var get_profiles_without_next_action_1 = require("./get-profiles-without-next-action");
|
|
61
|
+
var get_sales_board_1 = require("./get-sales-board");
|
|
61
62
|
var cancel_marketing_email_campaign_1 = require("./marketing-email-campaign/cancel-marketing-email-campaign");
|
|
62
63
|
var create_marketing_email_campaign_1 = require("./marketing-email-campaign/create-marketing-email-campaign");
|
|
63
64
|
var get_marketing_email_campaign_1 = require("./marketing-email-campaign/get-marketing-email-campaign");
|
|
@@ -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.26",
|
|
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": "5d2c9331c4cbd050b84f22bdc1e01e25dc3549fa",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0.
|
|
18
|
-
"@escapenavigator/utils": "^2.0.
|
|
17
|
+
"@escapenavigator/types": "^2.0.25",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.26",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|