@escapenavigator/services 1.7.2 → 1.7.3
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/blog/find-posts-for-main-page.d.ts +8 -0
- package/dist/api/agregator-api/blog/find-posts-for-main-page.js +11 -0
- package/dist/api/agregator-api/city/define-city-by-place-id.d.ts +8 -0
- package/dist/api/agregator-api/city/define-city-by-place-id.js +11 -0
- package/dist/api/agregator-api/city/find-cities-by-title.d.ts +2 -2
- package/dist/api/agregator-api/city/find-popular-by-country.d.ts +7 -0
- package/dist/api/agregator-api/city/find-popular-by-country.js +8 -0
- package/dist/api/agregator-api/index.d.ts +8 -0
- package/dist/api/agregator-api/index.js +8 -0
- package/dist/api/agregator-api/questrooms/find-best-by-country.d.ts +9 -0
- package/dist/api/agregator-api/questrooms/find-best-by-country.js +11 -0
- package/dist/api/agregator-api/questrooms/find-questrooms-by-title.d.ts +4 -3
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AgregatorPostRO } from '@escapenavigator/types/dist/agregator/agregator-post.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
country: string;
|
|
5
|
+
};
|
|
6
|
+
declare type ResponseData = AgregatorPostRO;
|
|
7
|
+
export declare const findPostForMainPage: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findPostForMainPage = void 0;
|
|
4
|
+
var findPostForMainPage = function (_a) {
|
|
5
|
+
var country = _a.country;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/agregator/blog/main/".concat(country),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.findPostForMainPage = findPostForMainPage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AgregatorDefineCityRO } from '@escapenavigator/types/dist/agregator/agregator-define-city.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
placeId: string;
|
|
5
|
+
};
|
|
6
|
+
declare type ResponseData = AgregatorDefineCityRO;
|
|
7
|
+
export declare const defineCityByPlaceId: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineCityByPlaceId = void 0;
|
|
4
|
+
var defineCityByPlaceId = function (_a) {
|
|
5
|
+
var placeId = _a.placeId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/agregator/city/define/".concat(placeId),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.defineCityByPlaceId = defineCityByPlaceId;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AgregatorSearchCityRO } from '@escapenavigator/types/dist/agregator/agregator-search-city.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '../..';
|
|
3
3
|
declare type ParamsData = {
|
|
4
4
|
title: string;
|
|
5
5
|
};
|
|
6
|
-
declare type ResponseData =
|
|
6
|
+
declare type ResponseData = AgregatorSearchCityRO[];
|
|
7
7
|
export declare const findCityByTitle: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgregatorCityRO } from '@escapenavigator/types/dist/agregator/agregator-city.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 = AgregatorCityRO[];
|
|
6
|
+
export declare const findPopularByCountry: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findPopularByCountry = void 0;
|
|
4
|
+
var findPopularByCountry = function (country) { return ({
|
|
5
|
+
url: "/agregator/city/country/popular/".concat(country),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.findPopularByCountry = findPopularByCountry;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { findPostBySlug } from './blog/find-post-by-slug';
|
|
2
2
|
import { findPosts } from './blog/find-posts';
|
|
3
|
+
import { findPostForMainPage } from './blog/find-posts-for-main-page';
|
|
4
|
+
import { defineCityByPlaceId } from './city/define-city-by-place-id';
|
|
3
5
|
import { findCitiesByCountry } from './city/find-cities-by-country';
|
|
4
6
|
import { findCityByTitle } from './city/find-cities-by-title';
|
|
5
7
|
import { findCityBySlug } from './city/find-city-by-slug';
|
|
8
|
+
import { findPopularByCountry } from './city/find-popular-by-country';
|
|
6
9
|
import { findLocationsForMap } from './map/find-locations-for-map';
|
|
7
10
|
import { paginateFoundedEscapeRooms } from './map/paginate-founded-escape-rooms';
|
|
8
11
|
import { current as currentPlayer } from './players/current';
|
|
@@ -13,6 +16,7 @@ import { logout } from './players/logout';
|
|
|
13
16
|
import { sendCode } from './players/send-code';
|
|
14
17
|
import { cityInitialQuestrooms } from './questrooms/city-initial-questrooms';
|
|
15
18
|
import { cityOtherQuestrooms } from './questrooms/city-other-questrooms';
|
|
19
|
+
import { findBestByCounty } from './questrooms/find-best-by-country';
|
|
16
20
|
import { findQuestroomBySlug } from './questrooms/find-questroom-by-slug';
|
|
17
21
|
import { findQuestroomsByLocationId } from './questrooms/find-questrooms-by-location-id';
|
|
18
22
|
import { findQuestroomsByOrganizationId } from './questrooms/find-questrooms-by-organization-id';
|
|
@@ -37,8 +41,11 @@ declare type ApiDeclaration = {
|
|
|
37
41
|
findCitiesByCountry: typeof findCitiesByCountry;
|
|
38
42
|
findCityBySlug: typeof findCityBySlug;
|
|
39
43
|
findCityByTitle: typeof findCityByTitle;
|
|
44
|
+
defineCityByPlaceId: typeof defineCityByPlaceId;
|
|
45
|
+
findPopularByCountry: typeof findPopularByCountry;
|
|
40
46
|
paginateFoundedEscapeRooms: typeof paginateFoundedEscapeRooms;
|
|
41
47
|
findLocationsForMap: typeof findLocationsForMap;
|
|
48
|
+
findBestByCounty: typeof findBestByCounty;
|
|
42
49
|
findQuestroomsByLocationId: typeof findQuestroomsByLocationId;
|
|
43
50
|
findQuestroomsByOrganizationId: typeof findQuestroomsByOrganizationId;
|
|
44
51
|
findQuestroomsByTitle: typeof findQuestroomsByTitle;
|
|
@@ -49,6 +56,7 @@ declare type ApiDeclaration = {
|
|
|
49
56
|
findQuestroomBySlug: typeof findQuestroomBySlug;
|
|
50
57
|
findPosts: typeof findPosts;
|
|
51
58
|
findPostBySlug: typeof findPostBySlug;
|
|
59
|
+
findPostForMainPage: typeof findPostForMainPage;
|
|
52
60
|
};
|
|
53
61
|
export declare const agregatorApiDeclaration: ApiDeclaration;
|
|
54
62
|
export {};
|
|
@@ -3,9 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.agregatorApiDeclaration = void 0;
|
|
4
4
|
var find_post_by_slug_1 = require("./blog/find-post-by-slug");
|
|
5
5
|
var find_posts_1 = require("./blog/find-posts");
|
|
6
|
+
var find_posts_for_main_page_1 = require("./blog/find-posts-for-main-page");
|
|
7
|
+
var define_city_by_place_id_1 = require("./city/define-city-by-place-id");
|
|
6
8
|
var find_cities_by_country_1 = require("./city/find-cities-by-country");
|
|
7
9
|
var find_cities_by_title_1 = require("./city/find-cities-by-title");
|
|
8
10
|
var find_city_by_slug_1 = require("./city/find-city-by-slug");
|
|
11
|
+
var find_popular_by_country_1 = require("./city/find-popular-by-country");
|
|
9
12
|
var find_locations_for_map_1 = require("./map/find-locations-for-map");
|
|
10
13
|
var paginate_founded_escape_rooms_1 = require("./map/paginate-founded-escape-rooms");
|
|
11
14
|
var current_1 = require("./players/current");
|
|
@@ -16,6 +19,7 @@ var logout_1 = require("./players/logout");
|
|
|
16
19
|
var send_code_1 = require("./players/send-code");
|
|
17
20
|
var city_initial_questrooms_1 = require("./questrooms/city-initial-questrooms");
|
|
18
21
|
var city_other_questrooms_1 = require("./questrooms/city-other-questrooms");
|
|
22
|
+
var find_best_by_country_1 = require("./questrooms/find-best-by-country");
|
|
19
23
|
var find_questroom_by_slug_1 = require("./questrooms/find-questroom-by-slug");
|
|
20
24
|
var find_questrooms_by_location_id_1 = require("./questrooms/find-questrooms-by-location-id");
|
|
21
25
|
var find_questrooms_by_organization_id_1 = require("./questrooms/find-questrooms-by-organization-id");
|
|
@@ -27,7 +31,11 @@ var reviews_city_1 = require("./reviews/reviews-city");
|
|
|
27
31
|
var reviews_profile_1 = require("./reviews/reviews-profile");
|
|
28
32
|
var reviews_questroom_1 = require("./reviews/reviews-questroom");
|
|
29
33
|
exports.agregatorApiDeclaration = {
|
|
34
|
+
findPostForMainPage: find_posts_for_main_page_1.findPostForMainPage,
|
|
35
|
+
defineCityByPlaceId: define_city_by_place_id_1.defineCityByPlaceId,
|
|
36
|
+
findPopularByCountry: find_popular_by_country_1.findPopularByCountry,
|
|
30
37
|
createReview: create_review_1.createReview,
|
|
38
|
+
findBestByCounty: find_best_by_country_1.findBestByCounty,
|
|
31
39
|
sitemap: sitemap_1.sitemap,
|
|
32
40
|
currentPlayer: current_1.current,
|
|
33
41
|
login: login_1.login,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AgregatorQuestroomCardRO } from '@escapenavigator/types/dist/agregator/agregator-questroom-card.ro';
|
|
2
|
+
import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
country: CountriesEnum;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = AgregatorQuestroomCardRO[];
|
|
8
|
+
export declare const findBestByCounty: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findBestByCounty = void 0;
|
|
4
|
+
var findBestByCounty = function (_a) {
|
|
5
|
+
var country = _a.country;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/agregator/questrooms/country/best/".concat(country),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.findBestByCounty = findBestByCounty;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AgregatorFindQuestroomByTitleRO } from '@escapenavigator/types/dist/agregator/agregator-find-questroom-by-title.ro';
|
|
2
|
-
import { AgregatorFindQuestroomByTitleDto } from '@escapenavigator/types/dist/agregator/dto/agregator-find-questroom-by-text.dto';
|
|
3
2
|
import { ApiMethodDeclaration } from '../..';
|
|
4
|
-
declare type ParamsData =
|
|
5
|
-
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
declare type ResponseData = AgregatorFindQuestroomByTitleRO[];
|
|
6
7
|
export declare const findQuestroomsByTitle: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
8
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.3",
|
|
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": "98776a7f5209f13c106c9c481dad475cd13b2440",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.7.
|
|
18
|
-
"@escapenavigator/utils": "^1.7.
|
|
17
|
+
"@escapenavigator/types": "^1.7.3",
|
|
18
|
+
"@escapenavigator/utils": "^1.7.3",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|