@escapenavigator/services 1.10.144 → 1.10.146
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.
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AgregatorDefineCityRO } from '@escapenavigator/types/dist/agregator/agregator-define-city.ro';
|
|
2
|
+
import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
lat: number;
|
|
6
|
+
lng: number;
|
|
7
|
+
country?: CountriesEnum;
|
|
8
|
+
};
|
|
9
|
+
type ResponseData = AgregatorDefineCityRO;
|
|
10
|
+
export declare const defineCityByCoordinates: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineCityByCoordinates = void 0;
|
|
4
|
+
var defineCityByCoordinates = function (_a) {
|
|
5
|
+
var lat = _a.lat, lng = _a.lng, country = _a.country;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/agregator/city/coordinates/".concat(lat, "/").concat(lng),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: country ? { country: country } : undefined,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.defineCityByCoordinates = defineCityByCoordinates;
|
|
@@ -14,6 +14,7 @@ import { getNavigatorCertificateTemplates } from './certificates/get-navigator-c
|
|
|
14
14
|
import { navigatorCertificatePaypalPayment } from './certificates/navigator-certificate-paypal-payment';
|
|
15
15
|
import { navigatorCertificateSquarePayment } from './certificates/navigator-certificate-square-payment';
|
|
16
16
|
import { navigatorCertificateStripePayment } from './certificates/navigator-certificate-stripe-payment';
|
|
17
|
+
import { defineCityByCoordinates } from './city/define-city-by-coordinates';
|
|
17
18
|
import { defineCityByPlaceId } from './city/define-city-by-place-id';
|
|
18
19
|
import { findCitiesByCountry } from './city/find-cities-by-country';
|
|
19
20
|
import { findCityByTitle } from './city/find-cities-by-title';
|
|
@@ -79,6 +80,7 @@ type ApiDeclaration = {
|
|
|
79
80
|
findCityBySlug: typeof findCityBySlug;
|
|
80
81
|
findCityByTitle: typeof findCityByTitle;
|
|
81
82
|
defineCityByPlaceId: typeof defineCityByPlaceId;
|
|
83
|
+
defineCityByCoordinates: typeof defineCityByCoordinates;
|
|
82
84
|
findPopularCitiesByCountry: typeof findPopularCitiesByCountry;
|
|
83
85
|
paginateFoundedEscapeRooms: typeof paginateFoundedEscapeRooms;
|
|
84
86
|
findLocationsForMap: typeof findLocationsForMap;
|
|
@@ -17,6 +17,7 @@ var get_navigator_certificate_templates_1 = require("./certificates/get-navigato
|
|
|
17
17
|
var navigator_certificate_paypal_payment_1 = require("./certificates/navigator-certificate-paypal-payment");
|
|
18
18
|
var navigator_certificate_square_payment_1 = require("./certificates/navigator-certificate-square-payment");
|
|
19
19
|
var navigator_certificate_stripe_payment_1 = require("./certificates/navigator-certificate-stripe-payment");
|
|
20
|
+
var define_city_by_coordinates_1 = require("./city/define-city-by-coordinates");
|
|
20
21
|
var define_city_by_place_id_1 = require("./city/define-city-by-place-id");
|
|
21
22
|
var find_cities_by_country_1 = require("./city/find-cities-by-country");
|
|
22
23
|
var find_cities_by_title_1 = require("./city/find-cities-by-title");
|
|
@@ -69,6 +70,7 @@ exports.agregatorApiDeclaration = {
|
|
|
69
70
|
addFavorite: add_favorite_1.addFavorite,
|
|
70
71
|
findPostForMainPage: find_posts_for_main_page_1.findPostForMainPage,
|
|
71
72
|
defineCityByPlaceId: define_city_by_place_id_1.defineCityByPlaceId,
|
|
73
|
+
defineCityByCoordinates: define_city_by_coordinates_1.defineCityByCoordinates,
|
|
72
74
|
findPopularCitiesByCountry: find_popular_cities_by_country_1.findPopularCitiesByCountry,
|
|
73
75
|
createReview: create_review_1.createReview,
|
|
74
76
|
createEmotion: create_emotion_1.createEmotion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.146",
|
|
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": "4d1efc86ae3f097c533e006fea144cd5d509fef0",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.137",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.141",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|