@escapenavigator/services 1.4.67 → 1.4.68

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.
@@ -1,9 +1,9 @@
1
1
  import { CreateProfileDto } from '@escapenavigator/types/dist/profile/create-profile.dto';
2
- import { ProfileResponseObject } from '@escapenavigator/types/dist/profile/profile.ro';
2
+ import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = {
5
5
  data: CreateProfileDto;
6
6
  };
7
- declare type ResponseData = ProfileResponseObject;
7
+ declare type ResponseData = ProfileRO;
8
8
  export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
9
9
  export {};
@@ -1,7 +1,7 @@
1
- import { ProfileResponseObject } from '@escapenavigator/types/dist/profile/profile.ro';
1
+ import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  /** ID профиля */
4
4
  declare type ParamsData = undefined;
5
- declare type ResponseData = ProfileResponseObject;
5
+ declare type ResponseData = ProfileRO;
6
6
  export declare const current: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -1,7 +1,7 @@
1
- import { AgregatorProfileResponseObject } from '@escapenavigator/types/dist/profile/agregator-profile.ro';
1
+ import { AgregatorProfileRO } from '@escapenavigator/types/dist/profile/agregator-profile.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  /** slug */
4
4
  declare type ParamsData = string;
5
- declare type ResponseData = AgregatorProfileResponseObject;
5
+ declare type ResponseData = AgregatorProfileRO;
6
6
  export declare const getBySlug: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -1,7 +1,7 @@
1
- import { ProfileResponseObject } from '@escapenavigator/types/dist/profile/profile.ro';
1
+ import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  /** ID профиля */
4
4
  declare type ParamsData = number;
5
- declare type ResponseData = ProfileResponseObject;
5
+ declare type ResponseData = ProfileRO;
6
6
  export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -1,9 +1,9 @@
1
- import { ProfileResponseObject } from '@escapenavigator/types/dist/profile/profile.ro';
1
+ import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
2
2
  import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
3
3
  import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
4
4
  import { ApiMethodDeclaration } from '..';
5
5
  /** Поиск по названию организации и контактному телефону */
6
6
  declare type ParamsData = QueryDto;
7
- declare type ResponseData = QueryRO<ProfileResponseObject>;
7
+ declare type ResponseData = QueryRO<ProfileRO>;
8
8
  export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
9
9
  export {};
@@ -1,7 +1,7 @@
1
- import { ProfileResponseObject } from '@escapenavigator/types/dist/profile/profile.ro';
1
+ import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
2
2
  import { ApiMethodDeclaration } from '..';
3
3
  /** ID профиля */
4
4
  declare type ParamsData = number;
5
- declare type ResponseData = ProfileResponseObject;
5
+ declare type ResponseData = ProfileRO;
6
6
  export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
7
7
  export {};
@@ -1,10 +1,10 @@
1
1
  import { CreateProfileDto } from '@escapenavigator/types/dist/profile/create-profile.dto';
2
- import { ProfileResponseObject } from '@escapenavigator/types/dist/profile/profile.ro';
2
+ import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = {
5
5
  id: number;
6
6
  data: CreateProfileDto;
7
7
  };
8
- declare type ResponseData = ProfileResponseObject;
8
+ declare type ResponseData = ProfileRO;
9
9
  export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
10
10
  export {};
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.get = void 0;
4
4
  var get = function (questroomId) { return ({
5
- url: "/slot-templates/".concat(questroomId),
5
+ url: "/slot-templates/questroom/".concat(questroomId),
6
6
  method: 'GET',
7
7
  }); };
8
8
  exports.get = get;
@@ -1,7 +1,9 @@
1
1
  import { get } from './get';
2
2
  import { update } from './update';
3
+ import { updateTariff } from './update-tariff';
3
4
  declare type ApiDeclaration = {
4
5
  get: typeof get;
6
+ updateTariff: typeof updateTariff;
5
7
  update: typeof update;
6
8
  };
7
9
  export declare const slotTemplatesApiDeclaration: ApiDeclaration;
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.slotTemplatesApiDeclaration = void 0;
4
4
  var get_1 = require("./get");
5
5
  var update_1 = require("./update");
