@escapenavigator/services 1.4.69 → 1.4.71

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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getMonthlyGeneralStatisctics = void 0;
4
4
  var getMonthlyGeneralStatisctics = function (month) { return ({
5
- url: "/statistics/monthly/".concat(month),
5
+ url: "/order-statistic/monthly/".concat(month),
6
6
  method: 'GET',
7
7
  }); };
8
8
  exports.getMonthlyGeneralStatisctics = getMonthlyGeneralStatisctics;
@@ -1,9 +1,9 @@
1
1
  import { CreateTransactionDto } from '@escapenavigator/types/dist/transaction/create-transaction.dto';
2
- import { TransactionResponseObject } from '@escapenavigator/types/dist/transaction/transaction.ro';
2
+ import { TransactionRO } from '@escapenavigator/types/dist/transaction/transaction.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = {
5
5
  data: CreateTransactionDto;
6
6
  };
7
- declare type ResponseData = TransactionResponseObject;
7
+ declare type ResponseData = TransactionRO;
8
8
  export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
9
9
  export {};
@@ -1,7 +1,7 @@
1
- import { TransactionResponseObject } from '@escapenavigator/types/dist/transaction/transaction.ro';
1
+ import { TransactionRO } from '@escapenavigator/types/dist/transaction/transaction.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  /** ID транзакции */
4
4
  declare type ParamsData = number;
5
- declare type ResponseData = TransactionResponseObject;
5
+ declare type ResponseData = TransactionRO;
6
6
  export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -1,7 +1,7 @@
1
1
  import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
2
- import { TransactionResponseObject } from '@escapenavigator/types/dist/transaction/transaction.ro';
2
+ import { TransactionRO } from '@escapenavigator/types/dist/transaction/transaction.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = QueryDto;
5
- declare type ResponseData = TransactionResponseObject[];
5
+ declare type ResponseData = TransactionRO[];
6
6
  export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -1,7 +1,7 @@
1
- import { TransactionResponseObject } from '@escapenavigator/types/dist/transaction/transaction.ro';
1
+ import { TransactionRO } from '@escapenavigator/types/dist/transaction/transaction.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  /** ID транзакции */
4
4
  declare type ParamsData = number;
5
- declare type ResponseData = TransactionResponseObject;
5
+ declare type ResponseData = TransactionRO;
6
6
  export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -4,11 +4,15 @@ import { createTranslationFromJson } from './create-translation-from-json';
4
4
  import { editAllTranslationLocales } from './edit-all-translation-locales';
5
5
  import { getAllNamespaces } from './get-all-namespaces';
6
6
  import { query } from './query';
7
+ import { queryMissing } from './query-missing';
8
+ import { removeAllMissing } from './remove-all-missing';
7
9
  import { removeNamespace } from './remove-namespace';
8
10
  import { removeTranslation } from './remove-translation';
9
11
  import { updateAllTranslationsInNamespace } from './update-all-translations-in-namespace';
10
12
  import { updateLocale } from './update-locale';
