@escapenavigator/services 1.6.52 → 1.6.54
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/statistics-api/general.d.ts +10 -0
- package/dist/api/statistics-api/general.js +9 -0
- package/dist/api/statistics-api/get-monthly-general-statisctics.d.ts +4 -1
- package/dist/api/statistics-api/get-monthly-general-statisctics.js +3 -2
- package/dist/api/statistics-api/index.d.ts +2 -0
- package/dist/api/statistics-api/index.js +2 -0
- package/package.json +4 -4
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GeneralStatiscticsRO } from '@escapenavigator/types/dist/statistics/general';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
questroomsIds: number[];
|
|
5
|
+
date: string;
|
|
6
|
+
type: 'month' | 'year';
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = GeneralStatiscticsRO;
|
|
9
|
+
export declare const generalStatisctics: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generalStatisctics = void 0;
|
|
4
|
+
var generalStatisctics = function (params) { return ({
|
|
5
|
+
url: '/statistics/general',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.generalStatisctics = generalStatisctics;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { MonthlyGeneralStatiscticsRO } from '@escapenavigator/types/dist/statistics/monthly-general-statisctics.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
declare type ParamsData =
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
questroomsIds: number[];
|
|
5
|
+
month: string;
|
|
6
|
+
};
|
|
4
7
|
declare type ResponseData = MonthlyGeneralStatiscticsRO;
|
|
5
8
|
export declare const getMonthlyGeneralStatisctics: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
9
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getMonthlyGeneralStatisctics = void 0;
|
|
4
|
-
var getMonthlyGeneralStatisctics = function (
|
|
5
|
-
url:
|
|
4
|
+
var getMonthlyGeneralStatisctics = function (params) { return ({
|
|
5
|
+
url: '/statistics/monthly',
|
|
6
6
|
method: 'GET',
|
|
7
|
+
params: params,
|
|
7
8
|
}); };
|
|
8
9
|
exports.getMonthlyGeneralStatisctics = getMonthlyGeneralStatisctics;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { generalStatisctics } from './general';
|
|
1
2
|
import { getMonthlyGeneralStatisctics } from './get-monthly-general-statisctics';
|
|
2
3
|
declare type ApiDeclaration = {
|
|
4
|
+
generalStatisctics: typeof generalStatisctics;
|
|
3
5
|
getMonthlyGeneralStatisctics: typeof getMonthlyGeneralStatisctics;
|
|
4
6
|
};
|
|
5
7
|
export declare const statisticsApiDeclaration: ApiDeclaration;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.statisticsApiDeclaration = void 0;
|
|
4
|
+
var general_1 = require("./general");
|
|
4
5
|
var get_monthly_general_statisctics_1 = require("./get-monthly-general-statisctics");
|
|
5
6
|
exports.statisticsApiDeclaration = {
|
|
6
7
|
getMonthlyGeneralStatisctics: get_monthly_general_statisctics_1.getMonthlyGeneralStatisctics,
|
|
8
|
+
generalStatisctics: general_1.generalStatisctics,
|
|
7
9
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.54",
|
|
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": "bbbc1cefff44d015eddb6d7d456d1afc02cdc10a",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.51",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.52",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1",
|