@escapenavigator/services 2.0.35 → 2.0.36
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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProfileSalesStatus } from '@escapenavigator/types/dist/profile/enum/profile-sales-status.enum';
|
|
2
|
+
import { SalesBoardCardRO } from '@escapenavigator/types/dist/profile/sales-board.ro';
|
|
3
|
+
import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
|
|
4
|
+
import { ApiMethodDeclaration } from '..';
|
|
5
|
+
type ParamsData = {
|
|
6
|
+
salesStatus: ProfileSalesStatus;
|
|
7
|
+
/** Сколько карточек колонки уже показано — с них и продолжаем. */
|
|
8
|
+
offset: number;
|
|
9
|
+
country?: CountriesEnum;
|
|
10
|
+
onlyMy?: boolean;
|
|
11
|
+
};
|
|
12
|
+
type ResponseData = SalesBoardCardRO[];
|
|
13
|
+
export declare const getSalesBoardColumn: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
14
|
+
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.getSalesBoardColumn = void 0;
|
|
15
|
+
var getSalesBoardColumn = function (_a) {
|
|
16
|
+
var salesStatus = _a.salesStatus, offset = _a.offset, country = _a.country, onlyMy = _a.onlyMy;
|
|
17
|
+
return ({
|
|
18
|
+
url: '/profiles/sales/board/column',
|
|
19
|
+
method: 'GET',
|
|
20
|
+
params: __assign(__assign({ salesStatus: salesStatus, offset: offset }, (country ? { country: country } : {})), (onlyMy ? { onlyMy: true } : {})),
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.getSalesBoardColumn = getSalesBoardColumn;
|
|
@@ -56,6 +56,7 @@ import { getOnboardingSteps } from './get-onboarding-steps';
|
|
|
56
56
|
import { getOne } from './get-one';
|
|
57
57
|
import { getProfilesWithoutNextAction } from './get-profiles-without-next-action';
|
|
58
58
|
import { getSalesBoard } from './get-sales-board';
|
|
59
|
+
import { getSalesBoardColumn } from './get-sales-board-column';
|
|
59
60
|
import { cancelMarketingEmailCampaign } from './marketing-email-campaign/cancel-marketing-email-campaign';
|
|
60
61
|
import { createMarketingEmailCampaign } from './marketing-email-campaign/create-marketing-email-campaign';
|
|
61
62
|
import { getMarketingEmailCampaign } from './marketing-email-campaign/get-marketing-email-campaign';
|
|
@@ -212,6 +213,7 @@ type ApiDeclaration = {
|
|
|
212
213
|
getInactiveCompaniesShort: typeof getInactiveCompaniesShort;
|
|
213
214
|
getProfilesWithoutNextAction: typeof getProfilesWithoutNextAction;
|
|
214
215
|
getSalesBoard: typeof getSalesBoard;
|
|
216
|
+
getSalesBoardColumn: typeof getSalesBoardColumn;
|
|
215
217
|
finalizeCurrent: typeof finalizeCurrent;
|
|
216
218
|
updateCurrent: typeof updateCurrent;
|
|
217
219
|
updateBookingFields: typeof updateBookingFields;
|
|
@@ -59,6 +59,7 @@ 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
61
|
var get_sales_board_1 = require("./get-sales-board");
|
|
62
|
+
var get_sales_board_column_1 = require("./get-sales-board-column");
|
|
62
63
|
var cancel_marketing_email_campaign_1 = require("./marketing-email-campaign/cancel-marketing-email-campaign");
|
|
63
64
|
var create_marketing_email_campaign_1 = require("./marketing-email-campaign/create-marketing-email-campaign");
|
|
64
65
|
var get_marketing_email_campaign_1 = require("./marketing-email-campaign/get-marketing-email-campaign");
|
|
@@ -133,6 +134,7 @@ exports.profilesApiDeclaration = {
|
|
|
133
134
|
getInactiveCompaniesShort: get_inactive_companies_short_1.getInactiveCompaniesShort,
|
|
134
135
|
getProfilesWithoutNextAction: get_profiles_without_next_action_1.getProfilesWithoutNextAction,
|
|
135
136
|
getSalesBoard: get_sales_board_1.getSalesBoard,
|
|
137
|
+
getSalesBoardColumn: get_sales_board_column_1.getSalesBoardColumn,
|
|
136
138
|
updateNotificationChanel: update_1.updateNotificationChanel,
|
|
137
139
|
deleteAction: delete_action_1.deleteAction,
|
|
138
140
|
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.36",
|
|
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": "3112d9d954979e406e77a787d459e16c49da3d5a",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0.
|
|
18
|
-
"@escapenavigator/utils": "^2.0.
|
|
17
|
+
"@escapenavigator/types": "^2.0.34",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.36",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|