@escapenavigator/services 1.6.70 → 1.6.72
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 +15 -3
- package/dist/api/agregator-api/index.js +15 -3
- package/dist/api/{players-api → agregator-api/players}/current-update.d.ts +1 -1
- package/dist/api/{players-api → agregator-api/players}/current.d.ts +1 -1
- package/dist/api/{players-api → agregator-api/players}/login.d.ts +1 -1
- package/dist/api/{players-api → agregator-api/players}/logout.d.ts +1 -1
- package/dist/api/{players-api → agregator-api/players}/send-code.d.ts +1 -1
- 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/dist/api/players-api/index.d.ts +0 -10
- package/dist/api/players-api/index.js +0 -10
- package/package.json +4 -4
- /package/dist/api/{players-api → agregator-api/players}/current-update.js +0 -0
- /package/dist/api/{players-api → agregator-api/players}/current.js +0 -0
- /package/dist/api/{players-api → agregator-api/players}/login.js +0 -0
- /package/dist/api/{players-api → agregator-api/players}/logout.js +0 -0
- /package/dist/api/{players-api → agregator-api/players}/send-code.js +0 -0
- /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
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { current as currentPlayer } from './players/current';
|
|
2
|
+
import { currentUpdate as currentPlayerUpdate } from './players/current-update';
|
|
3
|
+
import { login } from './players/login';
|
|
4
|
+
import { logout } from './players/logout';
|
|
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';
|
|
1
10
|
import { createSubscription } from './create-subscription';
|
|
2
11
|
import { findCitiesByCountry } from './find-cities-by-country';
|
|
3
12
|
import { findCityBySlug } from './find-city-by-slug';
|
|
@@ -16,10 +25,13 @@ import { findQuestroomsForMainPage } from './find-questrooms-for-main-page';
|
|
|
16
25
|
import { findQuestroomsSearch } from './find-questrooms-search';
|
|
17
26
|
import { findQuestroomsWithCertificates } from './find-questrooms-with-certificates';
|
|
18
27
|
import { findSimilaQuestroomsNear } from './find-similar-questrooms-near';
|
|
19
|
-
import { reviewsCity } from './reviews-city';
|
|
20
|
-
import { reviewsProfile } from './reviews-profile';
|
|
21
|
-
import { reviewsQuestroom } from './reviews-questroom';
|
|
22
28
|
declare type ApiDeclaration = {
|
|
29
|
+
createReview: typeof createReview;
|
|
30
|
+
sendCode: typeof sendCode;
|
|
31
|
+
login: typeof login;
|
|
32
|
+
currentPlayer: typeof currentPlayer;
|
|
33
|
+
currentPlayerUpdate: typeof currentPlayerUpdate;
|
|
34
|
+
logout: typeof logout;
|
|
23
35
|
reviewsCity: typeof reviewsCity;
|
|
24
36
|
reviewsQuestroom: typeof reviewsQuestroom;
|
|
25
37
|
reviewsProfile: typeof reviewsProfile;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.agregatorApiDeclaration = void 0;
|
|
4
|
+
var current_1 = require("./players/current");
|
|
5
|
+
var current_update_1 = require("./players/current-update");
|
|
6
|
+
var login_1 = require("./players/login");
|
|
7
|
+
var logout_1 = require("./players/logout");
|
|
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");
|
|
4
13
|
var create_subscription_1 = require("./create-subscription");
|
|
5
14
|
var find_cities_by_country_1 = require("./find-cities-by-country");
|
|
6
15
|
var find_city_by_slug_1 = require("./find-city-by-slug");
|
|
@@ -19,11 +28,13 @@ var find_questrooms_for_main_page_1 = require("./find-questrooms-for-main-page")
|
|
|
19
28
|
var find_questrooms_search_1 = require("./find-questrooms-search");
|
|
20
29
|
var find_questrooms_with_certificates_1 = require("./find-questrooms-with-certificates");
|
|
21
30
|
var find_similar_questrooms_near_1 = require("./find-similar-questrooms-near");
|
|
22
|
-
var reviews_city_1 = require("./reviews-city");
|
|
23
|
-
var reviews_profile_1 = require("./reviews-profile");
|
|
24
|
-
var reviews_questroom_1 = require("./reviews-questroom");
|
|
25
31
|
exports.agregatorApiDeclaration = {
|
|
26
32
|
findPopularCitiesAndQuestrooms: find_popular_cities_and_questrooms_1.findPopularCitiesAndQuestrooms,
|
|
33
|
+
currentPlayer: current_1.current,
|
|
34
|
+
login: login_1.login,
|
|
35
|
+
logout: logout_1.logout,
|
|
36
|
+
sendCode: send_code_1.sendCode,
|
|
37
|
+
currentPlayerUpdate: current_update_1.currentUpdate,
|
|
27
38
|
reviewsProfile: reviews_profile_1.reviewsProfile,
|
|
28
39
|
reviewsQuestroom: reviews_questroom_1.reviewsQuestroom,
|
|
29
40
|
reviewsCity: reviews_city_1.reviewsCity,
|
|
@@ -39,6 +50,7 @@ exports.agregatorApiDeclaration = {
|
|
|
39
50
|
findQuestroomsByOrganizationId: find_questrooms_by_organization_id_1.findQuestroomsByOrganizationId,
|
|
40
51
|
findQuestroomsByTag: find_questrooms_by_tag_1.findQuestroomsByTag,
|
|
41
52
|
findQuestroomsByTitle: find_questrooms_by_title_1.findQuestroomsByTitle,
|
|
53
|
+
createReview: create_review_1.createReview,
|
|
42
54
|
findSimilaQuestroomsNear: find_similar_questrooms_near_1.findSimilaQuestroomsNear,
|
|
43
55
|
findPosts: find_posts_1.findPosts,
|
|
44
56
|
findPostBySlug: find_post_by_slug_1.findPostBySlug,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PlayerRO } from '@escapenavigator/types/dist/player/player.ro';
|
|
2
2
|
import { UpadteCurrentPlayerDto } from '@escapenavigator/types/dist/player/update-current.dto';
|
|
3
|
-
import { ApiMethodDeclaration } from '
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: UpadteCurrentPlayerDto;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckCodeDto } from '@escapenavigator/types/dist/player/check-code.dto';
|
|
2
2
|
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
|
-
import { ApiMethodDeclaration } from '
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
4
|
declare type ParamsData = CheckCodeDto;
|
|
5
5
|
declare type ResponseData = SuccessRO;
|
|
6
6
|
export declare const login: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
3
|
declare type ParamsData = undefined;
|
|
4
4
|
declare type ResponseData = SuccessRO;
|
|
5
5
|
export declare const logout: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
3
|
declare type ParamsData = string;
|
|
4
4
|
declare type ResponseData = SuccessRO;
|
|
5
5
|
export declare const sendCode: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -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;
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import { current } from './current';
|
|
2
|
-
import { currentUpdate } from './current-update';
|
|
3
|
-
import { login } from './login';
|
|
4
|
-
import { logout } from './logout';
|
|
5
1
|
import { query } from './query';
|
|
6
|
-
import { sendCode } from './send-code';
|
|
7
2
|
declare type ApiDeclaration = {
|
|
8
|
-
sendCode: typeof sendCode;
|
|
9
3
|
query: typeof query;
|
|
10
|
-
login: typeof login;
|
|
11
|
-
current: typeof current;
|
|
12
|
-
currentUpdate: typeof currentUpdate;
|
|
13
|
-
logout: typeof logout;
|
|
14
4
|
};
|
|
15
5
|
export declare const playersApiDeclaration: ApiDeclaration;
|
|
16
6
|
export {};
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.playersApiDeclaration = void 0;
|
|
4
|
-
var current_1 = require("./current");
|
|
5
|
-
var current_update_1 = require("./current-update");
|
|
6
|
-
var login_1 = require("./login");
|
|
7
|
-
var logout_1 = require("./logout");
|
|
8
4
|
var query_1 = require("./query");
|
|
9
|
-
var send_code_1 = require("./send-code");
|
|
10
5
|
exports.playersApiDeclaration = {
|
|
11
|
-
sendCode: send_code_1.sendCode,
|
|
12
|
-
login: login_1.login,
|
|
13
6
|
query: query_1.query,
|
|
14
|
-
current: current_1.current,
|
|
15
|
-
currentUpdate: current_update_1.currentUpdate,
|
|
16
|
-
logout: logout_1.logout,
|
|
17
7
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.72",
|
|
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": "d0601f32456516d9379c8cdbd307b3711cfe1e1e",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.67",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.69",
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|