@escapenavigator/services 1.6.71 → 1.6.73
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 +5 -3
- package/dist/api/agregator-api/index.js +5 -3
- package/dist/api/agregator-api/players/logout.js +1 -1
- package/dist/api/agregator-api/players/send-code.d.ts +4 -1
- package/dist/api/agregator-api/players/send-code.js +8 -4
- package/dist/api/agregator-api/reviews/create-review.d.ts +9 -0
- package/dist/api/agregator-api/reviews/create-review.js +12 -0
- package/dist/api/agregator-api/{reviews-city.d.ts → reviews/reviews-city.d.ts} +1 -1
- package/dist/api/agregator-api/{reviews-profile.d.ts → reviews/reviews-profile.d.ts} +1 -1
- package/dist/api/agregator-api/{reviews-questroom.d.ts → reviews/reviews-questroom.d.ts} +1 -1
- package/package.json +4 -4
- /package/dist/api/agregator-api/{reviews-city.js → reviews/reviews-city.js} +0 -0
- /package/dist/api/agregator-api/{reviews-profile.js → reviews/reviews-profile.js} +0 -0
- /package/dist/api/agregator-api/{reviews-questroom.js → reviews/reviews-questroom.js} +0 -0
|
@@ -3,6 +3,10 @@ import { currentUpdate as currentPlayerUpdate } from './players/current-update';
|
|
|
3
3
|
import { login } from './players/login';
|
|
4
4
|
import { logout } from './players/logout';
|
|
5
5
|
import { sendCode } from './players/send-code';
|
|
6
|
+
import { createReview } from './reviews/create-review';
|
|
7
|
+
import { reviewsCity } from './reviews/reviews-city';
|
|
8
|
+
import { reviewsProfile } from './reviews/reviews-profile';
|
|
9
|
+
import { reviewsQuestroom } from './reviews/reviews-questroom';
|
|
6
10
|
import { createSubscription } from './create-subscription';
|
|
7
11
|
import { findCitiesByCountry } from './find-cities-by-country';
|
|
8
12
|
import { findCityBySlug } from './find-city-by-slug';
|
|
@@ -21,10 +25,8 @@ import { findQuestroomsForMainPage } from './find-questrooms-for-main-page';
|
|
|
21
25
|
import { findQuestroomsSearch } from './find-questrooms-search';
|
|
22
26
|
import { findQuestroomsWithCertificates } from './find-questrooms-with-certificates';
|
|
23
27
|
import { findSimilaQuestroomsNear } from './find-similar-questrooms-near';
|
|
24
|
-
import { reviewsCity } from './reviews-city';
|
|
25
|
-
import { reviewsProfile } from './reviews-profile';
|
|
26
|
-
import { reviewsQuestroom } from './reviews-questroom';
|
|
27
28
|
declare type ApiDeclaration = {
|
|
29
|
+
createReview: typeof createReview;
|
|
28
30
|
sendCode: typeof sendCode;
|
|
29
31
|
login: typeof login;
|
|
30
32
|
currentPlayer: typeof currentPlayer;
|
|
@@ -6,6 +6,10 @@ var current_update_1 = require("./players/current-update");
|
|
|
6
6
|
var login_1 = require("./players/login");
|
|
7
7
|
var logout_1 = require("./players/logout");
|
|
8
8
|
var send_code_1 = require("./players/send-code");
|
|
9
|
+
var create_review_1 = require("./reviews/create-review");
|
|
10
|
+
var reviews_city_1 = require("./reviews/reviews-city");
|
|
11
|
+
var reviews_profile_1 = require("./reviews/reviews-profile");
|
|
12
|
+
var reviews_questroom_1 = require("./reviews/reviews-questroom");
|
|
9
13
|
var create_subscription_1 = require("./create-subscription");
|
|
10
14
|
var find_cities_by_country_1 = require("./find-cities-by-country");
|
|
11
15
|
var find_city_by_slug_1 = require("./find-city-by-slug");
|
|
@@ -24,11 +28,9 @@ var find_questrooms_for_main_page_1 = require("./find-questrooms-for-main-page")
|
|
|
24
28
|
var find_questrooms_search_1 = require("./find-questrooms-search");
|
|
25
29
|
var find_questrooms_with_certificates_1 = require("./find-questrooms-with-certificates");
|
|
26
30
|
var find_similar_questrooms_near_1 = require("./find-similar-questrooms-near");
|
|
27
|
-
var reviews_city_1 = require("./reviews-city");
|
|
28
|
-
var reviews_profile_1 = require("./reviews-profile");
|
|
29
|
-
var reviews_questroom_1 = require("./reviews-questroom");
|
|
30
31
|
exports.agregatorApiDeclaration = {
|
|
31
32
|
findPopularCitiesAndQuestrooms: find_popular_cities_and_questrooms_1.findPopularCitiesAndQuestrooms,
|
|
33
|
+
createReview: create_review_1.createReview,
|
|
32
34
|
currentPlayer: current_1.current,
|
|
33
35
|
login: login_1.login,
|
|
34
36
|
logout: logout_1.logout,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { SendCodeDto } from '@escapenavigator/types/dist/player/send-code.dto';
|
|
1
2
|
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
3
|
import { ApiMethodDeclaration } from '../..';
|
|
3
|
-
declare type ParamsData =
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: SendCodeDto;
|
|
6
|
+
};
|
|
4
7
|
declare type ResponseData = SuccessRO;
|
|
5
8
|
export declare const sendCode: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
9
|
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sendCode = void 0;
|
|
4
|
-
var sendCode = function (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var sendCode = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/players/send-code',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
8
12
|
exports.sendCode = sendCode;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateSocialReviewDto } from '@escapenavigator/types/dist/review/create-social-review.dto';
|
|
2
|
+
import { SocialReviewRO } from '@escapenavigator/types/dist/review/social-review.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateSocialReviewDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = SocialReviewRO;
|
|
8
|
+
export declare const createReview: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createReview = void 0;
|
|
4
|
+
var createReview = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/reviews',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createReview = createReview;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.73",
|
|
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": "987dbb362a0cc5d84bf429a409321084cebc49d6",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.68",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.70",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|