@escapenavigator/services 1.4.81 → 1.4.82
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/agb-api/create.d.ts +9 -0
- package/dist/api/agb-api/{create-inside-agb.js → create.js} +3 -3
- package/dist/api/agb-api/get-all.d.ts +7 -0
- package/dist/api/agb-api/get-all.js +8 -0
- package/dist/api/agb-api/get-for-order-service.d.ts +2 -2
- package/dist/api/agb-api/get-one.d.ts +7 -0
- package/dist/api/agb-api/{get-one-by-id.js → get-one.js} +3 -3
- package/dist/api/agb-api/index.d.ts +8 -12
- package/dist/api/agb-api/index.js +8 -12
- package/dist/api/agb-api/{update-inside-agb.d.ts → update.d.ts} +3 -3
- package/dist/api/agb-api/{update-inside-agb.js → update.js} +3 -3
- package/dist/api/init-client-api.d.ts +2 -0
- package/dist/api/init-client-api.js +2 -0
- package/dist/api/{transactions-api → order-transactions-api}/create-order-payment.d.ts +1 -1
- package/dist/api/{transactions-api → order-transactions-api}/create-order-refund.d.ts +2 -2
- package/dist/api/order-transactions-api/create-order-stripe-refund.d.ts +9 -0
- package/dist/api/order-transactions-api/create-order-stripe-refund.js +12 -0
- package/dist/api/order-transactions-api/index.d.ts +10 -0
- package/dist/api/order-transactions-api/index.js +11 -0
- package/dist/api/profiles-api/agb/get-profile-agb-for-order-service.d.ts +6 -0
- package/dist/api/profiles-api/agb/get-profile-agb-for-order-service.js +8 -0
- package/dist/api/profiles-api/agb/get-profile-agb.d.ts +6 -0
- package/dist/api/profiles-api/agb/get-profile-agb.js +8 -0
- package/dist/api/profiles-api/agb/update-profile-agb.d.ts +9 -0
- package/dist/api/{agb-api → profiles-api/agb}/update-profile-agb.js +1 -1
- package/dist/api/profiles-api/bookeo/get-bookeo-info.d.ts +5 -0
- package/dist/api/profiles-api/bookeo/get-bookeo-info.js +8 -0
- package/dist/api/profiles-api/bookeo/get-bookeo-integration-link.d.ts +5 -0
- package/dist/api/profiles-api/bookeo/get-bookeo-integration-link.js +8 -0
- package/dist/api/profiles-api/finalize-current.d.ts +9 -0
- package/dist/api/profiles-api/finalize-current.js +12 -0
- package/dist/api/profiles-api/get-customization.d.ts +7 -0
- package/dist/api/profiles-api/get-customization.js +8 -0
- package/dist/api/profiles-api/index.d.ts +24 -8
- package/dist/api/profiles-api/index.js +24 -8
- package/dist/api/profiles-api/subscription/create-subscription-session.d.ts +8 -0
- package/dist/api/profiles-api/subscription/create-subscription-session.js +11 -0
- package/dist/api/profiles-api/{get-payment-settings.d.ts → subscription/get-payment-settings.d.ts} +1 -1
- package/dist/api/profiles-api/subscription/get-prices.d.ts +6 -0
- package/dist/api/profiles-api/subscription/get-prices.js +8 -0
- package/dist/api/profiles-api/{get-profile-invoices.d.ts → subscription/get-profile-invoices.d.ts} +1 -1
- package/dist/api/profiles-api/{get-stripe-session-link.d.ts → subscription/get-stripe-session-link.d.ts} +1 -1
- package/dist/api/profiles-api/{paginate-bills.d.ts → subscription/paginate-bills.d.ts} +1 -1
- package/dist/api/profiles-api/update-customization.d.ts +7 -0
- package/dist/api/profiles-api/update-customization.js +9 -0
- package/dist/api/questrooms-api/close-many.d.ts +8 -0
- package/dist/api/questrooms-api/close-many.js +9 -0
- package/dist/api/questrooms-api/index.d.ts +2 -0
- package/dist/api/questrooms-api/index.js +2 -0
- package/dist/api/slot-templates-api/update.d.ts +2 -2
- package/dist/api/transactions-api/index.d.ts +0 -8
- package/dist/api/transactions-api/index.js +0 -8
- package/dist/api/users-api/check-token.d.ts +2 -2
- package/dist/api/users-api/complite-setup.d.ts +2 -2
- package/dist/api/users-api/create.d.ts +2 -2
- package/dist/api/users-api/current-update-notifications.d.ts +1 -1
- package/dist/api/users-api/current-update-password.d.ts +1 -1
- package/dist/api/users-api/current-update.d.ts +1 -1
- package/dist/api/users-api/get-one.d.ts +1 -1
- package/dist/api/users-api/index.d.ts +18 -20
- package/dist/api/users-api/index.js +18 -20
- package/dist/api/users-api/login.d.ts +1 -1
- package/dist/api/users-api/me-ping.d.ts +6 -0
- package/dist/api/users-api/me-ping.js +8 -0
- package/dist/api/users-api/me.d.ts +1 -1
- package/dist/api/users-api/query.d.ts +1 -1
- package/dist/api/users-api/recover.d.ts +1 -1
- package/dist/api/users-api/remove.d.ts +1 -1
- package/dist/api/users-api/send-invite.d.ts +1 -1
- package/dist/api/users-api/sessions/create-session.d.ts +9 -0
- package/dist/api/users-api/{create-report.js → sessions/create-session.js} +4 -4
- package/dist/api/users-api/sessions/export-sessions.d.ts +6 -0
- package/dist/api/users-api/sessions/export-sessions.js +10 -0
- package/dist/api/users-api/sessions/get-by-user-and-date.d.ts +7 -0
- package/dist/api/users-api/sessions/get-by-user-and-date.js +9 -0
- package/dist/api/users-api/sessions/get-calendar-sessions.d.ts +7 -0
- package/dist/api/users-api/sessions/get-calendar-sessions.js +9 -0
- package/dist/api/users-api/sessions/get-session.d.ts +6 -0
- package/dist/api/users-api/sessions/get-session.js +8 -0
- package/dist/api/users-api/sessions/query-sessions.d.ts +8 -0
- package/dist/api/users-api/sessions/query-sessions.js +9 -0
- package/dist/api/users-api/sessions/remove-session.d.ts +6 -0
- package/dist/api/users-api/sessions/remove-session.js +8 -0
- package/dist/api/users-api/sessions/update-session.d.ts +10 -0
- package/dist/api/users-api/{update-report.js → sessions/update-session.js} +4 -4
- package/dist/api/users-api/set-cookie.d.ts +1 -1
- package/dist/api/users-api/update-password.d.ts +1 -1
- package/dist/api/users-api/update.d.ts +2 -2
- package/dist/api/widgets-api/get-instruction-token.d.ts +6 -0
- package/dist/api/widgets-api/get-instruction-token.js +8 -0
- package/dist/api/widgets-api/get-instruction.d.ts +7 -0
- package/dist/api/widgets-api/get-instruction.js +9 -0
- package/dist/api/widgets-api/index.d.ts +6 -4
- package/dist/api/widgets-api/index.js +6 -4
- package/dist/api/widgets-api/init.d.ts +7 -0
- package/dist/api/widgets-api/init.js +9 -0
- package/dist/api/widgets-orders/cancel-order.d.ts +2 -2
- package/dist/api/widgets-orders/find-order.d.ts +2 -2
- package/dist/hooks/use-api-method/actions/creators/api.d.ts +1 -1
- package/dist/hooks/use-api-method/index.d.ts +1 -1
- package/dist/hooks/use-api-method/index.js +1 -1
- package/dist/hooks/use-api-method/reducers/api.d.ts +1 -1
- package/package.json +4 -4
- package/dist/api/agb-api/create-inside-agb.d.ts +0 -9
- package/dist/api/agb-api/get-all-inside.d.ts +0 -7
- package/dist/api/agb-api/get-all-inside.js +0 -8
- package/dist/api/agb-api/get-one-by-id.d.ts +0 -7
- package/dist/api/agb-api/get-one-for-profile.d.ts +0 -7
- package/dist/api/agb-api/get-one-for-profile.js +0 -8
- package/dist/api/agb-api/update-profile-agb.d.ts +0 -9
- package/dist/api/profiles-api/_get-by-slug.d.ts +0 -7
- package/dist/api/profiles-api/_get-by-slug.js +0 -8
- package/dist/api/profiles-api/get-all-daily-reports.d.ts +0 -9
- package/dist/api/profiles-api/get-all-daily-reports.js +0 -8
- package/dist/api/profiles-api/update-payment-settings.d.ts +0 -6
- package/dist/api/profiles-api/update-payment-settings.js +0 -9
- package/dist/api/transactions-api/remove-order-payment.d.ts +0 -7
- package/dist/api/transactions-api/remove-order-payment.js +0 -8
- package/dist/api/transactions-api/remove-order-refund.d.ts +0 -7
- package/dist/api/transactions-api/remove-order-refund.js +0 -8
- package/dist/api/users-api/create-report.d.ts +0 -9
- package/dist/api/users-api/query-daily-reports.d.ts +0 -6
- package/dist/api/users-api/query-daily-reports.js +0 -8
- package/dist/api/users-api/query-month-reports.d.ts +0 -6
- package/dist/api/users-api/query-month-reports.js +0 -8
- package/dist/api/users-api/query-reports.d.ts +0 -8
- package/dist/api/users-api/query-reports.js +0 -9
- package/dist/api/users-api/remove-report.d.ts +0 -7
- package/dist/api/users-api/remove-report.js +0 -8
- package/dist/api/users-api/reports-count.d.ts +0 -6
- package/dist/api/users-api/reports-count.js +0 -9
- package/dist/api/users-api/reports-export.d.ts +0 -8
- package/dist/api/users-api/reports-export.js +0 -10
- package/dist/api/users-api/start-timer.d.ts +0 -6
- package/dist/api/users-api/start-timer.js +0 -8
- package/dist/api/users-api/stop-timer.d.ts +0 -6
- package/dist/api/users-api/stop-timer.js +0 -8
- package/dist/api/users-api/update-report.d.ts +0 -10
- package/dist/api/widgets-api/get-widget-customization.d.ts +0 -7
- package/dist/api/widgets-api/get-widget-customization.js +0 -8
- package/dist/api/widgets-api/update-widget-customization.d.ts +0 -7
- package/dist/api/widgets-api/update-widget-customization.js +0 -9
- package/dist/utils/convert-to-options.d.ts +0 -13
- package/dist/utils/convert-to-options.js +0 -17
- package/dist/utils/enum-to-options.d.ts +0 -5
- package/dist/utils/enum-to-options.js +0 -10
- package/dist/utils/get-documents-links.d.ts +0 -8
- package/dist/utils/get-documents-links.js +0 -14
- package/dist/utils/get-handled-error-message.d.ts +0 -1
- package/dist/utils/get-handled-error-message.js +0 -7
- package/dist/utils/get-many.d.ts +0 -1
- package/dist/utils/get-many.js +0 -13
- package/dist/utils/get-one.d.ts +0 -1
- package/dist/utils/get-one.js +0 -13
- package/dist/utils/get-service-error.d.ts +0 -18
- package/dist/utils/get-service-error.js +0 -67
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/index.js +0 -21
- package/dist/utils/is-axios-error.d.ts +0 -6
- package/dist/utils/is-axios-error.js +0 -11
- package/dist/utils/is-network-error.d.ts +0 -5
- package/dist/utils/is-network-error.js +0 -18
- package/dist/utils/redirect.d.ts +0 -1
- package/dist/utils/redirect.js +0 -7
- package/dist/utils/serialize-record.d.ts +0 -2
- package/dist/utils/serialize-record.js +0 -10
- package/dist/utils/serialize-slot.d.ts +0 -9
- package/dist/utils/serialize-slot.js +0 -48
- package/dist/utils/tz-date.d.ts +0 -19
- package/dist/utils/tz-date.js +0 -37
- package/dist/utils/validate-by-dto.d.ts +0 -1
- package/dist/utils/validate-by-dto.js +0 -18
- /package/dist/api/{transactions-api → order-transactions-api}/create-order-payment.js +0 -0
- /package/dist/api/{transactions-api → order-transactions-api}/create-order-refund.js +0 -0
- /package/dist/api/profiles-api/{get-payment-settings.js → subscription/get-payment-settings.js} +0 -0
- /package/dist/api/profiles-api/{get-profile-invoices.js → subscription/get-profile-invoices.js} +0 -0
- /package/dist/api/profiles-api/{get-stripe-session-link.js → subscription/get-stripe-session-link.js} +0 -0
- /package/dist/api/profiles-api/{paginate-bills.js → subscription/paginate-bills.js} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AgbRO } from '@escapenavigator/types/dist/agb/agb.ro';
|
|
2
|
+
import { CreateInsideAgbDto } from '@escapenavigator/types/dist/agb/create-inside-agb.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateInsideAgbDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = AgbRO;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
var create = function (_a) {
|
|
5
5
|
var data = _a.data;
|
|
6
6
|
return ({
|
|
7
7
|
url: '/agbs',
|
|
@@ -9,4 +9,4 @@ var createInsideAgb = function (_a) {
|
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.create = create;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgbRO } from '@escapenavigator/types/dist/agb/agb.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID профиля */
|
|
4
|
+
declare type ParamsData = undefined;
|
|
5
|
+
declare type ResponseData = AgbRO[];
|
|
6
|
+
export declare const getAll: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AgbRO } from '@escapenavigator/types/dist/agb/agb.ro';
|
|
2
2
|
import { GetForOrderServiceDto } from '@escapenavigator/types/dist/agb/get-for-order-service.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = GetForOrderServiceDto;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = AgbRO;
|
|
6
6
|
export declare const getForOrderService: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgbRO } from '@escapenavigator/types/dist/agb/agb.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID профиля */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = AgbRO;
|
|
6
|
+
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.getOne = void 0;
|
|
4
|
+
var getOne = function (id) { return ({
|
|
5
5
|
url: "/agbs/".concat(id),
|
|
6
6
|
method: 'GET',
|
|
7
7
|
}); };
|
|
8
|
-
exports.
|
|
8
|
+
exports.getOne = getOne;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { create } from './create';
|
|
2
|
+
import { getAll } from './get-all';
|
|
3
3
|
import { getForOrderService } from './get-for-order-service';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { updateInsideAgb } from './update-inside-agb';
|
|
7
|
-
import { updateProfileAgb } from './update-profile-agb';
|
|
4
|
+
import { getOne } from './get-one';
|
|
5
|
+
import { update } from './update';
|
|
8
6
|
declare type ApiDeclaration = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
create: typeof create;
|
|
8
|
+
getAll: typeof getAll;
|
|
9
|
+
getOne: typeof getOne;
|
|
12
10
|
getForOrderService: typeof getForOrderService;
|
|
13
|
-
|
|
14
|
-
updateInsideAgb: typeof updateInsideAgb;
|
|
15
|
-
updateProfileAgb: typeof updateProfileAgb;
|
|
11
|
+
update: typeof update;
|
|
16
12
|
};
|
|
17
13
|
export declare const agbApiDeclaration: ApiDeclaration;
|
|
18
14
|
export {};
|
|
@@ -1,19 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.agbApiDeclaration = void 0;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var get_all_1 = require("./get-all");
|
|
6
6
|
var get_for_order_service_1 = require("./get-for-order-service");
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var update_inside_agb_1 = require("./update-inside-agb");
|
|
10
|
-
var update_profile_agb_1 = require("./update-profile-agb");
|
|
7
|
+
var get_one_1 = require("./get-one");
|
|
8
|
+
var update_1 = require("./update");
|
|
11
9
|
exports.agbApiDeclaration = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
create: create_1.create,
|
|
11
|
+
getAll: get_all_1.getAll,
|
|
12
|
+
getOne: get_one_1.getOne,
|
|
15
13
|
getForOrderService: get_for_order_service_1.getForOrderService,
|
|
16
|
-
|
|
17
|
-
updateInsideAgb: update_inside_agb_1.updateInsideAgb,
|
|
18
|
-
updateProfileAgb: update_profile_agb_1.updateProfileAgb,
|
|
14
|
+
update: update_1.update,
|
|
19
15
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AgbRO } from '@escapenavigator/types/dist/agb/agb.ro';
|
|
2
2
|
import { UpdateInsideAgbDto } from '@escapenavigator/types/dist/agb/update-inside-agb.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: UpdateInsideAgbDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
9
|
-
export declare const
|
|
8
|
+
declare type ResponseData = AgbRO;
|
|
9
|
+
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.update = void 0;
|
|
4
|
+
var update = function (_a) {
|
|
5
5
|
var data = _a.data, id = _a.id;
|
|
6
6
|
return ({
|
|
7
7
|
url: "/agbs/".concat(id),
|
|
@@ -9,4 +9,4 @@ var updateInsideAgb = function (_a) {
|
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.update = update;
|
|
@@ -21,6 +21,7 @@ import { orderCertificatesApiDeclaration } from './order-certificates-api';
|
|
|
21
21
|
import { orderDiscountsApiDeclaration } from './order-discounts-api';
|
|
22
22
|
import { orderPenaltiesApiDeclaration } from './order-penalties-api';
|
|
23
23
|
import { orderPromocodesApiDeclaration } from './order-promocodes-api';
|
|
24
|
+
import { orderTransactionsApiDeclaration } from './order-transactions-api';
|
|
24
25
|
import { orderUpsellngsApiDeclaration } from './order-upsellings-api';
|
|
25
26
|
import { ordersApiDeclaration } from './orders-api';
|
|
26
27
|
import { partnersApiDeclaration } from './partners-api';
|
|
@@ -49,6 +50,7 @@ import { widgetsOrdersDeclaration } from './widgets-orders';
|
|
|
49
50
|
import { Api } from '.';
|
|
50
51
|
export declare type InitApiDeclaration = {
|
|
51
52
|
slotRulesApi: Api<typeof slotRulesApi>;
|
|
53
|
+
orderTransactionsApi: Api<typeof orderTransactionsApiDeclaration>;
|
|
52
54
|
translationsApi: Api<typeof translationsApiDeclaration>;
|
|
53
55
|
navigatorReviews: Api<typeof navigatorReviewsApiDeclaration>;
|
|
54
56
|
dashboard: Api<typeof dashboardApiDeclaration>;
|
|
@@ -24,6 +24,7 @@ var order_certificates_api_1 = require("./order-certificates-api");
|
|
|
24
24
|
var order_discounts_api_1 = require("./order-discounts-api");
|
|
25
25
|
var order_penalties_api_1 = require("./order-penalties-api");
|
|
26
26
|
var order_promocodes_api_1 = require("./order-promocodes-api");
|
|
27
|
+
var order_transactions_api_1 = require("./order-transactions-api");
|
|
27
28
|
var order_upsellings_api_1 = require("./order-upsellings-api");
|
|
28
29
|
var orders_api_1 = require("./orders-api");
|
|
29
30
|
var partners_api_1 = require("./partners-api");
|
|
@@ -52,6 +53,7 @@ var widgets_orders_1 = require("./widgets-orders");
|
|
|
52
53
|
var _1 = require(".");
|
|
53
54
|
var initClientApi = function (url) { return ({
|
|
54
55
|
slotRulesApi: (0, _1.initApi)(slot_rules_api_1.slotRulesApi, url),
|
|
56
|
+
orderTransactionsApi: (0, _1.initApi)(order_transactions_api_1.orderTransactionsApiDeclaration, url),
|
|
55
57
|
translationsApi: (0, _1.initApi)(translations_api_1.translationsApiDeclaration, url),
|
|
56
58
|
dashboard: (0, _1.initApi)(dashboard_api_1.dashboardApiDeclaration, url),
|
|
57
59
|
navigatorReviews: (0, _1.initApi)(navigator_reviews_api_1.navigatorReviewsApiDeclaration, url),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { CreateOrderPaymentDto } from '@escapenavigator/types/dist/order-transaction/create-order-payment.dto';
|
|
1
2
|
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
-
import { CreateOrderPaymentDto } from '@escapenavigator/types/dist/transaction/create-order-payment.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateOrderPaymentDto;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { CreateOrderPaymentDto } from '@escapenavigator/types/dist/order-transaction/create-order-payment.dto';
|
|
1
2
|
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
-
import { CreateOrderRefundDto } from '@escapenavigator/types/dist/transaction/create-order-refund.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
|
-
data:
|
|
5
|
+
data: CreateOrderPaymentDto;
|
|
6
6
|
};
|
|
7
7
|
declare type ResponseData = OrderRO;
|
|
8
8
|
export declare const createOrderRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateOrderStripeRefundDto } from '@escapenavigator/types/dist/order-transaction/create-order-stripe-refund.dto';
|
|
2
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateOrderStripeRefundDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = OrderRO;
|
|
8
|
+
export declare const createOrderStripeRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createOrderStripeRefund = void 0;
|
|
4
|
+
var createOrderStripeRefund = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/order-transactions/stripe-refund',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createOrderStripeRefund = createOrderStripeRefund;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { createOrderPayment } from './create-order-payment';
|
|
2
|
+
import { createOrderRefund } from './create-order-refund';
|
|
3
|
+
import { createOrderStripeRefund } from './create-order-stripe-refund';
|
|
4
|
+
declare type ApiDeclaration = {
|
|
5
|
+
createOrderPayment: typeof createOrderPayment;
|
|
6
|
+
createOrderRefund: typeof createOrderRefund;
|
|
7
|
+
createOrderStripeRefund: typeof createOrderStripeRefund;
|
|
8
|
+
};
|
|
9
|
+
export declare const orderTransactionsApiDeclaration: ApiDeclaration;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderTransactionsApiDeclaration = void 0;
|
|
4
|
+
var create_order_payment_1 = require("./create-order-payment");
|
|
5
|
+
var create_order_refund_1 = require("./create-order-refund");
|
|
6
|
+
var create_order_stripe_refund_1 = require("./create-order-stripe-refund");
|
|
7
|
+
exports.orderTransactionsApiDeclaration = {
|
|
8
|
+
createOrderPayment: create_order_payment_1.createOrderPayment,
|
|
9
|
+
createOrderRefund: create_order_refund_1.createOrderRefund,
|
|
10
|
+
createOrderStripeRefund: create_order_stripe_refund_1.createOrderStripeRefund,
|
|
11
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProfileAgbRO } from '@escapenavigator/types/dist/profile/profile-agb.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = number;
|
|
4
|
+
declare type ResponseData = ProfileAgbRO;
|
|
5
|
+
export declare const getProfileAgbForOrderService: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getProfileAgbForOrderService = void 0;
|
|
4
|
+
var getProfileAgbForOrderService = function (profileId) { return ({
|
|
5
|
+
url: "/profile/agb/".concat(profileId),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getProfileAgbForOrderService = getProfileAgbForOrderService;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ProfileAgbRO } from '@escapenavigator/types/dist/profile/profile-agb.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = ProfileAgbRO;
|
|
5
|
+
export declare const getProfileAgb: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProfileAgbRO } from '@escapenavigator/types/dist/profile/profile-agb.ro';
|
|
2
|
+
import { UpdateProfileAgbDto } from '@escapenavigator/types/dist/profile/update-agb.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: UpdateProfileAgbDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = ProfileAgbRO;
|
|
8
|
+
export declare const updateProfileAgb: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBookeoIntegrationLink = void 0;
|
|
4
|
+
var getBookeoIntegrationLink = function () { return ({
|
|
5
|
+
url: '/bookeo/integration-link',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getBookeoIntegrationLink = getBookeoIntegrationLink;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProfileRO } from '@escapenavigator/types/dist/profile/profile.ro';
|
|
2
|
+
import { UpdateCurrentDto } from '@escapenavigator/types/dist/profile/update-current.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: UpdateCurrentDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = ProfileRO;
|
|
8
|
+
export declare const finalizeCurrent: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.finalizeCurrent = void 0;
|
|
4
|
+
var finalizeCurrent = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/profiles/finalize',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.finalizeCurrent = finalizeCurrent;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CustomizationRO } from '@escapenavigator/types/dist/profile/customization.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID профиля */
|
|
4
|
+
declare type ParamsData = undefined;
|
|
5
|
+
declare type ResponseData = CustomizationRO;
|
|
6
|
+
export declare const getCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1,24 +1,38 @@
|
|
|
1
|
+
import { getProfileAgb } from './agb/get-profile-agb';
|
|
2
|
+
import { getProfileAgbForOrderService } from './agb/get-profile-agb-for-order-service';
|
|
3
|
+
import { updateProfileAgb } from './agb/update-profile-agb';
|
|
4
|
+
import { getBookeoInfo } from './bookeo/get-bookeo-info';
|
|
5
|
+
import { getBookeoIntegrationLink } from './bookeo/get-bookeo-integration-link';
|
|
6
|
+
import { createSubscriptionSession } from './subscription/create-subscription-session';
|
|
7
|
+
import { getPaymentSettings } from './subscription/get-payment-settings';
|
|
8
|
+
import { getPrices } from './subscription/get-prices';
|
|
9
|
+
import { getProfileInvoices } from './subscription/get-profile-invoices';
|
|
10
|
+
import { getStripeSessionLink } from './subscription/get-stripe-session-link';
|
|
11
|
+
import { paginateBills } from './subscription/paginate-bills';
|
|
1
12
|
import { create } from './create';
|
|
2
13
|
import { current } from './current';
|
|
3
|
-
import {
|
|
14
|
+
import { finalizeCurrent } from './finalize-current';
|
|
4
15
|
import { getBySlugForVerify } from './get-by-slug-for-verify';
|
|
16
|
+
import { getCustomization } from './get-customization';
|
|
5
17
|
import { getOne } from './get-one';
|
|
6
|
-
import { getPaymentSettings } from './get-payment-settings';
|
|
7
|
-
import { getProfileInvoices } from './get-profile-invoices';
|
|
8
|
-
import { getStripeSessionLink } from './get-stripe-session-link';
|
|
9
|
-
import { paginateBills } from './paginate-bills';
|
|
10
18
|
import { query } from './query';
|
|
11
19
|
import { remove } from './remove';
|
|
12
20
|
import { update } from './update';
|
|
13
21
|
import { updateCurrent } from './update-current';
|
|
14
|
-
import {
|
|
22
|
+
import { updateCustomization } from './update-customization';
|
|
15
23
|
declare type ApiDeclaration = {
|
|
24
|
+
getBookeoInfo: typeof getBookeoInfo;
|
|
25
|
+
getBookeoIntegrationLink: typeof getBookeoIntegrationLink;
|
|
26
|
+
getProfileAgb: typeof getProfileAgb;
|
|
27
|
+
getProfileAgbForOrderService: typeof getProfileAgbForOrderService;
|
|
28
|
+
updateProfileAgb: typeof updateProfileAgb;
|
|
16
29
|
paginateBills: typeof paginateBills;
|
|
30
|
+
getPrices: typeof getPrices;
|
|
31
|
+
createSubscriptionSession: typeof createSubscriptionSession;
|
|
17
32
|
getPaymentSettings: typeof getPaymentSettings;
|
|
18
33
|
getStripeSessionLink: typeof getStripeSessionLink;
|
|
19
34
|
getProfileInvoices: typeof getProfileInvoices;
|
|
20
|
-
|
|
21
|
-
getAllDailyReports: typeof getAllDailyReports;
|
|
35
|
+
finalizeCurrent: typeof finalizeCurrent;
|
|
22
36
|
updateCurrent: typeof updateCurrent;
|
|
23
37
|
create: typeof create;
|
|
24
38
|
remove: typeof remove;
|
|
@@ -27,6 +41,8 @@ declare type ApiDeclaration = {
|
|
|
27
41
|
getOne: typeof getOne;
|
|
28
42
|
current: typeof current;
|
|
29
43
|
getBySlugForVerify: typeof getBySlugForVerify;
|
|
44
|
+
getCustomization: typeof getCustomization;
|
|
45
|
+
updateCustomization: typeof updateCustomization;
|
|
30
46
|
};
|
|
31
47
|
export declare const profilesApiDeclaration: ApiDeclaration;
|
|
32
48
|
export {};
|
|
@@ -1,28 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.profilesApiDeclaration = void 0;
|
|
4
|
+
var get_profile_agb_1 = require("./agb/get-profile-agb");
|
|
5
|
+
var get_profile_agb_for_order_service_1 = require("./agb/get-profile-agb-for-order-service");
|
|
6
|
+
var update_profile_agb_1 = require("./agb/update-profile-agb");
|
|
7
|
+
var get_bookeo_info_1 = require("./bookeo/get-bookeo-info");
|
|
8
|
+
var get_bookeo_integration_link_1 = require("./bookeo/get-bookeo-integration-link");
|
|
9
|
+
var create_subscription_session_1 = require("./subscription/create-subscription-session");
|
|
10
|
+
var get_payment_settings_1 = require("./subscription/get-payment-settings");
|
|
11
|
+
var get_prices_1 = require("./subscription/get-prices");
|
|
12
|
+
var get_profile_invoices_1 = require("./subscription/get-profile-invoices");
|
|
13
|
+
var get_stripe_session_link_1 = require("./subscription/get-stripe-session-link");
|
|
14
|
+
var paginate_bills_1 = require("./subscription/paginate-bills");
|
|
4
15
|
var create_1 = require("./create");
|
|
5
16
|
var current_1 = require("./current");
|
|
6
|
-
var
|
|
17
|
+
var finalize_current_1 = require("./finalize-current");
|
|
7
18
|
var get_by_slug_for_verify_1 = require("./get-by-slug-for-verify");
|
|
19
|
+
var get_customization_1 = require("./get-customization");
|
|
8
20
|
var get_one_1 = require("./get-one");
|
|
9
|
-
var get_payment_settings_1 = require("./get-payment-settings");
|
|
10
|
-
var get_profile_invoices_1 = require("./get-profile-invoices");
|
|
11
|
-
var get_stripe_session_link_1 = require("./get-stripe-session-link");
|
|
12
|
-
var paginate_bills_1 = require("./paginate-bills");
|
|
13
21
|
var query_1 = require("./query");
|
|
14
22
|
var remove_1 = require("./remove");
|
|
15
23
|
var update_1 = require("./update");
|
|
16
24
|
var update_current_1 = require("./update-current");
|
|
17
|
-
var
|
|
25
|
+
var update_customization_1 = require("./update-customization");
|
|
18
26
|
exports.profilesApiDeclaration = {
|
|
27
|
+
getProfileAgbForOrderService: get_profile_agb_for_order_service_1.getProfileAgbForOrderService,
|
|
28
|
+
getProfileAgb: get_profile_agb_1.getProfileAgb,
|
|
29
|
+
updateProfileAgb: update_profile_agb_1.updateProfileAgb,
|
|
30
|
+
createSubscriptionSession: create_subscription_session_1.createSubscriptionSession,
|
|
31
|
+
getPrices: get_prices_1.getPrices,
|
|
19
32
|
updateCurrent: update_current_1.updateCurrent,
|
|
20
33
|
getPaymentSettings: get_payment_settings_1.getPaymentSettings,
|
|
21
34
|
paginateBills: paginate_bills_1.paginateBills,
|
|
22
35
|
getProfileInvoices: get_profile_invoices_1.getProfileInvoices,
|
|
23
36
|
getStripeSessionLink: get_stripe_session_link_1.getStripeSessionLink,
|
|
24
|
-
|
|
25
|
-
|
|
37
|
+
finalizeCurrent: finalize_current_1.finalizeCurrent,
|
|
38
|
+
getBookeoInfo: get_bookeo_info_1.getBookeoInfo,
|
|
39
|
+
getBookeoIntegrationLink: get_bookeo_integration_link_1.getBookeoIntegrationLink,
|
|
26
40
|
create: create_1.create,
|
|
27
41
|
remove: remove_1.remove,
|
|
28
42
|
update: update_1.update,
|
|
@@ -30,4 +44,6 @@ exports.profilesApiDeclaration = {
|
|
|
30
44
|
getOne: get_one_1.getOne,
|
|
31
45
|
current: current_1.current,
|
|
32
46
|
getBySlugForVerify: get_by_slug_for_verify_1.getBySlugForVerify,
|
|
47
|
+
updateCustomization: update_customization_1.updateCustomization,
|
|
48
|
+
getCustomization: get_customization_1.getCustomization,
|
|
33
49
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ApiMethodDeclaration } from '../..';
|
|
2
|
+
declare type ParamsData = {
|
|
3
|
+
lookup_key: string;
|
|
4
|
+
quantity: string;
|
|
5
|
+
};
|
|
6
|
+
declare type ResponseData = string;
|
|
7
|
+
export declare const createSubscriptionSession: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createSubscriptionSession = void 0;
|
|
4
|
+
var createSubscriptionSession = function (_a) {
|
|
5
|
+
var lookup_key = _a.lookup_key, quantity = _a.quantity;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/subscription/create-subscription-session/".concat(lookup_key, "/").concat(quantity),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.createSubscriptionSession = createSubscriptionSession;
|
package/dist/api/profiles-api/{get-payment-settings.d.ts → subscription/get-payment-settings.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaymentSettingsRO } from '@escapenavigator/types/dist/profile/payment-settings.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
3
|
declare type ParamsData = undefined;
|
|
4
4
|
declare type ResponseData = PaymentSettingsRO;
|
|
5
5
|
export declare const getPaymentSettings: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SubscriptionPricesRO } from '@escapenavigator/types/dist/profile/subscription-prices.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = SubscriptionPricesRO;
|
|
5
|
+
export declare const getPrices: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
package/dist/api/profiles-api/{get-profile-invoices.d.ts → subscription/get-profile-invoices.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InvoiceRO } from '@escapenavigator/types/dist/profile/invoice.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
3
|
declare type ParamsData = undefined;
|
|
4
4
|
declare type ResponseData = InvoiceRO[];
|
|
5
5
|
export declare const getProfileInvoices: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InvoiceRO } from '@escapenavigator/types/dist/profile/invoice.ro';
|
|
2
2
|
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
3
|
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
|
-
import { ApiMethodDeclaration } from '
|
|
4
|
+
import { ApiMethodDeclaration } from '../..';
|
|
5
5
|
/** Поиск по названию организации и контактному телефону */
|
|
6
6
|
declare type ParamsData = QueryDto;
|
|
7
7
|
declare type ResponseData = QueryRO<InvoiceRO>;
|
|
@@ -0,0 +1,7 @@
|
|
|
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 '..';
|
|
4
|
+
declare type ParamsData = UpdateCustomizationDto;
|
|
5
|
+
declare type ResponseData = CustomizationRO;
|
|
6
|
+
export declare const updateCustomization: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateCustomization = void 0;
|
|
4
|
+
var updateCustomization = function (data) { return ({
|
|
5
|
+
url: '/customization',
|
|
6
|
+
method: 'PATCH',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.updateCustomization = updateCustomization;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CloseManyDto } from '@escapenavigator/types/dist/questroom/close-many.dto';
|
|
2
|
+
import { QuestroomRO } from '@escapenavigator/types/dist/questroom/questroom.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
/** ID квестов */
|
|
5
|
+
declare type ParamsData = CloseManyDto;
|
|
6
|
+
declare type ResponseData = QuestroomRO[];
|
|
7
|
+
export declare const closeMany: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|