@escapenavigator/services 1.4.64 → 1.4.66

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,6 +1,7 @@
1
1
  import { AgregatorCityRO } from '@escapenavigator/types/dist/agregator/agregator-city.ro';
2
+ import { AgregatorFindCityByIpDto } from '@escapenavigator/types/dist/agregator/dto/agregator-find-city-by-ip.dto';
2
3
  import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = string;
4
+ declare type ParamsData = AgregatorFindCityByIpDto;
4
5
  declare type ResponseData = AgregatorCityRO;
5
6
  export declare const findCurrentCity: 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.findCurrentCity = void 0;
4
- var findCurrentCity = function (ip) { return ({
5
- url: "/agregator/city/current/".concat(ip),
4
+ var findCurrentCity = function (params) { return ({
5
+ url: '/agregator/city/current',
6
6
  method: 'GET',
7
+ params: params,
7
8
  }); };
8
9
  exports.findCurrentCity = findCurrentCity;
@@ -1,6 +1,7 @@
1
1
  import { AgregatorQuestroomCardRO } from '@escapenavigator/types/dist/agregator/agregator-questroom-card.ro';
2
+ import { AgregatorFindQuestroomByTitleDto } from '@escapenavigator/types/dist/agregator/dto/agregator-find-questroom-by-text.dto';
2
3
  import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = string;
4
+ declare type ParamsData = AgregatorFindQuestroomByTitleDto;
4
5
  declare type ResponseData = AgregatorQuestroomCardRO[];
5
6
  export declare const findQuestroomsByTitle: 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.findQuestroomsByTitle = void 0;
4
- var findQuestroomsByTitle = function (text) { return ({
5
- url: "/agregator/questrooms/title/".concat(text),
4
+ var findQuestroomsByTitle = function (params) { return ({
5
+ url: '/agregator/questrooms/title/',
6
6
  method: 'GET',
7
+ params: params,
7
8
  }); };
8
9
  exports.findQuestroomsByTitle = findQuestroomsByTitle;
@@ -1,6 +1,7 @@
1
1
  import { AgregatorQuestroomsAndCitiesRO } from '@escapenavigator/types/dist/agregator/agregator-questrooms-and-cities.ro';
2
+ import { AgregatorFindQuestroomsForCityDto } from '@escapenavigator/types/dist/agregator/dto/agregator-find-questrooms-for-city.dto';
2
3
  import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = string;
4
+ declare type ParamsData = AgregatorFindQuestroomsForCityDto;
4
5
  declare type ResponseData = AgregatorQuestroomsAndCitiesRO[];
5
6
  export declare const findQuestroomsForMainPage: 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.findQuestroomsForMainPage = void 0;
4
- var findQuestroomsForMainPage = function (slug) { return ({
5
- url: "/agregator/questrooms/mainpage/".concat(slug),
4
+ var findQuestroomsForMainPage = function (params) { return ({
5
+ url: '/agregator/questrooms/mainpage',
6
6
  method: 'GET',
7
+ params: params,
7
8
  }); };
8
9
  exports.findQuestroomsForMainPage = findQuestroomsForMainPage;
@@ -3,12 +3,14 @@ import { getByCoordinates } from './get-by-coordinates';
3
3
  import { getByLocation } from './get-by-location';
4
4
  import { getBySlug } from './get-by-slug';
5
5
  import { getOne } from './get-one';
6
+ import { paginate } from './paginate';
6
7
  import { query } from './query';
7
8
  import { recover } from './recover';
8
9
  import { remove } from './remove';
9
10
  import { update } from './update';
10
11
  declare type ApiDeclaration = {
11
12
  create: typeof create;
13
+ paginate: typeof paginate;
12
14
  remove: typeof remove;
13
15
  update: typeof update;
14
16
  query: typeof query;
@@ -6,12 +6,14 @@ var get_by_coordinates_1 = require("./get-by-coordinates");
6
6
  var get_by_location_1 = require("./get-by-location");
7
7
  var get_by_slug_1 = require("./get-by-slug");
8
8
  var get_one_1 = require("./get-one");
9
+ var paginate_1 = require("./paginate");
9
10
  var query_1 = require("./query");
10
11
  var recover_1 = require("./recover");
11
12
  var remove_1 = require("./remove");
12
13
  var update_1 = require("./update");
13
14
  exports.questroomsApiDeclaration = {
14
15
  create: create_1.create,
16
+ paginate: paginate_1.paginate,
15
17
  remove: remove_1.remove,
16
18
  update: update_1.update,
17
19
  query: query_1.query,
@@ -0,0 +1,8 @@
1
+ import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
2
+ import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
3
+ import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
4
+ import { ApiMethodDeclaration } from '..';
5
+ declare type ParamsData = QueryDto;
6
+ declare type ResponseData = QueryRO<QuestroomRO>;
7
+ export declare const paginate: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginate = void 0;
4
+ var paginate = function (params) { return ({
5
+ url: '/questrooms/paginate',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.paginate = paginate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.64",
3
+ "version": "1.4.66",
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": "d35f5260db93dd525604bd99551cd4ec76684a99",
15
+ "gitHead": "9fcdf29351021e0176056fa07f7607742e2522e1",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.64",
17
+ "@escapenavigator/types": "^1.4.66",
18
18
  "@paypal/react-paypal-js": "^7.8.3",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",