@escapenavigator/services 1.9.3 → 1.9.5
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/index.d.ts +4 -0
- package/dist/api/agregator-api/index.js +4 -0
- package/dist/api/agregator-api/players/add-favorite.d.ts +7 -0
- package/dist/api/agregator-api/players/add-favorite.js +11 -0
- package/dist/api/agregator-api/players/remove-favorite.d.ts +7 -0
- package/dist/api/agregator-api/players/remove-favorite.js +11 -0
- package/dist/api/reviews-social-api/create-emotion.d.ts +2 -2
- package/dist/api/reviews-social-api/remove-emotion.d.ts +5 -4
- package/dist/api/reviews-social-api/remove-emotion.js +7 -4
- package/package.json +4 -4
|
@@ -12,11 +12,13 @@ import { findCityBySlug } from './city/find-city-by-slug';
|
|
|
12
12
|
import { findPopularCitiesByCountry } from './city/find-popular-cities-by-country';
|
|
13
13
|
import { findLocationsForMap } from './map/find-locations-for-map';
|
|
14
14
|
import { paginateFoundedEscapeRooms } from './map/paginate-founded-escape-rooms';
|
|
15
|
+
import { addFavorite } from './players/add-favorite';
|
|
15
16
|
import { current as currentPlayer } from './players/current';
|
|
16
17
|
import { currentUpdate as currentPlayerUpdate } from './players/current-update';
|
|
17
18
|
import { findFavorites } from './players/find-favorites';
|
|
18
19
|
import { login } from './players/login';
|
|
19
20
|
import { logout } from './players/logout';
|
|
21
|
+
import { removeFavorite } from './players/remove-favorite';
|
|
20
22
|
import { sendCode } from './players/send-code';
|
|
21
23
|
import { cityInitialQuestrooms } from './questrooms/city-initial-questrooms';
|
|
22
24
|
import { cityOtherQuestrooms } from './questrooms/city-other-questrooms';
|
|
@@ -32,6 +34,8 @@ import { reviewsCity } from './reviews/reviews-city';
|
|
|
32
34
|
import { reviewsProfile } from './reviews/reviews-profile';
|
|
33
35
|
import { reviewsQuestroom } from './reviews/reviews-questroom';
|
|
34
36
|
declare type ApiDeclaration = {
|
|
37
|
+
addFavorite: typeof addFavorite;
|
|
38
|
+
removeFavorite: typeof removeFavorite;
|
|
35
39
|
findFavorites: typeof findFavorites;
|
|
36
40
|
sendCode: typeof sendCode;
|
|
37
41
|
login: typeof login;
|
|
@@ -15,11 +15,13 @@ var find_city_by_slug_1 = require("./city/find-city-by-slug");
|
|
|
15
15
|
var find_popular_cities_by_country_1 = require("./city/find-popular-cities-by-country");
|
|
16
16
|
var find_locations_for_map_1 = require("./map/find-locations-for-map");
|
|
17
17
|
var paginate_founded_escape_rooms_1 = require("./map/paginate-founded-escape-rooms");
|
|
18
|
+
var add_favorite_1 = require("./players/add-favorite");
|
|
18
19
|
var current_1 = require("./players/current");
|
|
19
20
|
var current_update_1 = require("./players/current-update");
|
|
20
21
|
var find_favorites_1 = require("./players/find-favorites");
|
|
21
22
|
var login_1 = require("./players/login");
|
|
22
23
|
var logout_1 = require("./players/logout");
|
|
24
|
+
var remove_favorite_1 = require("./players/remove-favorite");
|
|
23
25
|
var send_code_1 = require("./players/send-code");
|
|
24
26
|
var city_initial_questrooms_1 = require("./questrooms/city-initial-questrooms");
|
|
25
27
|
var city_other_questrooms_1 = require("./questrooms/city-other-questrooms");
|
|
@@ -35,6 +37,8 @@ var reviews_city_1 = require("./reviews/reviews-city");
|
|
|
35
37
|
var reviews_profile_1 = require("./reviews/reviews-profile");
|
|
36
38
|
var reviews_questroom_1 = require("./reviews/reviews-questroom");
|
|
37
39
|
exports.agregatorApiDeclaration = {
|
|
40
|
+
removeFavorite: remove_favorite_1.removeFavorite,
|
|
41
|
+
addFavorite: add_favorite_1.addFavorite,
|
|
38
42
|
findPostForMainPage: find_posts_for_main_page_1.findPostForMainPage,
|
|
39
43
|
defineCityByPlaceId: define_city_by_place_id_1.defineCityByPlaceId,
|
|
40
44
|
findPopularCitiesByCountry: find_popular_cities_by_country_1.findPopularCitiesByCountry,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addFavorite = void 0;
|
|
4
|
+
var addFavorite = function (_a) {
|
|
5
|
+
var questroomId = _a.questroomId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/player/favorite/".concat(questroomId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.addFavorite = addFavorite;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeFavorite = void 0;
|
|
4
|
+
var removeFavorite = function (_a) {
|
|
5
|
+
var questroomId = _a.questroomId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/player/favorite/".concat(questroomId),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.removeFavorite = removeFavorite;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateEmotionDto } from '@escapenavigator/types/dist/review/emotions/create-emotion.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { EmotionRO } from '@escapenavigator/types/dist/review/emotions/emotion.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateEmotionDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = EmotionRO[];
|
|
8
8
|
export declare const createEmotion: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EmotionRO } from '@escapenavigator/types/dist/review/emotions/emotion.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
questroomId: number;
|
|
5
|
+
};
|
|
6
|
+
declare type ResponseData = EmotionRO[];
|
|
6
7
|
export declare const removeEmotion: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
8
|
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.removeEmotion = void 0;
|
|
4
|
-
var removeEmotion = function (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var removeEmotion = function (_a) {
|
|
5
|
+
var questroomId = _a.questroomId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/reviews/emotions/".concat(questroomId),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
8
11
|
exports.removeEmotion = removeEmotion;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.5",
|
|
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": "
|
|
15
|
+
"gitHead": "5c0002478dccaff0f274ac8b52dd03b8fe5daa0b",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.9.
|
|
18
|
-
"@escapenavigator/utils": "^1.9.
|
|
17
|
+
"@escapenavigator/types": "^1.9.4",
|
|
18
|
+
"@escapenavigator/utils": "^1.9.4",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|