@escapenavigator/services 1.4.86 → 1.4.88

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 (47) hide show
  1. package/dist/api/cashboxes-api/index.d.ts +2 -0
  2. package/dist/api/cashboxes-api/index.js +2 -0
  3. package/dist/api/cashboxes-api/toggle-enable.d.ts +6 -0
  4. package/dist/api/cashboxes-api/toggle-enable.js +8 -0
  5. package/dist/api/clients-api/index.d.ts +0 -2
  6. package/dist/api/clients-api/index.js +0 -2
  7. package/dist/api/clients-api/update.d.ts +2 -2
  8. package/dist/api/profiles-api/agb/get-profile-agb-for-order-service.d.ts +1 -1
  9. package/dist/api/profiles-api/agb/get-profile-agb.d.ts +1 -1
  10. package/dist/api/profiles-api/agb/update-profile-agb.d.ts +2 -2
  11. package/dist/api/profiles-api/cross-sale/get-cross-sale.d.ts +6 -0
  12. package/dist/api/profiles-api/cross-sale/get-cross-sale.js +8 -0
  13. package/dist/api/profiles-api/cross-sale/update-cross-sale.d.ts +7 -0
  14. package/dist/api/profiles-api/cross-sale/update-cross-sale.js +9 -0
  15. package/dist/api/profiles-api/{current.d.ts → current/current.d.ts} +1 -1
  16. package/dist/api/profiles-api/{finalize-current.d.ts → current/finalize-current.d.ts} +1 -1
  17. package/dist/api/profiles-api/{update-current.d.ts → current/update-current.d.ts} +1 -1
  18. package/dist/api/profiles-api/{get-customization.d.ts → customization/get-customization.d.ts} +2 -2
  19. package/dist/api/profiles-api/{initial-customization.d.ts → customization/initial-customization.d.ts} +1 -1
  20. package/dist/api/profiles-api/{update-customization.d.ts → customization/update-customization.d.ts} +3 -3
  21. package/dist/api/profiles-api/index.d.ts +10 -6
  22. package/dist/api/profiles-api/index.js +10 -6
  23. package/dist/api/users-api/current/current-update-avatar.d.ts +9 -0
  24. package/dist/api/users-api/current/current-update-avatar.js +12 -0
  25. package/dist/api/users-api/{current-update-notifications.d.ts → current/current-update-notifications.d.ts} +1 -1
  26. package/dist/api/users-api/{current-update-password.d.ts → current/current-update-password.d.ts} +1 -1
  27. package/dist/api/users-api/{current-update-password.js → current/current-update-password.js} +1 -1
  28. package/dist/api/users-api/current/current-update-preferences.d.ts +9 -0
  29. package/dist/api/users-api/current/current-update-preferences.js +12 -0
  30. package/dist/api/users-api/{current-update.d.ts → current/current-update.d.ts} +3 -3
  31. package/dist/api/users-api/{me-ping.d.ts → current/me-ping.d.ts} +1 -1
  32. package/dist/api/users-api/{me.d.ts → current/me.d.ts} +1 -1
  33. package/dist/api/users-api/index.d.ts +14 -10
  34. package/dist/api/users-api/index.js +9 -5
  35. package/package.json +4 -4
  36. package/dist/api/clients-api/create-from-widget.d.ts +0 -9
  37. package/dist/api/clients-api/create-from-widget.js +0 -12
  38. /package/dist/api/profiles-api/{current.js → current/current.js} +0 -0
  39. /package/dist/api/profiles-api/{finalize-current.js → current/finalize-current.js} +0 -0
  40. /package/dist/api/profiles-api/{update-current.js → current/update-current.js} +0 -0
  41. /package/dist/api/profiles-api/{get-customization.js → customization/get-customization.js} +0 -0
  42. /package/dist/api/profiles-api/{initial-customization.js → customization/initial-customization.js} +0 -0
  43. /package/dist/api/profiles-api/{update-customization.js → customization/update-customization.js} +0 -0
  44. /package/dist/api/users-api/{current-update-notifications.js → current/current-update-notifications.js} +0 -0
  45. /package/dist/api/users-api/{current-update.js → current/current-update.js} +0 -0
  46. /package/dist/api/users-api/{me-ping.js → current/me-ping.js} +0 -0
  47. /package/dist/api/users-api/{me.js → current/me.js} +0 -0
