@escapenavigator/services 1.4.53 → 1.4.55

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,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,6 @@
1
- import { CityResponseObject } from '@escapenavigator/types/dist/city/city.ro';
1
+ import { CityRO } from '@escapenavigator/types/dist/city/city.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = number;
4
- declare type ResponseData = CityResponseObject;
4
+ declare type ResponseData = CityRO;
5
5
  export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
6
6
  export {};
@@ -1,9 +1,11 @@
1
1
  import { getOne } from './get-one';
2
+ import { query } from './query';
2
3
  import { remove } from './remove';
3
4
  import { update } from './update';
4
5
  declare type ApiDeclaration = {
5
6
  getOne: typeof getOne;
6
7
  update: typeof update;
8
+ query: typeof query;
7
9
  remove: typeof remove;
8
10
  };
9
11
  export declare const citiesApiDeclaration: ApiDeclaration;
@@ -2,10 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.citiesApiDeclaration = void 0;
4
4
  var get_one_1 = require("./get-one");
5
+ var query_1 = require("./query");
5
6
  var remove_1 = require("./remove");
6
7
  var update_1 = require("./update");
7
8
  exports.citiesApiDeclaration = {
8
9
  getOne: get_one_1.getOne,
9
10
  update: update_1.update,
11
+ query: query_1.query,
10
12
  remove: remove_1.remove,
11
13
  };
@@ -1,7 +1,8 @@
1
- import { CityResponseObject } from '@escapenavigator/types/dist/city/city.ro';
1
+ import { CityRO } from '@escapenavigator/types/dist/city/city.ro';
2
2
  import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
3
+ import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
3
4
  import { ApiMethodDeclaration } from '..';
4
5
  declare type ParamsData = QueryDto;
5
- declare type ResponseData = CityResponseObject[];
6
+ declare type ResponseData = QueryRO<CityRO>;
6
7
  export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
7
8
  export {};
@@ -1,7 +1,7 @@
1
- import { CityResponseObject } from '@escapenavigator/types/dist/city/city.ro';
1
+ import { CityRO } from '@escapenavigator/types/dist/city/city.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  /** ID city */
4
4
  declare type ParamsData = number;
5
- declare type ResponseData = CityResponseObject;
5
+ declare type ResponseData = CityRO;
6
6
  export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -1,10 +1,10 @@
1
- import { CityResponseObject } from '@escapenavigator/types/dist/city/city.ro';
1
+ import { CityRO } from '@escapenavigator/types/dist/city/city.ro';
2
2
  import { UpdateCityDto } from '@escapenavigator/types/dist/city/update-city.dto';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = {
5
5
  id: number;
6
6
  data: UpdateCityDto;
7
7
  };
8
- declare type ResponseData = CityResponseObject;
8
+ declare type ResponseData = CityRO;
9
9
  export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
10
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.53",
3
+ "version": "1.4.55",
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": "cb41ca00caeb48aa75cd64cdc6e8c7c195b0119f",
15
+ "gitHead": "54d7a447bea57a6994095d49e414e00dc0fddb33",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.53",
17
+ "@escapenavigator/types": "^1.4.55",
18
18
  "@paypal/react-paypal-js": "^7.8.3",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
@@ -35,7 +35,7 @@
35
35
  "rollup-plugin-auto-external": "^2.0.0",
36
36
  "rollup-plugin-babel": "^4.4.0",
37
37
  "rollup-plugin-commonjs": "^10.1.0",
38
- "rollup-plugin-multi-input": "^1.3.1",
38
+ "rollup-plugin-multi-input": "1.3.1",
39
39
  "rollup-plugin-node-resolve": "^5.2.0",
40
40
  "rollup-plugin-peer-deps-external": "^2.2.4",
41
41
  "rollup-plugin-terser": "^7.0.2",