@escapenavigator/services 1.4.66 → 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.
Files changed (44) hide show
  1. package/dist/api/init-client-api.d.ts +2 -0
  2. package/dist/api/init-client-api.js +2 -0
  3. package/dist/api/profiles-api/create.d.ts +2 -2
  4. package/dist/api/profiles-api/current.d.ts +2 -2
  5. package/dist/api/profiles-api/get-by-slug.d.ts +2 -2
  6. package/dist/api/profiles-api/get-one.d.ts +2 -2
  7. package/dist/api/profiles-api/query.d.ts +2 -2
  8. package/dist/api/profiles-api/remove.d.ts +2 -2
  9. package/dist/api/profiles-api/update.d.ts +2 -2
  10. package/dist/api/slot-templates-api/get.js +1 -1
  11. package/dist/api/slot-templates-api/index.d.ts +2 -0
  12. package/dist/api/slot-templates-api/index.js +2 -0
  13. package/dist/api/slot-templates-api/update-tariff.d.ts +7 -0
  14. package/dist/api/slot-templates-api/update-tariff.js +9 -0
  15. package/dist/api/slot-templates-api/update.js +1 -1
  16. package/dist/api/translations-api/create-namespace.d.ts +9 -0
  17. package/dist/api/translations-api/create-namespace.js +12 -0
  18. package/dist/api/translations-api/create-translation-from-json.d.ts +9 -0
  19. package/dist/api/translations-api/create-translation-from-json.js +12 -0
  20. package/dist/api/translations-api/create-translation.d.ts +9 -0
  21. package/dist/api/translations-api/create-translation.js +12 -0
  22. package/dist/api/translations-api/edit-all-translation-locales.d.ts +9 -0
  23. package/dist/api/translations-api/edit-all-translation-locales.js +12 -0
  24. package/dist/api/translations-api/get-all-namespaces.d.ts +6 -0
  25. package/dist/api/translations-api/get-all-namespaces.js +8 -0
  26. package/dist/api/translations-api/index.d.ts +24 -0
  27. package/dist/api/translations-api/index.js +25 -0
  28. package/dist/api/translations-api/query.d.ts +8 -0
  29. package/dist/api/translations-api/query.js +9 -0
  30. package/dist/api/translations-api/remove-namespace.d.ts +7 -0
  31. package/dist/api/translations-api/remove-namespace.js +8 -0
  32. package/dist/api/translations-api/remove-translation.d.ts +7 -0
  33. package/dist/api/translations-api/remove-translation.js +8 -0
  34. package/dist/api/translations-api/update-all-translations-in-namespace.d.ts +8 -0
  35. package/dist/api/translations-api/update-all-translations-in-namespace.js +11 -0
  36. package/dist/api/translations-api/update-locale.d.ts +10 -0
  37. package/dist/api/translations-api/update-locale.js +12 -0
  38. package/dist/api/users-api/current-update-notifications.d.ts +9 -0
  39. package/dist/api/users-api/current-update-notifications.js +12 -0
  40. package/dist/api/users-api/index.d.ts +2 -0
  41. package/dist/api/users-api/index.js +2 -0
  42. package/dist/utils/tz-date.d.ts +1 -1
  43. package/dist/utils/validate-by-dto.js +1 -1
  44. package/package.json +3 -3
@@ -37,6 +37,7 @@ import { subscriptionApiDeclaration } from './subscription-api';
37
37
  import { supportApiDeclaration } from './support';
38
38
  import { tariffsApiDeclaration } from './tariffs-api';
39
39
  import { transactionsApiDeclaration } from './transactions-api';
40
+ import { translationsApiDeclaration } from './translations-api';
40
41
  import { uploadsApiDeclaration } from './uploads-api';
41
42
  import { upsellingsApiDeclaration } from './upsellings-api';
42
43
  import { userMessagesApiDeclaration } from './user-messages-api';
@@ -46,6 +47,7 @@ import { widgetsOpenApiDeclaration } from './widgets-openapi';
46
47
  import { widgetsOrdersDeclaration } from './widgets-orders';
47
48
  import { Api } from '.';
