@escapenavigator/services 2.1.6 → 2.1.8
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/put-billing-defaults.d.ts +10 -0
- package/dist/api/clients-api/put-billing-defaults.js +12 -0
- package/dist/api/init-client-api.d.ts +4 -0
- package/dist/api/init-client-api.js +4 -0
- package/dist/api/integrations-v2-api/index.d.ts +181 -0
- package/dist/api/integrations-v2-api/index.js +144 -0
- package/dist/api/navigator-certificate-api/index.d.ts +4 -0
- package/dist/api/navigator-certificate-api/index.js +4 -0
- package/dist/api/navigator-certificate-api/query-tags.d.ts +6 -0
- package/dist/api/navigator-certificate-api/query-tags.js +8 -0
- package/dist/api/navigator-certificate-api/update-tag.d.ts +10 -0
- package/dist/api/navigator-certificate-api/update-tag.js +12 -0
- package/dist/api/openapi-widget-api/external/external-order.d.ts +9 -0
- package/dist/api/openapi-widget-api/external/external-order.js +14 -0
- package/dist/api/openapi-widget-api/external/external-quote.d.ts +10 -0
- package/dist/api/openapi-widget-api/external/external-quote.js +15 -0
- package/dist/api/openapi-widget-api/external/index.d.ts +2 -0
- package/dist/api/openapi-widget-api/external/index.js +5 -1
- package/dist/api/openapi-widget-api/index.d.ts +3 -1
- package/dist/api/openapi-widget-api/index.js +2 -0
- package/dist/api/orders-api/get-aggregator-visit-stats.d.ts +33 -0
- package/dist/api/orders-api/get-aggregator-visit-stats.js +8 -0
- package/dist/api/orders-api/index.d.ts +2 -0
- package/dist/api/orders-api/index.js +2 -0
- package/dist/api/profiles-api/index.d.ts +2 -0
- package/dist/api/profiles-api/index.js +2 -0
- package/dist/api/profiles-api/update-navigator-certificate-program.d.ts +7 -0
- package/dist/api/profiles-api/update-navigator-certificate-program.js +8 -0
- package/dist/api/questrooms-api/index.d.ts +0 -2
- package/dist/api/questrooms-api/index.js +0 -2
- package/dist/api/rating-badges-api/create.d.ts +8 -0
- package/dist/api/rating-badges-api/create.js +12 -0
- package/dist/api/rating-badges-api/get-ranking.d.ts +3 -0
- package/dist/api/rating-badges-api/get-ranking.js +8 -0
- package/dist/api/rating-badges-api/index.d.ts +18 -0
- package/dist/api/rating-badges-api/index.js +19 -0
- package/dist/api/rating-badges-api/query-admin.d.ts +3 -0
- package/dist/api/rating-badges-api/query-admin.js +8 -0
- package/dist/api/rating-badges-api/query.d.ts +3 -0
- package/dist/api/rating-badges-api/query.js +8 -0
- package/dist/api/rating-badges-api/recheck-admin.d.ts +7 -0
- package/dist/api/rating-badges-api/recheck-admin.js +11 -0
- package/dist/api/rating-badges-api/recheck.d.ts +7 -0
- package/dist/api/rating-badges-api/recheck.js +11 -0
- package/dist/api/rating-badges-api/remove.d.ts +8 -0
- package/dist/api/rating-badges-api/remove.js +11 -0
- package/dist/api/uploads-api/index.d.ts +2 -0
- package/dist/api/uploads-api/index.js +2 -0
- package/dist/api/uploads-api/upload-preview-video.d.ts +9 -0
- package/dist/api/uploads-api/upload-preview-video.js +16 -0
- package/package.json +4 -4
- package/dist/api/questrooms-api/bind-bookeo.d.ts +0 -7
- package/dist/api/questrooms-api/bind-bookeo.js +0 -9
|
@@ -9,6 +9,7 @@ import { getBillingDefaults } from './get-billing-defaults';
|
|
|
9
9
|
import { getComplaints } from './get-complaints';
|
|
10
10
|
import { getOne } from './get-one';
|
|
11
11
|
import { getUtmTouchpoints } from './get-utm-touchpoints';
|
|
12
|
+
import { putBillingDefaults } from './put-billing-defaults';
|
|
12
13
|
import { query } from './query';
|
|
13
14
|
import { remove } from './remove';
|
|
14
15
|
import { restoreMarketingAudience } from './restore-marketing-audience';
|
|
@@ -31,6 +32,7 @@ type ApiDeclaration = {
|
|
|
31
32
|
getAll: typeof getAll;
|
|
32
33
|
getOne: typeof getOne;
|
|
33
34
|
getBillingDefaults: typeof getBillingDefaults;
|
|
35
|
+
putBillingDefaults: typeof putBillingDefaults;
|
|
34
36
|
getUtmTouchpoints: typeof getUtmTouchpoints;
|
|
35
37
|
suggestUtm: typeof suggestUtm;
|
|
36
38
|
remove: typeof remove;
|
|
@@ -12,6 +12,7 @@ var get_billing_defaults_1 = require("./get-billing-defaults");
|
|
|
12
12
|
var get_complaints_1 = require("./get-complaints");
|
|
13
13
|
var get_one_1 = require("./get-one");
|
|
14
14
|
var get_utm_touchpoints_1 = require("./get-utm-touchpoints");
|
|
15
|
+
var put_billing_defaults_1 = require("./put-billing-defaults");
|
|
15
16
|
var query_1 = require("./query");
|
|
16
17
|
var remove_1 = require("./remove");
|
|
17
18
|
var restore_marketing_audience_1 = require("./restore-marketing-audience");
|
|
@@ -34,6 +35,7 @@ exports.clientsApiDeclaration = {
|
|
|
34
35
|
getAll: get_all_1.getAll,
|
|
35
36
|
getOne: get_one_1.getOne,
|
|
36
37
|
getBillingDefaults: get_billing_defaults_1.getBillingDefaults,
|
|
38
|
+
putBillingDefaults: put_billing_defaults_1.putBillingDefaults,
|
|
37
39
|
getUtmTouchpoints: get_utm_touchpoints_1.getUtmTouchpoints,
|
|
38
40
|
suggestUtm: suggest_utm_1.suggestUtm,
|
|
39
41
|
remove: remove_1.remove,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientBillingDefaultsRO } from '@escapenavigator/types/dist/client/client-billing-defaults.ro';
|
|
2
|
+
import { UpdateClientBillingDefaultsDto } from '@escapenavigator/types/dist/client/update-client-billing-defaults.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateClientBillingDefaultsDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = ClientBillingDefaultsRO;
|
|
9
|
+
export declare const putBillingDefaults: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.putBillingDefaults = void 0;
|
|
4
|
+
var putBillingDefaults = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/clients/".concat(id, "/billing-defaults"),
|
|
8
|
+
method: 'PUT',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.putBillingDefaults = putBillingDefaults;
|
|
@@ -33,6 +33,7 @@ import { googleCalendarsApiDeclaration } from './google-calendars-api';
|
|
|
33
33
|
import { googlePlacesApiDeclaration } from './google-places-api';
|
|
34
34
|
import { holidaysApiDeclaration } from './holidays-api';
|
|
35
35
|
import { imagesApiDeclaration } from './images-api';
|
|
36
|
+
import { integrationsV2ApiDeclaration } from './integrations-v2-api';
|
|
36
37
|
import { invoiceExpressApiDeclaration } from './invoice-express-api';
|
|
37
38
|
import { landingReviewsApiDeclaration } from './landing-reviews-api';
|
|
38
39
|
import { leadFormsApiDeclaration } from './lead-forms-api';
|
|
@@ -71,6 +72,7 @@ import { questroomDeviceApiDeclaration } from './questroom-device-api';
|
|
|
71
72
|
import { questroomRiddleApiDeclaration } from './questroom-riddle-api';
|
|
72
73
|
import { questroomsApiDeclaration } from './questrooms-api';
|
|
73
74
|
import { questroomScenarioEmailApiDeclaration } from './questrooms-scenatio-email-api';
|
|
75
|
+
import { ratingBadgesApiDeclaration } from './rating-badges-api';
|
|
74
76
|
import { registrationRequestsApiDeclaration } from './registration-requests-api';
|
|
75
77
|
import { expertsReviewsApiDeclaration } from './reviews-experts-api';
|
|
76
78
|
import { socialReviewsApiDeclaration } from './reviews-social-api';
|
|
@@ -110,6 +112,7 @@ export type InitApiDeclaration = {
|
|
|
110
112
|
parseResultsApi: Api<typeof parseResultsApiDeclaration>;
|
|
111
113
|
aggregatorCompaniesApi: Api<typeof aggregatorCompaniesApiDeclaration>;
|
|
112
114
|
aggregatorQuestsApi: Api<typeof aggregatorQuestsApiDeclaration>;
|
|
115
|
+
integrationsV2Api: Api<typeof integrationsV2ApiDeclaration>;
|
|
113
116
|
partnerSystemsApi: Api<typeof partnerSystemsApiDeclaration>;
|
|
114
117
|
cronParserApi: Api<typeof cronParserApiDeclaration>;
|
|
115
118
|
slotRulesApi: Api<typeof slotRulesApi>;
|
|
@@ -170,6 +173,7 @@ export type InitApiDeclaration = {
|
|
|
170
173
|
widgets: Api<typeof widgetsApiDeclaration>;
|
|
171
174
|
widgetSessions: Api<typeof widgetSessionsApiDeclaration>;
|
|
172
175
|
profiles: Api<typeof profilesApiDeclaration>;
|
|
176
|
+
ratingBadges: Api<typeof ratingBadgesApiDeclaration>;
|
|
173
177
|
users: Api<typeof usersApiDeclaration>;
|
|
174
178
|
clients: Api<typeof clientsApiDeclaration>;
|
|
175
179
|
transactions: Api<typeof transactionsApiDeclaration>;
|
|
@@ -36,6 +36,7 @@ var google_calendars_api_1 = require("./google-calendars-api");
|
|
|
36
36
|
var google_places_api_1 = require("./google-places-api");
|
|
37
37
|
var holidays_api_1 = require("./holidays-api");
|
|
38
38
|
var images_api_1 = require("./images-api");
|
|
39
|
+
var integrations_v2_api_1 = require("./integrations-v2-api");
|
|
39
40
|
var invoice_express_api_1 = require("./invoice-express-api");
|
|
40
41
|
var landing_reviews_api_1 = require("./landing-reviews-api");
|
|
41
42
|
var lead_forms_api_1 = require("./lead-forms-api");
|
|
@@ -74,6 +75,7 @@ var questroom_device_api_1 = require("./questroom-device-api");
|
|
|
74
75
|
var questroom_riddle_api_1 = require("./questroom-riddle-api");
|
|
75
76
|
var questrooms_api_1 = require("./questrooms-api");
|
|
76
77
|
var questrooms_scenatio_email_api_1 = require("./questrooms-scenatio-email-api");
|
|
78
|
+
var rating_badges_api_1 = require("./rating-badges-api");
|
|
77
79
|
var registration_requests_api_1 = require("./registration-requests-api");
|
|
78
80
|
var reviews_experts_api_1 = require("./reviews-experts-api");
|
|
79
81
|
var reviews_social_api_1 = require("./reviews-social-api");
|
|
@@ -116,6 +118,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
116
118
|
parseResultsApi: (0, _1.initApi)(parse_results_api_1.parseResultsApiDeclaration, url, clientOptions),
|
|
117
119
|
aggregatorCompaniesApi: (0, _1.initApi)(aggregator_companies_api_1.aggregatorCompaniesApiDeclaration, url, clientOptions),
|
|
118
120
|
aggregatorQuestsApi: (0, _1.initApi)(aggregator_quests_api_1.aggregatorQuestsApiDeclaration, url, clientOptions),
|
|
121
|
+
integrationsV2Api: (0, _1.initApi)(integrations_v2_api_1.integrationsV2ApiDeclaration, url, clientOptions),
|
|
119
122
|
partnerSystemsApi: (0, _1.initApi)(partner_systems_api_1.partnerSystemsApiDeclaration, url, clientOptions),
|
|
120
123
|
cronParserApi: (0, _1.initApi)(cron_parser_api_1.cronParserApiDeclaration, url, clientOptions),
|
|
121
124
|
slotRulesApi: (0, _1.initApi)(slot_rules_api_1.slotRulesApi, url, clientOptions),
|
|
@@ -174,6 +177,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
174
177
|
widgets: (0, _1.initApi)(widgets_api_1.widgetsApiDeclaration, url, clientOptions),
|
|
175
178
|
widgetSessions: (0, _1.initApi)(widget_sessions_api_1.widgetSessionsApiDeclaration, url, clientOptions),
|
|
176
179
|
profiles: (0, _1.initApi)(profiles_api_1.profilesApiDeclaration, url, clientOptions),
|
|
180
|
+
ratingBadges: (0, _1.initApi)(rating_badges_api_1.ratingBadgesApiDeclaration, url, clientOptions),
|
|
177
181
|
users: (0, _1.initApi)(users_api_1.usersApiDeclaration, url, clientOptions),
|
|
178
182
|
clients: (0, _1.initApi)(clients_api_1.clientsApiDeclaration, url, clientOptions),
|
|
179
183
|
transactions: (0, _1.initApi)(transactions_api_1.transactionsApiDeclaration, url, clientOptions),
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { AdminIntegrationConnection, AdminIntegrationConnectionRow, AdminIntegrationDashboard, AdminIntegrationRequestRow } from '@escapenavigator/types/dist/integrations/admin-integration.ro';
|
|
2
|
+
import { IntegrationBookingModeEnum } from '@escapenavigator/types/dist/integrations/booking-mode.enum';
|
|
3
|
+
import { ConnectIntegrationDto, CreateIntegrationRequestDto } from '@escapenavigator/types/dist/integrations/connect-integration.dto';
|
|
4
|
+
import { IntegrationConnectionStatusEnum } from '@escapenavigator/types/dist/integrations/connection-status.enum';
|
|
5
|
+
import { CredentialField } from '@escapenavigator/types/dist/integrations/credential-field';
|
|
6
|
+
import { CrmIntegrationStatus } from '@escapenavigator/types/dist/integrations/crm-integration-status.ro';
|
|
7
|
+
import { IntegrationRequestStatusEnum } from '@escapenavigator/types/dist/integrations/integration-request-status.enum';
|
|
8
|
+
import { PendingBookingRequest } from '@escapenavigator/types/dist/integrations/pending-booking-request.ro';
|
|
9
|
+
import { IntegrationProviderCodeEnum } from '@escapenavigator/types/dist/integrations/provider-code.enum';
|
|
10
|
+
import { IntegrationResourceMatchStatusEnum } from '@escapenavigator/types/dist/integrations/resource-match-status.enum';
|
|
11
|
+
import { ApiMethodDeclaration } from '..';
|
|
12
|
+
/**
|
|
13
|
+
* Интеграции v2: кабинет квеста и админка.
|
|
14
|
+
*
|
|
15
|
+
* Два набора методов в одном модуле сознательно: кабинет и админка ходят по
|
|
16
|
+
* разным путям и с разными правами, но говорят об одних объектах. Разнеси их по
|
|
17
|
+
* двум модулям — и типы карточки подключения начнут расходиться между экранами.
|
|
18
|
+
*/
|
|
19
|
+
export type CatalogItem = {
|
|
20
|
+
providerCode: IntegrationProviderCodeEnum;
|
|
21
|
+
credentialFields: CredentialField[];
|
|
22
|
+
capabilities: {
|
|
23
|
+
bookingModes: IntegrationBookingModeEnum[];
|
|
24
|
+
canListResources: boolean;
|
|
25
|
+
canCheckSlot: boolean;
|
|
26
|
+
canCancel: boolean;
|
|
27
|
+
scheduleHorizonDays?: number;
|
|
28
|
+
/**
|
|
29
|
+
* `resource` — доступ выдаётся на одну комнату, и мастер обязан спросить,
|
|
30
|
+
* к какому квесту относится введённая ссылка. Каталог комнат у таких
|
|
31
|
+
* систем не запрашивается: его нет.
|
|
32
|
+
*/
|
|
33
|
+
connectionScope?: 'account' | 'resource';
|
|
34
|
+
};
|
|
35
|
+
selfServe: boolean;
|
|
36
|
+
};
|
|
37
|
+
export type ConnectResult = {
|
|
38
|
+
connectionId: number;
|
|
39
|
+
verified: boolean;
|
|
40
|
+
/** Причина отказа словами вендора — показывается прямо в форме. */
|
|
41
|
+
message: string | null;
|
|
42
|
+
matched: number;
|
|
43
|
+
unmatched: number;
|
|
44
|
+
};
|
|
45
|
+
export type IntegrationResourceItem = {
|
|
46
|
+
id: number;
|
|
47
|
+
externalId: string;
|
|
48
|
+
externalTitle: string;
|
|
49
|
+
matchStatus: IntegrationResourceMatchStatusEnum;
|
|
50
|
+
matchConfidence: number;
|
|
51
|
+
questroomId: number | null;
|
|
52
|
+
questroomTitle: string | null;
|
|
53
|
+
suggestedQuestroomId: number | null;
|
|
54
|
+
alternatives: {
|
|
55
|
+
questroomId: number;
|
|
56
|
+
title: string;
|
|
57
|
+
score: number;
|
|
58
|
+
}[];
|
|
59
|
+
lastSeenAt: string | null;
|
|
60
|
+
};
|
|
61
|
+
export type IntegrationResourcesResult = {
|
|
62
|
+
questrooms: {
|
|
63
|
+
id: number;
|
|
64
|
+
title: string;
|
|
65
|
+
}[];
|
|
66
|
+
resources: IntegrationResourceItem[];
|
|
67
|
+
};
|
|
68
|
+
export type MyIntegrationRequest = {
|
|
69
|
+
id: number;
|
|
70
|
+
systemName: string;
|
|
71
|
+
status: IntegrationRequestStatusEnum;
|
|
72
|
+
comment: string | null;
|
|
73
|
+
adminComment: string | null;
|
|
74
|
+
createdAt: string;
|
|
75
|
+
lastRepliedAt: string | null;
|
|
76
|
+
};
|
|
77
|
+
declare const status: ApiMethodDeclaration<void, CrmIntegrationStatus[]>;
|
|
78
|
+
declare const catalog: ApiMethodDeclaration<void, CatalogItem[]>;
|
|
79
|
+
declare const connect: ApiMethodDeclaration<ConnectIntegrationDto, ConnectResult>;
|
|
80
|
+
declare const resources: ApiMethodDeclaration<number, IntegrationResourcesResult>;
|
|
81
|
+
declare const matchResource: ApiMethodDeclaration<{
|
|
82
|
+
connectionId: number;
|
|
83
|
+
resourceId: number;
|
|
84
|
+
questroomId: number | null;
|
|
85
|
+
}, {
|
|
86
|
+
id: number;
|
|
87
|
+
matchStatus: IntegrationResourceMatchStatusEnum;
|
|
88
|
+
}>;
|
|
89
|
+
declare const recheck: ApiMethodDeclaration<number, {
|
|
90
|
+
ok: boolean;
|
|
91
|
+
message?: string;
|
|
92
|
+
}>;
|
|
93
|
+
declare const toggle: ApiMethodDeclaration<{
|
|
94
|
+
connectionId: number;
|
|
95
|
+
enabled: boolean;
|
|
96
|
+
}, {
|
|
97
|
+
id: number;
|
|
98
|
+
status: IntegrationConnectionStatusEnum;
|
|
99
|
+
}>;
|
|
100
|
+
declare const createRequest: ApiMethodDeclaration<CreateIntegrationRequestDto, {
|
|
101
|
+
id: number;
|
|
102
|
+
status: IntegrationRequestStatusEnum;
|
|
103
|
+
createdAt: string;
|
|
104
|
+
}>;
|
|
105
|
+
declare const myRequests: ApiMethodDeclaration<void, MyIntegrationRequest[]>;
|
|
106
|
+
declare const pendingBookingRequests: ApiMethodDeclaration<void, PendingBookingRequest[]>;
|
|
107
|
+
declare const resolveBookingRequest: ApiMethodDeclaration<{
|
|
108
|
+
orderId: number;
|
|
109
|
+
action: 'confirm' | 'decline';
|
|
110
|
+
}, {
|
|
111
|
+
status: 'confirmed' | 'declined' | 'already' | 'gone';
|
|
112
|
+
resolution?: string;
|
|
113
|
+
message?: string;
|
|
114
|
+
}>;
|
|
115
|
+
declare const adminDashboard: ApiMethodDeclaration<void, AdminIntegrationDashboard>;
|
|
116
|
+
declare const adminConnections: ApiMethodDeclaration<{
|
|
117
|
+
status?: IntegrationConnectionStatusEnum;
|
|
118
|
+
providerCode?: IntegrationProviderCodeEnum;
|
|
119
|
+
profileId?: number;
|
|
120
|
+
}, AdminIntegrationConnectionRow[]>;
|
|
121
|
+
declare const adminConnection: ApiMethodDeclaration<number, AdminIntegrationConnection>;
|
|
122
|
+
declare const adminVerify: ApiMethodDeclaration<number, {
|
|
123
|
+
ok: boolean;
|
|
124
|
+
message?: string;
|
|
125
|
+
}>;
|
|
126
|
+
declare const adminSetStatus: ApiMethodDeclaration<{
|
|
127
|
+
connectionId: number;
|
|
128
|
+
status: IntegrationConnectionStatusEnum;
|
|
129
|
+
comment?: string;
|
|
130
|
+
}, {
|
|
131
|
+
id: number;
|
|
132
|
+
status: IntegrationConnectionStatusEnum;
|
|
133
|
+
}>;
|
|
134
|
+
declare const adminPendingBookingRequests: ApiMethodDeclaration<void, (PendingBookingRequest & {
|
|
135
|
+
profileId: number;
|
|
136
|
+
})[]>;
|
|
137
|
+
declare const adminResolveBookingRequest: ApiMethodDeclaration<{
|
|
138
|
+
orderId: number;
|
|
139
|
+
action: 'confirm' | 'decline';
|
|
140
|
+
}, {
|
|
141
|
+
status: 'confirmed' | 'declined' | 'already' | 'gone';
|
|
142
|
+
resolution?: string;
|
|
143
|
+
message?: string;
|
|
144
|
+
}>;
|
|
145
|
+
declare const adminRequests: ApiMethodDeclaration<{
|
|
146
|
+
status?: IntegrationRequestStatusEnum;
|
|
147
|
+
}, AdminIntegrationRequestRow[]>;
|
|
148
|
+
declare const adminUpdateRequest: ApiMethodDeclaration<{
|
|
149
|
+
requestId: number;
|
|
150
|
+
status?: IntegrationRequestStatusEnum;
|
|
151
|
+
adminComment?: string;
|
|
152
|
+
connectionId?: number;
|
|
153
|
+
assign?: boolean;
|
|
154
|
+
}, {
|
|
155
|
+
id: number;
|
|
156
|
+
status: IntegrationRequestStatusEnum;
|
|
157
|
+
}>;
|
|
158
|
+
type ApiDeclaration = {
|
|
159
|
+
status: typeof status;
|
|
160
|
+
catalog: typeof catalog;
|
|
161
|
+
connect: typeof connect;
|
|
162
|
+
resources: typeof resources;
|
|
163
|
+
matchResource: typeof matchResource;
|
|
164
|
+
recheck: typeof recheck;
|
|
165
|
+
toggle: typeof toggle;
|
|
166
|
+
createRequest: typeof createRequest;
|
|
167
|
+
myRequests: typeof myRequests;
|
|
168
|
+
pendingBookingRequests: typeof pendingBookingRequests;
|
|
169
|
+
resolveBookingRequest: typeof resolveBookingRequest;
|
|
170
|
+
adminDashboard: typeof adminDashboard;
|
|
171
|
+
adminConnections: typeof adminConnections;
|
|
172
|
+
adminConnection: typeof adminConnection;
|
|
173
|
+
adminVerify: typeof adminVerify;
|
|
174
|
+
adminSetStatus: typeof adminSetStatus;
|
|
175
|
+
adminPendingBookingRequests: typeof adminPendingBookingRequests;
|
|
176
|
+
adminResolveBookingRequest: typeof adminResolveBookingRequest;
|
|
177
|
+
adminRequests: typeof adminRequests;
|
|
178
|
+
adminUpdateRequest: typeof adminUpdateRequest;
|
|
179
|
+
};
|
|
180
|
+
export declare const integrationsV2ApiDeclaration: ApiDeclaration;
|
|
181
|
+
export {};
|
|
@@ -0,0 +1,144 @@
|
|
|
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.integrationsV2ApiDeclaration = void 0;
|
|
15
|
+
var status = function () { return ({
|
|
16
|
+
url: '/integrations',
|
|
17
|
+
method: 'GET',
|
|
18
|
+
}); };
|
|
19
|
+
var catalog = function () { return ({
|
|
20
|
+
url: '/integrations/catalog',
|
|
21
|
+
method: 'GET',
|
|
22
|
+
}); };
|
|
23
|
+
var connect = function (data) { return ({
|
|
24
|
+
url: '/integrations',
|
|
25
|
+
method: 'POST',
|
|
26
|
+
data: data,
|
|
27
|
+
}); };
|
|
28
|
+
var resources = function (connectionId) { return ({
|
|
29
|
+
url: "/integrations/".concat(connectionId, "/resources"),
|
|
30
|
+
method: 'GET',
|
|
31
|
+
}); };
|
|
32
|
+
var matchResource = function (_a) {
|
|
33
|
+
var connectionId = _a.connectionId, resourceId = _a.resourceId, questroomId = _a.questroomId;
|
|
34
|
+
return ({
|
|
35
|
+
url: "/integrations/".concat(connectionId, "/resources/").concat(resourceId, "/match"),
|
|
36
|
+
method: 'POST',
|
|
37
|
+
data: { questroomId: questroomId },
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
var recheck = function (connectionId) { return ({
|
|
41
|
+
url: "/integrations/".concat(connectionId, "/recheck"),
|
|
42
|
+
method: 'POST',
|
|
43
|
+
}); };
|
|
44
|
+
var toggle = function (_a) {
|
|
45
|
+
var connectionId = _a.connectionId, enabled = _a.enabled;
|
|
46
|
+
return ({
|
|
47
|
+
url: "/integrations/".concat(connectionId, "/toggle"),
|
|
48
|
+
method: 'POST',
|
|
49
|
+
data: { enabled: enabled },
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
var createRequest = function (data) { return ({
|
|
53
|
+
url: '/integrations/requests',
|
|
54
|
+
method: 'POST',
|
|
55
|
+
data: data,
|
|
56
|
+
}); };
|
|
57
|
+
var myRequests = function () { return ({
|
|
58
|
+
url: '/integrations/requests',
|
|
59
|
+
method: 'GET',
|
|
60
|
+
}); };
|
|
61
|
+
var pendingBookingRequests = function () { return ({
|
|
62
|
+
url: '/integrations/booking-requests',
|
|
63
|
+
method: 'GET',
|
|
64
|
+
}); };
|
|
65
|
+
var resolveBookingRequest = function (_a) {
|
|
66
|
+
var orderId = _a.orderId, action = _a.action;
|
|
67
|
+
return ({
|
|
68
|
+
url: "/integrations/booking-requests/".concat(orderId),
|
|
69
|
+
method: 'POST',
|
|
70
|
+
data: { action: action },
|
|
71
|
+
});
|
|
72
|
+
};
|
|
73
|
+
var adminDashboard = function () { return ({
|
|
74
|
+
url: '/admin/integrations/dashboard',
|
|
75
|
+
method: 'GET',
|
|
76
|
+
}); };
|
|
77
|
+
var adminConnections = function (params) { return ({
|
|
78
|
+
url: '/admin/integrations/connections',
|
|
79
|
+
method: 'GET',
|
|
80
|
+
params: params,
|
|
81
|
+
}); };
|
|
82
|
+
var adminConnection = function (connectionId) { return ({
|
|
83
|
+
url: "/admin/integrations/connections/".concat(connectionId),
|
|
84
|
+
method: 'GET',
|
|
85
|
+
}); };
|
|
86
|
+
var adminVerify = function (connectionId) { return ({
|
|
87
|
+
url: "/admin/integrations/connections/".concat(connectionId, "/verify"),
|
|
88
|
+
method: 'POST',
|
|
89
|
+
}); };
|
|
90
|
+
var adminSetStatus = function (_a) {
|
|
91
|
+
var connectionId = _a.connectionId, data = __rest(_a, ["connectionId"]);
|
|
92
|
+
return ({
|
|
93
|
+
url: "/admin/integrations/connections/".concat(connectionId, "/status"),
|
|
94
|
+
method: 'POST',
|
|
95
|
+
data: data,
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
var adminPendingBookingRequests = function () { return ({
|
|
99
|
+
url: '/admin/integrations/booking-requests',
|
|
100
|
+
method: 'GET',
|
|
101
|
+
}); };
|
|
102
|
+
var adminResolveBookingRequest = function (_a) {
|
|
103
|
+
var orderId = _a.orderId, action = _a.action;
|
|
104
|
+
return ({
|
|
105
|
+
url: "/admin/integrations/booking-requests/".concat(orderId),
|
|
106
|
+
method: 'POST',
|
|
107
|
+
data: { action: action },
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
var adminRequests = function (params) { return ({
|
|
111
|
+
url: '/admin/integrations/requests',
|
|
112
|
+
method: 'GET',
|
|
113
|
+
params: params,
|
|
114
|
+
}); };
|
|
115
|
+
var adminUpdateRequest = function (_a) {
|
|
116
|
+
var requestId = _a.requestId, data = __rest(_a, ["requestId"]);
|
|
117
|
+
return ({
|
|
118
|
+
url: "/admin/integrations/requests/".concat(requestId),
|
|
119
|
+
method: 'PATCH',
|
|
120
|
+
data: data,
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
exports.integrationsV2ApiDeclaration = {
|
|
124
|
+
status: status,
|
|
125
|
+
catalog: catalog,
|
|
126
|
+
connect: connect,
|
|
127
|
+
resources: resources,
|
|
128
|
+
matchResource: matchResource,
|
|
129
|
+
recheck: recheck,
|
|
130
|
+
toggle: toggle,
|
|
131
|
+
createRequest: createRequest,
|
|
132
|
+
myRequests: myRequests,
|
|
133
|
+
pendingBookingRequests: pendingBookingRequests,
|
|
134
|
+
resolveBookingRequest: resolveBookingRequest,
|
|
135
|
+
adminDashboard: adminDashboard,
|
|
136
|
+
adminConnections: adminConnections,
|
|
137
|
+
adminConnection: adminConnection,
|
|
138
|
+
adminVerify: adminVerify,
|
|
139
|
+
adminSetStatus: adminSetStatus,
|
|
140
|
+
adminPendingBookingRequests: adminPendingBookingRequests,
|
|
141
|
+
adminResolveBookingRequest: adminResolveBookingRequest,
|
|
142
|
+
adminRequests: adminRequests,
|
|
143
|
+
adminUpdateRequest: adminUpdateRequest,
|
|
144
|
+
};
|
|
@@ -6,12 +6,14 @@ import { getSale } from './get-sale';
|
|
|
6
6
|
import { query } from './query';
|
|
7
7
|
import { queryProfileRedeemQueue } from './query-profile-redeem-queue';
|
|
8
8
|
import { querySales } from './query-sales';
|
|
9
|
+
import { queryTags } from './query-tags';
|
|
9
10
|
import { remove } from './remove';
|
|
10
11
|
import { requestRedeem } from './request-redeem';
|
|
11
12
|
import { ship } from './ship';
|
|
12
13
|
import { update } from './update';
|
|
13
14
|
import { updateCode } from './update-code';
|
|
14
15
|
import { updateSaleStatus } from './update-sale-status';
|
|
16
|
+
import { updateTag } from './update-tag';
|
|
15
17
|
type ApiDeclaration = {
|
|
16
18
|
create: typeof create;
|
|
17
19
|
update: typeof update;
|
|
@@ -22,6 +24,8 @@ type ApiDeclaration = {
|
|
|
22
24
|
query: typeof query;
|
|
23
25
|
querySales: typeof querySales;
|
|
24
26
|
queryProfileRedeemQueue: typeof queryProfileRedeemQueue;
|
|
27
|
+
queryTags: typeof queryTags;
|
|
28
|
+
updateTag: typeof updateTag;
|
|
25
29
|
updateCode: typeof updateCode;
|
|
26
30
|
updateSaleStatus: typeof updateSaleStatus;
|
|
27
31
|
ship: typeof ship;
|
|
@@ -9,12 +9,14 @@ var get_sale_1 = require("./get-sale");
|
|
|
9
9
|
var query_1 = require("./query");
|
|
10
10
|
var query_profile_redeem_queue_1 = require("./query-profile-redeem-queue");
|
|
11
11
|
var query_sales_1 = require("./query-sales");
|
|
12
|
+
var query_tags_1 = require("./query-tags");
|
|
12
13
|
var remove_1 = require("./remove");
|
|
13
14
|
var request_redeem_1 = require("./request-redeem");
|
|
14
15
|
var ship_1 = require("./ship");
|
|
15
16
|
var update_1 = require("./update");
|
|
16
17
|
var update_code_1 = require("./update-code");
|
|
17
18
|
var update_sale_status_1 = require("./update-sale-status");
|
|
19
|
+
var update_tag_1 = require("./update-tag");
|
|
18
20
|
exports.navigatorCertificateApiDeclaration = {
|
|
19
21
|
create: create_1.create,
|
|
20
22
|
update: update_1.update,
|
|
@@ -25,6 +27,8 @@ exports.navigatorCertificateApiDeclaration = {
|
|
|
25
27
|
query: query_1.query,
|
|
26
28
|
querySales: query_sales_1.querySales,
|
|
27
29
|
queryProfileRedeemQueue: query_profile_redeem_queue_1.queryProfileRedeemQueue,
|
|
30
|
+
queryTags: query_tags_1.queryTags,
|
|
31
|
+
updateTag: update_tag_1.updateTag,
|
|
28
32
|
updateCode: update_code_1.updateCode,
|
|
29
33
|
updateSaleStatus: update_sale_status_1.updateSaleStatus,
|
|
30
34
|
ship: ship_1.ship,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NavigatorCertificateTagRO } from '@escapenavigator/types/dist/navigator-certificate/navigator-certificate-tag.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = NavigatorCertificateTagRO[];
|
|
5
|
+
export declare const queryTags: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NavigatorCertificateTagRO } from '@escapenavigator/types/dist/navigator-certificate/navigator-certificate-tag.ro';
|
|
2
|
+
import { UpdateNavigatorCertificateTagDto } from '@escapenavigator/types/dist/navigator-certificate/update-navigator-certificate-tag.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateNavigatorCertificateTagDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = NavigatorCertificateTagRO;
|
|
9
|
+
export declare const updateTag: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateTag = void 0;
|
|
4
|
+
var updateTag = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/navigator-certificate-tags/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateTag = updateTag;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AggregatorOrderRO } from '@escapenavigator/types/dist/admin/aggregator-order/aggregator-order.ro';
|
|
2
|
+
import { CreateAggregatorOrderDto } from '@escapenavigator/types/dist/admin/aggregator-order/create-aggregator-order.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
/**
|
|
5
|
+
* Бронь в квест, обслуживаемый ядром интеграций, — одна ручка вместо ручек
|
|
6
|
+
* вендоров. Ручки `myerp`/`bookeo`/`partner` рядом остаются для квестов,
|
|
7
|
+
* подключённых вручную: их настройки живут в легаси-таблицах.
|
|
8
|
+
*/
|
|
9
|
+
export declare const createExternalOrder: ApiMethodDeclaration<CreateAggregatorOrderDto, AggregatorOrderRO>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createExternalOrder = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Бронь в квест, обслуживаемый ядром интеграций, — одна ручка вместо ручек
|
|
6
|
+
* вендоров. Ручки `myerp`/`bookeo`/`partner` рядом остаются для квестов,
|
|
7
|
+
* подключённых вручную: их настройки живут в легаси-таблицах.
|
|
8
|
+
*/
|
|
9
|
+
var createExternalOrder = function (data) { return ({
|
|
10
|
+
url: '/openapi/external/booking/order',
|
|
11
|
+
method: 'POST',
|
|
12
|
+
data: data,
|
|
13
|
+
}); };
|
|
14
|
+
exports.createExternalOrder = createExternalOrder;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OpenapiExternalQuoteDto } from '@escapenavigator/types/dist/openapi/external-booking/openapi-external-quote.dto';
|
|
2
|
+
import { OpenapiExternalQuoteRO } from '@escapenavigator/types/dist/openapi/external-booking/openapi-external-quote.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
/**
|
|
5
|
+
* Что известно про выбранный слот внешней системы: цены по размерам групп,
|
|
6
|
+
* границы группы, остаток мест, токен удержания и режим брони.
|
|
7
|
+
*
|
|
8
|
+
* Одна ручка на всех провайдеров — форма записи не знает, чья это система.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getExternalQuote: ApiMethodDeclaration<OpenapiExternalQuoteDto, OpenapiExternalQuoteRO>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExternalQuote = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Что известно про выбранный слот внешней системы: цены по размерам групп,
|
|
6
|
+
* границы группы, остаток мест, токен удержания и режим брони.
|
|
7
|
+
*
|
|
8
|
+
* Одна ручка на всех провайдеров — форма записи не знает, чья это система.
|
|
9
|
+
*/
|
|
10
|
+
var getExternalQuote = function (data) { return ({
|
|
11
|
+
url: '/openapi/external/booking/quote',
|
|
12
|
+
method: 'POST',
|
|
13
|
+
data: data,
|
|
14
|
+
}); };
|
|
15
|
+
exports.getExternalQuote = getExternalQuote;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { createBookeoOrder } from './bookeo-order';
|
|
2
2
|
export { getBookeoPrice } from './bookeo-price';
|
|
3
|
+
export { createExternalOrder } from './external-order';
|
|
4
|
+
export { getExternalQuote } from './external-quote';
|
|
3
5
|
export { createMyerpOrder } from './myerp-order';
|
|
4
6
|
export { getMyerpPrice } from './myerp-price';
|
|
5
7
|
export { createPartnerOrder } from './partner-order';
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createPartnerOrder = exports.getMyerpPrice = exports.createMyerpOrder = exports.getBookeoPrice = exports.createBookeoOrder = void 0;
|
|
3
|
+
exports.createPartnerOrder = exports.getMyerpPrice = exports.createMyerpOrder = exports.getExternalQuote = exports.createExternalOrder = exports.getBookeoPrice = exports.createBookeoOrder = void 0;
|
|
4
4
|
var bookeo_order_1 = require("./bookeo-order");
|
|
5
5
|
Object.defineProperty(exports, "createBookeoOrder", { enumerable: true, get: function () { return bookeo_order_1.createBookeoOrder; } });
|
|
6
6
|
var bookeo_price_1 = require("./bookeo-price");
|
|
7
7
|
Object.defineProperty(exports, "getBookeoPrice", { enumerable: true, get: function () { return bookeo_price_1.getBookeoPrice; } });
|
|
8
|
+
var external_order_1 = require("./external-order");
|
|
9
|
+
Object.defineProperty(exports, "createExternalOrder", { enumerable: true, get: function () { return external_order_1.createExternalOrder; } });
|
|
10
|
+
var external_quote_1 = require("./external-quote");
|
|
11
|
+
Object.defineProperty(exports, "getExternalQuote", { enumerable: true, get: function () { return external_quote_1.getExternalQuote; } });
|
|
8
12
|
var myerp_order_1 = require("./myerp-order");
|
|
9
13
|
Object.defineProperty(exports, "createMyerpOrder", { enumerable: true, get: function () { return myerp_order_1.createMyerpOrder; } });
|
|
10
14
|
var myerp_price_1 = require("./myerp-price");
|
|
@@ -20,7 +20,7 @@ import { findCertificate } from './certificates/find-certificate';
|
|
|
20
20
|
import { getCertificatePaymentMethods } from './certificates/get-certificate-payment-methods';
|
|
21
21
|
import { removePromocodeFromCertificate } from './certificates/remove-certificate-from-order';
|
|
22
22
|
import { setCertificateMarketingConsent } from './certificates/set-certificate-marketing-consent';
|
|
23
|
-
import { createBookeoOrder, createMyerpOrder, createPartnerOrder, getBookeoPrice, getMyerpPrice } from './external';
|
|
23
|
+
import { createBookeoOrder, createExternalOrder, createMyerpOrder, createPartnerOrder, getBookeoPrice, getExternalQuote, getMyerpPrice } from './external';
|
|
24
24
|
import { getLeadForm } from './leads/get-lead-form';
|
|
25
25
|
import { getLeadFormByUuid } from './leads/get-lead-form-by-uuid';
|
|
26
26
|
import { submitLead } from './leads/submit-lead';
|
|
@@ -131,6 +131,8 @@ type ApiDeclaration = {
|
|
|
131
131
|
slotsForDay: typeof slotsForDay;
|
|
132
132
|
slotsForWeek: typeof slotsForWeek;
|
|
133
133
|
slotsUpcoming: typeof slotsUpcoming;
|
|
134
|
+
getExternalQuote: typeof getExternalQuote;
|
|
135
|
+
createExternalOrder: typeof createExternalOrder;
|
|
134
136
|
createBookeoOrder: typeof createBookeoOrder;
|
|
135
137
|
getBookeoPrice: typeof getBookeoPrice;
|
|
136
138
|
createMyerpOrder: typeof createMyerpOrder;
|
|
@@ -138,6 +138,8 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
138
138
|
slotsForDay: slots_for_day_1.slotsForDay,
|
|
139
139
|
slotsForWeek: slots_for_week_1.slotsForWeek,
|
|
140
140
|
slotsUpcoming: slots_upcoming_1.slotsUpcoming,
|
|
141
|
+
getExternalQuote: external_1.getExternalQuote,
|
|
142
|
+
createExternalOrder: external_1.createExternalOrder,
|
|
141
143
|
createBookeoOrder: external_1.createBookeoOrder,
|
|
142
144
|
getBookeoPrice: external_1.getBookeoPrice,
|
|
143
145
|
createMyerpOrder: external_1.createMyerpOrder,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '..';
|
|
2
|
+
export type AggregatorVisitDay = {
|
|
3
|
+
day: string;
|
|
4
|
+
visits: number;
|
|
5
|
+
bookings: number;
|
|
6
|
+
};
|
|
7
|
+
export type AggregatorVisitQuestroom = {
|
|
8
|
+
questroomId: number;
|
|
9
|
+
title: string;
|
|
10
|
+
photo: string | null;
|
|
11
|
+
closed: boolean;
|
|
12
|
+
visits: number;
|
|
13
|
+
bookings: number;
|
|
14
|
+
conversion: number;
|
|
15
|
+
};
|
|
16
|
+
export type AggregatorVisitStatsRO = {
|
|
17
|
+
periodDays: number;
|
|
18
|
+
fromDay: string;
|
|
19
|
+
toDay: string;
|
|
20
|
+
totals: {
|
|
21
|
+
visits: number;
|
|
22
|
+
visitsPrev: number;
|
|
23
|
+
bookings: number;
|
|
24
|
+
bookingsPrev: number;
|
|
25
|
+
questrooms: number;
|
|
26
|
+
questroomsWithVisits: number;
|
|
27
|
+
trendPercent: number | null;
|
|
28
|
+
conversion: number;
|
|
29
|
+
};
|
|
30
|
+
days: AggregatorVisitDay[];
|
|
31
|
+
questrooms: AggregatorVisitQuestroom[];
|
|
32
|
+
};
|
|
33
|
+
export declare const getAggregatorVisitStats: ApiMethodDeclaration<undefined, AggregatorVisitStatsRO>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAggregatorVisitStats = void 0;
|
|
4
|
+
var getAggregatorVisitStats = function () { return ({
|
|
5
|
+
url: '/aggregator-orders/app/visit-stats',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getAggregatorVisitStats = getAggregatorVisitStats;
|
|
@@ -8,6 +8,7 @@ import { recreateMarketingEmails } from './emails/recreate-marketing-emails';
|
|
|
8
8
|
import { resendEmail } from './emails/resend-email';
|
|
9
9
|
import { exportOrders } from './export';
|
|
10
10
|
import { fastStat } from './fast-stat';
|
|
11
|
+
import { getAggregatorVisitStats } from './get-aggregator-visit-stats';
|
|
11
12
|
import { getCancelPreview } from './get-cancel-preview';
|
|
12
13
|
import { getOne } from './get-one';
|
|
13
14
|
import { commitImport } from './imports/commit-import';
|
|
@@ -58,6 +59,7 @@ type ApiDeclaration = {
|
|
|
58
59
|
addWorkers: typeof addWorkers;
|
|
59
60
|
queryAgregaotrOrder: typeof queryAgregaotrOrder;
|
|
60
61
|
queryAggregatorOrders: typeof queryAggregatorOrders;
|
|
62
|
+
getAggregatorVisitStats: typeof getAggregatorVisitStats;
|
|
61
63
|
updateAggregatorOrder: typeof updateAggregatorOrder;
|
|
62
64
|
getWorkers: typeof getWorkers;
|
|
63
65
|
removeWorker: typeof removeWorker;
|
|
@@ -11,6 +11,7 @@ var recreate_marketing_emails_1 = require("./emails/recreate-marketing-emails");
|
|
|
11
11
|
var resend_email_1 = require("./emails/resend-email");
|
|
12
12
|
var export_1 = require("./export");
|
|
13
13
|
var fast_stat_1 = require("./fast-stat");
|
|
14
|
+
var get_aggregator_visit_stats_1 = require("./get-aggregator-visit-stats");
|
|
14
15
|
var get_cancel_preview_1 = require("./get-cancel-preview");
|
|
15
16
|
var get_one_1 = require("./get-one");
|
|
16
17
|
var commit_import_1 = require("./imports/commit-import");
|
|
@@ -61,6 +62,7 @@ exports.ordersApiDeclaration = {
|
|
|
61
62
|
removeWorker: remove_worker_1.removeWorker,
|
|
62
63
|
queryAgregaotrOrder: query_agregator_orders_1.queryAgregaotrOrder,
|
|
63
64
|
queryAggregatorOrders: query_aggregator_orders_1.queryAggregatorOrders,
|
|
65
|
+
getAggregatorVisitStats: get_aggregator_visit_stats_1.getAggregatorVisitStats,
|
|
64
66
|
updateAggregatorOrder: update_aggregator_order_1.updateAggregatorOrder,
|
|
65
67
|
getWorkers: get_workers_1.getWorkers,
|
|
66
68
|
addWorkers: add_worker_1.addWorkers,
|
|
@@ -122,6 +122,7 @@ import { sendTelephonyTestCall } from './telephony/send-telephony-test-call';
|
|
|
122
122
|
import { updateTelephonySettings } from './telephony/update-telephony-settings';
|
|
123
123
|
import { update } from './update';
|
|
124
124
|
import { updateCrmVerification } from './update-crm-verification';
|
|
125
|
+
import { updateNavigatorCertificateProgram } from './update-navigator-certificate-program';
|
|
125
126
|
import { updatePartnerProgram } from './update-partner-program';
|
|
126
127
|
import { updateProfileCommission } from './update-profile-commission';
|
|
127
128
|
import { updateStep } from './update-step';
|
|
@@ -217,6 +218,7 @@ type ApiDeclaration = {
|
|
|
217
218
|
cancelSubscription: typeof cancelSubscription;
|
|
218
219
|
updateStep: typeof updateStep;
|
|
219
220
|
updatePartnerProgram: typeof updatePartnerProgram;
|
|
221
|
+
updateNavigatorCertificateProgram: typeof updateNavigatorCertificateProgram;
|
|
220
222
|
getInactiveCompaniesShort: typeof getInactiveCompaniesShort;
|
|
221
223
|
getPaidQuestroomsCount: typeof getPaidQuestroomsCount;
|
|
222
224
|
getProfilesWithoutNextAction: typeof getProfilesWithoutNextAction;
|
|
@@ -125,6 +125,7 @@ var send_telephony_test_call_1 = require("./telephony/send-telephony-test-call")
|
|
|
125
125
|
var update_telephony_settings_1 = require("./telephony/update-telephony-settings");
|
|
126
126
|
var update_2 = require("./update");
|
|
127
127
|
var update_crm_verification_1 = require("./update-crm-verification");
|
|
128
|
+
var update_navigator_certificate_program_1 = require("./update-navigator-certificate-program");
|
|
128
129
|
var update_partner_program_1 = require("./update-partner-program");
|
|
129
130
|
var update_profile_commission_1 = require("./update-profile-commission");
|
|
130
131
|
var update_step_1 = require("./update-step");
|
|
@@ -238,6 +239,7 @@ exports.profilesApiDeclaration = {
|
|
|
238
239
|
getOnboardingSteps: get_onboarding_steps_1.getOnboardingSteps,
|
|
239
240
|
updateCrmVerification: update_crm_verification_1.updateCrmVerification,
|
|
240
241
|
updatePartnerProgram: update_partner_program_1.updatePartnerProgram,
|
|
242
|
+
updateNavigatorCertificateProgram: update_navigator_certificate_program_1.updateNavigatorCertificateProgram,
|
|
241
243
|
queryActions: query_actions_1.queryActions,
|
|
242
244
|
testEmail: test_email_1.testEmail,
|
|
243
245
|
createAction: create_action_1.createAction,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NavigatorCertificateProgramEnum } from '@escapenavigator/types/dist/profile/enum/navigator-certificate-program.enum';
|
|
2
|
+
import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = NavigatorCertificateProgramEnum.ACTIVE | NavigatorCertificateProgramEnum.PAUSED;
|
|
5
|
+
type ResponseData = ProfileRO;
|
|
6
|
+
export declare const updateNavigatorCertificateProgram: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateNavigatorCertificateProgram = void 0;
|
|
4
|
+
var updateNavigatorCertificateProgram = function (status) { return ({
|
|
5
|
+
url: "/profiles/navigator-certificate-program/".concat(status),
|
|
6
|
+
method: 'PATCH',
|
|
7
|
+
}); };
|
|
8
|
+
exports.updateNavigatorCertificateProgram = updateNavigatorCertificateProgram;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { bindBookeo } from './bind-bookeo';
|
|
2
1
|
import { closeMany } from './close-many';
|
|
3
2
|
import { closeManyAdmin } from './close-many-admin';
|
|
4
3
|
import { create } from './create';
|
|
@@ -40,7 +39,6 @@ type ApiDeclaration = {
|
|
|
40
39
|
updateSortPosition: typeof updateSortPosition;
|
|
41
40
|
getMeta: typeof getMeta;
|
|
42
41
|
generateTeaser: typeof generateTeaser;
|
|
43
|
-
bindBookeo: typeof bindBookeo;
|
|
44
42
|
closeMany: typeof closeMany;
|
|
45
43
|
closeManyAdmin: typeof closeManyAdmin;
|
|
46
44
|
getByTitle: typeof getByTitle;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.questroomsApiDeclaration = void 0;
|
|
4
|
-
var bind_bookeo_1 = require("./bind-bookeo");
|
|
5
4
|
var close_many_1 = require("./close-many");
|
|
6
5
|
var close_many_admin_1 = require("./close-many-admin");
|
|
7
6
|
var create_1 = require("./create");
|
|
@@ -48,7 +47,6 @@ exports.questroomsApiDeclaration = {
|
|
|
48
47
|
verify: verify_1.verify,
|
|
49
48
|
promote: promote_1.promote,
|
|
50
49
|
updateResource: update_resource_1.updateResource,
|
|
51
|
-
bindBookeo: bind_bookeo_1.bindBookeo,
|
|
52
50
|
closeMany: close_many_1.closeMany,
|
|
53
51
|
closeManyAdmin: close_many_admin_1.closeManyAdmin,
|
|
54
52
|
getByTitle: get_by_title_1.getByTitle,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CreateRatingBadgeDto } from '@escapenavigator/types/dist/rating-badge/create-rating-badge.dto';
|
|
2
|
+
import { RatingBadgeRO } from '@escapenavigator/types/dist/rating-badge/rating-badge.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
data: CreateRatingBadgeDto;
|
|
6
|
+
};
|
|
7
|
+
export declare const create: ApiMethodDeclaration<ParamsData, RatingBadgeRO>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
var create = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/rating-badges',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.create = create;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { create } from './create';
|
|
2
|
+
import { getRanking } from './get-ranking';
|
|
3
|
+
import { query } from './query';
|
|
4
|
+
import { queryAdmin } from './query-admin';
|
|
5
|
+
import { recheck } from './recheck';
|
|
6
|
+
import { recheckAdmin } from './recheck-admin';
|
|
7
|
+
import { remove } from './remove';
|
|
8
|
+
type ApiDeclaration = {
|
|
9
|
+
query: typeof query;
|
|
10
|
+
getRanking: typeof getRanking;
|
|
11
|
+
create: typeof create;
|
|
12
|
+
recheck: typeof recheck;
|
|
13
|
+
remove: typeof remove;
|
|
14
|
+
queryAdmin: typeof queryAdmin;
|
|
15
|
+
recheckAdmin: typeof recheckAdmin;
|
|
16
|
+
};
|
|
17
|
+
export declare const ratingBadgesApiDeclaration: ApiDeclaration;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ratingBadgesApiDeclaration = void 0;
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var get_ranking_1 = require("./get-ranking");
|
|
6
|
+
var query_1 = require("./query");
|
|
7
|
+
var query_admin_1 = require("./query-admin");
|
|
8
|
+
var recheck_1 = require("./recheck");
|
|
9
|
+
var recheck_admin_1 = require("./recheck-admin");
|
|
10
|
+
var remove_1 = require("./remove");
|
|
11
|
+
exports.ratingBadgesApiDeclaration = {
|
|
12
|
+
query: query_1.query,
|
|
13
|
+
getRanking: get_ranking_1.getRanking,
|
|
14
|
+
create: create_1.create,
|
|
15
|
+
recheck: recheck_1.recheck,
|
|
16
|
+
remove: remove_1.remove,
|
|
17
|
+
queryAdmin: query_admin_1.queryAdmin,
|
|
18
|
+
recheckAdmin: recheck_admin_1.recheckAdmin,
|
|
19
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RatingBadgeAdminRO } from '@escapenavigator/types/dist/rating-badge/rating-badge-admin.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const recheckAdmin: ApiMethodDeclaration<ParamsData, RatingBadgeAdminRO>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recheckAdmin = void 0;
|
|
4
|
+
var recheckAdmin = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/admin/rating-badges/".concat(id, "/recheck"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.recheckAdmin = recheckAdmin;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RatingBadgeRO } from '@escapenavigator/types/dist/rating-badge/rating-badge.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const recheck: ApiMethodDeclaration<ParamsData, RatingBadgeRO>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recheck = void 0;
|
|
4
|
+
var recheck = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/rating-badges/".concat(id, "/recheck"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.recheck = recheck;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.remove = void 0;
|
|
4
|
+
var remove = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/rating-badges/".concat(id),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.remove = remove;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { uploadAudio } from './upload-audio';
|
|
2
2
|
import { uploadImage } from './upload-image';
|
|
3
|
+
import { uploadPreviewVideo } from './upload-preview-video';
|
|
3
4
|
import { uploadProfileLogo } from './upload-profile-logo';
|
|
4
5
|
type ApiDeclaration = {
|
|
5
6
|
uploadImage: typeof uploadImage;
|
|
6
7
|
uploadProfileLogo: typeof uploadProfileLogo;
|
|
7
8
|
uploadAudio: typeof uploadAudio;
|
|
9
|
+
uploadPreviewVideo: typeof uploadPreviewVideo;
|
|
8
10
|
};
|
|
9
11
|
export declare const uploadsApiDeclaration: ApiDeclaration;
|
|
10
12
|
export {};
|
|
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.uploadsApiDeclaration = void 0;
|
|
4
4
|
var upload_audio_1 = require("./upload-audio");
|
|
5
5
|
var upload_image_1 = require("./upload-image");
|
|
6
|
+
var upload_preview_video_1 = require("./upload-preview-video");
|
|
6
7
|
var upload_profile_logo_1 = require("./upload-profile-logo");
|
|
7
8
|
exports.uploadsApiDeclaration = {
|
|
8
9
|
uploadImage: upload_image_1.uploadImage,
|
|
9
10
|
uploadProfileLogo: upload_profile_logo_1.uploadProfileLogo,
|
|
10
11
|
uploadAudio: upload_audio_1.uploadAudio,
|
|
12
|
+
uploadPreviewVideo: upload_preview_video_1.uploadPreviewVideo,
|
|
11
13
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UploadImageResponseObject } from '@escapenavigator/types/dist/upload/upload-image.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
data: FormData;
|
|
5
|
+
onUploadProgress?: (progressEvent: ProgressEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = UploadImageResponseObject;
|
|
8
|
+
export declare const uploadPreviewVideo: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uploadPreviewVideo = void 0;
|
|
4
|
+
var uploadPreviewVideo = function (_a) {
|
|
5
|
+
var data = _a.data, onUploadProgress = _a.onUploadProgress;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/uploads/preview-video',
|
|
8
|
+
headers: {
|
|
9
|
+
'Content-Type': 'multipart/form-data',
|
|
10
|
+
},
|
|
11
|
+
onUploadProgress: onUploadProgress,
|
|
12
|
+
method: 'POST',
|
|
13
|
+
data: data,
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
exports.uploadPreviewVideo = uploadPreviewVideo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.8",
|
|
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": "0a4970c35fac7dde78f3aaa832a75dbe9c2feff4",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.1.
|
|
18
|
-
"@escapenavigator/utils": "^2.1.
|
|
17
|
+
"@escapenavigator/types": "^2.1.8",
|
|
18
|
+
"@escapenavigator/utils": "^2.1.8",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BindBookeoDto } from '@escapenavigator/types/dist/questroom/bind-bookeo.dto';
|
|
2
|
-
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
3
|
-
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
type ParamsData = BindBookeoDto;
|
|
5
|
-
type ResponseData = QuestroomRO;
|
|
6
|
-
export declare const bindBookeo: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bindBookeo = void 0;
|
|
4
|
-
var bindBookeo = function (data) { return ({
|
|
5
|
-
url: '/questrooms/bind-bookeo',
|
|
6
|
-
method: 'PATCH',
|
|
7
|
-
data: data,
|
|
8
|
-
}); };
|
|
9
|
-
exports.bindBookeo = bindBookeo;
|