@escapenavigator/services 1.10.0 → 1.10.2
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.
- package/dist/api/google-calendars-api/colors.d.ts +7 -0
- package/dist/api/google-calendars-api/colors.js +8 -0
- package/dist/api/google-calendars-api/index.d.ts +2 -0
- package/dist/api/google-calendars-api/index.js +2 -0
- package/dist/api/init-client-api.d.ts +0 -2
- package/dist/api/init-client-api.js +0 -2
- package/dist/api/profiles-api/index.d.ts +10 -10
- package/dist/api/profiles-api/index.js +20 -20
- package/dist/api/profiles-api/notification-chanel/create.d.ts +9 -0
- package/dist/api/profiles-api/notification-chanel/create.js +12 -0
- package/dist/api/profiles-api/notification-chanel/query.d.ts +7 -0
- package/dist/api/profiles-api/notification-chanel/query.js +9 -0
- package/dist/api/profiles-api/notification-chanel/remove.d.ts +6 -0
- package/dist/api/profiles-api/notification-chanel/remove.js +8 -0
- package/dist/api/profiles-api/notification-chanel/update.d.ts +10 -0
- package/dist/api/profiles-api/notification-chanel/update.js +12 -0
- package/dist/api/profiles-api/notification-chanel/webhook-api.d.ts +5 -0
- package/dist/api/profiles-api/notification-chanel/webhook-api.js +9 -0
- package/package.json +4 -4
- package/dist/api/profiles-api/telegram-chanel/get-current-user-telegram-chanel.d.ts +0 -6
- package/dist/api/profiles-api/telegram-chanel/get-current-user-telegram-chanel.js +0 -8
- package/dist/api/profiles-api/telegram-chanel/get-telegram-chanels.d.ts +0 -6
- package/dist/api/profiles-api/telegram-chanel/get-telegram-chanels.js +0 -8
- package/dist/api/profiles-api/telegram-chanel/remove-current-user-telegram-chanel.d.ts +0 -6
- package/dist/api/profiles-api/telegram-chanel/remove-current-user-telegram-chanel.js +0 -8
- package/dist/api/profiles-api/telegram-chanel/remove-telegram-chanel.d.ts +0 -6
- package/dist/api/profiles-api/telegram-chanel/remove-telegram-chanel.js +0 -8
- package/dist/api/profiles-api/telegram-chanel/update-telegram-chanel.d.ts +0 -10
- package/dist/api/profiles-api/telegram-chanel/update-telegram-chanel.js +0 -12
- package/dist/api/webhooks-api/api.d.ts +0 -5
- package/dist/api/webhooks-api/api.js +0 -9
- package/dist/api/webhooks-api/create.d.ts +0 -9
- package/dist/api/webhooks-api/create.js +0 -12
- package/dist/api/webhooks-api/index.d.ts +0 -12
- package/dist/api/webhooks-api/index.js +0 -13
- package/dist/api/webhooks-api/query.d.ts +0 -6
- package/dist/api/webhooks-api/query.js +0 -9
- package/dist/api/webhooks-api/remove.d.ts +0 -7
- package/dist/api/webhooks-api/remove.js +0 -8
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { colors } from './colors';
|
|
1
2
|
import { create } from './create';
|
|
2
3
|
import { getAll } from './get-all';
|
|
3
4
|
import { getInitial } from './get-initial';
|
|
@@ -9,6 +10,7 @@ declare type ApiDeclaration = {
|
|
|
9
10
|
update: typeof update;
|
|
10
11
|
getAll: typeof getAll;
|
|
11
12
|
getInitial: typeof getInitial;
|
|
13
|
+
colors: typeof colors;
|
|
12
14
|
remove: typeof remove;
|
|
13
15
|
getVerificationLink: typeof getVerificationLink;
|
|
14
16
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.googleCalendarsApiDeclaration = void 0;
|
|
4
|
+
var colors_1 = require("./colors");
|
|
4
5
|
var create_1 = require("./create");
|
|
5
6
|
var get_all_1 = require("./get-all");
|
|
6
7
|
var get_initial_1 = require("./get-initial");
|
|
@@ -11,6 +12,7 @@ exports.googleCalendarsApiDeclaration = {
|
|
|
11
12
|
create: create_1.create,
|
|
12
13
|
update: update_1.update,
|
|
13
14
|
getAll: get_all_1.getAll,
|
|
15
|
+
colors: colors_1.colors,
|
|
14
16
|
remove: remove_1.remove,
|
|
15
17
|
getInitial: get_initial_1.getInitial,
|
|
16
18
|
getVerificationLink: get_verification_link_1.getVerificationLink,
|
|
@@ -53,12 +53,10 @@ import { uploadsApiDeclaration } from './uploads-api';
|
|
|
53
53
|
import { upsellingsApiDeclaration } from './upsellings-api';
|
|
54
54
|
import { userMessagesApiDeclaration } from './user-messages-api';
|
|
55
55
|
import { usersApiDeclaration } from './users-api';
|
|
56
|
-
import { webhooksApiDeclaration } from './webhooks-api';
|
|
57
56
|
import { widgetsApiDeclaration } from './widgets-api';
|
|
58
57
|
import { Api } from '.';
|
|
59
58
|
export declare type InitApiDeclaration = {
|
|
60
59
|
customFieldsApi: Api<typeof customFieldsApiDeclaration>;
|
|
61
|
-
webhooksApi: Api<typeof webhooksApiDeclaration>;
|
|
62
60
|
questroomScenarioEmailApi: Api<typeof questroomScenarioEmailApiDeclaration>;
|
|
63
61
|
orderEmailsApi: Api<typeof orderEmailsApiDeclaration>;
|
|
64
62
|
crossSalesApi: Api<typeof crossSalesApiDeclaration>;
|
|
@@ -57,12 +57,10 @@ var uploads_api_1 = require("./uploads-api");
|
|
|
57
57
|
var upsellings_api_1 = require("./upsellings-api");
|
|
58
58
|
var user_messages_api_1 = require("./user-messages-api");
|
|
59
59
|
var users_api_1 = require("./users-api");
|
|
60
|
-
var webhooks_api_1 = require("./webhooks-api");
|
|
61
60
|
var widgets_api_1 = require("./widgets-api");
|
|
62
61
|
var _1 = require(".");
|
|
63
62
|
var initClientApi = function (url) { return ({
|
|
64
63
|
customFieldsApi: (0, _1.initApi)(custom_fields_api_1.customFieldsApiDeclaration, url),
|
|
65
|
-
webhooksApi: (0, _1.initApi)(webhooks_api_1.webhooksApiDeclaration, url),
|
|
66
64
|
orderEmailsApi: (0, _1.initApi)(order_emails_api_1.orderEmailsApiDeclaration, url),
|
|
67
65
|
questroomScenarioEmailApi: (0, _1.initApi)(questrooms_scenatio_email_api_1.questroomScenarioEmailApiDeclaration, url),
|
|
68
66
|
crossSalesApi: (0, _1.initApi)(cross_sale_api_1.crossSalesApiDeclaration, url),
|
|
@@ -26,6 +26,11 @@ import { getAllCustomersEmail } from './email/get-all-customer-emails';
|
|
|
26
26
|
import { getCustomerEmail } from './email/get-customer-email';
|
|
27
27
|
import { queryCampaigns } from './email/query-campaigns';
|
|
28
28
|
import { testEmail } from './email/test-email';
|
|
29
|
+
import { createNotificationChanel } from './notification-chanel/create';
|
|
30
|
+
import { queryNotificationChanels } from './notification-chanel/query';
|
|
31
|
+
import { removeNotificationChanel } from './notification-chanel/remove';
|
|
32
|
+
import { updateNotificationChanel } from './notification-chanel/update';
|
|
33
|
+
import { webHookApi } from './notification-chanel/webhook-api';
|
|
29
34
|
import { createOtherCrm } from './other-crm/create-other-crm';
|
|
30
35
|
import { getAllCrm } from './other-crm/get-all-crm';
|
|
31
36
|
import { getProfileFilters } from './other-crm/get-profile-filters';
|
|
@@ -43,11 +48,6 @@ import { getSubscriptionInfo } from './subscription/get-subscription-info';
|
|
|
43
48
|
import { paginateBills } from './subscription/paginate-bills';
|
|
44
49
|
import { cancelSubscription } from './subscription/remove-subscription';
|
|
45
50
|
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';
|
|
51
51
|
import { getProfileWaiver } from './waiver/get-profile-waiver';
|
|
52
52
|
import { getProfileWaiverForOrderService } from './waiver/get-profile-waiver-for-order-service';
|
|
53
53
|
import { updateProfileWaiver } from './waiver/update-profile-waiver';
|
|
@@ -124,11 +124,11 @@ declare type ApiDeclaration = {
|
|
|
124
124
|
removeSmtp: typeof removeSmtp;
|
|
125
125
|
testSmtp: typeof testSmtp;
|
|
126
126
|
getSmtps: typeof getSmtps;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
127
|
+
updateNotificationChanel: typeof updateNotificationChanel;
|
|
128
|
+
createNotificationChanel: typeof createNotificationChanel;
|
|
129
|
+
removeNotificationChanel: typeof removeNotificationChanel;
|
|
130
|
+
queryNotificationChanels: typeof queryNotificationChanels;
|
|
131
|
+
webHookApi: typeof webHookApi;
|
|
132
132
|
};
|
|
133
133
|
export declare const profilesApiDeclaration: ApiDeclaration;
|
|
134
134
|
export {};
|
|
@@ -29,6 +29,11 @@ var get_all_customer_emails_1 = require("./email/get-all-customer-emails");
|
|
|
29
29
|
var get_customer_email_1 = require("./email/get-customer-email");
|
|
30
30
|
var query_campaigns_1 = require("./email/query-campaigns");
|
|
31
31
|
var test_email_1 = require("./email/test-email");
|
|
32
|
+
var create_2 = require("./notification-chanel/create");
|
|
33
|
+
var query_1 = require("./notification-chanel/query");
|
|
34
|
+
var remove_1 = require("./notification-chanel/remove");
|
|
35
|
+
var update_1 = require("./notification-chanel/update");
|
|
36
|
+
var webhook_api_1 = require("./notification-chanel/webhook-api");
|
|
32
37
|
var create_other_crm_1 = require("./other-crm/create-other-crm");
|
|
33
38
|
var get_all_crm_1 = require("./other-crm/get-all-crm");
|
|
34
39
|
var get_profile_filters_1 = require("./other-crm/get-profile-filters");
|
|
@@ -46,32 +51,27 @@ var get_subscription_info_1 = require("./subscription/get-subscription-info");
|
|
|
46
51
|
var paginate_bills_1 = require("./subscription/paginate-bills");
|
|
47
52
|
var remove_subscription_1 = require("./subscription/remove-subscription");
|
|
48
53
|
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");
|
|
54
54
|
var get_profile_waiver_1 = require("./waiver/get-profile-waiver");
|
|
55
55
|
var get_profile_waiver_for_order_service_1 = require("./waiver/get-profile-waiver-for-order-service");
|
|
56
56
|
var update_profile_waiver_1 = require("./waiver/update-profile-waiver");
|
|
57
57
|
var get_1 = require("./widget-customization/get");
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var update_2 = require("./widget-customization/update");
|
|
59
|
+
var create_3 = require("./create");
|
|
60
60
|
var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
|
|
61
61
|
var get_onboarding_steps_1 = require("./get-onboarding-steps");
|
|
62
62
|
var get_one_1 = require("./get-one");
|
|
63
|
-
var
|
|
64
|
-
var
|
|
65
|
-
var
|
|
63
|
+
var query_2 = require("./query");
|
|
64
|
+
var remove_2 = require("./remove");
|
|
65
|
+
var update_3 = require("./update");
|
|
66
66
|
var update_crm_verification_1 = require("./update-crm-verification");
|
|
67
67
|
var update_partner_program_1 = require("./update-partner-program");
|
|
68
68
|
var update_step_1 = require("./update-step");
|
|
69
69
|
exports.profilesApiDeclaration = {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
updateNotificationChanel: update_1.updateNotificationChanel,
|
|
71
|
+
createNotificationChanel: create_2.createNotificationChanel,
|
|
72
|
+
removeNotificationChanel: remove_1.removeNotificationChanel,
|
|
73
|
+
queryNotificationChanels: query_1.queryNotificationChanels,
|
|
74
|
+
webHookApi: webhook_api_1.webHookApi,
|
|
75
75
|
queryBalancePayments: query_balance_payments_1.queryBalancePayments,
|
|
76
76
|
queryProfileBalancePayments: query_profile_balance_payments_1.queryProfileBalancePayments,
|
|
77
77
|
adjustBalance: adjust_balance_1.adjustBalance,
|
|
@@ -96,7 +96,7 @@ exports.profilesApiDeclaration = {
|
|
|
96
96
|
queryActivity: query_activity_1.queryActivity,
|
|
97
97
|
createContact: create_contact_1.createContact,
|
|
98
98
|
getWidgetCustomization: get_1.getWidgetCustomization,
|
|
99
|
-
updateWidgetCustomization:
|
|
99
|
+
updateWidgetCustomization: update_2.updateWidgetCustomization,
|
|
100
100
|
removeContact: remove_contact_1.removeContact,
|
|
101
101
|
updateProfileCrm: update_profile_crm_1.updateProfileCrm,
|
|
102
102
|
getOnboardingSteps: get_onboarding_steps_1.getOnboardingSteps,
|
|
@@ -125,10 +125,10 @@ exports.profilesApiDeclaration = {
|
|
|
125
125
|
getBookeoOrders: get_bookeo_orders_1.getBookeoOrders,
|
|
126
126
|
getBookeoInfo: get_bookeo_info_1.getBookeoInfo,
|
|
127
127
|
getBookeoIntegrationLink: get_bookeo_integration_link_1.getBookeoIntegrationLink,
|
|
128
|
-
create:
|
|
129
|
-
remove:
|
|
130
|
-
update:
|
|
131
|
-
query:
|
|
128
|
+
create: create_3.create,
|
|
129
|
+
remove: remove_2.remove,
|
|
130
|
+
update: update_3.update,
|
|
131
|
+
query: query_2.query,
|
|
132
132
|
getOne: get_one_1.getOne,
|
|
133
133
|
current: current_1.current,
|
|
134
134
|
getBySlugForVerify: get_by_slug_for_verify_1.getBySlugForVerify,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateNotificationChanelDto } from '@escapenavigator/types/dist/profile/notification-chanel/create-notification-chanel.dto';
|
|
2
|
+
import { NotificationChanelRO } from '@escapenavigator/types/dist/profile/notification-chanel/notification-chanel.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateNotificationChanelDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = NotificationChanelRO;
|
|
8
|
+
export declare const createNotificationChanel: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createNotificationChanel = void 0;
|
|
4
|
+
var createNotificationChanel = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/notification-chanel',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createNotificationChanel = createNotificationChanel;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NotificationChanelQueryDto } from '@escapenavigator/types/dist/profile/notification-chanel/notification-chanel-query.dto';
|
|
2
|
+
import { NotificationChanelRO } from '@escapenavigator/types/dist/profile/notification-chanel/notification-chanel.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = NotificationChanelQueryDto;
|
|
5
|
+
declare type ResponseData = NotificationChanelRO[];
|
|
6
|
+
export declare const queryNotificationChanels: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryNotificationChanels = void 0;
|
|
4
|
+
var queryNotificationChanels = function (params) { return ({
|
|
5
|
+
url: '/notification-chanel',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.queryNotificationChanels = queryNotificationChanels;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NotificationChanelRO } from '@escapenavigator/types/dist/profile/notification-chanel/notification-chanel.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = number;
|
|
4
|
+
declare type ResponseData = NotificationChanelRO;
|
|
5
|
+
export declare const removeNotificationChanel: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeNotificationChanel = void 0;
|
|
4
|
+
var removeNotificationChanel = function (id) { return ({
|
|
5
|
+
url: "/notification-chanel/".concat(id),
|
|
6
|
+
method: 'DELETE',
|
|
7
|
+
}); };
|
|
8
|
+
exports.removeNotificationChanel = removeNotificationChanel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateNotificationChanelDto } from '@escapenavigator/types/dist/profile/notification-chanel/create-notification-chanel.dto';
|
|
2
|
+
import { NotificationChanelRO } from '@escapenavigator/types/dist/profile/notification-chanel/notification-chanel.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: CreateNotificationChanelDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = NotificationChanelRO;
|
|
9
|
+
export declare const updateNotificationChanel: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateNotificationChanel = void 0;
|
|
4
|
+
var updateNotificationChanel = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/notification-chanel/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.updateNotificationChanel = updateNotificationChanel;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webHookApi = void 0;
|
|
4
|
+
var webHookApi = function (params) { return ({
|
|
5
|
+
url: '/notification-chanel/webhook-api',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.webHookApi = webHookApi;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
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": "
|
|
15
|
+
"gitHead": "ae85440284de3c5cde10221861a888fd3669fce7",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.2",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.2",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,10 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CreateWebhookDto } from '@escapenavigator/types/dist/webhook/create-webhook.dto';
|
|
2
|
-
import { WebhookRO } from '@escapenavigator/types/dist/webhook/webhook.ro';
|
|
3
|
-
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
declare type ParamsData = {
|
|
5
|
-
data: CreateWebhookDto;
|
|
6
|
-
};
|
|
7
|
-
declare type ResponseData = WebhookRO;
|
|
8
|
-
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.create = void 0;
|
|
4
|
-
var create = function (_a) {
|
|
5
|
-
var data = _a.data;
|
|
6
|
-
return ({
|
|
7
|
-
url: '/webhooks',
|
|
8
|
-
method: 'POST',
|
|
9
|
-
data: data,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.create = create;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { api } from './api';
|
|
2
|
-
import { create } from './create';
|
|
3
|
-
import { query } from './query';
|
|
4
|
-
import { remove } from './remove';
|
|
5
|
-
declare type ApiDeclaration = {
|
|
6
|
-
create: typeof create;
|
|
7
|
-
remove: typeof remove;
|
|
8
|
-
api: typeof api;
|
|
9
|
-
query: typeof query;
|
|
10
|
-
};
|
|
11
|
-
export declare const webhooksApiDeclaration: ApiDeclaration;
|
|
12
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webhooksApiDeclaration = void 0;
|
|
4
|
-
var api_1 = require("./api");
|
|
5
|
-
var create_1 = require("./create");
|
|
6
|
-
var query_1 = require("./query");
|
|
7
|
-
var remove_1 = require("./remove");
|
|
8
|
-
exports.webhooksApiDeclaration = {
|
|
9
|
-
create: create_1.create,
|
|
10
|
-
remove: remove_1.remove,
|
|
11
|
-
api: api_1.api,
|
|
12
|
-
query: query_1.query,
|
|
13
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { WebhookRO } from '@escapenavigator/types/dist/webhook/webhook.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
declare type ParamsData = undefined;
|
|
4
|
-
declare type ResponseData = WebhookRO[];
|
|
5
|
-
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { WebhookRO } from '@escapenavigator/types/dist/webhook/webhook.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
/** ID */
|
|
4
|
-
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData = WebhookRO;
|
|
6
|
-
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
-
export {};
|