@escapenavigator/services 2.0.13 → 2.0.14
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.
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CityPlayerAppleLoginDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-apple-login.dto';
|
|
2
|
+
import { CityPlayerLoginDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-login.dto';
|
|
3
|
+
import { CityPlayerRequestCodeDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-request-code.dto';
|
|
4
|
+
import { CityPlayerVerifyCodeDto } from '@escapenavigator/types/dist/openapi/city-player/city-player-verify-code.dto';
|
|
5
|
+
import { CityPlayerCatalogRO, CityPlayerGameRO, CityPlayerLoginRO, CityPlayerRequestCodeRO, CityPlayerRO, CityPlayerVerifyCodeRO } from '@escapenavigator/types/dist/openapi/city-player/city-player.ro';
|
|
6
|
+
import { ApiMethodDeclaration } from '..';
|
|
7
|
+
export declare const cityPlayerApiDeclaration: {
|
|
8
|
+
ping: ApiMethodDeclaration<void, {
|
|
9
|
+
ok: boolean;
|
|
10
|
+
time: string;
|
|
11
|
+
}>;
|
|
12
|
+
login: ApiMethodDeclaration<{
|
|
13
|
+
data: CityPlayerLoginDto;
|
|
14
|
+
}, CityPlayerLoginRO>;
|
|
15
|
+
requestCode: ApiMethodDeclaration<{
|
|
16
|
+
data: CityPlayerRequestCodeDto;
|
|
17
|
+
}, CityPlayerRequestCodeRO>;
|
|
18
|
+
verifyCode: ApiMethodDeclaration<{
|
|
19
|
+
data: CityPlayerVerifyCodeDto;
|
|
20
|
+
}, CityPlayerVerifyCodeRO>;
|
|
21
|
+
appleLogin: ApiMethodDeclaration<{
|
|
22
|
+
data: CityPlayerAppleLoginDto;
|
|
23
|
+
}, CityPlayerVerifyCodeRO>;
|
|
24
|
+
me: ApiMethodDeclaration<void, CityPlayerRO>;
|
|
25
|
+
games: ApiMethodDeclaration<void, CityPlayerGameRO[]>;
|
|
26
|
+
catalog: ApiMethodDeclaration<void, CityPlayerCatalogRO>;
|
|
27
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cityPlayerApiDeclaration = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* API потребительского игрока (Routale). Один app — два бека: запросы
|
|
6
|
+
* идут через failover-обёртку в приложении, которая при 404/401 ретраит
|
|
7
|
+
* второй домен и закрепляет рабочий.
|
|
8
|
+
*/
|
|
9
|
+
var ping = function () { return ({
|
|
10
|
+
url: '/openapi/city-player/ping',
|
|
11
|
+
method: 'GET',
|
|
12
|
+
}); };
|
|
13
|
+
var login = function (_a) {
|
|
14
|
+
var data = _a.data;
|
|
15
|
+
return ({
|
|
16
|
+
url: '/openapi/city-player/login',
|
|
17
|
+
method: 'POST',
|
|
18
|
+
data: data,
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var requestCode = function (_a) {
|
|
22
|
+
var data = _a.data;
|
|
23
|
+
return ({
|
|
24
|
+
url: '/openapi/city-player/request-code',
|
|
25
|
+
method: 'POST',
|
|
26
|
+
data: data,
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
var verifyCode = function (_a) {
|
|
30
|
+
var data = _a.data;
|
|
31
|
+
return ({
|
|
32
|
+
url: '/openapi/city-player/verify-code',
|
|
33
|
+
method: 'POST',
|
|
34
|
+
data: data,
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var appleLogin = function (_a) {
|
|
38
|
+
var data = _a.data;
|
|
39
|
+
return ({
|
|
40
|
+
url: '/openapi/city-player/apple',
|
|
41
|
+
method: 'POST',
|
|
42
|
+
data: data,
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var me = function () { return ({
|
|
46
|
+
url: '/openapi/city-player/me',
|
|
47
|
+
method: 'GET',
|
|
48
|
+
}); };
|
|
49
|
+
var games = function () { return ({
|
|
50
|
+
url: '/openapi/city-player/games',
|
|
51
|
+
method: 'GET',
|
|
52
|
+
}); };
|
|
53
|
+
var catalog = function () { return ({
|
|
54
|
+
url: '/openapi/city-player/catalog',
|
|
55
|
+
method: 'GET',
|
|
56
|
+
}); };
|
|
57
|
+
exports.cityPlayerApiDeclaration = {
|
|
58
|
+
ping: ping,
|
|
59
|
+
login: login,
|
|
60
|
+
requestCode: requestCode,
|
|
61
|
+
verifyCode: verifyCode,
|
|
62
|
+
appleLogin: appleLogin,
|
|
63
|
+
me: me,
|
|
64
|
+
games: games,
|
|
65
|
+
catalog: catalog,
|
|
66
|
+
};
|
|
@@ -17,6 +17,7 @@ import { certificatesaleDiscountsApiDeclaration } from './certificatesales-disco
|
|
|
17
17
|
import { certificateUploadsApiDeclaration } from './certificateuploads-api';
|
|
18
18
|
import { checklistApiDeclaration } from './checklist-api';
|
|
19
19
|
import { citiesApiDeclaration } from './cities-api';
|
|
20
|
+
import { cityPlayerApiDeclaration } from './city-player-api';
|
|
20
21
|
import { cityQuestsApiDeclaration } from './city-quest-api';
|
|
21
22
|
import { cityQuestPlayApiDeclaration } from './city-quest-play-api';
|
|
22
23
|
import { clientsApiDeclaration } from './clients-api';
|
|
@@ -96,6 +97,7 @@ export type InitApiDeclaration = {
|
|
|
96
97
|
gameSessionApi: Api<typeof gameSessionApiDeclaration>;
|
|
97
98
|
cityQuestsApi: Api<typeof cityQuestsApiDeclaration>;
|
|
98
99
|
cityQuestPlayApi: Api<typeof cityQuestPlayApiDeclaration>;
|
|
100
|
+
cityPlayerApi: Api<typeof cityPlayerApiDeclaration>;
|
|
99
101
|
checklistApi: Api<typeof checklistApiDeclaration>;
|
|
100
102
|
mailchimpApi: Api<typeof mailchimpApiDeclaration>;
|
|
101
103
|
playersApi: Api<typeof playersApiDeclaration>;
|
|
@@ -20,6 +20,7 @@ var certificatesales_discounts_api_1 = require("./certificatesales-discounts-api
|
|
|
20
20
|
var certificateuploads_api_1 = require("./certificateuploads-api");
|
|
21
21
|
var checklist_api_1 = require("./checklist-api");
|
|
22
22
|
var cities_api_1 = require("./cities-api");
|
|
23
|
+
var city_player_api_1 = require("./city-player-api");
|
|
23
24
|
var city_quest_api_1 = require("./city-quest-api");
|
|
24
25
|
var city_quest_play_api_1 = require("./city-quest-play-api");
|
|
25
26
|
var clients_api_1 = require("./clients-api");
|
|
@@ -101,6 +102,7 @@ var initClientApi = function (url, clientOptions) { return ({
|
|
|
101
102
|
gameSessionApi: (0, _1.initApi)(game_session_api_1.gameSessionApiDeclaration, url, clientOptions),
|
|
102
103
|
cityQuestsApi: (0, _1.initApi)(city_quest_api_1.cityQuestsApiDeclaration, url, clientOptions),
|
|
103
104
|
cityQuestPlayApi: (0, _1.initApi)(city_quest_play_api_1.cityQuestPlayApiDeclaration, url, clientOptions),
|
|
105
|
+
cityPlayerApi: (0, _1.initApi)(city_player_api_1.cityPlayerApiDeclaration, url, clientOptions),
|
|
104
106
|
checklistApi: (0, _1.initApi)(checklist_api_1.checklistApiDeclaration, url, clientOptions),
|
|
105
107
|
playersApi: (0, _1.initApi)(players_api_1.playersApiDeclaration, url, clientOptions),
|
|
106
108
|
mailchimpApi: (0, _1.initApi)(mailchimp_api_1.mailchimpApiDeclaration, url, clientOptions),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
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": "d1cfc59b706d0fa0de15b7c5d79934b353f49cc8",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.0.
|
|
18
|
-
"@escapenavigator/utils": "^2.0.
|
|
17
|
+
"@escapenavigator/types": "^2.0.13",
|
|
18
|
+
"@escapenavigator/utils": "^2.0.14",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|