11
13
  declare type ApiDeclaration = {
14
+ removeAllMissing: typeof removeAllMissing;
15
+ queryMissing: typeof queryMissing;
12
16
  editAllTranslationLocales: typeof editAllTranslationLocales;
13
17
  updateAllTranslationsInNamespace: typeof updateAllTranslationsInNamespace;
14
18
  createNamespace: typeof createNamespace;
@@ -7,11 +7,15 @@ var create_translation_from_json_1 = require("./create-translation-from-json");
7
7
  var edit_all_translation_locales_1 = require("./edit-all-translation-locales");
8
8
  var get_all_namespaces_1 = require("./get-all-namespaces");
9
9
  var query_1 = require("./query");
10
+ var query_missing_1 = require("./query-missing");
11
+ var remove_all_missing_1 = require("./remove-all-missing");
10
12
  var remove_namespace_1 = require("./remove-namespace");
11
13
  var remove_translation_1 = require("./remove-translation");
12
14
  var update_all_translations_in_namespace_1 = require("./update-all-translations-in-namespace");
13
15
  var update_locale_1 = require("./update-locale");
14
16
  exports.translationsApiDeclaration = {
17
+ removeAllMissing: remove_all_missing_1.removeAllMissing,
18
+ queryMissing: query_missing_1.queryMissing,
15
19
  editAllTranslationLocales: edit_all_translation_locales_1.editAllTranslationLocales,
16
20
  updateAllTranslationsInNamespace: update_all_translations_in_namespace_1.updateAllTranslationsInNamespace,
17
21
  query: query_1.query,
@@ -0,0 +1,8 @@
1
+ import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
2
+ import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
3
+ import { MissingTranslationRO } from '@escapenavigator/types/dist/translation/missing-transaction.ro';
4
+ import { ApiMethodDeclaration } from '..';
5
+ declare type ParamsData = QueryDto;
6
+ declare type ResponseData = QueryRO<MissingTranslationRO>;
7
+ export declare const queryMissing: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.queryMissing = void 0;
4
+ var queryMissing = function (params) { return ({
5
+ url: '/missing-translations',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.queryMissing = queryMissing;
@@ -0,0 +1,5 @@
1
+ import { ApiMethodDeclaration } from '..';
2
+ declare type ParamsData = undefined;
3
+ declare type ResponseData = any;
4
+ export declare const removeAllMissing: ApiMethodDeclaration<ParamsData, ResponseData>;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeAllMissing = void 0;
4
+ var removeAllMissing = function () { return ({
5
+ url: '/missing-translations/remove',
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeAllMissing = removeAllMissing;
@@ -15,6 +15,7 @@ import { queryMonthReports } from './query-month-reports';
15
15
  import { queryReports } from './query-reports';
16
16
  import { recover } from './recover';
17
17
  import { remove } from './remove';
18
+ import { removeReport } from './remove-report';
18
19
  import { sendInvite } from './send-invite';
19
20
  import { sendRecoverLink } from './send-recover-link';
20
21
  import { startTimer } from './start-timer';
@@ -24,6 +25,7 @@ import { updatePassword } from './update-password';
24
25
  import { updateReport } from './update-report';
25
26
  declare type ApiDeclaration = {
26
27
  currentUpdateNotifications: typeof currentUpdateNotifications;
28
+ removeReport: typeof removeReport;
27
29
  createReport: typeof createReport;
28
30
  create: typeof create;
29
31
  queryDailyReports: typeof queryDailyReports;
@@ -18,6 +18,7 @@ var query_month_reports_1 = require("./query-month-reports");
18
18
  var query_reports_1 = require("./query-reports");
19
19
  var recover_1 = require("./recover");
20
20
  var remove_1 = require("./remove");
21
+ var remove_report_1 = require("./remove-report");
21
22
  var send_invite_1 = require("./send-invite");
22
23
  var send_recover_link_1 = require("./send-recover-link");
23
24
  var start_timer_1 = require("./start-timer");
@@ -26,6 +27,7 @@ var update_1 = require("./update");
26
27
  var update_password_1 = require("./update-password");
27
28
  var update_report_1 = require("./update-report");
28
29
  exports.usersApiDeclaration = {
30
+ removeReport: remove_report_1.removeReport,
29
31
  currentUpdateNotifications: current_update_notifications_1.currentUpdateNotifications,
30
32
  create: create_1.create,
31
33
  createReport: create_report_1.createReport,
@@ -0,0 +1,7 @@
1
+ import { UserReportRO } from '@escapenavigator/types/dist/user/user-report.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ /** ID репорта */
4
+ declare type ParamsData = number;
5
+ declare type ResponseData = UserReportRO;
6
+ export declare const removeReport: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeReport = void 0;
4
+ var removeReport = function (id) { return ({
5
+ url: "/user-reports/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeReport = removeReport;
@@ -1,9 +1,9 @@
1
1
  import { CreateWidgetDto } from '@escapenavigator/types/dist/widget/create-widget.dto';
2
- import { WidgetResponseObject } from '@escapenavigator/types/dist/widget/widget.ro';
2
+ import { WidgetRO } from '@escapenavigator/types/dist/widget/widget.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = {
5
5
  data: CreateWidgetDto;
6
6
  };
7
- declare type ResponseData = WidgetResponseObject;
7
+ declare type ResponseData = WidgetRO;
8
8
  export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
9
9
  export {};
@@ -1,7 +1,7 @@
1
- import { WidgetResponseObject } from '@escapenavigator/types/dist/widget/widget.ro';
1
+ import { WidgetRO } from '@escapenavigator/types/dist/widget/widget.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  /** ID виджета */
4
4
  declare type ParamsData = number;
5
- declare type ResponseData = WidgetResponseObject;
5
+ declare type ResponseData = WidgetRO;
6
6
  export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -0,0 +1,7 @@
1
+ import { WidgetCustomizationRO } from '@escapenavigator/types/dist/widget/widget-customization.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ /** ID профиля */
4
+ declare type ParamsData = number;
5
+ declare type ResponseData = WidgetCustomizationRO;
6
+ export declare const getWidgetCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getWidgetCustomization = void 0;
4
+ var getWidgetCustomization = function (profileId) { return ({
5
+ url: "/widget/customization/".concat(profileId),
6
+ method: 'GET',
7
+ }); };
8
+ exports.getWidgetCustomization = getWidgetCustomization;
@@ -1,9 +1,13 @@
1
1
  import { create } from './create';
2
2
  import { getOne } from './get-one';
3
+ import { getWidgetCustomization } from './get-widget-customization';
3
4
  import { query } from './query';
4
5
  import { remove } from './remove';
5
6
  import { update } from './update';
7
+ import { updateWidgetCustomization } from './update-widget-customization';
6
8
  declare type ApiDeclaration = {
9
+ getWidgetCustomization: typeof getWidgetCustomization;
10
+ updateWidgetCustomization: typeof updateWidgetCustomization;
7
11
  create: typeof create;
8
12
  remove: typeof remove;
9
13
  update: typeof update;
@@ -3,10 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.widgetsApiDeclaration = void 0;
4
4
  var create_1 = require("./create");
5
5
  var get_one_1 = require("./get-one");
6
+ var get_widget_customization_1 = require("./get-widget-customization");
6
7
  var query_1 = require("./query");
7
8
  var remove_1 = require("./remove");
8
9
  var update_1 = require("./update");
10
+ var update_widget_customization_1 = require("./update-widget-customization");
9
11
  exports.widgetsApiDeclaration = {
12
+ getWidgetCustomization: get_widget_customization_1.getWidgetCustomization,
13
+ updateWidgetCustomization: update_widget_customization_1.updateWidgetCustomization,
10
14
  create: create_1.create,
11
15
  remove: remove_1.remove,
12
16
  update: update_1.update,
@@ -1,6 +1,6 @@
1
- import { WidgetResponseObject } from '@escapenavigator/types/dist/widget/widget.ro';
1
+ import { WidgetRO } from '@escapenavigator/types/dist/widget/widget.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  declare type ParamsData = undefined;
4
- declare type ResponseData = WidgetResponseObject[];
4
+ declare type ResponseData = WidgetRO[];
5
5
  export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
6
6
  export {};
@@ -1,7 +1,7 @@
1
- import { WidgetResponseObject } from '@escapenavigator/types/dist/widget/widget.ro';
1
+ import { WidgetRO } from '@escapenavigator/types/dist/widget/widget.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  /** ID виджета */
4
4
  declare type ParamsData = number;
5
- declare type ResponseData = WidgetResponseObject;
5
+ declare type ResponseData = WidgetRO;
6
6
  export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -0,0 +1,10 @@
1
+ import { UpdateWidgetCustomizationDto } from '@escapenavigator/types/dist/widget/update-widget-customization.dto';
2
+ import { WidgetRO } from '@escapenavigator/types/dist/widget/widget.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ id: number;
6
+ data: UpdateWidgetCustomizationDto;
7
+ };
8
+ declare type ResponseData = WidgetRO;
9
+ export declare const updateWidgetCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateWidgetCustomization = void 0;
4
+ var updateWidgetCustomization = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/widget/customization/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateWidgetCustomization = updateWidgetCustomization;
@@ -1,10 +1,10 @@
1
1
  import { UpdateWidgetDto } from '@escapenavigator/types/dist/widget/update-widget.dto';
2
- import { WidgetResponseObject } from '@escapenavigator/types/dist/widget/widget.ro';
2
+ import { WidgetRO } from '@escapenavigator/types/dist/widget/widget.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = {
5
5
  id: number;
6
6
  data: UpdateWidgetDto;
7
7
  };
8
- declare type ResponseData = WidgetResponseObject;
8
+ declare type ResponseData = WidgetRO;
9
9
  export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
10
10
  export {};
@@ -2,14 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.serializeSlot = exports.serializeSlotOrderData = void 0;
4
4
  var serializeSlotOrderData = function (order) {
5
- var _a, _b, _c, _d;
5
+ var _a, _b, _c, _d, _e;
6
6
  return order && {
7
7
  id: order.id,
8
8
  players: order.players,
9
9
  hasDiscounts: !!((_a = order.discounts) === null || _a === void 0 ? void 0 : _a.length),
10
- hasCertificateApplies: !!((_b = order.certificates) === null || _b === void 0 ? void 0 : _b.length),
11
- hasPenalties: !!((_c = order.penalties) === null || _c === void 0 ? void 0 : _c.length),
12
- hasUpsellings: !!((_d = order.upsellings) === null || _d === void 0 ? void 0 : _d.length),
10
+ hasComments: !!((_b = order.messages) === null || _b === void 0 ? void 0 : _b.length),
11
+ hasCertificateApplies: !!((_c = order.certificates) === null || _c === void 0 ? void 0 : _c.length),
12
+ hasPenalties: !!((_d = order.penalties) === null || _d === void 0 ? void 0 : _d.length),
13
+ hasUpsellings: !!((_e = order.upsellings) === null || _e === void 0 ? void 0 : _e.length),
13
14
  utcDate: order.utcDate,
14
15
  moderatorId: order.moderatorId,
15
16
  total: order.total,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.69",
3
+ "version": "1.4.71",
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": "73e657651a44988a3110789211c97aaae4c21db6",
15
+ "gitHead": "67959dac58ab63cfaea5e8f35680d1e7b34ede68",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.69",
17
+ "@escapenavigator/types": "^1.4.71",
18
18
  "@paypal/react-paypal-js": "^7.8.3",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",