48
49
  export declare type InitApiDeclaration = {
50
+ translationsApi: Api<typeof translationsApiDeclaration>;
49
51
  navigatorReviews: Api<typeof navigatorReviewsApiDeclaration>;
50
52
  dashboard: Api<typeof dashboardApiDeclaration>;
51
53
  certificateUploadsApi: Api<typeof certificateUploadsApiDeclaration>;
@@ -40,6 +40,7 @@ var subscription_api_1 = require("./subscription-api");
40
40
  var support_1 = require("./support");
41
41
  var tariffs_api_1 = require("./tariffs-api");
42
42
  var transactions_api_1 = require("./transactions-api");
43
+ var translations_api_1 = require("./translations-api");
43
44
  var uploads_api_1 = require("./uploads-api");
44
45
  var upsellings_api_1 = require("./upsellings-api");
45
46
  var user_messages_api_1 = require("./user-messages-api");
@@ -49,6 +50,7 @@ var widgets_openapi_1 = require("./widgets-openapi");
49
50
  var widgets_orders_1 = require("./widgets-orders");
50
51
  var _1 = require(".");
51
52
  var initClientApi = function (url) { return ({
53
+ translationsApi: (0, _1.initApi)(translations_api_1.translationsApiDeclaration, url),
52
54
  dashboard: (0, _1.initApi)(dashboard_api_1.dashboardApiDeclaration, url),
53
55
  navigatorReviews: (0, _1.initApi)(navigator_reviews_api_1.navigatorReviewsApiDeclaration, url),
54
56
  orderCertificateUploads: (0, _1.initApi)(order_certificate_uploads_api_1.orderCertificateUploadsApiDeclaration, url),
@@ -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 { CreateNamespaceDto } from '@escapenavigator/types/dist/translation/create-namespace.dto';
2
+ import { NamespaceRO } from '@escapenavigator/types/dist/translation/namespace.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ data: CreateNamespaceDto;
6
+ };
7
+ declare type ResponseData = NamespaceRO;
8
+ export declare const createNamespace: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createNamespace = void 0;
4
+ var createNamespace = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/translations/namespaces',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.createNamespace = createNamespace;
@@ -0,0 +1,9 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { CreateTranslationFromJsonDto } from '@escapenavigator/types/dist/translation/create-translation-from-json.dto';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ data: CreateTranslationFromJsonDto;
6
+ };
7
+ declare type ResponseData = SuccessRO;
8
+ export declare const createTranslationFromJson: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createTranslationFromJson = void 0;
4
+ var createTranslationFromJson = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/translations/json',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.createTranslationFromJson = createTranslationFromJson;
@@ -0,0 +1,9 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { CreateTranslationDto } from '@escapenavigator/types/dist/translation/create-translation.dto';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ data: CreateTranslationDto;
6
+ };
7
+ declare type ResponseData = SuccessRO;
8
+ export declare const createTranslation: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createTranslation = void 0;
4
+ var createTranslation = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/translations',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.createTranslation = createTranslation;
@@ -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;
@@ -0,0 +1,6 @@
1
+ import { NamespaceRO } from '@escapenavigator/types/dist/translation/namespace.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = undefined;
4
+ declare type ResponseData = NamespaceRO[];
5
+ export declare const getAllNamespaces: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllNamespaces = void 0;
4
+ var getAllNamespaces = function () { return ({
5
+ url: '/translations/namespaces',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getAllNamespaces = getAllNamespaces;
@@ -0,0 +1,24 @@
1
+ import { createNamespace } from './create-namespace';
2
+ import { createTranslation } from './create-translation';
3
+ import { createTranslationFromJson } from './create-translation-from-json';
4
+ import { editAllTranslationLocales } from './edit-all-translation-locales';
5
+ import { getAllNamespaces } from './get-all-namespaces';
6
+ import { query } from './query';
7
+ import { removeNamespace } from './remove-namespace';
8
+ import { removeTranslation } from './remove-translation';
9
+ import { updateAllTranslationsInNamespace } from './update-all-translations-in-namespace';
10
+ import { updateLocale } from './update-locale';
11
+ declare type ApiDeclaration = {
12
+ editAllTranslationLocales: typeof editAllTranslationLocales;
13
+ updateAllTranslationsInNamespace: typeof updateAllTranslationsInNamespace;
14
+ createNamespace: typeof createNamespace;
15
+ removeNamespace: typeof removeNamespace;
16
+ createTranslationFromJson: typeof createTranslationFromJson;
17
+ createTranslation: typeof createTranslation;
18
+ getAllNamespaces: typeof getAllNamespaces;
19
+ removeTranslation: typeof removeTranslation;
20
+ updateLocale: typeof updateLocale;
21
+ query: typeof query;
22
+ };
23
+ export declare const translationsApiDeclaration: ApiDeclaration;
24
+ export {};
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.translationsApiDeclaration = void 0;
4
+ var create_namespace_1 = require("./create-namespace");
5
+ var create_translation_1 = require("./create-translation");
6
+ var create_translation_from_json_1 = require("./create-translation-from-json");
7
+ var edit_all_translation_locales_1 = require("./edit-all-translation-locales");
8
+ var get_all_namespaces_1 = require("./get-all-namespaces");
9
+ var query_1 = require("./query");
10
+ var remove_namespace_1 = require("./remove-namespace");
11
+ var remove_translation_1 = require("./remove-translation");
12
+ var update_all_translations_in_namespace_1 = require("./update-all-translations-in-namespace");
13
+ var update_locale_1 = require("./update-locale");
14
+ exports.translationsApiDeclaration = {
15
+ editAllTranslationLocales: edit_all_translation_locales_1.editAllTranslationLocales,
16
+ updateAllTranslationsInNamespace: update_all_translations_in_namespace_1.updateAllTranslationsInNamespace,
17
+ query: query_1.query,
18
+ removeNamespace: remove_namespace_1.removeNamespace,
19
+ createTranslationFromJson: create_translation_from_json_1.createTranslationFromJson,
20
+ createNamespace: create_namespace_1.createNamespace,
21
+ createTranslation: create_translation_1.createTranslation,
22
+ getAllNamespaces: get_all_namespaces_1.getAllNamespaces,
23
+ removeTranslation: remove_translation_1.removeTranslation,
24
+ updateLocale: update_locale_1.updateLocale,
25
+ };
@@ -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 { TranslationRO } from '@escapenavigator/types/dist/translation/translation.ro';
4
+ import { ApiMethodDeclaration } from '..';
5
+ declare type ParamsData = QueryDto;
6
+ declare type ResponseData = QueryRO<TranslationRO>;
7
+ export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.query = void 0;
4
+ var query = function (params) { return ({
5
+ url: '/translations',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.query = query;
@@ -0,0 +1,7 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ /** ID city */
4
+ declare type ParamsData = number;
5
+ declare type ResponseData = SuccessRO;
6
+ export declare const removeNamespace: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeNamespace = void 0;
4
+ var removeNamespace = function (id) { return ({
5
+ url: "/translations/namespaces/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeNamespace = removeNamespace;
@@ -0,0 +1,7 @@
1
+ import { TranslationRO } from '@escapenavigator/types/dist/translation/translation.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ /** ID city */
4
+ declare type ParamsData = number;
5
+ declare type ResponseData = TranslationRO;
6
+ export declare const removeTranslation: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeTranslation = void 0;
4
+ var removeTranslation = function (id) { return ({
5
+ url: "/translations/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeTranslation = removeTranslation;
@@ -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,10 @@
1
+ import { TranslationRO } from '@escapenavigator/types/dist/translation/translation.ro';
2
+ import { UpdateTranslationLocaleDto } from '@escapenavigator/types/dist/translation/update-translation-locale.dto';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ id: number;
6
+ data: UpdateTranslationLocaleDto;
7
+ };
8
+ declare type ResponseData = TranslationRO;
9
+ export declare const updateLocale: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateLocale = void 0;
4
+ var updateLocale = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/translations/locales/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateLocale = updateLocale;
@@ -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.66",
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": "9fcdf29351021e0176056fa07f7607742e2522e1",
15
+ "gitHead": "5ad305e49eaa034fd21d6c4529d3424fa48aa895",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.66",
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",