@escapenavigator/services 1.10.110 → 1.10.112
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/{openapi-widget-api → agregator-api}/certificates/capture-paypal-navigator-certificate.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/check-navigator-certificate-by-code.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/create-navigator-certificate.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/find-navigator-certificate.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/get-navigator-certificate-payment-methods.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/get-navigator-certificate-templates.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-paypal-payment.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-square-payment.js +1 -1
- package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-stripe-payment.js +1 -1
- package/dist/api/agregator-api/index.d.ts +20 -0
- package/dist/api/agregator-api/index.js +20 -0
- package/dist/api/{profiles-api → agregator-api/questrooms}/register-questroom-visit.d.ts +1 -1
- package/dist/api/{profiles-api → agregator-api/questrooms}/register-questroom-visit.js +1 -1
- package/dist/api/analytics-chat-api/ask.d.ts +27 -0
- package/dist/api/{profiles-api/rooms/create.js → analytics-chat-api/ask.js} +4 -4
- package/dist/api/analytics-chat-api/index.d.ts +6 -0
- package/dist/api/analytics-chat-api/index.js +7 -0
- package/dist/api/cashboxes-api/query.d.ts +3 -1
- package/dist/api/cashboxes-api/query.js +2 -1
- package/dist/api/certificates-api/query.d.ts +3 -1
- package/dist/api/certificates-api/query.js +2 -1
- package/dist/api/index.js +12 -2
- package/dist/api/init-client-api.d.ts +3 -3
- package/dist/api/init-client-api.js +3 -3
- package/dist/api/locations-api/query.d.ts +3 -1
- package/dist/api/openapi-widget-api/certificates/find-certificate.js +1 -1
- package/dist/api/openapi-widget-api/index.d.ts +10 -8
- package/dist/api/openapi-widget-api/index.js +10 -8
- package/dist/api/openapi-widget-api/orders/find-order-for-order-service.js +1 -1
- package/dist/api/openapi-widget-api/orders/find-order.js +1 -1
- package/dist/api/openapi-widget-api/slots/slot-details.d.ts +7 -0
- package/dist/api/openapi-widget-api/slots/slot-details.js +23 -0
- package/dist/api/openapi-widget-api/slots/slots-for-day.d.ts +4 -1
- package/dist/api/openapi-widget-api/slots/slots-for-week.d.ts +4 -1
- package/dist/api/profiles-api/index.d.ts +18 -12
- package/dist/api/profiles-api/index.js +26 -20
- package/dist/api/profiles-api/notification-chanel/get-client-notofocations.d.ts +1 -1
- package/dist/api/profiles-api/profile-sms/get-sms-settings.d.ts +4 -0
- package/dist/api/profiles-api/profile-sms/get-sms-settings.js +9 -0
- package/dist/api/profiles-api/profile-sms/query-order-sms-logs.d.ts +12 -0
- package/dist/api/profiles-api/profile-sms/query-order-sms-logs.js +12 -0
- package/dist/api/profiles-api/profile-sms/send-order-client-email.d.ts +9 -0
- package/dist/api/profiles-api/profile-sms/send-order-client-email.js +12 -0
- package/dist/api/profiles-api/profile-sms/send-order-client-sms.d.ts +9 -0
- package/dist/api/profiles-api/profile-sms/send-order-client-sms.js +12 -0
- package/dist/api/profiles-api/profile-sms/update-sms-settings.d.ts +8 -0
- package/dist/api/{slot-room-templates-api/update.js → profiles-api/profile-sms/update-sms-settings.js} +4 -4
- package/dist/api/profiles-api/waiver/create-profile-waiver.d.ts +9 -0
- package/dist/api/profiles-api/waiver/create-profile-waiver.js +12 -0
- package/dist/api/profiles-api/waiver/get-profile-waiver-for-order-service.d.ts +4 -1
- package/dist/api/profiles-api/waiver/get-profile-waiver-for-order-service.js +10 -4
- package/dist/api/profiles-api/waiver/query-profile-waivers.d.ts +6 -0
- package/dist/api/profiles-api/waiver/query-profile-waivers.js +8 -0
- package/dist/api/profiles-api/waiver/remove-profile-waiver-by-id.d.ts +6 -0
- package/dist/api/profiles-api/waiver/remove-profile-waiver-by-id.js +10 -0
- package/dist/api/profiles-api/waiver/update-profile-waiver-by-id.d.ts +10 -0
- package/dist/api/profiles-api/waiver/update-profile-waiver-by-id.js +12 -0
- package/dist/api/questrooms-api/query.d.ts +3 -1
- package/dist/api/roles-api/query.d.ts +3 -1
- package/dist/api/slots-api/index.d.ts +2 -0
- package/dist/api/slots-api/index.js +2 -0
- package/dist/api/slots-api/slot-details.d.ts +7 -0
- package/dist/api/slots-api/slot-details.js +23 -0
- package/dist/api/statistics-api/certificates-report.d.ts +9 -0
- package/dist/api/statistics-api/certificates-report.js +12 -0
- package/dist/api/statistics-api/index.d.ts +2 -0
- package/dist/api/statistics-api/index.js +2 -0
- package/dist/api/tariffs-api/query.d.ts +3 -1
- package/dist/api/upsellings-api/query.d.ts +3 -1
- package/dist/api/users-api/query.d.ts +3 -1
- package/dist/hooks/use-api-method/index.js +13 -7
- package/package.json +4 -4
- package/dist/api/profiles-api/rooms/create.d.ts +0 -9
- package/dist/api/profiles-api/rooms/delete.d.ts +0 -7
- package/dist/api/profiles-api/rooms/delete.js +0 -11
- package/dist/api/profiles-api/rooms/get-all.d.ts +0 -6
- package/dist/api/profiles-api/rooms/get-all.js +0 -8
- package/dist/api/profiles-api/rooms/get-one.d.ts +0 -8
- package/dist/api/profiles-api/rooms/get-one.js +0 -11
- package/dist/api/profiles-api/rooms/update.d.ts +0 -10
- package/dist/api/profiles-api/rooms/update.js +0 -12
- package/dist/api/slot-room-templates-api/get-all-actual.d.ts +0 -6
- package/dist/api/slot-room-templates-api/get-all-actual.js +0 -8
- package/dist/api/slot-room-templates-api/get-one.d.ts +0 -7
- package/dist/api/slot-room-templates-api/get-one.js +0 -8
- package/dist/api/slot-room-templates-api/index.d.ts +0 -10
- package/dist/api/slot-room-templates-api/index.js +0 -11
- package/dist/api/slot-room-templates-api/update.d.ts +0 -8
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/capture-paypal-navigator-certificate.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/check-navigator-certificate-by-code.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/create-navigator-certificate.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/find-navigator-certificate.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/get-navigator-certificate-payment-methods.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/get-navigator-certificate-templates.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-paypal-payment.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-square-payment.d.ts +0 -0
- /package/dist/api/{openapi-widget-api → agregator-api}/certificates/navigator-certificate-stripe-payment.d.ts +0 -0
|
@@ -53,23 +53,29 @@ var useApiMethod = function (_a) {
|
|
|
53
53
|
var _c = (0, react_1.useReducer)(api_2.apiReducer, api_2.initialState), state = _c[0], dispatch = _c[1];
|
|
54
54
|
var fetch = (0, react_1.useCallback)(function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
55
|
var response, error_1, err;
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
var _a;
|
|
57
|
+
return __generator(this, function (_b) {
|
|
58
|
+
switch (_b.label) {
|
|
58
59
|
case 0:
|
|
60
|
+
(_a = source.current) === null || _a === void 0 ? void 0 : _a.cancel();
|
|
59
61
|
source.current = axios_1.default.CancelToken.source();
|
|
60
|
-
|
|
62
|
+
_b.label = 1;
|
|
61
63
|
case 1:
|
|
62
|
-
|
|
64
|
+
_b.trys.push([1, 3, , 4]);
|
|
63
65
|
dispatch((0, api_1.fetchStart)());
|
|
64
|
-
return [4 /*yield*/, api(params
|
|
66
|
+
return [4 /*yield*/, api(params, {
|
|
67
|
+
cancelToken: source.current.token,
|
|
68
|
+
})];
|
|
65
69
|
case 2:
|
|
66
|
-
response =
|
|
70
|
+
response = _b.sent();
|
|
67
71
|
if (successCallback)
|
|
68
72
|
successCallback(response, params);
|
|
69
73
|
dispatch((0, api_1.fetchSuccess)(response));
|
|
70
74
|
return [2 /*return*/, response];
|
|
71
75
|
case 3:
|
|
72
|
-
error_1 =
|
|
76
|
+
error_1 = _b.sent();
|
|
77
|
+
if (axios_1.default.isCancel(error_1))
|
|
78
|
+
return [2 /*return*/, null];
|
|
73
79
|
if (!mounted.current)
|
|
74
80
|
return [2 /*return*/, null];
|
|
75
81
|
err = (0, get_service_error_1.getServiceError)(error_1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.112",
|
|
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": "0e41f6e541edd14685f9dd242e17207d1b8f6660",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.10.
|
|
18
|
-
"@escapenavigator/utils": "^1.10.
|
|
17
|
+
"@escapenavigator/types": "^1.10.103",
|
|
18
|
+
"@escapenavigator/utils": "^1.10.107",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { UpsertRoomDto } from '@escapenavigator/types/dist/room/dto';
|
|
2
|
-
import { RoomRO } from '@escapenavigator/types/dist/room/ro';
|
|
3
|
-
import { ApiMethodDeclaration } from 'src/api';
|
|
4
|
-
type ParamsData = {
|
|
5
|
-
data: UpsertRoomDto;
|
|
6
|
-
};
|
|
7
|
-
type ResponseData = RoomRO;
|
|
8
|
-
export declare const createRoom: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteRoom = void 0;
|
|
4
|
-
var deleteRoom = function (_a) {
|
|
5
|
-
var id = _a.id;
|
|
6
|
-
return ({
|
|
7
|
-
url: "/rooms/".concat(id),
|
|
8
|
-
method: 'DELETE',
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
exports.deleteRoom = deleteRoom;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { RoomRO } from '@escapenavigator/types/dist/room/ro';
|
|
2
|
-
import { ApiMethodDeclaration } from 'src/api';
|
|
3
|
-
type ParamsData = undefined;
|
|
4
|
-
type ResponseData = RoomRO[];
|
|
5
|
-
export declare const getAllRooms: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { RoomRO } from '@escapenavigator/types/dist/room/ro';
|
|
2
|
-
import { ApiMethodDeclaration } from 'src/api';
|
|
3
|
-
type ParamsData = {
|
|
4
|
-
id: number;
|
|
5
|
-
};
|
|
6
|
-
type ResponseData = RoomRO;
|
|
7
|
-
export declare const getRoom: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UpsertRoomDto } from '@escapenavigator/types/dist/room/dto';
|
|
2
|
-
import { RoomRO } from '@escapenavigator/types/dist/room/ro';
|
|
3
|
-
import { ApiMethodDeclaration } from 'src/api';
|
|
4
|
-
type ParamsData = {
|
|
5
|
-
id: number;
|
|
6
|
-
data: UpsertRoomDto;
|
|
7
|
-
};
|
|
8
|
-
type ResponseData = RoomRO;
|
|
9
|
-
export declare const updateRoom: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateRoom = void 0;
|
|
4
|
-
var updateRoom = function (_a) {
|
|
5
|
-
var id = _a.id, data = _a.data;
|
|
6
|
-
return ({
|
|
7
|
-
url: "/rooms/".concat(id),
|
|
8
|
-
method: 'PUT',
|
|
9
|
-
data: data,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.updateRoom = updateRoom;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SlotRoomTemplateRO } from '@escapenavigator/types/dist/slot-room-template/slot-room-template.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
type ParamsData = undefined;
|
|
4
|
-
type ResponseData = SlotRoomTemplateRO[];
|
|
5
|
-
export declare const getAllActual: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SlotRoomTemplateRO } from '@escapenavigator/types/dist/slot-room-template/slot-room-template.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
/** ID темлейна */
|
|
4
|
-
type ParamsData = number;
|
|
5
|
-
type ResponseData = SlotRoomTemplateRO;
|
|
6
|
-
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getAllActual } from './get-all-actual';
|
|
2
|
-
import { getOne } from './get-one';
|
|
3
|
-
import { update } from './update';
|
|
4
|
-
type ApiDeclaration = {
|
|
5
|
-
getOne: typeof getOne;
|
|
6
|
-
update: typeof update;
|
|
7
|
-
getAllActual: typeof getAllActual;
|
|
8
|
-
};
|
|
9
|
-
export declare const slotRoomTemplatesApiDeclaration: ApiDeclaration;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.slotRoomTemplatesApiDeclaration = void 0;
|
|
4
|
-
var get_all_actual_1 = require("./get-all-actual");
|
|
5
|
-
var get_one_1 = require("./get-one");
|
|
6
|
-
var update_1 = require("./update");
|
|
7
|
-
exports.slotRoomTemplatesApiDeclaration = {
|
|
8
|
-
getOne: get_one_1.getOne,
|
|
9
|
-
update: update_1.update,
|
|
10
|
-
getAllActual: get_all_actual_1.getAllActual,
|
|
11
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { UpdateSlotRoomTemplateDto } from '@escapenavigator/types/dist/slot-room-template/update-slot-room-template.dto';
|
|
2
|
-
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
type ParamsData = {
|
|
4
|
-
data: UpdateSlotRoomTemplateDto;
|
|
5
|
-
};
|
|
6
|
-
type ResponseData = undefined;
|
|
7
|
-
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/api/{openapi-widget-api → agregator-api}/certificates/find-navigator-certificate.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|