@escapenavigator/services 2.1.10 → 2.1.13
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.
|
@@ -33,6 +33,7 @@ import { login } from './players/login';
|
|
|
33
33
|
import { logout } from './players/logout';
|
|
34
34
|
import { removeFavorite } from './players/remove-favorite';
|
|
35
35
|
import { sendCode } from './players/send-code';
|
|
36
|
+
import { cityAvailableSlots } from './questrooms/city-available-slots';
|
|
36
37
|
import { cityInitialQuestrooms } from './questrooms/city-initial-questrooms';
|
|
37
38
|
import { cityOtherQuestrooms } from './questrooms/city-other-questrooms';
|
|
38
39
|
import { countQuestrooms } from './questrooms/count-questrooms';
|
|
@@ -90,6 +91,7 @@ type ApiDeclaration = {
|
|
|
90
91
|
findQuestroomsByTitle: typeof findQuestroomsByTitle;
|
|
91
92
|
questroomsSearch: typeof questroomsSearch;
|
|
92
93
|
sitemap: typeof sitemap;
|
|
94
|
+
cityAvailableSlots: typeof cityAvailableSlots;
|
|
93
95
|
cityInitialQuestrooms: typeof cityInitialQuestrooms;
|
|
94
96
|
cityOtherQuestrooms: typeof cityOtherQuestrooms;
|
|
95
97
|
findQuestroomBySlug: typeof findQuestroomBySlug;
|
|
@@ -36,6 +36,7 @@ var login_1 = require("./players/login");
|
|
|
36
36
|
var logout_1 = require("./players/logout");
|
|
37
37
|
var remove_favorite_1 = require("./players/remove-favorite");
|
|
38
38
|
var send_code_1 = require("./players/send-code");
|
|
39
|
+
var city_available_slots_1 = require("./questrooms/city-available-slots");
|
|
39
40
|
var city_initial_questrooms_1 = require("./questrooms/city-initial-questrooms");
|
|
40
41
|
var city_other_questrooms_1 = require("./questrooms/city-other-questrooms");
|
|
41
42
|
var count_questrooms_1 = require("./questrooms/count-questrooms");
|
|
@@ -80,6 +81,7 @@ exports.agregatorApiDeclaration = {
|
|
|
80
81
|
sitemap: sitemap_1.sitemap,
|
|
81
82
|
currentPlayer: current_1.current,
|
|
82
83
|
login: login_1.login,
|
|
84
|
+
cityAvailableSlots: city_available_slots_1.cityAvailableSlots,
|
|
83
85
|
cityOtherQuestrooms: city_other_questrooms_1.cityOtherQuestrooms,
|
|
84
86
|
findAllCompanies: find_organizations_1.findAllCompanies,
|
|
85
87
|
countQuestrooms: count_questrooms_1.countQuestrooms,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AgregatorCityAvailableSlotsRO } from '@escapenavigator/types/dist/agregator/agregator-city-available-slots.ro';
|
|
2
|
+
import { Languages } from '@escapenavigator/types/dist/shared/enum/languages.enum';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
cityId: number;
|
|
6
|
+
date: string;
|
|
7
|
+
language?: Languages;
|
|
8
|
+
};
|
|
9
|
+
export declare const cityAvailableSlots: ApiMethodDeclaration<ParamsData, AgregatorCityAvailableSlotsRO>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cityAvailableSlots = void 0;
|
|
4
|
+
var cityAvailableSlots = function (_a) {
|
|
5
|
+
var cityId = _a.cityId, date = _a.date, language = _a.language;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/agregator/questrooms/city/".concat(cityId, "/available-slots"),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: { date: date, language: language },
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.cityAvailableSlots = cityAvailableSlots;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.13",
|
|
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": "24892c826a22e18e8fb9fccbc8c10d62033208bc",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^2.1.
|
|
18
|
-
"@escapenavigator/utils": "^2.1.
|
|
17
|
+
"@escapenavigator/types": "^2.1.12",
|
|
18
|
+
"@escapenavigator/utils": "^2.1.13",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|