@escapenavigator/services 1.8.0 → 1.8.2

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.
@@ -1,7 +1,11 @@
1
1
  import { AgregatorCityRO } from '@escapenavigator/types/dist/agregator/agregator-city.ro';
2
2
  import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
3
+ import { Languages } from '@escapenavigator/types/dist/shared/enum/languages.enum';
3
4
  import { ApiMethodDeclaration } from '../..';
4
- declare type ParamsData = CountriesEnum;
5
+ declare type ParamsData = {
6
+ country: CountriesEnum;
7
+ language: Languages;
8
+ };
5
9
  declare type ResponseData = AgregatorCityRO[];
6
10
  export declare const findCitiesByCountry: ApiMethodDeclaration<ParamsData, ResponseData>;
7
11
  export {};
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findCitiesByCountry = void 0;
4
- var findCitiesByCountry = function (country) { return ({
5
- url: "/agregator/city/country/".concat(country),
6
- method: 'GET',
7
- }); };
4
+ var findCitiesByCountry = function (_a) {
5
+ var country = _a.country, language = _a.language;
6
+ return ({
7
+ url: "/agregator/city/country/".concat(country, "/").concat(language),
8
+ method: 'GET',
9
+ });
10
+ };
8
11
  exports.findCitiesByCountry = findCitiesByCountry;
@@ -1,9 +1,11 @@
1
1
  import { AgregatorCityRO } from '@escapenavigator/types/dist/agregator/agregator-city.ro';
2
2
  import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
3
+ import { Languages } from '@escapenavigator/types/dist/shared/enum/languages.enum';
3
4
  import { ApiMethodDeclaration } from '../..';
4
5
  declare type ParamsData = {
5
6
  slug: string;
6
7
  country: CountriesEnum;
8
+ language: Languages;
7
9
  };
8
10
  declare type ResponseData = AgregatorCityRO;
9
11
  export declare const findCityBySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findCityBySlug = void 0;
4
4
  var findCityBySlug = function (_a) {
5
- var country = _a.country, slug = _a.slug;
5
+ var country = _a.country, slug = _a.slug, language = _a.language;
6
6
  return ({
7
- url: "/agregator/city/slug/".concat(country, "/").concat(slug),
7
+ url: "/agregator/city/slug/".concat(country, "/").concat(slug, "/").concat(language),
8
8
  method: 'GET',
9
9
  });
10
10
  };
@@ -1,7 +1,11 @@
1
1
  import { AgregatorCityRO } from '@escapenavigator/types/dist/agregator/agregator-city.ro';
2
2
  import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
3
+ import { Languages } from '@escapenavigator/types/dist/shared/enum/languages.enum';
3
4
  import { ApiMethodDeclaration } from '../..';
4
- declare type ParamsData = CountriesEnum;
5
+ declare type ParamsData = {
6
+ country: CountriesEnum;
7
+ language: Languages;
8
+ };
5
9
  declare type ResponseData = AgregatorCityRO[];
6
10
  export declare const findPopularCitiesByCountry: ApiMethodDeclaration<ParamsData, ResponseData>;
7
11
  export {};
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findPopularCitiesByCountry = void 0;
4
- var findPopularCitiesByCountry = function (country) { return ({
5
- url: "/agregator/city/country/popular/".concat(country),
6
- method: 'GET',
7
- }); };
4
+ var findPopularCitiesByCountry = function (_a) {
5
+ var country = _a.country, language = _a.language;
6
+ return ({
7
+ url: "/agregator/city/country/popular/".concat(country, "/").concat(language),
8
+ method: 'GET',
9
+ });
10
+ };
8
11
  exports.findPopularCitiesByCountry = findPopularCitiesByCountry;
@@ -1,9 +1,7 @@
1
1
  import { AgregatorQuestroomCardRO } from '@escapenavigator/types/dist/agregator/agregator-questroom-card.ro';
2
- import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
2
+ import { AgregatorBestQuestroomsByCountryDTO } from '@escapenavigator/types/dist/agregator/dto/agregator-best-qestrooms-by-country.dto';
3
3
  import { ApiMethodDeclaration } from '../..';
4
- declare type ParamsData = {
5
- country: CountriesEnum;
6
- };
4
+ declare type ParamsData = AgregatorBestQuestroomsByCountryDTO;
7
5
  declare type ResponseData = AgregatorQuestroomCardRO[];
8
6
  export declare const findBestQuestroomsByCounty: ApiMethodDeclaration<ParamsData, ResponseData>;