6
+ var update_tariff_1 = require("./update-tariff");
6
7
  exports.slotTemplatesApiDeclaration = {
7
8
  get: get_1.get,
9
+ updateTariff: update_tariff_1.updateTariff,
8
10
  update: update_1.update,
9
11
  };
@@ -0,0 +1,7 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { UpdateTariffDto } from '@escapenavigator/types/dist/slot-template/update-tariff.dto';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = UpdateTariffDto;
5
+ declare type ResponseData = SuccessRO;
6
+ export declare const updateTariff: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateTariff = void 0;
4
+ var updateTariff = function (data) { return ({
5
+ url: '/slot-templates/tariff/',
6
+ method: 'PATCH',
7
+ data: data,
8
+ }); };
9
+ exports.updateTariff = updateTariff;
@@ -4,7 +4,7 @@ exports.update = void 0;
4
4
  var update = function (_a) {
5
5
  var questroomId = _a.questroomId, data = _a.data;
6
6
  return ({
7
- url: "/slot-templates/".concat(questroomId),
7
+ url: "/slot-templates/questroom/".concat(questroomId),
8
8
  method: 'PATCH',
9
9
  data: data,
10
10
  });
@@ -0,0 +1,9 @@
1
+ import { EditAllTranslationLoacalesDto } from '@escapenavigator/types/dist/translation/edit-all-translation-loacales.dto';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = {
4
+ id: number;
5
+ data: EditAllTranslationLoacalesDto;
6
+ };
7
+ declare type ResponseData = any;
8
+ export declare const editAllTranslationLocales: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.editAllTranslationLocales = void 0;
4
+ var editAllTranslationLocales = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/translations/translation/edit-locales/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.editAllTranslationLocales = editAllTranslationLocales;
@@ -1,12 +1,16 @@
1
1
  import { createNamespace } from './create-namespace';
2
2
  import { createTranslation } from './create-translation';
3
3
  import { createTranslationFromJson } from './create-translation-from-json';
4
+ import { editAllTranslationLocales } from './edit-all-translation-locales';
4
5
  import { getAllNamespaces } from './get-all-namespaces';
5
6
  import { query } from './query';
6
7
  import { removeNamespace } from './remove-namespace';
7
8
  import { removeTranslation } from './remove-translation';
9
+ import { updateAllTranslationsInNamespace } from './update-all-translations-in-namespace';
8
10
  import { updateLocale } from './update-locale';
9
11
  declare type ApiDeclaration = {
12
+ editAllTranslationLocales: typeof editAllTranslationLocales;
13
+ updateAllTranslationsInNamespace: typeof updateAllTranslationsInNamespace;
10
14
  createNamespace: typeof createNamespace;
11
15
  removeNamespace: typeof removeNamespace;
12
16
  createTranslationFromJson: typeof createTranslationFromJson;
@@ -4,12 +4,16 @@ exports.translationsApiDeclaration = void 0;
4
4
  var create_namespace_1 = require("./create-namespace");
5
5
  var create_translation_1 = require("./create-translation");
6
6
  var create_translation_from_json_1 = require("./create-translation-from-json");
7
+ var edit_all_translation_locales_1 = require("./edit-all-translation-locales");
7
8
  var get_all_namespaces_1 = require("./get-all-namespaces");
8
9
  var query_1 = require("./query");
9
10
  var remove_namespace_1 = require("./remove-namespace");
10
11
  var remove_translation_1 = require("./remove-translation");
12
+ var update_all_translations_in_namespace_1 = require("./update-all-translations-in-namespace");
11
13
  var update_locale_1 = require("./update-locale");
12
14
  exports.translationsApiDeclaration = {
15
+ editAllTranslationLocales: edit_all_translation_locales_1.editAllTranslationLocales,
16
+ updateAllTranslationsInNamespace: update_all_translations_in_namespace_1.updateAllTranslationsInNamespace,
13
17
  query: query_1.query,
14
18
  removeNamespace: remove_namespace_1.removeNamespace,
15
19
  createTranslationFromJson: create_translation_from_json_1.createTranslationFromJson,
@@ -0,0 +1,8 @@
1
+ import { ApiMethodDeclaration } from '..';
2
+ declare type ParamsData = {
3
+ namespaceId: number;
4
+ type: 'chaneExisting' | 'addMissing';
5
+ };
6
+ declare type ResponseData = any;
7
+ export declare const updateAllTranslationsInNamespace: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateAllTranslationsInNamespace = void 0;
4
+ var updateAllTranslationsInNamespace = function (_a) {
5
+ var namespaceId = _a.namespaceId, type = _a.type;
6
+ return ({
7
+ url: "/translations/namespaces/update-translations/".concat(namespaceId, "/").concat(type),
8
+ method: 'GET',
9
+ });
10
+ };
11
+ exports.updateAllTranslationsInNamespace = updateAllTranslationsInNamespace;
@@ -0,0 +1,9 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { UpdateCurrentUserNotificationsDto } from '@escapenavigator/types/dist/user/update-current-user-notifications.dto';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ data: UpdateCurrentUserNotificationsDto;
6
+ };
7
+ declare type ResponseData = SuccessRO;
8
+ export declare const currentUpdateNotifications: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.currentUpdateNotifications = void 0;
4
+ var currentUpdateNotifications = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/current-user/notifications',
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.currentUpdateNotifications = currentUpdateNotifications;
@@ -3,6 +3,7 @@ import { compliteSetup } from './complite-setup';
3
3
  import { create } from './create';
4
4
  import { createReport } from './create-report';
5
5
  import { currentUpdate } from './current-update';
6
+ import { currentUpdateNotifications } from './current-update-notifications';
6
7
  import { currentUpdatePassword } from './current-update-password';
7
8
  import { getOne } from './get-one';
8
9
  import { login } from './login';
@@ -22,6 +23,7 @@ import { update } from './update';
22
23
  import { updatePassword } from './update-password';
23
24
  import { updateReport } from './update-report';
24
25
  declare type ApiDeclaration = {
26
+ currentUpdateNotifications: typeof currentUpdateNotifications;
25
27
  createReport: typeof createReport;
26
28
  create: typeof create;
27
29
  queryDailyReports: typeof queryDailyReports;
@@ -6,6 +6,7 @@ var complite_setup_1 = require("./complite-setup");
6
6
  var create_1 = require("./create");
7
7
  var create_report_1 = require("./create-report");
8
8
  var current_update_1 = require("./current-update");
9
+ var current_update_notifications_1 = require("./current-update-notifications");
9
10
  var current_update_password_1 = require("./current-update-password");
10
11
  var get_one_1 = require("./get-one");
11
12
  var login_1 = require("./login");
@@ -25,6 +26,7 @@ var update_1 = require("./update");
25
26
  var update_password_1 = require("./update-password");
26
27
  var update_report_1 = require("./update-report");
27
28
  exports.usersApiDeclaration = {
29
+ currentUpdateNotifications: current_update_notifications_1.currentUpdateNotifications,
28
30
  create: create_1.create,
29
31
  createReport: create_report_1.createReport,
30
32
  updateReport: update_report_1.updateReport,
@@ -1,4 +1,4 @@
1
- declare type Timezone = 'Europe/Berlin';
1
+ declare type Timezone = string;
2
2
  declare type ToUTC = {
3
3
  timezone: Timezone;
4
4
  date: string;
@@ -10,7 +10,7 @@ function validateByDto(t) {
10
10
  var property = _a.property, constraints = _a.constraints;
11
11
  var err = (constraints === null || constraints === void 0 ? void 0 : constraints.IsNotEmpty) || Object.values(constraints)[0];
12
12
  var errorText = err.substr(err.indexOf(' ') + 1);
13
- return [property, "".concat(t("validationErrors.".concat(errorText)))];
13
+ return [property, "".concat(t("validationErrors:".concat(errorText)))];
14
14
  }));
15
15
  };
16
16
  return validate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.67",
3
+ "version": "1.4.68",
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": "3cd5cad4f92c4b4ea59f53cf3b59c13e73020aba",
15
+ "gitHead": "5ad305e49eaa034fd21d6c4529d3424fa48aa895",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.67",
17
+ "@escapenavigator/types": "^1.4.68",
18
18
  "@paypal/react-paypal-js": "^7.8.3",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",