@escapenavigator/services 1.9.48 → 1.9.49

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.
@@ -43,6 +43,11 @@ import { getSubscriptionInfo } from './subscription/get-subscription-info';
43
43
  import { paginateBills } from './subscription/paginate-bills';
44
44
  import { cancelSubscription } from './subscription/remove-subscription';
45
45
  import { updateSubscription } from './subscription/update-subscription';
46
+ import { getCurrentUserTelegramChanel } from './telegram-chanel/get-current-user-telegram-chanel';
47
+ import { getTelegramChanels } from './telegram-chanel/get-telegram-chanels';
48
+ import { removeCurrentUserTelegramChanel } from './telegram-chanel/remove-current-user-telegram-chanel';
49
+ import { removeTelegramChanel } from './telegram-chanel/remove-telegram-chanel';
50
+ import { updateTelegramChanel } from './telegram-chanel/update-telegram-chanel';
46
51
  import { getProfileWaiver } from './waiver/get-profile-waiver';
47
52
  import { getProfileWaiverForOrderService } from './waiver/get-profile-waiver-for-order-service';
48
53
  import { updateProfileWaiver } from './waiver/update-profile-waiver';
@@ -119,6 +124,11 @@ declare type ApiDeclaration = {
119
124
  removeSmtp: typeof removeSmtp;
120
125
  testSmtp: typeof testSmtp;
121
126
  getSmtps: typeof getSmtps;
127
+ updateTelegramChanel: typeof updateTelegramChanel;
128
+ getCurrentUserTelegramChanel: typeof getCurrentUserTelegramChanel;
129
+ removeCurrentUserTelegramChanel: typeof removeCurrentUserTelegramChanel;
130
+ removeTelegramChanel: typeof removeTelegramChanel;
131
+ getTelegramChanels: typeof getTelegramChanels;
122
132
  };
123
133
  export declare const profilesApiDeclaration: ApiDeclaration;
124
134
  export {};
@@ -46,6 +46,11 @@ var get_subscription_info_1 = require("./subscription/get-subscription-info");
46
46
  var paginate_bills_1 = require("./subscription/paginate-bills");
47
47
  var remove_subscription_1 = require("./subscription/remove-subscription");
48
48
  var update_subscription_1 = require("./subscription/update-subscription");
49
+ var get_current_user_telegram_chanel_1 = require("./telegram-chanel/get-current-user-telegram-chanel");
50
+ var get_telegram_chanels_1 = require("./telegram-chanel/get-telegram-chanels");
51
+ var remove_current_user_telegram_chanel_1 = require("./telegram-chanel/remove-current-user-telegram-chanel");
52
+ var remove_telegram_chanel_1 = require("./telegram-chanel/remove-telegram-chanel");
53
+ var update_telegram_chanel_1 = require("./telegram-chanel/update-telegram-chanel");
49
54
  var get_profile_waiver_1 = require("./waiver/get-profile-waiver");
50
55
  var get_profile_waiver_for_order_service_1 = require("./waiver/get-profile-waiver-for-order-service");
51
56
  var update_profile_waiver_1 = require("./waiver/update-profile-waiver");
@@ -62,6 +67,11 @@ var update_crm_verification_1 = require("./update-crm-verification");
62
67
  var update_partner_program_1 = require("./update-partner-program");
63
68
  var update_step_1 = require("./update-step");
