@escapenavigator/services 1.6.69 → 1.6.70
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 +6 -0
- package/dist/api/agregator-api/index.js +6 -0
- package/dist/api/agregator-api/reviews-city.d.ts +9 -0
- package/dist/api/agregator-api/reviews-city.js +9 -0
- package/dist/api/agregator-api/reviews-profile.d.ts +9 -0
- package/dist/api/agregator-api/reviews-profile.js +9 -0
- package/dist/api/agregator-api/reviews-questroom.d.ts +9 -0
- package/dist/api/agregator-api/reviews-questroom.js +9 -0
- package/dist/api/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/dist/api/players-api/current-update.d.ts +9 -0
- package/dist/api/players-api/current-update.js +12 -0
- package/dist/api/players-api/current.d.ts +7 -0
- package/dist/api/players-api/current.js +8 -0
- package/dist/api/players-api/index.d.ts +16 -0
- package/dist/api/players-api/index.js +17 -0
- package/dist/api/players-api/login.d.ts +7 -0
- package/dist/api/players-api/login.js +9 -0
- package/dist/api/players-api/logout.d.ts +6 -0
- package/dist/api/players-api/logout.js +8 -0
- package/dist/api/players-api/query.d.ts +8 -0
- package/dist/api/{reviews-social-api → players-api}/query.js +1 -1
- package/dist/api/players-api/send-code.d.ts +6 -0
- package/dist/api/players-api/send-code.js +8 -0
- package/dist/api/reviews-social-api/create.d.ts +3 -1
- package/dist/api/reviews-social-api/create.js +8 -5
- package/dist/api/reviews-social-api/index.d.ts +4 -2
- package/dist/api/reviews-social-api/index.js +4 -2
- package/dist/api/reviews-social-api/{query.d.ts → query-admin.d.ts} +1 -1
- package/dist/api/reviews-social-api/query-admin.js +9 -0
- package/dist/api/reviews-social-api/query-profile.d.ts +8 -0
- package/dist/api/reviews-social-api/query-profile.js +9 -0
- package/package.json +4 -4
|
@@ -16,7 +16,13 @@ import { findQuestroomsForMainPage } from './find-questrooms-for-main-page';
|
|
|
16
16
|
import { findQuestroomsSearch } from './find-questrooms-search';
|
|
17
17
|
import { findQuestroomsWithCertificates } from './find-questrooms-with-certificates';
|
|
18
18
|
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';
|
|
19
22
|
declare type ApiDeclaration = {
|
|
23
|
+
reviewsCity: typeof reviewsCity;
|
|
24
|
+
reviewsQuestroom: typeof reviewsQuestroom;
|
|
25
|
+
reviewsProfile: typeof reviewsProfile;
|
|
20
26
|
findPopularCitiesAndQuestrooms: typeof findPopularCitiesAndQuestrooms;
|
|
21
27
|
findFavorites: typeof findFavorites;
|
|
22
28
|
findQuestroomsWithCertificates: typeof findQuestroomsWithCertificates;
|
|
@@ -19,8 +19,14 @@ var find_questrooms_for_main_page_1 = require("./find-questrooms-for-main-page")
|
|
|
19
19
|
var find_questrooms_search_1 = require("./find-questrooms-search");
|
|
20
20
|
var find_questrooms_with_certificates_1 = require("./find-questrooms-with-certificates");
|
|
21
21
|
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");
|
|
22
25
|
exports.agregatorApiDeclaration = {
|
|
23
26
|
findPopularCitiesAndQuestrooms: find_popular_cities_and_questrooms_1.findPopularCitiesAndQuestrooms,
|
|
27
|
+
reviewsProfile: reviews_profile_1.reviewsProfile,
|
|
28
|
+
reviewsQuestroom: reviews_questroom_1.reviewsQuestroom,
|
|
29
|
+
reviewsCity: reviews_city_1.reviewsCity,
|
|
24
30
|
findFavorites: find_favorites_1.findFavorites,
|
|
25
31
|
findQuestroomsForMainPage: find_questrooms_for_main_page_1.findQuestroomsForMainPage,
|
|
26
32
|
findQuestroomsWithCertificates: find_questrooms_with_certificates_1.findQuestroomsWithCertificates,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SocialReviewRO } from '@escapenavigator/types/dist/review/social-review.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
cityId: number;
|
|
5
|
+
skip: number;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = SocialReviewRO[];
|
|
8
|
+
export declare const reviewsCity: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reviewsCity = void 0;
|
|
4
|
+
var reviewsCity = function (params) { return ({
|
|
5
|
+
url: '/agregator/city/reviews',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.reviewsCity = reviewsCity;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SocialReviewRO } from '@escapenavigator/types/dist/review/social-review.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
profileId: number;
|
|
5
|
+
skip: number;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = SocialReviewRO[];
|
|
8
|
+
export declare const reviewsProfile: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reviewsProfile = void 0;
|
|
4
|
+
var reviewsProfile = function (params) { return ({
|
|
5
|
+
url: '/agregator/profile/reviews',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.reviewsProfile = reviewsProfile;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SocialReviewRO } from '@escapenavigator/types/dist/review/social-review.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
questroomId: number;
|
|
5
|
+
skip: number;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = SocialReviewRO[];
|
|
8
|
+
export declare const reviewsQuestroom: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reviewsQuestroom = void 0;
|
|
4
|
+
var reviewsQuestroom = function (params) { return ({
|
|
5
|
+
url: '/agregator/questroom/reviews',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.reviewsQuestroom = reviewsQuestroom;
|
|
@@ -27,6 +27,7 @@ import { orderTransactionsApiDeclaration } from './order-transactions-api';
|
|
|
27
27
|
import { orderUpsellngsApiDeclaration } from './order-upsellings-api';
|
|
28
28
|
import { ordersApiDeclaration } from './orders-api';
|
|
29
29
|
import { partnersApiDeclaration } from './partners-api';
|
|
30
|
+
import { playersApiDeclaration } from './players-api';
|
|
30
31
|
import { profilesApiDeclaration } from './profiles-api';
|
|
31
32
|
import { promocodesApiDeclaration } from './promocodes-api';
|
|
32
33
|
import { questroomsApiDeclaration } from './questrooms-api';
|
|
@@ -51,6 +52,7 @@ import { usersApiDeclaration } from './users-api';
|
|
|
51
52
|
import { widgetsApiDeclaration } from './widgets-api';
|
|
52
53
|
import { Api } from '.';
|
|
53
54
|
export declare type InitApiDeclaration = {
|
|
55
|
+
playersApi: Api<typeof playersApiDeclaration>;
|
|
54
56
|
googleCalendarsApi: Api<typeof googleCalendarsApiDeclaration>;
|
|
55
57
|
slotRulesApi: Api<typeof slotRulesApi>;
|
|
56
58
|
orderTransactionsApi: Api<typeof orderTransactionsApiDeclaration>;
|
|
@@ -30,6 +30,7 @@ var order_transactions_api_1 = require("./order-transactions-api");
|
|
|
30
30
|
var order_upsellings_api_1 = require("./order-upsellings-api");
|
|
31
31
|
var orders_api_1 = require("./orders-api");
|
|
32
32
|
var partners_api_1 = require("./partners-api");
|
|
33
|
+
var players_api_1 = require("./players-api");
|
|
33
34
|
var profiles_api_1 = require("./profiles-api");
|
|
34
35
|
var promocodes_api_1 = require("./promocodes-api");
|
|
35
36
|
var questrooms_api_1 = require("./questrooms-api");
|
|
@@ -54,6 +55,7 @@ var users_api_1 = require("./users-api");
|
|
|
54
55
|
var widgets_api_1 = require("./widgets-api");
|
|
55
56
|
var _1 = require(".");
|
|
56
57
|
var initClientApi = function (url) { return ({
|
|
58
|
+
playersApi: (0, _1.initApi)(players_api_1.playersApiDeclaration, url),
|
|
57
59
|
nowEscape: (0, _1.initApi)(now_escape_api_1.nowEscapeApiDeclaration, url),
|
|
58
60
|
googleCalendarsApi: (0, _1.initApi)(google_calendars_api_1.googleCalendarsApiDeclaration, url),
|
|
59
61
|
slotRulesApi: (0, _1.initApi)(slot_rules_api_1.slotRulesApi, url),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PlayerRO } from '@escapenavigator/types/dist/player/player.ro';
|
|
2
|
+
import { UpadteCurrentPlayerDto } from '@escapenavigator/types/dist/player/update-current.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: UpadteCurrentPlayerDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = PlayerRO;
|
|
8
|
+
export declare const currentUpdate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.currentUpdate = void 0;
|
|
4
|
+
var currentUpdate = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/players/current',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.currentUpdate = currentUpdate;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PlayerRO } from '@escapenavigator/types/dist/player/player.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID партнера */
|
|
4
|
+
declare type ParamsData = undefined;
|
|
5
|
+
declare type ResponseData = PlayerRO;
|
|
6
|
+
export declare const current: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { current } from './current';
|
|
2
|
+
import { currentUpdate } from './current-update';
|
|
3
|
+
import { login } from './login';
|
|
4
|
+
import { logout } from './logout';
|
|
5
|
+
import { query } from './query';
|
|
6
|
+
import { sendCode } from './send-code';
|
|
7
|
+
declare type ApiDeclaration = {
|
|
8
|
+
sendCode: typeof sendCode;
|
|
9
|
+
query: typeof query;
|
|
10
|
+
login: typeof login;
|
|
11
|
+
current: typeof current;
|
|
12
|
+
currentUpdate: typeof currentUpdate;
|
|
13
|
+
logout: typeof logout;
|
|
14
|
+
};
|
|
15
|
+
export declare const playersApiDeclaration: ApiDeclaration;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
+
var query_1 = require("./query");
|
|
9
|
+
var send_code_1 = require("./send-code");
|
|
10
|
+
exports.playersApiDeclaration = {
|
|
11
|
+
sendCode: send_code_1.sendCode,
|
|
12
|
+
login: login_1.login,
|
|
13
|
+
query: query_1.query,
|
|
14
|
+
current: current_1.current,
|
|
15
|
+
currentUpdate: current_update_1.currentUpdate,
|
|
16
|
+
logout: logout_1.logout,
|
|
17
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CheckCodeDto } from '@escapenavigator/types/dist/player/check-code.dto';
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = CheckCodeDto;
|
|
5
|
+
declare type ResponseData = SuccessRO;
|
|
6
|
+
export declare const login: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = SuccessRO;
|
|
5
|
+
export declare const logout: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PlayerRO } from '@escapenavigator/types/dist/player/player.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<PlayerRO>;
|
|
7
|
+
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = SuccessRO;
|
|
5
|
+
export declare const sendCode: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { CreateSocialReviewDto } from '@escapenavigator/types/dist/review/create-social-review.dto';
|
|
2
2
|
import { SocialReviewRO } from '@escapenavigator/types/dist/review/social-review.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
declare type ParamsData =
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateSocialReviewDto;
|
|
6
|
+
};
|
|
5
7
|
declare type ResponseData = SocialReviewRO;
|
|
6
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
9
|
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.create = void 0;
|
|
4
|
-
var create = function (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var create = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/reviews',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
9
12
|
exports.create = create;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { answer } from './answer';
|
|
2
2
|
import { approve } from './approve';
|
|
3
3
|
import { create } from './create';
|
|
4
|
-
import {
|
|
4
|
+
import { queryAdmin } from './query-admin';
|
|
5
|
+
import { queryProfile } from './query-profile';
|
|
5
6
|
import { remove } from './remove';
|
|
6
7
|
import { unapprove } from './unapprove';
|
|
7
8
|
declare type ApiDeclaration = {
|
|
8
9
|
create: typeof create;
|
|
9
10
|
remove: typeof remove;
|
|
10
11
|
approve: typeof approve;
|
|
11
|
-
|
|
12
|
+
queryProfile: typeof queryProfile;
|
|
12
13
|
unapprove: typeof unapprove;
|
|
14
|
+
queryAdmin: typeof queryAdmin;
|
|
13
15
|
answer: typeof answer;
|
|
14
16
|
};
|
|
15
17
|
export declare const socialReviewsApiDeclaration: ApiDeclaration;
|
|
@@ -4,14 +4,16 @@ exports.socialReviewsApiDeclaration = void 0;
|
|
|
4
4
|
var answer_1 = require("./answer");
|
|
5
5
|
var approve_1 = require("./approve");
|
|
6
6
|
var create_1 = require("./create");
|
|
7
|
-
var
|
|
7
|
+
var query_admin_1 = require("./query-admin");
|
|
8
|
+
var query_profile_1 = require("./query-profile");
|
|
8
9
|
var remove_1 = require("./remove");
|
|
9
10
|
var unapprove_1 = require("./unapprove");
|
|
10
11
|
exports.socialReviewsApiDeclaration = {
|
|
11
12
|
create: create_1.create,
|
|
12
13
|
remove: remove_1.remove,
|
|
14
|
+
queryAdmin: query_admin_1.queryAdmin,
|
|
13
15
|
approve: approve_1.approve,
|
|
14
|
-
|
|
16
|
+
queryProfile: query_profile_1.queryProfile,
|
|
15
17
|
unapprove: unapprove_1.unapprove,
|
|
16
18
|
answer: answer_1.answer,
|
|
17
19
|
};
|
|
@@ -4,5 +4,5 @@ import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
|
4
4
|
import { ApiMethodDeclaration } from '..';
|
|
5
5
|
declare type ParamsData = QueryDto;
|
|
6
6
|
declare type ResponseData = QueryRO<SocialReviewRO>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const queryAdmin: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SocialReviewRO } from '@escapenavigator/types/dist/review/social-review.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<SocialReviewRO>;
|
|
7
|
+
export declare const queryProfile: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryProfile = void 0;
|
|
4
|
+
var queryProfile = function (params) { return ({
|
|
5
|
+
url: '/reviews/profile',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.queryProfile = queryProfile;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.70",
|
|
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": "772c6186b5032240a532e49c10651ad7388dae4d",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.66",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.68",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1",
|