@@ -3,6 +3,7 @@ import { getOne } from './get-one';
3
3
  import { getVerificationLink } from './get-verification-link';
4
4
  import { query } from './query';
5
5
  import { remove } from './remove';
6
+ import { toggleEnabled } from './toggle-enable';
6
7
  import { update } from './update';
7
8
  declare type ApiDeclaration = {
8
9
  getVerificationLink: typeof getVerificationLink;
@@ -10,6 +11,7 @@ declare type ApiDeclaration = {
10
11
  create: typeof create;
11
12
  remove: typeof remove;
12
13
  query: typeof query;
14
+ toggleEnabled: typeof toggleEnabled;
13
15
  update: typeof update;
14
16
  };
15
17
  export declare const cashboxesApiDeclaration: ApiDeclaration;
@@ -6,12 +6,14 @@ var get_one_1 = require("./get-one");
6
6
  var get_verification_link_1 = require("./get-verification-link");
7
7
  var query_1 = require("./query");
8
8
  var remove_1 = require("./remove");
9
+ var toggle_enable_1 = require("./toggle-enable");
9
10
  var update_1 = require("./update");
10
11
  exports.cashboxesApiDeclaration = {
11
12
  create: create_1.create,
12
13
  getVerificationLink: get_verification_link_1.getVerificationLink,
13
14
  remove: remove_1.remove,
14
15
  query: query_1.query,
16
+ toggleEnabled: toggle_enable_1.toggleEnabled,
15
17
  getOne: get_one_1.getOne,
16
18
  update: update_1.update,
17
19
  };
@@ -0,0 +1,6 @@
1
+ import { CashboxRO } from '@escapenavigator/types';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = number;
4
+ declare type ResponseData = CashboxRO;
5
+ export declare const toggleEnabled: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toggleEnabled = void 0;
4
+ var toggleEnabled = function (cashboxId) { return ({
5
+ url: "/cashboxes/toggle-enabled/".concat(cashboxId),
6
+ method: 'GET',
7
+ }); };
8
+ exports.toggleEnabled = toggleEnabled;
@@ -1,6 +1,5 @@
1
1
  import { count } from './count';
2
2
  import { create } from './create';
3
- import { createFromWidget } from './create-from-widget';
4
3
  import { exportClients } from './export';
5
4
  import { getAll } from './get-all';
6
5
  import { getOne } from './get-one';
@@ -16,7 +15,6 @@ declare type ApiDeclaration = {
16
15
  query: typeof query;
17
16
  getAll: typeof getAll;
18
17
  getOne: typeof getOne;
19
- createFromWidget: typeof createFromWidget;
20
18
  };
21
19
  export declare const clientsApiDeclaration: ApiDeclaration;
22
20
  export {};
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.clientsApiDeclaration = void 0;
4
4
  var count_1 = require("./count");
5
5
  var create_1 = require("./create");
6
- var create_from_widget_1 = require("./create-from-widget");
7
6
  var export_1 = require("./export");
8
7
  var get_all_1 = require("./get-all");
9
8
  var get_one_1 = require("./get-one");
@@ -19,5 +18,4 @@ exports.clientsApiDeclaration = {
19
18
  query: query_1.query,
20
19
  getAll: get_all_1.getAll,
21
20
  getOne: get_one_1.getOne,
22
- createFromWidget: create_from_widget_1.createFromWidget,
23
21
  };
@@ -1,9 +1,9 @@
1
1
  import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
2
- import { UpdateClientDto } from '@escapenavigator/types/dist/client/update-client.dto';
2
+ import { CreateClientDto } from '@escapenavigator/types/dist/client/create-client.dto';
3
3
  import { ApiMethodDeclaration } from '..';
4
4
  declare type ParamsData = {
5
5
  id: number;
6
- data: UpdateClientDto;
6
+ data: CreateClientDto;
7
7
  };
8
8
  declare type ResponseData = ClientRO;
9
9
  export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
@@ -1,4 +1,4 @@
1
- import { ProfileAgbRO } from '@escapenavigator/types/dist/profile/profile-agb.ro';
1
+ import { ProfileAgbRO } from '@escapenavigator/types/dist/profile/agb/profile-agb.ro';
2
2
  import { ApiMethodDeclaration } from '../..';
3
3
  declare type ParamsData = number;
4
4
  declare type ResponseData = ProfileAgbRO;
@@ -1,4 +1,4 @@
1
- import { ProfileAgbRO } from '@escapenavigator/types/dist/profile/profile-agb.ro';
1
+ import { ProfileAgbRO } from '@escapenavigator/types/dist/profile/agb/profile-agb.ro';
2
2
  import { ApiMethodDeclaration } from '../..';
3
3
  declare type ParamsData = undefined;
4
4
  declare type ResponseData = ProfileAgbRO;
@@ -1,5 +1,5 @@
1
- import { ProfileAgbRO } from '@escapenavigator/types/dist/profile/profile-agb.ro';
2
- import { UpdateProfileAgbDto } from '@escapenavigator/types/dist/profile/update-agb.dto';
1
+ import { ProfileAgbRO } from '@escapenavigator/types/dist/profile/agb/profile-agb.ro';
2
+ import { UpdateProfileAgbDto } from '@escapenavigator/types/dist/profile/agb/update-agb.dto';
3
3
  import { ApiMethodDeclaration } from '../..';
4
4
  declare type ParamsData = {
5
5
  data: UpdateProfileAgbDto;
@@ -0,0 +1,6 @@
1
+ import { CrossSaleRO } from '@escapenavigator/types/dist/profile/cross-sale/cross-sale.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = undefined;
4
+ declare type ResponseData = CrossSaleRO;
5
+ export declare const getCrossSales: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCrossSales = void 0;
4
+ var getCrossSales = function () { return ({
5
+ url: '/cross-sales',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getCrossSales = getCrossSales;
@@ -0,0 +1,7 @@
1
+ import { CrossSaleDto } from '@escapenavigator/types/dist/profile/cross-sale/cross-sale.dto';
2
+ import { CrossSaleRO } from '@escapenavigator/types/dist/profile/cross-sale/cross-sale.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = CrossSaleDto;
5
+ declare type ResponseData = CrossSaleRO;
6
+ export declare const updateCrossSale: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateCrossSale = void 0;
4
+ var updateCrossSale = function (data) { return ({
5
+ url: '/cross-sales',
6
+ method: 'PATCH',
7
+ data: data,
8
+ }); };
9
+ exports.updateCrossSale = updateCrossSale;
@@ -1,5 +1,5 @@
1
1
  import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
2
- import { ApiMethodDeclaration } from '..';
2
+ import { ApiMethodDeclaration } from '../..';
3
3
  /** ID профиля */
4
4
  declare type ParamsData = undefined;
5
5
  declare type ResponseData = ProfileRO;
@@ -1,6 +1,6 @@
1
1
  import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
2
2
  import { UpdateCurrentDto } from '@escapenavigator/types/dist/profile/update-current.dto';
3
- import { ApiMethodDeclaration } from '..';
3
+ import { ApiMethodDeclaration } from '../..';
4
4
  declare type ParamsData = {
5
5
  data: UpdateCurrentDto;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
2
2
  import { UpdateCurrentDto } from '@escapenavigator/types/dist/profile/update-current.dto';
3
- import { ApiMethodDeclaration } from '..';
3
+ import { ApiMethodDeclaration } from '../..';
4
4
  declare type ParamsData = {
5
5
  data: UpdateCurrentDto;
6
6
  };
@@ -1,5 +1,5 @@
1
- import { CustomizationRO } from '@escapenavigator/types/dist/profile/customization.ro';
2
- import { ApiMethodDeclaration } from '..';
1
+ import { CustomizationRO } from '@escapenavigator/types/dist/profile/customization/customization.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
3
  /** ID профиля */
4
4
  declare type ParamsData = undefined;
5
5
  declare type ResponseData = CustomizationRO;
@@ -1,6 +1,6 @@
1
1
  import { InitialCustomizationDto } from '@escapenavigator/types/dist/profile/initial-cusomization.dto';
2
2
  import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
3
- import { ApiMethodDeclaration } from '..';
3
+ import { ApiMethodDeclaration } from '../..';
4
4
  declare type ParamsData = InitialCustomizationDto;
5
5
  declare type ResponseData = SuccessRO;
6
6
  export declare const initialCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
@@ -1,6 +1,6 @@
1
- import { CustomizationRO } from '@escapenavigator/types/dist/profile/customization.ro';
2
- import { UpdateCustomizationDto } from '@escapenavigator/types/dist/profile/update-customization.dto';
3
- import { ApiMethodDeclaration } from '..';
1
+ import { CustomizationRO } from '@escapenavigator/types/dist/profile/customization/customization.ro';
2
+ import { UpdateCustomizationDto } from '@escapenavigator/types/dist/profile/customization/update-customization.dto';
3
+ import { ApiMethodDeclaration } from '../..';
4
4
  declare type ParamsData = UpdateCustomizationDto;
5
5
  declare type ResponseData = CustomizationRO;
6
6
  export declare const updateCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
@@ -5,6 +5,14 @@ import { getBookeoInfo } from './bookeo/get-bookeo-info';
5
5
  import { getBookeoIntegrationLink } from './bookeo/get-bookeo-integration-link';
6
6
  import { getBookeoOrders } from './bookeo/get-bookeo-orders';
7
7
  import { resyncBookeo } from './bookeo/resync-bookeo';
8
+ import { getCrossSales } from './cross-sale/get-cross-sale';
9
+ import { updateCrossSale } from './cross-sale/update-cross-sale';
10
+ import { current } from './current/current';
11
+ import { finalizeCurrent } from './current/finalize-current';
12
+ import { updateCurrent } from './current/update-current';
13
+ import { getCustomization } from './customization/get-customization';
14
+ import { initialCustomization } from './customization/initial-customization';
15
+ import { updateCustomization } from './customization/update-customization';
8
16
  import { createPaymentMethodSession } from './subscription/create-payment-method-session';
9
17
  import { createSubscriptionSession } from './subscription/create-subscription-session';
10
18
  import { getPaymentSettings } from './subscription/get-payment-settings';
@@ -12,22 +20,18 @@ import { getPrices } from './subscription/get-prices';
12
20
  import { getProfileInvoices } from './subscription/get-profile-invoices';
13
21
  import { paginateBills } from './subscription/paginate-bills';
14
22
  import { create } from './create';
15
- import { current } from './current';
16
- import { finalizeCurrent } from './finalize-current';
17
23
  import { getBySlugForVerify } from './get-by-slug-for-verify';
18
- import { getCustomization } from './get-customization';
19
24
  import { getOne } from './get-one';
20
- import { initialCustomization } from './initial-customization';
21
25
  import { query } from './query';
22
26
  import { remove } from './remove';
23
27
  import { update } from './update';
24
- import { updateCurrent } from './update-current';
25
- import { updateCustomization } from './update-customization';
26
28
  declare type ApiDeclaration = {
27
29
  resyncBookeo: typeof resyncBookeo;
28
30
  getBookeoInfo: typeof getBookeoInfo;
29
31
  getBookeoIntegrationLink: typeof getBookeoIntegrationLink;
30
32
  getBookeoOrders: typeof getBookeoOrders;
33
+ getCrossSales: typeof getCrossSales;
34
+ updateCrossSale: typeof updateCrossSale;
31
35
  getProfileAgb: typeof getProfileAgb;
32
36
  getProfileAgbForOrderService: typeof getProfileAgbForOrderService;
33
37
  updateProfileAgb: typeof updateProfileAgb;
@@ -8,6 +8,14 @@ var get_bookeo_info_1 = require("./bookeo/get-bookeo-info");
8
8
  var get_bookeo_integration_link_1 = require("./bookeo/get-bookeo-integration-link");
9
9
  var get_bookeo_orders_1 = require("./bookeo/get-bookeo-orders");
10
10
  var resync_bookeo_1 = require("./bookeo/resync-bookeo");
11
+ var get_cross_sale_1 = require("./cross-sale/get-cross-sale");
12
+ var update_cross_sale_1 = require("./cross-sale/update-cross-sale");
13
+ var current_1 = require("./current/current");
14
+ var finalize_current_1 = require("./current/finalize-current");
15
+ var update_current_1 = require("./current/update-current");
16
+ var get_customization_1 = require("./customization/get-customization");
17
+ var initial_customization_1 = require("./customization/initial-customization");
18
+ var update_customization_1 = require("./customization/update-customization");
11
19
  var create_payment_method_session_1 = require("./subscription/create-payment-method-session");
12
20
  var create_subscription_session_1 = require("./subscription/create-subscription-session");
13
21
  var get_payment_settings_1 = require("./subscription/get-payment-settings");
@@ -15,19 +23,15 @@ var get_prices_1 = require("./subscription/get-prices");
15
23
  var get_profile_invoices_1 = require("./subscription/get-profile-invoices");
16
24
  var paginate_bills_1 = require("./subscription/paginate-bills");
17
25
  var create_1 = require("./create");
18
- var current_1 = require("./current");
19
- var finalize_current_1 = require("./finalize-current");
20
26
  var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
21
- var get_customization_1 = require("./get-customization");
22
27
  var get_one_1 = require("./get-one");
23
- var initial_customization_1 = require("./initial-customization");
24
28
  var query_1 = require("./query");
25
29
  var remove_1 = require("./remove");
26
30
  var update_1 = require("./update");
27
- var update_current_1 = require("./update-current");
28
- var update_customization_1 = require("./update-customization");
29
31
  exports.profilesApiDeclaration = {
30
32
  getProfileAgbForOrderService: get_profile_agb_for_order_service_1.getProfileAgbForOrderService,
33
+ getCrossSales: get_cross_sale_1.getCrossSales,
34
+ updateCrossSale: update_cross_sale_1.updateCrossSale,
31
35
  getProfileAgb: get_profile_agb_1.getProfileAgb,
32
36
  updateProfileAgb: update_profile_agb_1.updateProfileAgb,
33
37
  createSubscriptionSession: create_subscription_session_1.createSubscriptionSession,
@@ -0,0 +1,9 @@
1
+ import { UserRO } from '@escapenavigator/types/dist/user/crud/user.ro';
2
+ import { UpdateCurrentAvatarDto } from '@escapenavigator/types/dist/user/current/update-current-avatar.dto';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ data: UpdateCurrentAvatarDto;
6
+ };
7
+ declare type ResponseData = UserRO;
8
+ export declare const currentUpdateAvatar: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.currentUpdateAvatar = void 0;
4
+ var currentUpdateAvatar = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/current-user/avatar',
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.currentUpdateAvatar = currentUpdateAvatar;
@@ -1,6 +1,6 @@
1
1
  import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
2
  import { UpdateCurrentUserNotificationsDto } from '@escapenavigator/types/dist/user/current/update-current-user-notifications.dto';
3
- import { ApiMethodDeclaration } from '..';
3
+ import { ApiMethodDeclaration } from '../..';
4
4
  declare type ParamsData = {
5
5
  data: UpdateCurrentUserNotificationsDto;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
2
  import { UpdateCurrentUserPasswordDto } from '@escapenavigator/types/dist/user/current/update-current-user-password.dto';
3
- import { ApiMethodDeclaration } from '..';
3
+ import { ApiMethodDeclaration } from '../..';
4
4
  declare type ParamsData = {
5
5
  data: UpdateCurrentUserPasswordDto;
6
6
  };
@@ -4,7 +4,7 @@ exports.currentUpdatePassword = void 0;
4
4
  var currentUpdatePassword = function (_a) {
5
5
  var data = _a.data;
6
6
  return ({
7
- url: '/current-user/update-password',
7
+ url: '/current-user/password',
8
8
  method: 'PATCH',
9
9
  data: data,
10
10
  });
@@ -0,0 +1,9 @@
1
+ import { UserRO } from '@escapenavigator/types/dist/user/crud/user.ro';
2
+ import { UpdateCurrentPreferencesDto } from '@escapenavigator/types/dist/user/current/update-current-preferences.dto copy';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ data: UpdateCurrentPreferencesDto;
6
+ };
7
+ declare type ResponseData = UserRO;
8
+ export declare const currentUpdatePreferences: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.currentUpdatePreferences = void 0;
4
+ var currentUpdatePreferences = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/current-user/preferences',
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.currentUpdatePreferences = currentUpdatePreferences;
@@ -1,9 +1,9 @@
1
- import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
1
+ import { UserRO } from '@escapenavigator/types/dist/user/crud/user.ro';
2
2
  import { UpdateCurrentUserDto } from '@escapenavigator/types/dist/user/current/update-current-user.dto';
3
- import { ApiMethodDeclaration } from '..';
3
+ import { ApiMethodDeclaration } from '../..';
4
4
  declare type ParamsData = {
5
5
  data: UpdateCurrentUserDto;
6
6
  };
7
- declare type ResponseData = SuccessRO;
7
+ declare type ResponseData = UserRO;
8
8
  export declare const currentUpdate: ApiMethodDeclaration<ParamsData, ResponseData>;
9
9
  export {};
@@ -1,5 +1,5 @@
1
1
  import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
- import { ApiMethodDeclaration } from '..';
2
+ import { ApiMethodDeclaration } from '../..';
3
3
  declare type ParamsData = undefined;
4
4
  declare type ResponseData = SuccessRO;
5
5
  export declare const mePing: ApiMethodDeclaration<ParamsData, ResponseData>;
@@ -1,5 +1,5 @@
1
1
  import { CurrentUserRO } from '@escapenavigator/types/dist/user/current/current-user.ro';
2
- import { ApiMethodDeclaration } from '..';
2
+ import { ApiMethodDeclaration } from '../..';
3
3
  declare type ParamsData = undefined;
4
4
  declare type ResponseData = CurrentUserRO;
5
5
  export declare const me: ApiMethodDeclaration<ParamsData, ResponseData>;
@@ -1,3 +1,10 @@
1
+ import { currentUpdate } from './current/current-update';
2
+ import { currentUpdateAvatar } from './current/current-update-avatar';
3
+ import { currentUpdateNotifications } from './current/current-update-notifications';
4
+ import { currentUpdatePassword } from './current/current-update-password';
5
+ import { currentUpdatePreferences } from './current/current-update-preferences';
6
+ import { me } from './current/me';
7
+ import { mePing } from './current/me-ping';
1
8
  import { createSession } from './sessions/create-session';
2
9
  import { exportSession } from './sessions/export-sessions';
3
10
  import { getSessionByUserAndDate } from './sessions/get-by-user-and-date';
@@ -9,14 +16,9 @@ import { updateSession } from './sessions/update-session';
9
16
  import { checkToken } from './check-token';
10
17
  import { compliteSetup } from './complite-setup';
11
18
  import { create } from './create';
12
- import { currentUpdate } from './current-update';
13
- import { currentUpdateNotifications } from './current-update-notifications';
14
- import { currentUpdatePassword } from './current-update-password';
15
19
  import { getOne } from './get-one';
16
20
  import { login } from './login';
17
21
  import { logout } from './logout';
18
- import { me } from './me';
19
- import { mePing } from './me-ping';
20
22
  import { query } from './query';
21
23
  import { recover } from './recover';
22
24
  import { remove } from './remove';
@@ -27,6 +29,13 @@ import { setCookie } from './set-cookie';
27
29
  import { update } from './update';
28
30
  import { updatePassword } from './update-password';
29
31
  declare type ApiDeclaration = {
32
+ currentUpdateAvatar: typeof currentUpdateAvatar;
33
+ currentUpdatePreferences: typeof currentUpdatePreferences;
34
+ currentUpdateNotifications: typeof currentUpdateNotifications;
35
+ mePing: typeof mePing;
36
+ me: typeof me;
37
+ currentUpdate: typeof currentUpdate;
38
+ currentUpdatePassword: typeof currentUpdatePassword;
30
39
  getSessionByUserAndDate: typeof getSessionByUserAndDate;
31
40
  getCalendarSessions: typeof getCalendarSessions;
32
41
  querySessions: typeof querySessions;
@@ -37,19 +46,14 @@ declare type ApiDeclaration = {
37
46
  sendInviteAfterVerification: typeof sendInviteAfterVerification;
38
47
  exportSession: typeof exportSession;
39
48
  setCookie: typeof setCookie;
40
- currentUpdateNotifications: typeof currentUpdateNotifications;
41
- mePing: typeof mePing;
42
49
  create: typeof create;
43
50
  compliteSetup: typeof compliteSetup;
44
- currentUpdate: typeof currentUpdate;
45
- currentUpdatePassword: typeof currentUpdatePassword;
46
51
  getOne: typeof getOne;
47
52
  recover: typeof recover;
48
53
  remove: typeof remove;
49
54
  update: typeof update;
50
55
  query: typeof query;
51
56
  login: typeof login;
52
- me: typeof me;
53
57
  updatePassword: typeof updatePassword;
54
58
  sendInvite: typeof sendInvite;
55
59
  checkToken: typeof checkToken;
@@ -1,6 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.usersApiDeclaration = void 0;
4
+ var current_update_1 = require("./current/current-update");
5
+ var current_update_avatar_1 = require("./current/current-update-avatar");
6
+ var current_update_notifications_1 = require("./current/current-update-notifications");
7
+ var current_update_password_1 = require("./current/current-update-password");
8
+ var current_update_preferences_1 = require("./current/current-update-preferences");
9
+ var me_1 = require("./current/me");
10
+ var me_ping_1 = require("./current/me-ping");
4
11
  var create_session_1 = require("./sessions/create-session");
5
12
  var export_sessions_1 = require("./sessions/export-sessions");
6
13
  var get_by_user_and_date_1 = require("./sessions/get-by-user-and-date");
@@ -12,14 +19,9 @@ var update_session_1 = require("./sessions/update-session");
12
19
  var check_token_1 = require("./check-token");
13
20
  var complite_setup_1 = require("./complite-setup");
14
21
  var create_1 = require("./create");
15
- var current_update_1 = require("./current-update");
16
- var current_update_notifications_1 = require("./current-update-notifications");
17
- var current_update_password_1 = require("./current-update-password");
18
22
  var get_one_1 = require("./get-one");
19
23
  var login_1 = require("./login");
20
24
  var logout_1 = require("./logout");
21
- var me_1 = require("./me");
22
- var me_ping_1 = require("./me-ping");
23
25
  var query_1 = require("./query");
24
26
  var recover_1 = require("./recover");
25
27
  var remove_1 = require("./remove");
@@ -30,6 +32,8 @@ var set_cookie_1 = require("./set-cookie");
30
32
  var update_1 = require("./update");
31
33
  var update_password_1 = require("./update-password");
32
34
  exports.usersApiDeclaration = {
35
+ currentUpdateAvatar: current_update_avatar_1.currentUpdateAvatar,
36
+ currentUpdatePreferences: current_update_preferences_1.currentUpdatePreferences,
33
37
  mePing: me_ping_1.mePing,
34
38
  getCalendarSessions: get_calendar_sessions_1.getCalendarSessions,
35
39
  querySessions: query_sessions_1.querySessions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.4.86",
3
+ "version": "1.4.88",
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": "8096d98dbb818ba06218e02e3ac91b16a53abc17",
15
+ "gitHead": "8e8470392d04f24157589d2e5f85f8ef62e4a76f",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.4.84",
18
- "@escapenavigator/utils": "^1.4.86",
17
+ "@escapenavigator/types": "^1.4.86",
18
+ "@escapenavigator/utils": "^1.4.88",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
@@ -1,9 +0,0 @@
1
- import { ClientRO } from '@escapenavigator/types/dist/client/client.ro';
2
- import { CreateClientFromWidgetDto } from '@escapenavigator/types/dist/client/create-client-from-widget.dto';
3
- import { ApiMethodDeclaration } from '..';
4
- declare type ParamsData = {
5
- data: CreateClientFromWidgetDto;
6
- };
7
- declare type ResponseData = ClientRO;
8
- export declare const createFromWidget: ApiMethodDeclaration<ParamsData, ResponseData>;
9
- export {};
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createFromWidget = void 0;
4
- var createFromWidget = function (_a) {
5
- var data = _a.data;
6
- return ({
7
- url: '/clients/from-widget',
8
- method: 'POST',
9
- data: data,
10
- });
11
- };
12
- exports.createFromWidget = createFromWidget;
File without changes