@escapenavigator/services 1.4.40 → 1.4.42
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/cashboxes-api/get-verification-link.d.ts +5 -0
- package/dist/api/cashboxes-api/get-verification-link.js +8 -0
- package/dist/api/cashboxes-api/index.d.ts +2 -0
- package/dist/api/cashboxes-api/index.js +2 -0
- package/dist/api/certificates-api/create.d.ts +2 -2
- package/dist/api/certificates-api/get-one.d.ts +2 -2
- package/dist/api/certificates-api/query.d.ts +2 -2
- package/dist/api/certificates-api/recover.d.ts +2 -2
- package/dist/api/certificates-api/remove.d.ts +2 -2
- package/dist/api/certificates-api/update.d.ts +2 -2
- package/dist/api/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/dist/api/questrooms-api/create.d.ts +2 -2
- package/dist/api/questrooms-api/get-one.d.ts +2 -2
- package/dist/api/questrooms-api/query.d.ts +2 -2
- package/dist/api/questrooms-api/recover.d.ts +2 -2
- package/dist/api/questrooms-api/remove.d.ts +2 -2
- package/dist/api/questrooms-api/update.d.ts +2 -2
- package/dist/api/statistics-api/get-monthly-general-statisctics.d.ts +6 -0
- package/dist/api/statistics-api/get-monthly-general-statisctics.js +8 -0
- package/dist/api/statistics-api/index.d.ts +6 -0
- package/dist/api/statistics-api/index.js +7 -0
- package/package.json +3 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getVerificationLink = void 0;
|
|
4
|
+
var getVerificationLink = function (cashboxId) { return ({
|
|
5
|
+
url: "/cashboxes/verification-link/".concat(cashboxId),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getVerificationLink = getVerificationLink;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { create } from './create';
|
|
2
2
|
import { getOne } from './get-one';
|
|
3
|
+
import { getVerificationLink } from './get-verification-link';
|
|
3
4
|
import { query } from './query';
|
|
4
5
|
import { remove } from './remove';
|
|
5
6
|
import { update } from './update';
|
|
6
7
|
declare type ApiDeclaration = {
|
|
8
|
+
getVerificationLink: typeof getVerificationLink;
|
|
7
9
|
getOne: typeof getOne;
|
|
8
10
|
create: typeof create;
|
|
9
11
|
remove: typeof remove;
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.cashboxesApiDeclaration = void 0;
|
|
4
4
|
var create_1 = require("./create");
|
|
5
5
|
var get_one_1 = require("./get-one");
|
|
6
|
+
var get_verification_link_1 = require("./get-verification-link");
|
|
6
7
|
var query_1 = require("./query");
|
|
7
8
|
var remove_1 = require("./remove");
|
|
8
9
|
var update_1 = require("./update");
|
|
9
10
|
exports.cashboxesApiDeclaration = {
|
|
10
11
|
create: create_1.create,
|
|
12
|
+
getVerificationLink: get_verification_link_1.getVerificationLink,
|
|
11
13
|
remove: remove_1.remove,
|
|
12
14
|
query: query_1.query,
|
|
13
15
|
getOne: get_one_1.getOne,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateRO } from '@escapenavigator/types/dist/certificate/certificate.ro';
|
|
2
2
|
import { CreateCertificateDto } from '@escapenavigator/types/dist/certificate/create-certificate.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateCertificateDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = CertificateRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateRO } from '@escapenavigator/types/dist/certificate/certificate.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID сертификата */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = CertificateRO;
|
|
6
6
|
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateRO } from '@escapenavigator/types/dist/certificate/certificate.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
declare type ParamsData = undefined;
|
|
4
|
-
declare type ResponseData =
|
|
4
|
+
declare type ResponseData = CertificateRO[];
|
|
5
5
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateRO } from '@escapenavigator/types/dist/certificate/certificate.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID сертификата */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = CertificateRO;
|
|
6
6
|
export declare const recover: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateRO } from '@escapenavigator/types/dist/certificate/certificate.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID сертификата */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = CertificateRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CertificateRO } from '@escapenavigator/types/dist/certificate/certificate.ro';
|
|
2
2
|
import { UpdateCertificateDto } from '@escapenavigator/types/dist/certificate/update-certificate.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: UpdateCertificateDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = CertificateRO;
|
|
9
9
|
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -28,6 +28,7 @@ import { rolesApiDeclaration } from './roles-api';
|
|
|
28
28
|
import { searchApiDeclaration } from './search-api';
|
|
29
29
|
import { slotTemplatesApiDeclaration } from './slot-templates-api';
|
|
30
30
|
import { slotsApiDeclaration } from './slots-api';
|
|
31
|
+
import { statisticsApiDeclaration } from './statistics-api';
|
|
31
32
|
import { subscriptionApiDeclaration } from './subscription-api';
|
|
32
33
|
import { supportApiDeclaration } from './support';
|
|
33
34
|
import { tariffsApiDeclaration } from './tariffs-api';
|
|
@@ -41,6 +42,7 @@ import { widgetsOpenApiDeclaration } from './widgets-openapi';
|
|
|
41
42
|
import { widgetsOrdersDeclaration } from './widgets-orders';
|
|
42
43
|
import { Api } from '.';
|
|
43
44
|
export declare type InitApiDeclaration = {
|
|
45
|
+
statiscticsApi: Api<typeof statisticsApiDeclaration>;
|
|
44
46
|
widgetsOrders: Api<typeof widgetsOrdersDeclaration>;
|
|
45
47
|
searchApi: Api<typeof searchApiDeclaration>;
|
|
46
48
|
promocodes: Api<typeof promocodesApiDeclaration>;
|
|
@@ -31,6 +31,7 @@ var roles_api_1 = require("./roles-api");
|
|
|
31
31
|
var search_api_1 = require("./search-api");
|
|
32
32
|
var slot_templates_api_1 = require("./slot-templates-api");
|
|
33
33
|
var slots_api_1 = require("./slots-api");
|
|
34
|
+
var statistics_api_1 = require("./statistics-api");
|
|
34
35
|
var subscription_api_1 = require("./subscription-api");
|
|
35
36
|
var support_1 = require("./support");
|
|
36
37
|
var tariffs_api_1 = require("./tariffs-api");
|
|
@@ -44,6 +45,7 @@ var widgets_openapi_1 = require("./widgets-openapi");
|
|
|
44
45
|
var widgets_orders_1 = require("./widgets-orders");
|
|
45
46
|
var _1 = require(".");
|
|
46
47
|
var initClientApi = function (url) { return ({
|
|
48
|
+
statiscticsApi: (0, _1.initApi)(statistics_api_1.statisticsApiDeclaration, url),
|
|
47
49
|
widgetsOrders: (0, _1.initApi)(widgets_orders_1.widgetsOrdersDeclaration, url),
|
|
48
50
|
searchApi: (0, _1.initApi)(search_api_1.searchApiDeclaration, url),
|
|
49
51
|
promocodes: (0, _1.initApi)(promocodes_api_1.promocodesApiDeclaration, url),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateQuestroomDto } from '@escapenavigator/types/dist/questroom/create-questroom.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateQuestroomDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = QuestroomRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID квеста */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = QuestroomRO;
|
|
6
6
|
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
declare type ParamsData = undefined;
|
|
4
|
-
declare type ResponseData =
|
|
4
|
+
declare type ResponseData = QuestroomRO[];
|
|
5
5
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID квеста */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = QuestroomRO;
|
|
6
6
|
export declare const recover: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID квеста */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = QuestroomRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
2
2
|
import { UpdateQuestroomDto } from '@escapenavigator/types/dist/questroom/update-questroom.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: UpdateQuestroomDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = QuestroomRO;
|
|
9
9
|
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MonthlyGeneralStatiscticsRO } from '@escapenavigator/types/dist/statistics/monthly-general-statisctics.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = MonthlyGeneralStatiscticsRO;
|
|
5
|
+
export declare const getMonthlyGeneralStatisctics: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMonthlyGeneralStatisctics = void 0;
|
|
4
|
+
var getMonthlyGeneralStatisctics = function (month) { return ({
|
|
5
|
+
url: "/statistics/monthly/".concat(month),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getMonthlyGeneralStatisctics = getMonthlyGeneralStatisctics;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.statisticsApiDeclaration = void 0;
|
|
4
|
+
var get_monthly_general_statisctics_1 = require("./get-monthly-general-statisctics");
|
|
5
|
+
exports.statisticsApiDeclaration = {
|
|
6
|
+
getMonthlyGeneralStatisctics: get_monthly_general_statisctics_1.getMonthlyGeneralStatisctics,
|
|
7
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.42",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "a3974bc6bed2a9028ec1d168d6bd41c8cf68089a",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.4.
|
|
17
|
+
"@escapenavigator/types": "^1.4.42",
|
|
18
18
|
"@paypal/react-paypal-js": "^7.8.3",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|