9
7
  export {};
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findBestQuestroomsByCounty = void 0;
4
- var findBestQuestroomsByCounty = function (_a) {
5
- var country = _a.country;
6
- return ({
7
- url: "/agregator/questrooms/country/best/".concat(country),
8
- method: 'GET',
9
- });
10
- };
4
+ var findBestQuestroomsByCounty = function (params) { return ({
5
+ url: '/agregator/questrooms/country/best',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
11
9
  exports.findBestQuestroomsByCounty = findBestQuestroomsByCounty;
@@ -4,7 +4,7 @@ exports.findAllCompanies = void 0;
4
4
  var findAllCompanies = function (_a) {
5
5
  var country = _a.country;
6
6
  return ({
7
- url: "/all-companies/".concat(country),
7
+ url: "/agregator/questrooms/all-companies/".concat(country),
8
8
  method: 'GET',
9
9
  });
10
10
  };
@@ -1,8 +1,7 @@
1
1
  import { AgregatorQuestroomRO } from '@escapenavigator/types/dist/agregator/agregator-questroom.ro';
2
+ import { AgregatorFindQuestroomBySlugDto } from '@escapenavigator/types/dist/agregator/dto/agregator-find-questroom-by-slug.dto';
2
3
  import { ApiMethodDeclaration } from '../..';
3
- declare type ParamsData = {
4
- slug: string;
5
- };
4
+ declare type ParamsData = AgregatorFindQuestroomBySlugDto;
6
5
  declare type ResponseData = AgregatorQuestroomRO;
7
6
  export declare const findQuestroomBySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
8
7
  export {};
@@ -1,6 +1,7 @@
1
1
  import { AgregatorQuestroomCardRO } from '@escapenavigator/types/dist/agregator/agregator-questroom-card.ro';
2
+ import { AgregatorFindQuestroomsByLocationDto } from '@escapenavigator/types/dist/agregator/dto/agregator-find-questrooms-by-location.dto';
2
3
  import { ApiMethodDeclaration } from '../..';
3
- declare type ParamsData = string;
4
+ declare type ParamsData = AgregatorFindQuestroomsByLocationDto;
4
5
  declare type ResponseData = AgregatorQuestroomCardRO[];
5
6
  export declare const findQuestroomsByLocationId: ApiMethodDeclaration<ParamsData, ResponseData>;
6
7
  export {};
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findQuestroomsByLocationId = void 0;
4
- var findQuestroomsByLocationId = function (locationId) { return ({
5
- url: "/agregator/questrooms/location/".concat(locationId),
4
+ var findQuestroomsByLocationId = function (params) { return ({
5
+ url: '/agregator/questrooms/location',
6
6
  method: 'GET',
7
+ params: params,
7
8
  }); };
8
9
  exports.findQuestroomsByLocationId = findQuestroomsByLocationId;
@@ -1,6 +1,7 @@
1
1
  import { AgregatorOrganizationQuestroomsRO } from '@escapenavigator/types/dist/agregator/agregator-organization-questrooms.ro';
2
+ import { AgregatorFindOrganizationQuestroomDto } from '@escapenavigator/types/dist/agregator/dto/agregator-find-organization-questrooms.dto';
2
3
  import { ApiMethodDeclaration } from '../..';
3
- declare type ParamsData = string;
4
+ declare type ParamsData = AgregatorFindOrganizationQuestroomDto;
4
5
  declare type ResponseData = AgregatorOrganizationQuestroomsRO;
5
6
  export declare const findQuestroomsByOrganizationId: ApiMethodDeclaration<ParamsData, ResponseData>;
6
7
  export {};
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findQuestroomsByOrganizationId = void 0;
4
- var findQuestroomsByOrganizationId = function (organizationSlug) { return ({
5
- url: "/agregator/questrooms/organization/".concat(organizationSlug),
4
+ var findQuestroomsByOrganizationId = function (params) { return ({
5
+ url: '/agregator/questrooms/organization',
6
6
  method: 'GET',
7
+ params: params,
7
8
  }); };
8
9
  exports.findQuestroomsByOrganizationId = findQuestroomsByOrganizationId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
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": "1d109397b6f1e915f8a8f6de90b986aaf50da11c",
15
+ "gitHead": "074c1e3ddc7d296194ba671e775a30b2a6664555",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.8.0",
18
- "@escapenavigator/utils": "^1.8.0",
17
+ "@escapenavigator/types": "^1.8.2",
18
+ "@escapenavigator/utils": "^1.8.2",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",