@escapenavigator/services 1.3.1 → 1.4.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/find-cities-by-country.d.ts +7 -0
- package/dist/api/agregator-api/find-cities-by-country.js +8 -0
- package/dist/api/agregator-api/find-city-by-slug.d.ts +6 -0
- package/dist/api/agregator-api/find-city-by-slug.js +8 -0
- package/dist/api/agregator-api/find-current-city.d.ts +6 -0
- package/dist/api/agregator-api/find-current-city.js +8 -0
- package/dist/api/agregator-api/find-locations-by-coordinates.d.ts +6 -0
- package/dist/api/agregator-api/find-locations-by-coordinates.js +8 -0
- package/dist/api/agregator-api/find-popular-cities-near.d.ts +6 -0
- package/dist/api/agregator-api/find-popular-cities-near.js +8 -0
- package/dist/api/agregator-api/find-questrooms-by-city-slug.d.ts +6 -0
- package/dist/api/agregator-api/find-questrooms-by-city-slug.js +8 -0
- package/dist/api/agregator-api/find-questrooms-by-location-id.d.ts +6 -0
- package/dist/api/agregator-api/find-questrooms-by-location-id.js +8 -0
- package/dist/api/agregator-api/find-questrooms-by-organization-id.d.ts +6 -0
- package/dist/api/agregator-api/find-questrooms-by-organization-id.js +8 -0
- package/dist/api/agregator-api/find-questrooms-by-tag.d.ts +6 -0
- package/dist/api/agregator-api/find-questrooms-by-tag.js +8 -0
- package/dist/api/agregator-api/find-questrooms-by-title.d.ts +6 -0
- package/dist/api/agregator-api/find-questrooms-by-title.js +8 -0
- package/dist/api/agregator-api/find-similar-questrooms.d.ts +6 -0
- package/dist/api/agregator-api/find-similar-questrooms.js +8 -0
- package/dist/api/agregator-api/index.d.ts +26 -0
- package/dist/api/agregator-api/index.js +27 -0
- package/dist/api/cities-api/index.d.ts +0 -8
- package/dist/api/cities-api/index.js +0 -8
- package/package.json +3 -3
- package/dist/api/cities-api/get-cities-by-country.d.ts +0 -7
- package/dist/api/cities-api/get-cities-by-country.js +0 -8
- package/dist/api/cities-api/get-city-by-ip.d.ts +0 -6
- package/dist/api/cities-api/get-city-by-ip.js +0 -8
- package/dist/api/cities-api/get-city-by-slug.d.ts +0 -6
- package/dist/api/cities-api/get-city-by-slug.js +0 -8
- package/dist/api/cities-api/get-popular-cities-near.d.ts +0 -6
- package/dist/api/cities-api/get-popular-cities-near.js +0 -8
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgregatorCityResponseObject } 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 = AgregatorCityResponseObject[];
|
|
6
|
+
export declare const findCitiesByCountry: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findCitiesByCountry = void 0;
|
|
4
|
+
var findCitiesByCountry = function (country) { return ({
|
|
5
|
+
url: '/agregator/cities/country/' + country,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findCitiesByCountry = findCitiesByCountry;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgregatorCityResponseObject } from '@escapenavigator/types/dist/agregator/agregator-city.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = AgregatorCityResponseObject;
|
|
5
|
+
export declare const findCityBySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findCityBySlug = void 0;
|
|
4
|
+
var findCityBySlug = function (slug) { return ({
|
|
5
|
+
url: '/agregator/city/slug/' + slug,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findCityBySlug = findCityBySlug;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgregatorCityResponseObject } from '@escapenavigator/types/dist/agregator/agregator-city.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = AgregatorCityResponseObject;
|
|
5
|
+
export declare const findCurrentCity: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findCurrentCity = void 0;
|
|
4
|
+
var findCurrentCity = function (ip) { return ({
|
|
5
|
+
url: '/agregator/city/current/' + ip,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findCurrentCity = findCurrentCity;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgregatorLocationResponseObject } from '@escapenavigator/types/dist/agregator/agregator-location.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = AgregatorLocationResponseObject[];
|
|
5
|
+
export declare const findLocationsByCoordinates: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findLocationsByCoordinates = void 0;
|
|
4
|
+
var findLocationsByCoordinates = function (latlng) { return ({
|
|
5
|
+
url: '/agregator/locations/coordinates/' + latlng,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findLocationsByCoordinates = findLocationsByCoordinates;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgregatorCityResponseObject } from '@escapenavigator/types/dist/agregator/agregator-city.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = AgregatorCityResponseObject[];
|
|
5
|
+
export declare const findPopularCitiesNear: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findPopularCitiesNear = void 0;
|
|
4
|
+
var findPopularCitiesNear = function (slug) { return ({
|
|
5
|
+
url: '/cities/near/' + slug,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findPopularCitiesNear = findPopularCitiesNear;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgregatorCityQuestroomsResponseObject } from '@escapenavigator/types/dist/agregator/agregator-city-questrooms.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = AgregatorCityQuestroomsResponseObject[];
|
|
5
|
+
export declare const findQuestroomsByCitySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findQuestroomsByCitySlug = void 0;
|
|
4
|
+
var findQuestroomsByCitySlug = function (slug) { return ({
|
|
5
|
+
url: '/agregator/questrooms/city/' + slug,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findQuestroomsByCitySlug = findQuestroomsByCitySlug;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgregatorQuestroomsListResponseObject } from '@escapenavigator/types/dist/agregator/agregator-questrooms-list.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = AgregatorQuestroomsListResponseObject[];
|
|
5
|
+
export declare const findQuestroomsByLocationId: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findQuestroomsByLocationId = void 0;
|
|
4
|
+
var findQuestroomsByLocationId = function (locationId) { return ({
|
|
5
|
+
url: '/agregator/questrooms/location/' + locationId,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findQuestroomsByLocationId = findQuestroomsByLocationId;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgregatorQuestroomsListResponseObject } from '@escapenavigator/types/dist/agregator/agregator-questrooms-list.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = AgregatorQuestroomsListResponseObject[];
|
|
5
|
+
export declare const findQuestroomsByOrganizationId: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findQuestroomsByOrganizationId = void 0;
|
|
4
|
+
var findQuestroomsByOrganizationId = function (organizationId) { return ({
|
|
5
|
+
url: '/agregator/questrooms/organization/' + organizationId,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findQuestroomsByOrganizationId = findQuestroomsByOrganizationId;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgregatorQuestroomsByTagListResponseObject } from '@escapenavigator/types/dist/agregator/agregator-questrooms-by-tag-list.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = AgregatorQuestroomsByTagListResponseObject[];
|
|
5
|
+
export declare const findQuestroomsByTag: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findQuestroomsByTag = void 0;
|
|
4
|
+
var findQuestroomsByTag = function (tag) { return ({
|
|
5
|
+
url: '/agregator/questrooms/tag/' + tag,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findQuestroomsByTag = findQuestroomsByTag;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgregatorQuestroomsListResponseObject } from '@escapenavigator/types/dist/agregator/agregator-questrooms-list.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = AgregatorQuestroomsListResponseObject[];
|
|
5
|
+
export declare const findQuestroomsByTitle: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findQuestroomsByTitle = void 0;
|
|
4
|
+
var findQuestroomsByTitle = function (text) { return ({
|
|
5
|
+
url: '/agregator/questrooms/title/' + text,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findQuestroomsByTitle = findQuestroomsByTitle;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AgregatorQuestroomsListResponseObject } from '@escapenavigator/types/dist/agregator/agregator-questrooms-list.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = AgregatorQuestroomsListResponseObject[];
|
|
5
|
+
export declare const findSimilarQuestrooms: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findSimilarQuestrooms = void 0;
|
|
4
|
+
var findSimilarQuestrooms = function (questroomSlug) { return ({
|
|
5
|
+
url: '/agregator/questrooms/similar/' + questroomSlug,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findSimilarQuestrooms = findSimilarQuestrooms;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { findCitiesByCountry } from './find-cities-by-country';
|
|
2
|
+
import { findCityBySlug } from './find-city-by-slug';
|
|
3
|
+
import { findCurrentCity } from './find-current-city';
|
|
4
|
+
import { findLocationsByCoordinates } from './find-locations-by-coordinates';
|
|
5
|
+
import { findPopularCitiesNear } from './find-popular-cities-near';
|
|
6
|
+
import { findQuestroomsByCitySlug } from './find-questrooms-by-city-slug';
|
|
7
|
+
import { findQuestroomsByLocationId } from './find-questrooms-by-location-id';
|
|
8
|
+
import { findQuestroomsByOrganizationId } from './find-questrooms-by-organization-id';
|
|
9
|
+
import { findQuestroomsByTag } from './find-questrooms-by-tag';
|
|
10
|
+
import { findQuestroomsByTitle } from './find-questrooms-by-title';
|
|
11
|
+
import { findSimilarQuestrooms } from './find-similar-questrooms';
|
|
12
|
+
declare type ApiDeclaration = {
|
|
13
|
+
findCitiesByCountry: typeof findCitiesByCountry;
|
|
14
|
+
findCityBySlug: typeof findCityBySlug;
|
|
15
|
+
findCurrentCity: typeof findCurrentCity;
|
|
16
|
+
findLocationsByCoordinates: typeof findLocationsByCoordinates;
|
|
17
|
+
findPopularCitiesNear: typeof findPopularCitiesNear;
|
|
18
|
+
findQuestroomsByCitySlug: typeof findQuestroomsByCitySlug;
|
|
19
|
+
findQuestroomsByLocationId: typeof findQuestroomsByLocationId;
|
|
20
|
+
findQuestroomsByOrganizationId: typeof findQuestroomsByOrganizationId;
|
|
21
|
+
findQuestroomsByTag: typeof findQuestroomsByTag;
|
|
22
|
+
findQuestroomsByTitle: typeof findQuestroomsByTitle;
|
|
23
|
+
findSimilarQuestrooms: typeof findSimilarQuestrooms;
|
|
24
|
+
};
|
|
25
|
+
export declare const citiesApiDeclaration: ApiDeclaration;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.citiesApiDeclaration = void 0;
|
|
4
|
+
var find_cities_by_country_1 = require("./find-cities-by-country");
|
|
5
|
+
var find_city_by_slug_1 = require("./find-city-by-slug");
|
|
6
|
+
var find_current_city_1 = require("./find-current-city");
|
|
7
|
+
var find_locations_by_coordinates_1 = require("./find-locations-by-coordinates");
|
|
8
|
+
var find_popular_cities_near_1 = require("./find-popular-cities-near");
|
|
9
|
+
var find_questrooms_by_city_slug_1 = require("./find-questrooms-by-city-slug");
|
|
10
|
+
var find_questrooms_by_location_id_1 = require("./find-questrooms-by-location-id");
|
|
11
|
+
var find_questrooms_by_organization_id_1 = require("./find-questrooms-by-organization-id");
|
|
12
|
+
var find_questrooms_by_tag_1 = require("./find-questrooms-by-tag");
|
|
13
|
+
var find_questrooms_by_title_1 = require("./find-questrooms-by-title");
|
|
14
|
+
var find_similar_questrooms_1 = require("./find-similar-questrooms");
|
|
15
|
+
exports.citiesApiDeclaration = {
|
|
16
|
+
findCitiesByCountry: find_cities_by_country_1.findCitiesByCountry,
|
|
17
|
+
findCityBySlug: find_city_by_slug_1.findCityBySlug,
|
|
18
|
+
findCurrentCity: find_current_city_1.findCurrentCity,
|
|
19
|
+
findLocationsByCoordinates: find_locations_by_coordinates_1.findLocationsByCoordinates,
|
|
20
|
+
findPopularCitiesNear: find_popular_cities_near_1.findPopularCitiesNear,
|
|
21
|
+
findQuestroomsByCitySlug: find_questrooms_by_city_slug_1.findQuestroomsByCitySlug,
|
|
22
|
+
findQuestroomsByLocationId: find_questrooms_by_location_id_1.findQuestroomsByLocationId,
|
|
23
|
+
findQuestroomsByOrganizationId: find_questrooms_by_organization_id_1.findQuestroomsByOrganizationId,
|
|
24
|
+
findQuestroomsByTag: find_questrooms_by_tag_1.findQuestroomsByTag,
|
|
25
|
+
findQuestroomsByTitle: find_questrooms_by_title_1.findQuestroomsByTitle,
|
|
26
|
+
findSimilarQuestrooms: find_similar_questrooms_1.findSimilarQuestrooms
|
|
27
|
+
};
|
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import { getCitiesByCountry } from './get-cities-by-country';
|
|
2
|
-
import { getCityBySlug } from './get-city-by-slug';
|
|
3
|
-
import { getCityByIp } from './get-city-by-ip';
|
|
4
|
-
import { getPopularCitiesNear } from './get-popular-cities-near';
|
|
5
1
|
import { getOne } from './get-one';
|
|
6
2
|
import { update } from './update';
|
|
7
3
|
import { remove } from './remove';
|
|
8
4
|
declare type ApiDeclaration = {
|
|
9
|
-
getCitiesByCountry: typeof getCitiesByCountry;
|
|
10
|
-
getCityBySlug: typeof getCityBySlug;
|
|
11
|
-
getCityByIp: typeof getCityByIp;
|
|
12
|
-
getPopularCitiesNear: typeof getPopularCitiesNear;
|
|
13
5
|
getOne: typeof getOne;
|
|
14
6
|
update: typeof update;
|
|
15
7
|
remove: typeof remove;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.citiesApiDeclaration = void 0;
|
|
4
|
-
var get_cities_by_country_1 = require("./get-cities-by-country");
|
|
5
|
-
var get_city_by_slug_1 = require("./get-city-by-slug");
|
|
6
|
-
var get_city_by_ip_1 = require("./get-city-by-ip");
|
|
7
|
-
var get_popular_cities_near_1 = require("./get-popular-cities-near");
|
|
8
4
|
var get_one_1 = require("./get-one");
|
|
9
5
|
var update_1 = require("./update");
|
|
10
6
|
var remove_1 = require("./remove");
|
|
11
7
|
exports.citiesApiDeclaration = {
|
|
12
|
-
getCitiesByCountry: get_cities_by_country_1.getCitiesByCountry,
|
|
13
|
-
getCityBySlug: get_city_by_slug_1.getCityBySlug,
|
|
14
|
-
getCityByIp: get_city_by_ip_1.getCityByIp,
|
|
15
|
-
getPopularCitiesNear: get_popular_cities_near_1.getPopularCitiesNear,
|
|
16
8
|
getOne: get_one_1.getOne,
|
|
17
9
|
update: update_1.update,
|
|
18
10
|
remove: remove_1.remove,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.3
|
|
3
|
+
"version": "1.4.3",
|
|
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": "6b55726a37979553e8b0dfc708d287c7f5f3efcf",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.3
|
|
17
|
+
"@escapenavigator/types": "^1.4.3",
|
|
18
18
|
"axios": "^0.21.4",
|
|
19
19
|
"class-transformer": "^0.5.1",
|
|
20
20
|
"class-validator": "^0.13.1",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
|
|
2
|
-
import { CityResponseObject } from '@escapenavigator/types/dist/city/city.ro';
|
|
3
|
-
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
declare type ParamsData = CountriesEnum;
|
|
5
|
-
declare type ResponseData = CityResponseObject[];
|
|
6
|
-
export declare const getCitiesByCountry: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCitiesByCountry = void 0;
|
|
4
|
-
var getCitiesByCountry = function (country) { return ({
|
|
5
|
-
url: '/cities/country/' + country,
|
|
6
|
-
method: 'GET'
|
|
7
|
-
}); };
|
|
8
|
-
exports.getCitiesByCountry = getCitiesByCountry;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CityResponseObject } from '@escapenavigator/types/dist/city/city.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
declare type ParamsData = string;
|
|
4
|
-
declare type ResponseData = CityResponseObject;
|
|
5
|
-
export declare const getCityByIp: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CityResponseObject } from '@escapenavigator/types/dist/city/city.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
declare type ParamsData = string;
|
|
4
|
-
declare type ResponseData = CityResponseObject;
|
|
5
|
-
export declare const getCityBySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CityResponseObject } from '@escapenavigator/types/dist/city/city.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
declare type ParamsData = string;
|
|
4
|
-
declare type ResponseData = CityResponseObject[];
|
|
5
|
-
export declare const getPopularCitiesNear: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPopularCitiesNear = void 0;
|
|
4
|
-
var getPopularCitiesNear = function (slug) { return ({
|
|
5
|
-
url: '/cities/near/' + slug,
|
|
6
|
-
method: 'GET'
|
|
7
|
-
}); };
|
|
8
|
-
exports.getPopularCitiesNear = getPopularCitiesNear;
|