@escapenavigator/services 1.6.74 → 1.6.76

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,10 @@
1
1
  import { AgregatorCityRO } from '@escapenavigator/types/dist/agregator/agregator-city.ro';
2
+ import { CountriesEnum } from '@escapenavigator/types/dist/shared/enum/countries.enum';
2
3
  import { ApiMethodDeclaration } from '..';
3
- declare type ParamsData = string;
4
+ declare type ParamsData = {
5
+ slug: string;
6
+ country: CountriesEnum;
7
+ };
4
8
  declare type ResponseData = AgregatorCityRO;
5
9
  export declare const findCityBySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
6
10
  export {};
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findCityBySlug = void 0;
4
- var findCityBySlug = function (slug) { return ({
5
- url: "/agregator/city/slug/".concat(slug),
6
- method: 'GET',
7
- }); };
4
+ var findCityBySlug = function (_a) {
5
+ var country = _a.country, slug = _a.slug;
6
+ return ({
7
+ url: "/agregator/city/slug/".concat(country, "/").concat(slug),
8
+ method: 'GET',
9
+ });
10
+ };
8
11
  exports.findCityBySlug = findCityBySlug;
@@ -23,6 +23,7 @@ import { findQuestroomsForMainPage } from './find-questrooms-for-main-page';
23
23
  import { findQuestroomsSearch } from './find-questrooms-search';
24
24
  import { findQuestroomsWithCertificates } from './find-questrooms-with-certificates';
25
25
  import { findSimilaQuestroomsNear } from './find-similar-questrooms-near';
26
+ import { sitemap } from './sitemap';
26
27
  declare type ApiDeclaration = {
27
28
  createReview: typeof createReview;
28
29
  sendCode: typeof sendCode;
@@ -49,6 +50,7 @@ declare type ApiDeclaration = {
49
50
  findPostBySlug: typeof findPostBySlug;
50
51
  createSubscription: typeof createSubscription;
51
52
  findQuestroomsSearch: typeof findQuestroomsSearch;
53
+ sitemap: typeof sitemap;
52
54
  };
53
55
  export declare const agregatorApiDeclaration: ApiDeclaration;
54
56
  export {};
@@ -26,8 +26,10 @@ var find_questrooms_for_main_page_1 = require("./find-questrooms-for-main-page")
26
26
  var find_questrooms_search_1 = require("./find-questrooms-search");
27
27
  var find_questrooms_with_certificates_1 = require("./find-questrooms-with-certificates");
28
28
  var find_similar_questrooms_near_1 = require("./find-similar-questrooms-near");
29
+ var sitemap_1 = require("./sitemap");
29
30
  exports.agregatorApiDeclaration = {
30
31
  createReview: create_review_1.createReview,
32
+ sitemap: sitemap_1.sitemap,
31
33
  currentPlayer: current_1.current,
32
34
  login: login_1.login,
33
35
  logout: logout_1.logout,
@@ -0,0 +1,7 @@
1
+ import { AgregatorSitemapQuestroomRO } from '@escapenavigator/types/dist/agregator/agregator-sitemap-questroom.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 = AgregatorSitemapQuestroomRO[];
6
+ export declare const sitemap: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sitemap = void 0;
4
+ var sitemap = function (country) { return ({
5
+ url: "/agregator/sitemap/".concat(country),
6
+ method: 'GET',
7
+ }); };
8
+ exports.sitemap = sitemap;
@@ -5,6 +5,7 @@ import { queryAdmin } from './query-admin';
5
5
  import { queryProfile } from './query-profile';
6
6
  import { remove } from './remove';
7
7
  import { unapprove } from './unapprove';
8
+ import { update } from './update';
8
9
  declare type ApiDeclaration = {
9
10
  create: typeof create;
10
11
  remove: typeof remove;
@@ -13,6 +14,7 @@ declare type ApiDeclaration = {
13
14
  unapprove: typeof unapprove;
14
15
  queryAdmin: typeof queryAdmin;
15
16
  answer: typeof answer;
17
+ update: typeof update;
16
18
  };
17
19
  export declare const socialReviewsApiDeclaration: ApiDeclaration;
18
20
  export {};
@@ -8,8 +8,10 @@ var query_admin_1 = require("./query-admin");
8
8
  var query_profile_1 = require("./query-profile");
9
9
  var remove_1 = require("./remove");
10
10
  var unapprove_1 = require("./unapprove");
11
+ var update_1 = require("./update");
11
12
  exports.socialReviewsApiDeclaration = {
12
13
  create: create_1.create,
14
+ update: update_1.update,
13
15
  remove: remove_1.remove,
14
16
  queryAdmin: query_admin_1.queryAdmin,
15
17
  approve: approve_1.approve,
@@ -0,0 +1,10 @@
1
+ import { SocialReviewRO } from '@escapenavigator/types/dist/review/social-review.ro';
2
+ import { UpdateSocialReviewDto } from '@escapenavigator/types/dist/review/update-social-review.dto';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ id: number;
6
+ data: UpdateSocialReviewDto;
7
+ };
8
+ declare type ResponseData = SocialReviewRO;
9
+ export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.update = void 0;
4
+ var update = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/reviews/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.update = update;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.74",
3
+ "version": "1.6.76",
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": "f39aa2bfaece4c130e395a7d81d5565be03fb71a",
15
+ "gitHead": "7dc365de4b7b3d5221de7b073cfa17549a943399",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.69",
18
- "@escapenavigator/utils": "^1.6.71",
17
+ "@escapenavigator/types": "^1.6.71",
18
+ "@escapenavigator/utils": "^1.6.73",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",