@escapenavigator/services 1.6.53 → 1.6.55

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.
@@ -17,6 +17,7 @@ import { imagesApiDeclaration } from './images-api';
17
17
  import { locationsApiDeclaration } from './locations-api';
18
18
  import { logsApiDeclaration } from './logs-api';
19
19
  import { navigatorReviewsApiDeclaration } from './navigator-reviews-api';
20
+ import { nowEscapeApiDeclaration } from './now-escape-api';
20
21
  import { openapiWidgetApiDeclaration } from './openapi-widget-api';
21
22
  import { orderCertificateUploadsApiDeclaration } from './order-certificate-uploads-api';
22
23
  import { orderCertificatesApiDeclaration } from './order-certificates-api';
@@ -62,6 +63,7 @@ export declare type InitApiDeclaration = {
62
63
  promocodes: Api<typeof promocodesApiDeclaration>;
63
64
  orderPromocodes: Api<typeof orderPromocodesApiDeclaration>;
64
65
  cities: Api<typeof citiesApiDeclaration>;
66
+ nowEscape: Api<typeof nowEscapeApiDeclaration>;
65
67
  orderCertificates: Api<typeof orderCertificatesApiDeclaration>;
66
68
  certificatesaleDiscounts: Api<typeof certificatesaleDiscountsApiDeclaration>;
67
69
  logs: Api<typeof logsApiDeclaration>;
@@ -20,6 +20,7 @@ var images_api_1 = require("./images-api");
20
20
  var locations_api_1 = require("./locations-api");
21
21
  var logs_api_1 = require("./logs-api");
22
22
  var navigator_reviews_api_1 = require("./navigator-reviews-api");
23
+ var now_escape_api_1 = require("./now-escape-api");
23
24
  var openapi_widget_api_1 = require("./openapi-widget-api");
24
25
  var order_certificate_uploads_api_1 = require("./order-certificate-uploads-api");
25
26
  var order_certificates_api_1 = require("./order-certificates-api");
@@ -52,6 +53,7 @@ var users_api_1 = require("./users-api");
52
53
  var widgets_api_1 = require("./widgets-api");
53
54
  var _1 = require(".");
54
55
  var initClientApi = function (url) { return ({
56
+ nowEscape: (0, _1.initApi)(now_escape_api_1.nowEscapeApiDeclaration, url),
55
57
  googleCalendarsApi: (0, _1.initApi)(google_calendars_api_1.googleCalendarsApiDeclaration, url),
56
58
  slotRulesApi: (0, _1.initApi)(slot_rules_api_1.slotRulesApi, url),
57
59
  openapiWidget: (0, _1.initApi)(openapi_widget_api_1.openapiWidgetApiDeclaration, url),
@@ -0,0 +1,10 @@
1
+ import { nowEscapeOrdersByProfileAndMonth } from './now-escape-orders-by-profile-and-month';
2
+ import { nowEscapeProfiles } from './now-escape-profiles';
3
+ import { nowEscapeQuestroomsByProfile } from './now-escape-questrooms-by-profile';
4
+ declare type ApiDeclaration = {
5
+ nowEscapeOrdersByProfileAndMonth: typeof nowEscapeOrdersByProfileAndMonth;
6
+ nowEscapeProfiles: typeof nowEscapeProfiles;
7
+ nowEscapeQuestroomsByProfile: typeof nowEscapeQuestroomsByProfile;
8
+ };
9
+ export declare const nowEscapeApiDeclaration: ApiDeclaration;
10
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nowEscapeApiDeclaration = void 0;
4
+ var now_escape_orders_by_profile_and_month_1 = require("./now-escape-orders-by-profile-and-month");
5
+ var now_escape_profiles_1 = require("./now-escape-profiles");
6
+ var now_escape_questrooms_by_profile_1 = require("./now-escape-questrooms-by-profile");
7
+ exports.nowEscapeApiDeclaration = {
8
+ nowEscapeOrdersByProfileAndMonth: now_escape_orders_by_profile_and_month_1.nowEscapeOrdersByProfileAndMonth,
9
+ nowEscapeProfiles: now_escape_profiles_1.nowEscapeProfiles,
10
+ nowEscapeQuestroomsByProfile: now_escape_questrooms_by_profile_1.nowEscapeQuestroomsByProfile,
11
+ };
@@ -0,0 +1,8 @@
1
+ import { NowEscapeOrderRO } from '@escapenavigator/types/dist/openapi/now-escape/now-escape-order.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<NowEscapeOrderRO>;
7
+ export declare const nowEscapeOrdersByProfileAndMonth: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nowEscapeOrdersByProfileAndMonth = void 0;
4
+ var nowEscapeOrdersByProfileAndMonth = function (params) { return ({
5
+ url: '/nowescape/orders',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.nowEscapeOrdersByProfileAndMonth = nowEscapeOrdersByProfileAndMonth;
@@ -0,0 +1,8 @@
1
+ import { NowEscapeProfileRO } from '@escapenavigator/types/dist/openapi/now-escape/now-escape-profile.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<NowEscapeProfileRO>;
7
+ export declare const nowEscapeProfiles: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nowEscapeProfiles = void 0;
4
+ var nowEscapeProfiles = function (params) { return ({
5
+ url: '/nowescape/profiles',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.nowEscapeProfiles = nowEscapeProfiles;
@@ -0,0 +1,6 @@
1
+ import { NowEscapeQuestroomRO } from '@escapenavigator/types/dist/openapi/now-escape/now-escape-questroom.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = number;
4
+ declare type ResponseData = NowEscapeQuestroomRO[];
5
+ export declare const nowEscapeQuestroomsByProfile: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nowEscapeQuestroomsByProfile = void 0;
4
+ var nowEscapeQuestroomsByProfile = function (id) { return ({
5
+ url: '/nowescape/questrooms/' + id,
6
+ method: 'GET',
7
+ }); };
8
+ exports.nowEscapeQuestroomsByProfile = nowEscapeQuestroomsByProfile;
@@ -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 = string;
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 (month) { return ({
5
- url: "/statistics/monthly/".concat(month),
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,8 +1,10 @@
1
1
  import { generalStatisctics } from './general';
2
2
  import { getMonthlyGeneralStatisctics } from './get-monthly-general-statisctics';
3
+ import { revenueStatisctics } from './revenue';
3
4
  declare type ApiDeclaration = {
4
5
  generalStatisctics: typeof generalStatisctics;
5
6
  getMonthlyGeneralStatisctics: typeof getMonthlyGeneralStatisctics;
7
+ revenueStatisctics: typeof revenueStatisctics;
6
8
  };
7
9
  export declare const statisticsApiDeclaration: ApiDeclaration;
8
10
  export {};
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.statisticsApiDeclaration = void 0;
4
4
  var general_1 = require("./general");
5
5
  var get_monthly_general_statisctics_1 = require("./get-monthly-general-statisctics");
6
+ var revenue_1 = require("./revenue");
6
7
  exports.statisticsApiDeclaration = {
7
8
  getMonthlyGeneralStatisctics: get_monthly_general_statisctics_1.getMonthlyGeneralStatisctics,
9
+ revenueStatisctics: revenue_1.revenueStatisctics,
8
10
  generalStatisctics: general_1.generalStatisctics,
9
11
  };
@@ -0,0 +1,9 @@
1
+ import { RevenueStatiscticsRO } from '@escapenavigator/types/dist/statistics/revenue';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = {
4
+ date: string;
5
+ type: 'month' | 'year';
6
+ };
7
+ declare type ResponseData = RevenueStatiscticsRO;
8
+ export declare const revenueStatisctics: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.revenueStatisctics = void 0;
4
+ var revenueStatisctics = function (params) { return ({
5
+ url: '/statistics/revenue',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.revenueStatisctics = revenueStatisctics;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.53",
3
+ "version": "1.6.55",
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": "c7be6b2fd4ffb8a584ef0cde6dccdbb2bb12189b",
15
+ "gitHead": "e564cbdae8014a424ff3914febb2b1a18ca66822",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.50",
18
- "@escapenavigator/utils": "^1.6.51",
17
+ "@escapenavigator/types": "^1.6.52",
18
+ "@escapenavigator/utils": "^1.6.53",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",