@escapenavigator/services 1.10.183 → 2.0.2
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/admins-api/get-widget-funnel-compare.d.ts +16 -0
- package/dist/api/admins-api/get-widget-funnel-compare.js +9 -0
- package/dist/api/admins-api/get-widget-funnel-trend.d.ts +13 -0
- package/dist/api/admins-api/get-widget-funnel-trend.js +9 -0
- package/dist/api/admins-api/index.d.ts +6 -2
- package/dist/api/admins-api/index.js +6 -2
- package/dist/api/dashboard-calendar-api/index.d.ts +6 -0
- package/dist/api/dashboard-calendar-api/index.js +7 -0
- package/dist/api/dashboard-calendar-api/markers.d.ts +7 -0
- package/dist/api/dashboard-calendar-api/markers.js +9 -0
- package/dist/api/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WidgetFunnelCompareRO } from '@escapenavigator/types/dist/widget-funnel/widget-funnel.ro';
|
|
2
|
+
import { WidgetFunnelKindEnum } from '@escapenavigator/types/dist/widget-funnel/widget-funnel-kind.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
kind: WidgetFunnelKindEnum;
|
|
6
|
+
/** 0 / undefined = платформа. */
|
|
7
|
+
profileId?: number;
|
|
8
|
+
/** YYYY-MM-DD. Если не заданы — текущая неделя vs прошлая (UTC). */
|
|
9
|
+
currentFrom?: string;
|
|
10
|
+
currentTo?: string;
|
|
11
|
+
previousFrom?: string;
|
|
12
|
+
previousTo?: string;
|
|
13
|
+
};
|
|
14
|
+
type ResponseData = WidgetFunnelCompareRO;
|
|
15
|
+
export declare const getWidgetFunnelCompare: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getWidgetFunnelCompare = void 0;
|
|
4
|
+
var getWidgetFunnelCompare = function (params) { return ({
|
|
5
|
+
url: '/widget-funnel/compare',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.getWidgetFunnelCompare = getWidgetFunnelCompare;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WidgetFunnelTrendRO } from '@escapenavigator/types/dist/widget-funnel/widget-funnel.ro';
|
|
2
|
+
import { WidgetFunnelKindEnum } from '@escapenavigator/types/dist/widget-funnel/widget-funnel-kind.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
kind: WidgetFunnelKindEnum;
|
|
6
|
+
/** 0 / undefined = платформа. */
|
|
7
|
+
profileId?: number;
|
|
8
|
+
/** Кол-во недель (1..52). По умолчанию 12. */
|
|
9
|
+
weeks?: number;
|
|
10
|
+
};
|
|
11
|
+
type ResponseData = WidgetFunnelTrendRO;
|
|
12
|
+
export declare const getWidgetFunnelTrend: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getWidgetFunnelTrend = void 0;
|
|
4
|
+
var getWidgetFunnelTrend = function (params) { return ({
|
|
5
|
+
url: '/widget-funnel/trend',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.getWidgetFunnelTrend = getWidgetFunnelTrend;
|
|
@@ -11,6 +11,10 @@ import { getAllAdminsActivityByDate } from './get-all-admins-activity-by-date';
|
|
|
11
11
|
import { getAllAdminsActivityRequests } from './get-all-admins-activity-requests';
|
|
12
12
|
import { getAllAdminsActivityStats } from './get-all-admins-activity-stats';
|
|
13
13
|
import { getProfileToken } from './get-profile-token';
|
|
14
|
+
import { getWidgetFunnelCompany } from './get-widget-funnel-company';
|
|
15
|
+
import { getWidgetFunnelCompare } from './get-widget-funnel-compare';
|
|
16
|
+
import { getWidgetFunnelCrossCompany } from './get-widget-funnel-cross-company';
|
|
17
|
+
import { getWidgetFunnelTrend } from './get-widget-funnel-trend';
|
|
14
18
|
import { getWorkingHoursByDate } from './get-working-hours-by-date';
|
|
15
19
|
import { login } from './login';
|
|
16
20
|
import { loginByToken } from './login-by-token';
|
|
@@ -23,8 +27,6 @@ import { findChangeSets } from './questroom-change/find-change-sets';
|
|
|
23
27
|
import { getQuestroomChangePendingCount } from './questroom-change/get-pending-count';
|
|
24
28
|
import { updateChangeSetStatus } from './questroom-change/update-change-set-status';
|
|
25
29
|
import { refillOrdersAndCertificatesAnalytics } from './refill-orders-certificates-analytics';
|
|
26
|
-
import { getWidgetFunnelCompany } from './get-widget-funnel-company';
|
|
27
|
-
import { getWidgetFunnelCrossCompany } from './get-widget-funnel-cross-company';
|
|
28
30
|
import { remove } from './remove';
|
|
29
31
|
import { retryAggregatorOrderBooking } from './retry-aggregator-order-booking';
|
|
30
32
|
import { update } from './update';
|
|
@@ -61,6 +63,8 @@ type ApiDeclaration = {
|
|
|
61
63
|
refillOrdersAndCertificatesAnalytics: typeof refillOrdersAndCertificatesAnalytics;
|
|
62
64
|
getWidgetFunnelCrossCompany: typeof getWidgetFunnelCrossCompany;
|
|
63
65
|
getWidgetFunnelCompany: typeof getWidgetFunnelCompany;
|
|
66
|
+
getWidgetFunnelTrend: typeof getWidgetFunnelTrend;
|
|
67
|
+
getWidgetFunnelCompare: typeof getWidgetFunnelCompare;
|
|
64
68
|
};
|
|
65
69
|
export declare const adminsApiDeclaration: ApiDeclaration;
|
|
66
70
|
export {};
|
|
@@ -14,6 +14,10 @@ var get_all_admins_activity_by_date_1 = require("./get-all-admins-activity-by-da
|
|
|
14
14
|
var get_all_admins_activity_requests_1 = require("./get-all-admins-activity-requests");
|
|
15
15
|
var get_all_admins_activity_stats_1 = require("./get-all-admins-activity-stats");
|
|
16
16
|
var get_profile_token_1 = require("./get-profile-token");
|
|
17
|
+
var get_widget_funnel_company_1 = require("./get-widget-funnel-company");
|
|
18
|
+
var get_widget_funnel_compare_1 = require("./get-widget-funnel-compare");
|
|
19
|
+
var get_widget_funnel_cross_company_1 = require("./get-widget-funnel-cross-company");
|
|
20
|
+
var get_widget_funnel_trend_1 = require("./get-widget-funnel-trend");
|
|
17
21
|
var get_working_hours_by_date_1 = require("./get-working-hours-by-date");
|
|
18
22
|
var login_1 = require("./login");
|
|
19
23
|
var login_by_token_1 = require("./login-by-token");
|
|
@@ -26,8 +30,6 @@ var find_change_sets_1 = require("./questroom-change/find-change-sets");
|
|
|
26
30
|
var get_pending_count_1 = require("./questroom-change/get-pending-count");
|
|
27
31
|
var update_change_set_status_1 = require("./questroom-change/update-change-set-status");
|
|
28
32
|
var refill_orders_certificates_analytics_1 = require("./refill-orders-certificates-analytics");
|
|
29
|
-
var get_widget_funnel_company_1 = require("./get-widget-funnel-company");
|
|
30
|
-
var get_widget_funnel_cross_company_1 = require("./get-widget-funnel-cross-company");
|
|
31
33
|
var remove_1 = require("./remove");
|
|
32
34
|
var retry_aggregator_order_booking_1 = require("./retry-aggregator-order-booking");
|
|
33
35
|
var update_1 = require("./update");
|
|
@@ -64,4 +66,6 @@ exports.adminsApiDeclaration = {
|
|
|
64
66
|
refillOrdersAndCertificatesAnalytics: refill_orders_certificates_analytics_1.refillOrdersAndCertificatesAnalytics,
|
|
65
67
|
getWidgetFunnelCrossCompany: get_widget_funnel_cross_company_1.getWidgetFunnelCrossCompany,
|
|
66
68
|
getWidgetFunnelCompany: get_widget_funnel_company_1.getWidgetFunnelCompany,
|
|
69
|
+
getWidgetFunnelTrend: get_widget_funnel_trend_1.getWidgetFunnelTrend,
|
|
70
|
+
getWidgetFunnelCompare: get_widget_funnel_compare_1.getWidgetFunnelCompare,
|
|
67
71
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DashboardCalendarMarkersDto } from '@escapenavigator/types/dist/dashboard-calendar/dashboard-calendar-markers.dto';
|
|
2
|
+
import { DashboardCalendarMarkersRO } from '@escapenavigator/types/dist/dashboard-calendar/dashboard-calendar-markers.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = DashboardCalendarMarkersDto;
|
|
5
|
+
type ResponseData = DashboardCalendarMarkersRO;
|
|
6
|
+
export declare const markers: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -19,6 +19,7 @@ import { clientsApiDeclaration } from './clients-api';
|
|
|
19
19
|
import { cronParserApiDeclaration } from './cron-parser-api';
|
|
20
20
|
import { customFieldsApiDeclaration } from './custom-fields-api';
|
|
21
21
|
import { dashboardApiDeclaration } from './dashboard-api';
|
|
22
|
+
import { dashboardCalendarApiDeclaration } from './dashboard-calendar-api';
|
|
22
23
|
import { dynamicResourcesApiDeclaration } from './dynamic-resources-api';
|
|
23
24
|
import { emailsApiDeclaration } from './emails-api';
|
|
24
25
|
import { financeItemsApiDeclaration } from './financeitems-api';
|
|
@@ -96,6 +97,7 @@ export type InitApiDeclaration = {
|
|
|
96
97
|
expertsReviews: Api<typeof expertsReviewsApiDeclaration>;
|
|
97
98
|
socialReviews: Api<typeof socialReviewsApiDeclaration>;
|
|
98
99
|
dashboard: Api<typeof dashboardApiDeclaration>;
|
|
100
|
+
dashboardCalendar: Api<typeof dashboardCalendarApiDeclaration>;
|
|
99
101
|
statiscticsApi: Api<typeof statisticsApiDeclaration>;
|
|
100
102
|
searchApi: Api<typeof searchApiDeclaration>;
|
|
101
103
|
promocodes: Api<typeof promocodesApiDeclaration>;
|
|
@@ -22,6 +22,7 @@ var clients_api_1 = require("./clients-api");
|
|
|
22
22
|
var cron_parser_api_1 = require("./cron-parser-api");
|
|
23
23
|
var custom_fields_api_1 = require("./custom-fields-api");
|
|
24
24
|
var dashboard_api_1 = require("./dashboard-api");
|
|
25
|
+
var dashboard_calendar_api_1 = require("./dashboard-calendar-api");
|
|
25
26
|
var dynamic_resources_api_1 = require("./dynamic-resources-api");
|
|
26
27
|
var emails_api_1 = require("./emails-api");
|
|
27
28
|
var financeitems_api_1 = require("./financeitems-api");
|
|
@@ -102,6 +103,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
102
103
|
orderTransactionsApi: (0, _1.initApi)(order_transactions_api_1.orderTransactionsApiDeclaration, url, clientOptions),
|
|
103
104
|
translationsApi: (0, _1.initApi)(translations_api_1.translationsApiDeclaration, url, clientOptions),
|
|
104
105
|
dashboard: (0, _1.initApi)(dashboard_api_1.dashboardApiDeclaration, url, clientOptions),
|
|
106
|
+
dashboardCalendar: (0, _1.initApi)(dashboard_calendar_api_1.dashboardCalendarApiDeclaration, url, clientOptions),
|
|
105
107
|
expertsReviews: (0, _1.initApi)(reviews_experts_api_1.expertsReviewsApiDeclaration, url, clientOptions),
|
|
106
108
|
socialReviews: (0, _1.initApi)(reviews_social_api_1.socialReviewsApiDeclaration, url, clientOptions),
|
|
107
109
|
orderCertificateUploads: (0, _1.initApi)(order_certificate_uploads_api_1.orderCertificateUploadsApiDeclaration, url, clientOptions),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.2",
|
|
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": "fd5d63cf01b4dcde8e8938233e741e6113ed7865",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^
|
|
18
|
-
"@escapenavigator/utils": "^
|
|
17
|
+
"@escapenavigator/types": "^2.0.2",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.2",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|