@escapenavigator/services 2.1.21 → 2.1.23
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/index.d.ts +20 -0
- package/dist/api/admins-api/index.js +20 -0
- package/dist/api/admins-api/live-admin-calls.d.ts +5 -0
- package/dist/api/admins-api/live-admin-calls.js +8 -0
- package/dist/api/admins-api/query-admin-call-journal.d.ts +14 -0
- package/dist/api/admins-api/query-admin-call-journal.js +9 -0
- package/dist/api/admins-api/query-admin-call-stats.d.ts +12 -0
- package/dist/api/admins-api/query-admin-call-stats.js +8 -0
- package/dist/api/admins-api/query-admin-calls.d.ts +7 -0
- package/dist/api/admins-api/query-admin-calls.js +9 -0
- package/dist/api/admins-api/query-admin-sms.d.ts +7 -0
- package/dist/api/admins-api/query-admin-sms.js +9 -0
- package/dist/api/admins-api/query-admin-telephony-cities.d.ts +9 -0
- package/dist/api/admins-api/query-admin-telephony-cities.js +8 -0
- package/dist/api/admins-api/send-admin-sms.d.ts +7 -0
- package/dist/api/admins-api/send-admin-sms.js +9 -0
- package/dist/api/admins-api/set-admin-call-city.d.ts +9 -0
- package/dist/api/admins-api/set-admin-call-city.js +12 -0
- package/dist/api/admins-api/set-admin-player-city.d.ts +10 -0
- package/dist/api/admins-api/set-admin-player-city.js +12 -0
- package/dist/api/admins-api/start-admin-call.d.ts +7 -0
- package/dist/api/admins-api/start-admin-call.js +9 -0
- package/dist/api/cron-parser-api/index.d.ts +4 -0
- package/dist/api/cron-parser-api/index.js +4 -0
- package/dist/api/cron-parser-api/refresh-ratings.d.ts +7 -0
- package/dist/api/cron-parser-api/refresh-ratings.js +8 -0
- package/dist/api/cron-parser-api/refresh-statuses.d.ts +7 -0
- package/dist/api/cron-parser-api/refresh-statuses.js +8 -0
- package/dist/api/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/dist/api/profiles-api/agb/get-profile-document-by-slug.d.ts +10 -0
- package/dist/api/profiles-api/agb/get-profile-document-by-slug.js +11 -0
- package/dist/api/profiles-api/agb/get-profile-document.d.ts +7 -0
- package/dist/api/profiles-api/agb/get-profile-document.js +8 -0
- package/dist/api/profiles-api/agb/update-profile-document.d.ts +11 -0
- package/dist/api/profiles-api/agb/update-profile-document.js +12 -0
- package/dist/api/profiles-api/balance/cancel-balance-invoice.d.ts +7 -0
- package/dist/api/profiles-api/balance/cancel-balance-invoice.js +11 -0
- package/dist/api/profiles-api/balance/create-balance-invoice.d.ts +8 -0
- package/dist/api/profiles-api/balance/create-balance-invoice.js +12 -0
- package/dist/api/profiles-api/balance/get-balance-invoice-payer.d.ts +3 -0
- package/dist/api/profiles-api/balance/get-balance-invoice-payer.js +8 -0
- package/dist/api/profiles-api/balance/pay-balance-invoice.d.ts +7 -0
- package/dist/api/profiles-api/balance/pay-balance-invoice.js +11 -0
- package/dist/api/profiles-api/balance/query-all-balance-invoices.d.ts +5 -0
- package/dist/api/profiles-api/balance/query-all-balance-invoices.js +9 -0
- package/dist/api/profiles-api/balance/query-all-balance-items.d.ts +8 -0
- package/dist/api/profiles-api/balance/query-all-balance-items.js +9 -0
- package/dist/api/profiles-api/balance/query-profile-balance-invoices.d.ts +3 -0
- package/dist/api/profiles-api/balance/query-profile-balance-invoices.js +8 -0
- package/dist/api/profiles-api/calls/dial.d.ts +5 -0
- package/dist/api/profiles-api/calls/dial.js +9 -0
- package/dist/api/profiles-api/calls/stats.d.ts +13 -0
- package/dist/api/profiles-api/calls/stats.js +8 -0
- package/dist/api/profiles-api/current/update-ym.d.ts +9 -0
- package/dist/api/profiles-api/current/update-ym.js +12 -0
- package/dist/api/profiles-api/get-partner-board-column.d.ts +15 -0
- package/dist/api/profiles-api/get-partner-board-column.js +23 -0
- package/dist/api/profiles-api/get-partner-board.d.ts +12 -0
- package/dist/api/profiles-api/get-partner-board.js +23 -0
- package/dist/api/profiles-api/get-partner-funnel.d.ts +10 -0
- package/dist/api/profiles-api/get-partner-funnel.js +23 -0
- package/dist/api/profiles-api/get-verification-board-column.d.ts +15 -0
- package/dist/api/profiles-api/get-verification-board-column.js +23 -0
- package/dist/api/profiles-api/get-verification-board.d.ts +12 -0
- package/dist/api/profiles-api/get-verification-board.js +23 -0
- package/dist/api/profiles-api/get-verification-funnel.d.ts +10 -0
- package/dist/api/profiles-api/get-verification-funnel.js +23 -0
- package/dist/api/profiles-api/index.d.ts +38 -0
- package/dist/api/profiles-api/index.js +38 -0
- package/dist/api/questrooms-api/create-admin-note.d.ts +10 -0
- package/dist/api/questrooms-api/create-admin-note.js +12 -0
- package/dist/api/questrooms-api/get-admin-card.d.ts +6 -0
- package/dist/api/questrooms-api/get-admin-card.js +8 -0
- package/dist/api/questrooms-api/index.d.ts +6 -2
- package/dist/api/questrooms-api/index.js +6 -2
- package/dist/api/questrooms-api/remove-admin-note.d.ts +8 -0
- package/dist/api/questrooms-api/remove-admin-note.js +11 -0
- package/dist/api/referral-api/apply-code.d.ts +4 -0
- package/dist/api/referral-api/apply-code.js +9 -0
- package/dist/api/referral-api/cancel-withdrawal.d.ts +5 -0
- package/dist/api/referral-api/cancel-withdrawal.js +11 -0
- package/dist/api/referral-api/create-withdrawal.d.ts +4 -0
- package/dist/api/referral-api/create-withdrawal.js +9 -0
- package/dist/api/referral-api/index.d.ts +14 -0
- package/dist/api/referral-api/index.js +19 -0
- package/dist/api/referral-api/mark-promo-seen.d.ts +2 -0
- package/dist/api/referral-api/mark-promo-seen.js +8 -0
- package/dist/api/referral-api/overview.d.ts +3 -0
- package/dist/api/referral-api/overview.js +8 -0
- package/dist/api/referral-api/query-withdrawals.d.ts +5 -0
- package/dist/api/referral-api/query-withdrawals.js +9 -0
- package/dist/api/referral-api/update-withdrawal.d.ts +9 -0
- package/dist/api/{questrooms-api/update-integration.js → referral-api/update-withdrawal.js} +4 -4
- package/dist/api/search-api/global-search.d.ts +1 -1
- package/dist/api/statistics-api/index.d.ts +2 -0
- package/dist/api/statistics-api/index.js +2 -0
- package/dist/api/statistics-api/leads-report.d.ts +9 -0
- package/dist/api/statistics-api/leads-report.js +12 -0
- package/dist/api/users-api/fines/fast-stat-fines.d.ts +2 -0
- package/package.json +4 -4
- package/dist/api/questrooms-api/update-integration.d.ts +0 -9
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cancelWithdrawal = void 0;
|
|
4
|
+
var cancelWithdrawal = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/referrals/withdrawals/".concat(id, "/cancel"),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.cancelWithdrawal = cancelWithdrawal;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CreateReferralWithdrawalDto } from '@escapenavigator/types/dist/referral/referral.dto';
|
|
2
|
+
import { ReferralWithdrawalRO } from '@escapenavigator/types/dist/referral/referral.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
export declare const createWithdrawal: ApiMethodDeclaration<CreateReferralWithdrawalDto, ReferralWithdrawalRO>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createWithdrawal = void 0;
|
|
4
|
+
var createWithdrawal = function (data) { return ({
|
|
5
|
+
url: '/referrals/withdrawals',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.createWithdrawal = createWithdrawal;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const referralApiDeclaration: {
|
|
2
|
+
overview: import("..").ApiMethodDeclaration<void, import("@escapenavigator/types/dist/referral/referral.ro").ReferralOverviewRO>;
|
|
3
|
+
applyCode: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/referral/referral.dto").ApplyReferralCodeDto, import("@escapenavigator/types/dist/referral/referral.ro").ReferralOverviewRO>;
|
|
4
|
+
markPromoSeen: import("..").ApiMethodDeclaration<void, void>;
|
|
5
|
+
createWithdrawal: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/referral/referral.dto").CreateReferralWithdrawalDto, import("@escapenavigator/types/dist/referral/referral.ro").ReferralWithdrawalRO>;
|
|
6
|
+
cancelWithdrawal: import("..").ApiMethodDeclaration<{
|
|
7
|
+
id: number;
|
|
8
|
+
}, import("@escapenavigator/types/dist/referral/referral.ro").ReferralWithdrawalRO>;
|
|
9
|
+
queryWithdrawals: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/shared/query.dto").QueryDto, import("@escapenavigator/types/dist/shared/query.ro").QueryRO<import("@escapenavigator/types/dist/referral/referral.ro").ReferralWithdrawalRO>>;
|
|
10
|
+
updateWithdrawal: import("..").ApiMethodDeclaration<{
|
|
11
|
+
id: number;
|
|
12
|
+
data: import("@escapenavigator/types/dist/referral/referral.dto").UpdateReferralWithdrawalDto;
|
|
13
|
+
}, import("@escapenavigator/types/dist/referral/referral.ro").ReferralWithdrawalRO>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.referralApiDeclaration = void 0;
|
|
4
|
+
var apply_code_1 = require("./apply-code");
|
|
5
|
+
var cancel_withdrawal_1 = require("./cancel-withdrawal");
|
|
6
|
+
var create_withdrawal_1 = require("./create-withdrawal");
|
|
7
|
+
var mark_promo_seen_1 = require("./mark-promo-seen");
|
|
8
|
+
var overview_1 = require("./overview");
|
|
9
|
+
var query_withdrawals_1 = require("./query-withdrawals");
|
|
10
|
+
var update_withdrawal_1 = require("./update-withdrawal");
|
|
11
|
+
exports.referralApiDeclaration = {
|
|
12
|
+
overview: overview_1.overview,
|
|
13
|
+
applyCode: apply_code_1.applyCode,
|
|
14
|
+
markPromoSeen: mark_promo_seen_1.markPromoSeen,
|
|
15
|
+
createWithdrawal: create_withdrawal_1.createWithdrawal,
|
|
16
|
+
cancelWithdrawal: cancel_withdrawal_1.cancelWithdrawal,
|
|
17
|
+
queryWithdrawals: query_withdrawals_1.queryWithdrawals,
|
|
18
|
+
updateWithdrawal: update_withdrawal_1.updateWithdrawal,
|
|
19
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReferralWithdrawalRO } from '@escapenavigator/types/dist/referral/referral.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
|
+
export declare const queryWithdrawals: ApiMethodDeclaration<QueryDto, QueryRO<ReferralWithdrawalRO>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryWithdrawals = void 0;
|
|
4
|
+
var queryWithdrawals = function (params) { return ({
|
|
5
|
+
url: '/admin/referrals/withdrawals',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.queryWithdrawals = queryWithdrawals;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UpdateReferralWithdrawalDto } from '@escapenavigator/types/dist/referral/referral.dto';
|
|
2
|
+
import { ReferralWithdrawalRO } from '@escapenavigator/types/dist/referral/referral.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type Params = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateReferralWithdrawalDto;
|
|
7
|
+
};
|
|
8
|
+
export declare const updateWithdrawal: ApiMethodDeclaration<Params, ReferralWithdrawalRO>;
|
|
9
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.updateWithdrawal = void 0;
|
|
4
|
+
var updateWithdrawal = function (_a) {
|
|
5
5
|
var id = _a.id, data = _a.data;
|
|
6
6
|
return ({
|
|
7
|
-
url: "/
|
|
7
|
+
url: "/admin/referrals/withdrawals/".concat(id),
|
|
8
8
|
method: 'PATCH',
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.updateWithdrawal = updateWithdrawal;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchRO } from '@escapenavigator/types/dist/search/search.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
/** Поиск по
|
|
3
|
+
/** Поиск по клиентам, сделкам, играм, сертификатам и промокодам */
|
|
4
4
|
type ParamsData = string;
|
|
5
5
|
type ResponseData = SearchRO;
|
|
6
6
|
export declare const globalSearch: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { certificatesReport } from './certificates-report';
|
|
2
|
+
import { leadsReport } from './leads-report';
|
|
2
3
|
import { occupancyReport } from './occupancy-report';
|
|
3
4
|
import { ordersReport } from './orders-report';
|
|
4
5
|
import { promocodesReport } from './promocodes-report';
|
|
@@ -13,6 +14,7 @@ type ApiDeclaration = {
|
|
|
13
14
|
occupancyReport: typeof occupancyReport;
|
|
14
15
|
surveysReport: typeof surveysReport;
|
|
15
16
|
surveysAnswers: typeof surveysAnswers;
|
|
17
|
+
leadsReport: typeof leadsReport;
|
|
16
18
|
};
|
|
17
19
|
export declare const statisticsApiDeclaration: ApiDeclaration;
|
|
18
20
|
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.statisticsApiDeclaration = void 0;
|
|
4
4
|
var certificates_report_1 = require("./certificates-report");
|
|
5
|
+
var leads_report_1 = require("./leads-report");
|
|
5
6
|
var occupancy_report_1 = require("./occupancy-report");
|
|
6
7
|
var orders_report_1 = require("./orders-report");
|
|
7
8
|
var promocodes_report_1 = require("./promocodes-report");
|
|
@@ -16,4 +17,5 @@ exports.statisticsApiDeclaration = {
|
|
|
16
17
|
occupancyReport: occupancy_report_1.occupancyReport,
|
|
17
18
|
surveysReport: surveys_report_1.surveysReport,
|
|
18
19
|
surveysAnswers: surveys_answers_1.surveysAnswers,
|
|
20
|
+
leadsReport: leads_report_1.leadsReport,
|
|
19
21
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LeadsReportRO } from '@escapenavigator/types/dist/statistics/leads';
|
|
2
|
+
import { DashboardQueryDto } from '@escapenavigator/types/dist/statistics/pnl';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: DashboardQueryDto;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = LeadsReportRO;
|
|
8
|
+
export declare const leadsReport: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.leadsReport = void 0;
|
|
4
|
+
var leadsReport = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/statistics/leads',
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.leadsReport = leadsReport;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.23",
|
|
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": "533e344e432372b89b80d81c0ce35bc27463b677",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.1.
|
|
18
|
-
"@escapenavigator/utils": "^2.1.
|
|
17
|
+
"@escapenavigator/types": "^2.1.23",
|
|
18
|
+
"@escapenavigator/utils": "^2.1.23",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UpdateQuestroomIntegrationDto } from '@escapenavigator/types/dist/questroom/update-questroom-integration.dto';
|
|
2
|
-
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
type ParamsData = {
|
|
4
|
-
id: number;
|
|
5
|
-
data: UpdateQuestroomIntegrationDto;
|
|
6
|
-
};
|
|
7
|
-
type ResponseData = undefined;
|
|
8
|
-
export declare const updateIntegration: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
-
export {};
|