@escapenavigator/services 2.1.20 → 2.1.22
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/init-client-api.d.ts +2 -2
- package/dist/api/init-client-api.js +2 -2
- 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/{bookeo/get-bookeo-orders.d.ts → balance/query-all-balance-items.d.ts} +3 -3
- 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 +34 -10
- package/dist/api/profiles-api/index.js +34 -10
- 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/partner-systems-api/index.d.ts +0 -132
- package/dist/api/partner-systems-api/index.js +0 -87
- package/dist/api/profiles-api/bookeo/get-bookeo-info.d.ts +0 -6
- package/dist/api/profiles-api/bookeo/get-bookeo-info.js +0 -8
- package/dist/api/profiles-api/bookeo/get-bookeo-integration-link.d.ts +0 -5
- package/dist/api/profiles-api/bookeo/get-bookeo-integration-link.js +0 -8
- package/dist/api/profiles-api/bookeo/get-bookeo-orders.js +0 -9
- package/dist/api/profiles-api/bookeo/resync-bookeo.d.ts +0 -6
- package/dist/api/profiles-api/bookeo/resync-bookeo.js +0 -8
- package/dist/api/questrooms-api/update-integration.d.ts +0 -9
|
@@ -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.22",
|
|
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": "a4d5c142ffa0a99936093b991f5ee87cf8359d7e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.1.
|
|
18
|
-
"@escapenavigator/utils": "^2.1.
|
|
17
|
+
"@escapenavigator/types": "^2.1.22",
|
|
18
|
+
"@escapenavigator/utils": "^2.1.22",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
2
|
-
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
3
|
-
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
export type PartnerSystemItem = {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
baseUrl: string;
|
|
8
|
-
token: string;
|
|
9
|
-
active: boolean;
|
|
10
|
-
lastSyncAt?: string;
|
|
11
|
-
lastSyncStats?: Record<string, number>;
|
|
12
|
-
errorStats: Record<string, number>;
|
|
13
|
-
attractionsCount?: number;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
updatedAt: string;
|
|
16
|
-
};
|
|
17
|
-
export type PartnerAttractionItem = {
|
|
18
|
-
id: number;
|
|
19
|
-
partnerSystemId: number;
|
|
20
|
-
externalId: string;
|
|
21
|
-
externalProfileId?: string;
|
|
22
|
-
questroomId?: number;
|
|
23
|
-
questroom?: {
|
|
24
|
-
id: number;
|
|
25
|
-
title: string;
|
|
26
|
-
profileId: number;
|
|
27
|
-
};
|
|
28
|
-
matchConfidence?: string;
|
|
29
|
-
matchEvidence?: {
|
|
30
|
-
rule: string;
|
|
31
|
-
score?: number;
|
|
32
|
-
runnerUp?: string;
|
|
33
|
-
note?: string;
|
|
34
|
-
decidedAt: string;
|
|
35
|
-
decidedBy: string;
|
|
36
|
-
};
|
|
37
|
-
status: string;
|
|
38
|
-
title: string;
|
|
39
|
-
slug?: string;
|
|
40
|
-
photo?: string;
|
|
41
|
-
type?: string;
|
|
42
|
-
description?: string;
|
|
43
|
-
playersMin?: number;
|
|
44
|
-
playersMax?: number;
|
|
45
|
-
address?: string;
|
|
46
|
-
lat?: number;
|
|
47
|
-
lng?: number;
|
|
48
|
-
phone?: string;
|
|
49
|
-
timeZone?: string;
|
|
50
|
-
firstSeenAt?: string;
|
|
51
|
-
lastSeenAt?: string;
|
|
52
|
-
createdAt: string;
|
|
53
|
-
updatedAt: string;
|
|
54
|
-
};
|
|
55
|
-
export type PartnerSyncStats = {
|
|
56
|
-
processed: number;
|
|
57
|
-
created: number;
|
|
58
|
-
updated: number;
|
|
59
|
-
disappeared: number;
|
|
60
|
-
autoLinked: number;
|
|
61
|
-
};
|
|
62
|
-
export type PartnerAutolinkResult = {
|
|
63
|
-
summary: Record<string, number>;
|
|
64
|
-
results: Array<{
|
|
65
|
-
attractionId: number;
|
|
66
|
-
title: string;
|
|
67
|
-
action: string;
|
|
68
|
-
rule?: string;
|
|
69
|
-
score?: number;
|
|
70
|
-
questroomId?: number;
|
|
71
|
-
questroomTitle?: string;
|
|
72
|
-
note?: string;
|
|
73
|
-
}>;
|
|
74
|
-
};
|
|
75
|
-
declare const query: ApiMethodDeclaration<undefined, PartnerSystemItem[]>;
|
|
76
|
-
declare const create: ApiMethodDeclaration<{
|
|
77
|
-
name: string;
|
|
78
|
-
baseUrl: string;
|
|
79
|
-
token: string;
|
|
80
|
-
active?: boolean;
|
|
81
|
-
}, PartnerSystemItem>;
|
|
82
|
-
declare const update: ApiMethodDeclaration<{
|
|
83
|
-
id: number;
|
|
84
|
-
data: {
|
|
85
|
-
name?: string;
|
|
86
|
-
baseUrl?: string;
|
|
87
|
-
token?: string;
|
|
88
|
-
active?: boolean;
|
|
89
|
-
};
|
|
90
|
-
}, PartnerSystemItem>;
|
|
91
|
-
declare const remove: ApiMethodDeclaration<{
|
|
92
|
-
id: number;
|
|
93
|
-
}, {
|
|
94
|
-
success: boolean;
|
|
95
|
-
}>;
|
|
96
|
-
declare const test: ApiMethodDeclaration<{
|
|
97
|
-
id: number;
|
|
98
|
-
}, {
|
|
99
|
-
success: boolean;
|
|
100
|
-
attractions: number;
|
|
101
|
-
message?: string;
|
|
102
|
-
}>;
|
|
103
|
-
declare const sync: ApiMethodDeclaration<{
|
|
104
|
-
id: number;
|
|
105
|
-
}, PartnerSyncStats>;
|
|
106
|
-
declare const autolink: ApiMethodDeclaration<{
|
|
107
|
-
id: number;
|
|
108
|
-
dryRun?: boolean;
|
|
109
|
-
}, PartnerAutolinkResult>;
|
|
110
|
-
declare const attractions: ApiMethodDeclaration<QueryDto & {
|
|
111
|
-
id: number;
|
|
112
|
-
}, QueryRO<PartnerAttractionItem>>;
|
|
113
|
-
declare const updateAttraction: ApiMethodDeclaration<{
|
|
114
|
-
id: number;
|
|
115
|
-
data: {
|
|
116
|
-
questroomId?: number | null;
|
|
117
|
-
status?: string;
|
|
118
|
-
};
|
|
119
|
-
}, PartnerAttractionItem>;
|
|
120
|
-
type ApiDeclaration = {
|
|
121
|
-
query: typeof query;
|
|
122
|
-
create: typeof create;
|
|
123
|
-
update: typeof update;
|
|
124
|
-
remove: typeof remove;
|
|
125
|
-
test: typeof test;
|
|
126
|
-
sync: typeof sync;
|
|
127
|
-
autolink: typeof autolink;
|
|
128
|
-
attractions: typeof attractions;
|
|
129
|
-
updateAttraction: typeof updateAttraction;
|
|
130
|
-
};
|
|
131
|
-
export declare const partnerSystemsApiDeclaration: ApiDeclaration;
|
|
132
|
-
export {};
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.partnerSystemsApiDeclaration = void 0;
|
|
15
|
-
var query = function () { return ({
|
|
16
|
-
url: '/partner-systems',
|
|
17
|
-
method: 'GET',
|
|
18
|
-
}); };
|
|
19
|
-
var create = function (data) { return ({
|
|
20
|
-
url: '/partner-systems',
|
|
21
|
-
method: 'POST',
|
|
22
|
-
data: data,
|
|
23
|
-
}); };
|
|
24
|
-
var update = function (_a) {
|
|
25
|
-
var id = _a.id, data = _a.data;
|
|
26
|
-
return ({
|
|
27
|
-
url: "/partner-systems/".concat(id),
|
|
28
|
-
method: 'PATCH',
|
|
29
|
-
data: data,
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
var remove = function (_a) {
|
|
33
|
-
var id = _a.id;
|
|
34
|
-
return ({
|
|
35
|
-
url: "/partner-systems/".concat(id),
|
|
36
|
-
method: 'DELETE',
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var test = function (_a) {
|
|
40
|
-
var id = _a.id;
|
|
41
|
-
return ({
|
|
42
|
-
url: "/partner-systems/".concat(id, "/test"),
|
|
43
|
-
method: 'POST',
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
var sync = function (_a) {
|
|
47
|
-
var id = _a.id;
|
|
48
|
-
return ({
|
|
49
|
-
url: "/partner-systems/".concat(id, "/sync"),
|
|
50
|
-
method: 'POST',
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
var autolink = function (_a) {
|
|
54
|
-
var id = _a.id, dryRun = _a.dryRun;
|
|
55
|
-
return ({
|
|
56
|
-
url: "/partner-systems/".concat(id, "/autolink"),
|
|
57
|
-
method: 'POST',
|
|
58
|
-
params: dryRun ? { dryRun: 'true' } : undefined,
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
var attractions = function (_a) {
|
|
62
|
-
var id = _a.id, params = __rest(_a, ["id"]);
|
|
63
|
-
return ({
|
|
64
|
-
url: "/partner-systems/".concat(id, "/attractions"),
|
|
65
|
-
method: 'GET',
|
|
66
|
-
params: params,
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
var updateAttraction = function (_a) {
|
|
70
|
-
var id = _a.id, data = _a.data;
|
|
71
|
-
return ({
|
|
72
|
-
url: "/partner-systems/attractions/".concat(id),
|
|
73
|
-
method: 'PATCH',
|
|
74
|
-
data: data,
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
exports.partnerSystemsApiDeclaration = {
|
|
78
|
-
query: query,
|
|
79
|
-
create: create,
|
|
80
|
-
update: update,
|
|
81
|
-
remove: remove,
|
|
82
|
-
test: test,
|
|
83
|
-
sync: sync,
|
|
84
|
-
autolink: autolink,
|
|
85
|
-
attractions: attractions,
|
|
86
|
-
updateAttraction: updateAttraction,
|
|
87
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BookeoInfoRO } from '@escapenavigator/types/dist/bookeo/bookeo-info.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '../..';
|
|
3
|
-
type ParamsData = undefined;
|
|
4
|
-
type ResponseData = BookeoInfoRO;
|
|
5
|
-
export declare const getBookeoInfo: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBookeoIntegrationLink = void 0;
|
|
4
|
-
var getBookeoIntegrationLink = function () { return ({
|
|
5
|
-
url: '/bookeo/integration-link',
|
|
6
|
-
method: 'GET',
|
|
7
|
-
}); };
|
|
8
|
-
exports.getBookeoIntegrationLink = getBookeoIntegrationLink;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBookeoOrders = void 0;
|
|
4
|
-
var getBookeoOrders = function (params) { return ({
|
|
5
|
-
url: '/bookeo-orders',
|
|
6
|
-
method: 'GET',
|
|
7
|
-
params: params,
|
|
8
|
-
}); };
|
|
9
|
-
exports.getBookeoOrders = getBookeoOrders;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '../..';
|
|
3
|
-
type ParamsData = undefined;
|
|
4
|
-
type ResponseData = SuccessRO;
|
|
5
|
-
export declare const resyncBookeo: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
-
export {};
|
|
@@ -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 {};
|