64
69
  exports.profilesApiDeclaration = {
70
+ getTelegramChanels: get_telegram_chanels_1.getTelegramChanels,
71
+ removeTelegramChanel: remove_telegram_chanel_1.removeTelegramChanel,
72
+ updateTelegramChanel: update_telegram_chanel_1.updateTelegramChanel,
73
+ getCurrentUserTelegramChanel: get_current_user_telegram_chanel_1.getCurrentUserTelegramChanel,
74
+ removeCurrentUserTelegramChanel: remove_current_user_telegram_chanel_1.removeCurrentUserTelegramChanel,
65
75
  queryBalancePayments: query_balance_payments_1.queryBalancePayments,
66
76
  queryProfileBalancePayments: query_profile_balance_payments_1.queryProfileBalancePayments,
67
77
  adjustBalance: adjust_balance_1.adjustBalance,
@@ -115,7 +125,6 @@ exports.profilesApiDeclaration = {
115
125
  getBookeoOrders: get_bookeo_orders_1.getBookeoOrders,
116
126
  getBookeoInfo: get_bookeo_info_1.getBookeoInfo,
117
127
  getBookeoIntegrationLink: get_bookeo_integration_link_1.getBookeoIntegrationLink,
118
- // initialCustomization,
119
128
  create: create_2.create,
120
129
  remove: remove_1.remove,
121
130
  update: update_2.update,
@@ -0,0 +1,6 @@
1
+ import { TelegramChanelRO } from '@escapenavigator/types/dist/profile/telegram/telegram-chanel.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = undefined;
4
+ declare type ResponseData = TelegramChanelRO;
5
+ export declare const getCurrentUserTelegramChanel: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCurrentUserTelegramChanel = void 0;
4
+ var getCurrentUserTelegramChanel = function () { return ({
5
+ url: '/telegram/current-user',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getCurrentUserTelegramChanel = getCurrentUserTelegramChanel;
@@ -0,0 +1,6 @@
1
+ import { TelegramChanelRO } from '@escapenavigator/types/dist/profile/telegram/telegram-chanel.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = undefined;
4
+ declare type ResponseData = TelegramChanelRO[];
5
+ export declare const getTelegramChanels: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTelegramChanels = void 0;
4
+ var getTelegramChanels = function () { return ({
5
+ url: '/telegram',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getTelegramChanels = getTelegramChanels;
@@ -0,0 +1,6 @@
1
+ import { TelegramChanelRO } from '@escapenavigator/types/dist/profile/telegram/telegram-chanel.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = undefined;
4
+ declare type ResponseData = TelegramChanelRO;
5
+ export declare const removeCurrentUserTelegramChanel: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeCurrentUserTelegramChanel = void 0;
4
+ var removeCurrentUserTelegramChanel = function () { return ({
5
+ url: '/telegram/current-user',
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeCurrentUserTelegramChanel = removeCurrentUserTelegramChanel;
@@ -0,0 +1,6 @@
1
+ import { TelegramChanelRO } from '@escapenavigator/types/dist/profile/telegram/telegram-chanel.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = number;
4
+ declare type ResponseData = TelegramChanelRO;
5
+ export declare const removeTelegramChanel: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeTelegramChanel = void 0;
4
+ var removeTelegramChanel = function (id) { return ({
5
+ url: "/telegram/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.removeTelegramChanel = removeTelegramChanel;
@@ -0,0 +1,10 @@
1
+ import { CreateTelegramChanelDto } from '@escapenavigator/types/dist/profile/telegram/create-telegram-chanel.dto';
2
+ import { TelegramChanelRO } from '@escapenavigator/types/dist/profile/telegram/telegram-chanel.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ id: number;
6
+ data: CreateTelegramChanelDto;
7
+ };
8
+ declare type ResponseData = TelegramChanelRO;
9
+ export declare const updateTelegramChanel: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateTelegramChanel = void 0;
4
+ var updateTelegramChanel = function (_a) {
5
+ var id = _a.id, data = _a.data;
6
+ return ({
7
+ url: "/telegram/".concat(id),
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateTelegramChanel = updateTelegramChanel;
@@ -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;
@@ -0,0 +1,5 @@
1
+ import { ApiMethodDeclaration } from '../..';
2
+ declare type ParamsData = undefined;
3
+ declare type ResponseData = string;
4
+ export declare const getTmpToken: ApiMethodDeclaration<ParamsData, ResponseData>;
5
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getTmpToken = void 0;
4
+ var getTmpToken = function () { return ({
5
+ url: '/current-user/token',
6
+ method: 'GET',
7
+ }); };
8
+ exports.getTmpToken = getTmpToken;
@@ -3,6 +3,7 @@ import { currentUpdateAvatar } from './current/current-update-avatar';
3
3
  import { currentUpdateNotifications } from './current/current-update-notifications';
4
4
  import { currentUpdatePassword } from './current/current-update-password';
5
5
  import { currentUpdatePreferences } from './current/current-update-preferences';
6
+ import { getTmpToken } from './current/get-tmp-token';
6
7
  import { me } from './current/me';
7
8
  import { mePing } from './current/me-ping';
8
9
  import { createPosition } from './positions/create-position';
@@ -41,6 +42,7 @@ declare type ApiDeclaration = {
41
42
  removePosition: typeof removePosition;
42
43
  updatePosition: typeof updatePosition;
43
44
  loginSwitch: typeof loginSwitch;
45
+ getTmpToken: typeof getTmpToken;
44
46
  currentUpdateAvatar: typeof currentUpdateAvatar;
45
47
  currentUpdatePreferences: typeof currentUpdatePreferences;
46
48
  currentUpdateNotifications: typeof currentUpdateNotifications;
@@ -6,6 +6,7 @@ var current_update_avatar_1 = require("./current/current-update-avatar");
6
6
  var current_update_notifications_1 = require("./current/current-update-notifications");
7
7
  var current_update_password_1 = require("./current/current-update-password");
8
8
  var current_update_preferences_1 = require("./current/current-update-preferences");
9
+ var get_tmp_token_1 = require("./current/get-tmp-token");
9
10
  var me_1 = require("./current/me");
10
11
  var me_ping_1 = require("./current/me-ping");
11
12
  var create_position_1 = require("./positions/create-position");
@@ -48,6 +49,7 @@ exports.usersApiDeclaration = {
48
49
  currentUpdatePreferences: current_update_preferences_1.currentUpdatePreferences,
49
50
  mePing: me_ping_1.mePing,
50
51
  getCalendarSessions: get_calendar_sessions_1.getCalendarSessions,
52
+ getTmpToken: get_tmp_token_1.getTmpToken,
51
53
  querySessions: query_sessions_1.querySessions,
52
54
  getSessionByUserAndDate: get_by_user_and_date_1.getSessionByUserAndDate,
53
55
  getSession: get_session_1.getSession,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.9.48",
3
+ "version": "1.9.49",
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": "fae39ac588a9c581979800aaa0e06d9e5970385e",
15
+ "gitHead": "8c7577d974269932a14312df2e9aaef39dc2a16d",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.9.43",
18
- "@escapenavigator/utils": "^1.9.45",
17
+ "@escapenavigator/types": "^1.9.44",
18
+ "@escapenavigator/utils": "^1.9.46",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.2",