@escapenavigator/services 1.4.52 → 1.4.54
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/agregator-api/get-popular-cities-and-questrooms.d.ts +7 -0
- package/dist/api/agregator-api/get-popular-cities-and-questrooms.js +8 -0
- package/dist/api/agregator-api/index.d.ts +2 -0
- package/dist/api/agregator-api/index.js +2 -0
- package/dist/api/orders-api/cancel.d.ts +5 -1
- package/dist/api/orders-api/cancel.js +8 -4
- package/dist/api/orders-api/index.d.ts +2 -0
- package/dist/api/orders-api/index.js +2 -0
- package/dist/api/orders-api/update-players.d.ts +10 -0
- package/dist/api/orders-api/update-players.js +12 -0
- package/package.json +3 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgregatorCityQuestroomsRO } from '@escapenavigator/types/dist/agregator/agregator-city-questrooms.ro';
|
|
2
|
+
import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = CountriesEnum;
|
|
5
|
+
declare type ResponseData = AgregatorCityQuestroomsRO[];
|
|
6
|
+
export declare const getPopularCitiesAndQuestrooms: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPopularCitiesAndQuestrooms = void 0;
|
|
4
|
+
var getPopularCitiesAndQuestrooms = function (country) { return ({
|
|
5
|
+
url: "/agregator/popular/country/".concat(country),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getPopularCitiesAndQuestrooms = getPopularCitiesAndQuestrooms;
|
|
@@ -18,7 +18,9 @@ import { findQuestroomsSearch } from './find-questrooms-search';
|
|
|
18
18
|
import { findQuestroomsSearchCount } from './find-questrooms-search-count';
|
|
19
19
|
import { findQuestroomsWithCertificates } from './find-questrooms-with-certificates';
|
|
20
20
|
import { findSimilaQuestroomsNear } from './find-similar-questrooms-near';
|
|
21
|
+
import { getPopularCitiesAndQuestrooms } from './get-popular-cities-and-questrooms';
|
|
21
22
|
declare type ApiDeclaration = {
|
|
23
|
+
getPopularCitiesAndQuestrooms: typeof getPopularCitiesAndQuestrooms;
|
|
22
24
|
findQuestroomsWithCertificates: typeof findQuestroomsWithCertificates;
|
|
23
25
|
findQuestroomsForMainPage: typeof findQuestroomsForMainPage;
|
|
24
26
|
findCitiesByCountry: typeof findCitiesByCountry;
|
|
@@ -21,7 +21,9 @@ var find_questrooms_search_1 = require("./find-questrooms-search");
|
|
|
21
21
|
var find_questrooms_search_count_1 = require("./find-questrooms-search-count");
|
|
22
22
|
var find_questrooms_with_certificates_1 = require("./find-questrooms-with-certificates");
|
|
23
23
|
var find_similar_questrooms_near_1 = require("./find-similar-questrooms-near");
|
|
24
|
+
var get_popular_cities_and_questrooms_1 = require("./get-popular-cities-and-questrooms");
|
|
24
25
|
exports.agregatorApiDeclaration = {
|
|
26
|
+
getPopularCitiesAndQuestrooms: get_popular_cities_and_questrooms_1.getPopularCitiesAndQuestrooms,
|
|
25
27
|
findQuestroomsForMainPage: find_questrooms_for_main_page_1.findQuestroomsForMainPage,
|
|
26
28
|
findQuestroomsWithCertificates: find_questrooms_with_certificates_1.findQuestroomsWithCertificates,
|
|
27
29
|
findCitiesByCountry: find_cities_by_country_1.findCitiesByCountry,
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { CancelOrderDto } from '@escapenavigator/types/dist/order/cancel-order.dto';
|
|
1
2
|
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
3
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
declare type ParamsData =
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: CancelOrderDto;
|
|
7
|
+
};
|
|
4
8
|
declare type ResponseData = OrderRO;
|
|
5
9
|
export declare const cancel: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
10
|
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.cancel = void 0;
|
|
4
|
-
var cancel = function (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var cancel = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/orders/cancel/".concat(id),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
8
12
|
exports.cancel = cancel;
|
|
@@ -5,8 +5,10 @@ import { query } from './query';
|
|
|
5
5
|
import { resendEmail } from './resend-email';
|
|
6
6
|
import { update } from './update';
|
|
7
7
|
import { updateModerator } from './update-moderator';
|
|
8
|
+
import { updatePlayers } from './update-players';
|
|
8
9
|
import { updateSlot } from './update-slot';
|
|
9
10
|
declare type ApiDeclaration = {
|
|
11
|
+
updatePlayers: typeof updatePlayers;
|
|
10
12
|
create: typeof create;
|
|
11
13
|
updateModerator: typeof updateModerator;
|
|
12
14
|
resendEmail: typeof resendEmail;
|
|
@@ -8,8 +8,10 @@ var query_1 = require("./query");
|
|
|
8
8
|
var resend_email_1 = require("./resend-email");
|
|
9
9
|
var update_1 = require("./update");
|
|
10
10
|
var update_moderator_1 = require("./update-moderator");
|
|
11
|
+
var update_players_1 = require("./update-players");
|
|
11
12
|
var update_slot_1 = require("./update-slot");
|
|
12
13
|
exports.ordersApiDeclaration = {
|
|
14
|
+
updatePlayers: update_players_1.updatePlayers,
|
|
13
15
|
updateModerator: update_moderator_1.updateModerator,
|
|
14
16
|
create: create_1.create,
|
|
15
17
|
cancel: cancel_1.cancel,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { UpdatePlayersrDto } from '@escapenavigator/types/dist/order/update-players.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: UpdatePlayersrDto;
|
|
6
|
+
id: number;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = OrderRO;
|
|
9
|
+
export declare const updatePlayers: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePlayers = void 0;
|
|
4
|
+
var updatePlayers = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/orders/players/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updatePlayers = updatePlayers;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.54",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "289cb7ecc04f816892ae59f19eaf6ac018d07308",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.4.
|
|
17
|
+
"@escapenavigator/types": "^1.4.54",
|
|
18
18
|
"@paypal/react-paypal-js": "^7.8.3",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|