@escapenavigator/services 1.2.7 → 1.4.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/README.md +1 -1
- package/dist/api/admins-api/get-profile-token.js +3 -3
- package/dist/api/admins-api/index.js +4 -4
- package/dist/api/admins-api/login.js +8 -5
- package/dist/api/admins-api/logout.js +2 -2
- package/dist/api/admins-api/me.js +2 -2
- package/dist/api/agb-api/get-one.js +3 -3
- package/dist/api/agb-api/index.js +2 -2
- package/dist/api/agb-api/update.js +8 -5
- package/dist/api/agregator-api/find-cities-by-country.d.ts +7 -0
- package/dist/api/agregator-api/find-cities-by-country.js +8 -0
- package/dist/api/agregator-api/find-city-by-slug.d.ts +6 -0
- package/dist/api/agregator-api/find-city-by-slug.js +8 -0
- package/dist/api/agregator-api/find-current-city.d.ts +6 -0
- package/dist/api/agregator-api/find-current-city.js +8 -0
- package/dist/api/agregator-api/find-locations-by-coordinates.d.ts +6 -0
- package/dist/api/agregator-api/find-locations-by-coordinates.js +8 -0
- package/dist/api/agregator-api/find-popular-cities-near.d.ts +6 -0
- package/dist/api/agregator-api/find-popular-cities-near.js +8 -0
- package/dist/api/agregator-api/find-questrooms-by-city-slug.d.ts +6 -0
- package/dist/api/agregator-api/find-questrooms-by-city-slug.js +8 -0
- package/dist/api/agregator-api/find-questrooms-by-location-id.d.ts +6 -0
- package/dist/api/agregator-api/find-questrooms-by-location-id.js +8 -0
- package/dist/api/agregator-api/find-questrooms-by-organization-id.d.ts +6 -0
- package/dist/api/agregator-api/find-questrooms-by-organization-id.js +8 -0
- package/dist/api/agregator-api/find-questrooms-by-tag.d.ts +6 -0
- package/dist/api/agregator-api/find-questrooms-by-tag.js +8 -0
- package/dist/api/agregator-api/find-questrooms-by-title.d.ts +6 -0
- package/dist/api/agregator-api/find-questrooms-by-title.js +8 -0
- package/dist/api/agregator-api/find-similar-questrooms.d.ts +6 -0
- package/dist/api/agregator-api/find-similar-questrooms.js +8 -0
- package/dist/api/agregator-api/index.d.ts +26 -0
- package/dist/api/agregator-api/index.js +27 -0
- package/dist/api/cashboxes-api/create.js +8 -5
- package/dist/api/cashboxes-api/get-one.js +3 -3
- package/dist/api/cashboxes-api/index.js +5 -5
- package/dist/api/cashboxes-api/query.js +2 -2
- package/dist/api/cashboxes-api/recover.js +3 -3
- package/dist/api/cashboxes-api/remove.js +3 -3
- package/dist/api/cashboxes-api/update.js +8 -5
- package/dist/api/certificates-api/create.js +8 -5
- package/dist/api/certificates-api/get-one.js +3 -3
- package/dist/api/certificates-api/index.js +6 -6
- package/dist/api/certificates-api/query.js +2 -2
- package/dist/api/certificates-api/recover.js +3 -3
- package/dist/api/certificates-api/remove.js +3 -3
- package/dist/api/certificates-api/update.js +8 -5
- package/dist/api/certificatesales-api/annul.js +8 -5
- package/dist/api/certificatesales-api/create.js +8 -5
- package/dist/api/certificatesales-api/get-one-by-code.js +3 -3
- package/dist/api/certificatesales-api/get-one.js +3 -3
- package/dist/api/certificatesales-api/index.js +9 -9
- package/dist/api/certificatesales-api/paginate.js +3 -3
- package/dist/api/certificatesales-api/query.js +3 -3
- package/dist/api/certificatesales-api/update-expire-date.js +8 -5
- package/dist/api/certificatesales-api/update-status.js +8 -5
- package/dist/api/certificatesales-api/update.js +8 -5
- package/dist/api/cities-api/get-one.js +3 -3
- package/dist/api/cities-api/index.d.ts +0 -8
- package/dist/api/cities-api/index.js +3 -11
- package/dist/api/cities-api/query.js +3 -3
- package/dist/api/cities-api/remove.js +3 -3
- package/dist/api/cities-api/update.js +8 -5
- package/dist/api/clients-api/create-from-widget.js +8 -5
- package/dist/api/clients-api/create.js +8 -5
- package/dist/api/clients-api/get-all.js +3 -3
- package/dist/api/clients-api/get-one.js +3 -3
- package/dist/api/clients-api/index.js +6 -6
- package/dist/api/clients-api/query.js +3 -3
- package/dist/api/clients-api/update.js +8 -5
- package/dist/api/emails-api/index.js +1 -1
- package/dist/api/emails-api/query.js +3 -3
- package/dist/api/financeitems-api/create.js +8 -5
- package/dist/api/financeitems-api/get-all.js +3 -3
- package/dist/api/financeitems-api/get-one.js +3 -3
- package/dist/api/financeitems-api/index.js +5 -5
- package/dist/api/financeitems-api/query.js +3 -3
- package/dist/api/financeitems-api/remove.js +3 -3
- package/dist/api/images-api/create.js +8 -5
- package/dist/api/images-api/index.js +1 -1
- package/dist/api/index.js +71 -20
- package/dist/api/init-client-api.js +33 -33
- package/dist/api/locations-api/create.js +8 -5
- package/dist/api/locations-api/get-by-coordinates.js +3 -3
- package/dist/api/locations-api/get-one.js +3 -3
- package/dist/api/locations-api/index.js +7 -7
- package/dist/api/locations-api/query.js +3 -3
- package/dist/api/locations-api/recover.js +3 -3
- package/dist/api/locations-api/remove.js +3 -3
- package/dist/api/locations-api/update.js +8 -5
- package/dist/api/order-discounts-api/create.js +8 -5
- package/dist/api/order-discounts-api/index.js +2 -2
- package/dist/api/order-discounts-api/remove.js +3 -3
- package/dist/api/order-penalties-api/create.js +8 -5
- package/dist/api/order-penalties-api/index.js +2 -2
- package/dist/api/order-penalties-api/remove.js +3 -3
- package/dist/api/order-upsellings-api/create.js +8 -5
- package/dist/api/order-upsellings-api/index.js +2 -2
- package/dist/api/order-upsellings-api/remove.js +3 -3
- package/dist/api/orders-api/add-certificate.js +8 -5
- package/dist/api/orders-api/create-from-widget.js +8 -5
- package/dist/api/orders-api/create.js +8 -5
- package/dist/api/orders-api/get-one.js +3 -3
- package/dist/api/orders-api/index.js +11 -11
- package/dist/api/orders-api/paginate.js +3 -3
- package/dist/api/orders-api/query.js +3 -3
- package/dist/api/orders-api/remove-certificate.js +8 -5
- package/dist/api/orders-api/remove.js +3 -3
- package/dist/api/orders-api/update-slot.js +8 -5
- package/dist/api/orders-api/update-status.js +8 -5
- package/dist/api/orders-api/update.js +8 -5
- package/dist/api/partners-api/create.js +8 -5
- package/dist/api/partners-api/get-all.js +3 -3
- package/dist/api/partners-api/get-one.js +3 -3
- package/dist/api/partners-api/index.js +7 -7
- package/dist/api/partners-api/query.js +3 -3
- package/dist/api/partners-api/recover.js +3 -3
- package/dist/api/partners-api/remove.js +3 -3
- package/dist/api/partners-api/update.js +8 -5
- package/dist/api/profiles-api/create.js +8 -5
- package/dist/api/profiles-api/current.js +2 -2
- package/dist/api/profiles-api/get-by-slug.js +3 -3
- package/dist/api/profiles-api/get-one.js +3 -3
- package/dist/api/profiles-api/index.js +7 -7
- package/dist/api/profiles-api/query.js +3 -3
- package/dist/api/profiles-api/remove.js +3 -3
- package/dist/api/profiles-api/update-current.js +8 -5
- package/dist/api/profiles-api/update.js +8 -5
- package/dist/api/questrooms-api/create.js +8 -5
- package/dist/api/questrooms-api/get-by-coordinates.js +3 -3
- package/dist/api/questrooms-api/get-by-location.js +3 -3
- package/dist/api/questrooms-api/get-by-slug.js +3 -3
- package/dist/api/questrooms-api/get-by-title.js +3 -3
- package/dist/api/questrooms-api/get-one.js +3 -3
- package/dist/api/questrooms-api/index.js +9 -9
- package/dist/api/questrooms-api/query.js +3 -3
- package/dist/api/questrooms-api/recover.js +3 -3
- package/dist/api/questrooms-api/remove.js +3 -3
- package/dist/api/questrooms-api/update.js +8 -5
- package/dist/api/registration-requests-api/create.js +8 -5
- package/dist/api/registration-requests-api/get-one.js +3 -3
- package/dist/api/registration-requests-api/index.js +5 -5
- package/dist/api/registration-requests-api/query.js +3 -3
- package/dist/api/registration-requests-api/remove.js +3 -3
- package/dist/api/registration-requests-api/update.js +8 -5
- package/dist/api/roles-api/create.js +8 -5
- package/dist/api/roles-api/get-one.js +3 -3
- package/dist/api/roles-api/index.js +5 -5
- package/dist/api/roles-api/query.js +3 -3
- package/dist/api/roles-api/remove.js +3 -3
- package/dist/api/roles-api/update.js +8 -5
- package/dist/api/slot-templates-api/get.js +3 -3
- package/dist/api/slot-templates-api/index.js +2 -2
- package/dist/api/slot-templates-api/update.js +8 -5
- package/dist/api/slots-api/add-breaks.js +8 -5
- package/dist/api/slots-api/add-or-remove-break.js +8 -5
- package/dist/api/slots-api/calendar.js +3 -3
- package/dist/api/slots-api/create.js +8 -5
- package/dist/api/slots-api/daily.js +3 -3
- package/dist/api/slots-api/index.js +8 -8
- package/dist/api/slots-api/remove-breaks.js +8 -5
- package/dist/api/slots-api/remove.js +3 -3
- package/dist/api/slots-api/weekly.js +3 -3
- package/dist/api/support/create.js +8 -5
- package/dist/api/support/index.js +1 -1
- package/dist/api/tariffs-api/create.js +8 -5
- package/dist/api/tariffs-api/get-one.js +3 -3
- package/dist/api/tariffs-api/index.js +5 -5
- package/dist/api/tariffs-api/query.js +3 -3
- package/dist/api/tariffs-api/remove.js +3 -3
- package/dist/api/tariffs-api/update.js +8 -5
- package/dist/api/transactions-api/create-certificate-payment.js +8 -5
- package/dist/api/transactions-api/create-certificate-refund.js +8 -5
- package/dist/api/transactions-api/create-order-payment.js +8 -5
- package/dist/api/transactions-api/create-order-refund.js +8 -5
- package/dist/api/transactions-api/create.js +8 -5
- package/dist/api/transactions-api/get-one.js +3 -3
- package/dist/api/transactions-api/index.js +13 -13
- package/dist/api/transactions-api/query.js +3 -3
- package/dist/api/transactions-api/remove-certificate-payment.js +3 -3
- package/dist/api/transactions-api/remove-certificate-refund.js +3 -3
- package/dist/api/transactions-api/remove-order-payment.js +3 -3
- package/dist/api/transactions-api/remove-order-refund.js +3 -3
- package/dist/api/transactions-api/remove.js +3 -3
- package/dist/api/transactions-api/update.js +8 -5
- package/dist/api/uploads-api/index.js +1 -1
- package/dist/api/uploads-api/upload-image.js +12 -9
- package/dist/api/upsellings-api/create.js +8 -5
- package/dist/api/upsellings-api/get-one.js +3 -3
- package/dist/api/upsellings-api/index.js +5 -5
- package/dist/api/upsellings-api/query.js +3 -3
- package/dist/api/upsellings-api/remove.js +3 -3
- package/dist/api/upsellings-api/update.js +8 -5
- package/dist/api/user-messages-api/create.js +8 -5
- package/dist/api/user-messages-api/get-one.js +3 -3
- package/dist/api/user-messages-api/index.js +4 -4
- package/dist/api/user-messages-api/query.js +3 -3
- package/dist/api/user-messages-api/remove.js +3 -3
- package/dist/api/users-api/check-token.js +7 -4
- package/dist/api/users-api/create.js +8 -5
- package/dist/api/users-api/current-update-password.js +8 -5
- package/dist/api/users-api/current-update.js +8 -5
- package/dist/api/users-api/get-one.js +3 -3
- package/dist/api/users-api/index.js +15 -15
- package/dist/api/users-api/login.js +8 -5
- package/dist/api/users-api/logout.js +2 -2
- package/dist/api/users-api/me.js +2 -2
- package/dist/api/users-api/query.js +3 -3
- package/dist/api/users-api/recover.js +3 -3
- package/dist/api/users-api/remove.js +3 -3
- package/dist/api/users-api/send-invite.js +3 -3
- package/dist/api/users-api/send-recover-link.js +3 -3
- package/dist/api/users-api/update-password.js +8 -5
- package/dist/api/users-api/update.js +8 -5
- package/dist/api/widgets-api/create.js +8 -5
- package/dist/api/widgets-api/get-one.js +3 -3
- package/dist/api/widgets-api/index.js +5 -5
- package/dist/api/widgets-api/query.js +3 -3
- package/dist/api/widgets-api/remove.js +3 -3
- package/dist/api/widgets-api/update.js +8 -5
- package/dist/api/widgets-openapi/create-certificate.d.ts +9 -0
- package/dist/api/widgets-openapi/create-certificate.js +12 -0
- package/dist/api/widgets-openapi/create-order.d.ts +9 -0
- package/dist/api/widgets-openapi/create-order.js +12 -0
- package/dist/api/widgets-openapi/find-certificate.d.ts +6 -0
- package/dist/api/widgets-openapi/find-certificate.js +8 -0
- package/dist/api/widgets-openapi/get-widget-info.js +3 -3
- package/dist/api/widgets-openapi/index.d.ts +6 -0
- package/dist/api/widgets-openapi/index.js +9 -3
- package/dist/api/widgets-openapi/widget-daily.js +3 -3
- package/dist/api/widgets-openapi/widget-weekly.d.ts +2 -2
- package/dist/api/widgets-openapi/widget-weekly.js +3 -3
- package/dist/hooks/use-api-method/actions/creators/api.js +9 -9
- package/dist/hooks/use-api-method/index.js +83 -43
- package/dist/hooks/use-api-method/reducers/api.js +17 -5
- package/dist/utils/convert-to-options.js +3 -3
- package/dist/utils/define-status.js +4 -4
- package/dist/utils/enum-to-options.js +3 -3
- package/dist/utils/get-handled-error-message.js +1 -1
- package/dist/utils/get-many.js +4 -3
- package/dist/utils/get-one.js +3 -2
- package/dist/utils/get-service-error.js +18 -17
- package/dist/utils/is-network-error.js +3 -3
- package/dist/utils/redirect.js +1 -1
- package/dist/utils/serialize-record.js +4 -2
- package/dist/utils/validate-by-dto.js +8 -7
- package/package.json +4 -4
- package/dist/api/cities-api/get-cities-by-country.d.ts +0 -7
- package/dist/api/cities-api/get-cities-by-country.js +0 -8
- package/dist/api/cities-api/get-city-by-ip.d.ts +0 -6
- package/dist/api/cities-api/get-city-by-ip.js +0 -8
- package/dist/api/cities-api/get-city-by-slug.d.ts +0 -6
- package/dist/api/cities-api/get-city-by-slug.js +0 -8
- package/dist/api/cities-api/get-popular-cities-near.d.ts +0 -6
- package/dist/api/cities-api/get-popular-cities-near.js +0 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getOne = void 0;
|
|
4
|
-
|
|
5
|
-
url:
|
|
4
|
+
var getOne = function (id) { return ({
|
|
5
|
+
url: "/user-messages/".concat(id),
|
|
6
6
|
method: 'GET',
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.getOne = getOne;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.userMessagesApiDeclaration = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var get_one_1 = require("./get-one");
|
|
6
|
+
var query_1 = require("./query");
|
|
7
|
+
var remove_1 = require("./remove");
|
|
8
8
|
exports.userMessagesApiDeclaration = {
|
|
9
9
|
create: create_1.create,
|
|
10
10
|
remove: remove_1.remove,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.query = void 0;
|
|
4
|
-
|
|
4
|
+
var query = function (params) { return ({
|
|
5
5
|
url: '/user-messages',
|
|
6
6
|
method: 'GET',
|
|
7
|
-
params,
|
|
8
|
-
});
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
9
|
exports.query = query;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.remove = void 0;
|
|
4
|
-
|
|
5
|
-
url:
|
|
4
|
+
var remove = function (id) { return ({
|
|
5
|
+
url: "/user-messages/".concat(id),
|
|
6
6
|
method: 'DELETE',
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.remove = remove;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkToken = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
var checkToken = function (_a) {
|
|
5
|
+
var token = _a.token;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/users/check-token/".concat(token),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
8
11
|
exports.checkToken = checkToken;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.create = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var create = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/users',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
9
12
|
exports.create = create;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.currentUpdatePassword = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var currentUpdatePassword = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/current-user/update-password',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
9
12
|
exports.currentUpdatePassword = currentUpdatePassword;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.currentUpdate = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var currentUpdate = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/current-user',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
9
12
|
exports.currentUpdate = currentUpdate;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getOne = void 0;
|
|
4
|
-
|
|
5
|
-
url:
|
|
4
|
+
var getOne = function (id) { return ({
|
|
5
|
+
url: "/users/".concat(id),
|
|
6
6
|
method: 'GET',
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.getOne = getOne;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.usersApiDeclaration = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
var check_token_1 = require("./check-token");
|
|
5
|
+
var create_1 = require("./create");
|
|
6
|
+
var current_update_1 = require("./current-update");
|
|
7
|
+
var current_update_password_1 = require("./current-update-password");
|
|
8
|
+
var get_one_1 = require("./get-one");
|
|
9
|
+
var login_1 = require("./login");
|
|
10
|
+
var logout_1 = require("./logout");
|
|
11
|
+
var me_1 = require("./me");
|
|
12
|
+
var query_1 = require("./query");
|
|
13
|
+
var recover_1 = require("./recover");
|
|
14
|
+
var remove_1 = require("./remove");
|
|
15
|
+
var send_invite_1 = require("./send-invite");
|
|
16
|
+
var send_recover_link_1 = require("./send-recover-link");
|
|
17
|
+
var update_1 = require("./update");
|
|
18
|
+
var update_password_1 = require("./update-password");
|
|
19
19
|
exports.usersApiDeclaration = {
|
|
20
20
|
create: create_1.create,
|
|
21
21
|
currentUpdate: current_update_1.currentUpdate,
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.login = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var login = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/users/login',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
9
12
|
exports.login = login;
|
package/dist/api/users-api/me.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.query = void 0;
|
|
4
|
-
|
|
4
|
+
var query = function (params) { return ({
|
|
5
5
|
url: '/users',
|
|
6
6
|
method: 'GET',
|
|
7
|
-
params,
|
|
8
|
-
});
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
9
|
exports.query = query;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.recover = void 0;
|
|
4
|
-
|
|
5
|
-
url:
|
|
4
|
+
var recover = function (id) { return ({
|
|
5
|
+
url: "/users/recover/".concat(id),
|
|
6
6
|
method: 'PATCH',
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.recover = recover;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.remove = void 0;
|
|
4
|
-
|
|
5
|
-
url:
|
|
4
|
+
var remove = function (id) { return ({
|
|
5
|
+
url: "/users/".concat(id),
|
|
6
6
|
method: 'DELETE',
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.remove = remove;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sendInvite = void 0;
|
|
4
|
-
|
|
5
|
-
url:
|
|
4
|
+
var sendInvite = function (id) { return ({
|
|
5
|
+
url: "/users/send-invite-link/".concat(id),
|
|
6
6
|
method: 'GET',
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.sendInvite = sendInvite;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sendRecoverLink = void 0;
|
|
4
|
-
|
|
5
|
-
url:
|
|
4
|
+
var sendRecoverLink = function (email) { return ({
|
|
5
|
+
url: "/users/send-recover-link/".concat(email),
|
|
6
6
|
method: 'GET',
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.sendRecoverLink = sendRecoverLink;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updatePassword = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var updatePassword = function (_a) {
|
|
5
|
+
var token = _a.token, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/users/update-password/".concat(token),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
9
12
|
exports.updatePassword = updatePassword;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.update = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var update = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/users/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
9
12
|
exports.update = update;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.create = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var create = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/widgets',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
9
12
|
exports.create = create;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getOne = void 0;
|
|
4
|
-
|
|
5
|
-
url:
|
|
4
|
+
var getOne = function (id) { return ({
|
|
5
|
+
url: "/widgets/".concat(id),
|
|
6
6
|
method: 'GET',
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.getOne = getOne;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.widgetsApiDeclaration = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var get_one_1 = require("./get-one");
|
|
6
|
+
var query_1 = require("./query");
|
|
7
|
+
var remove_1 = require("./remove");
|
|
8
|
+
var update_1 = require("./update");
|
|
9
9
|
exports.widgetsApiDeclaration = {
|
|
10
10
|
create: create_1.create,
|
|
11
11
|
remove: remove_1.remove,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.query = void 0;
|
|
4
|
-
|
|
4
|
+
var query = function (params) { return ({
|
|
5
5
|
url: '/widgets',
|
|
6
6
|
method: 'GET',
|
|
7
|
-
params,
|
|
8
|
-
});
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
9
|
exports.query = query;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.remove = void 0;
|
|
4
|
-
|
|
5
|
-
url:
|
|
4
|
+
var remove = function (id) { return ({
|
|
5
|
+
url: "/widgets/".concat(id),
|
|
6
6
|
method: 'DELETE',
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.remove = remove;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.update = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
var update = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/widgets/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
9
12
|
exports.update = update;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WidgetOpenapiCertificateResponseObject } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-certificate.ro';
|
|
2
|
+
import { WidgetOpenapiCreateCertificateDto } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-create-certificate.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: WidgetOpenapiCreateCertificateDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = WidgetOpenapiCertificateResponseObject;
|
|
8
|
+
export declare const createCertificate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createCertificate = void 0;
|
|
4
|
+
var createCertificate = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/widget/openapi/certificate",
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createCertificate = createCertificate;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WidgetOpenapiOrderResponseObject } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-order.ro';
|
|
2
|
+
import { WidgetOpenapiCreateOrderDto } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-create-order.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: WidgetOpenapiCreateOrderDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = WidgetOpenapiOrderResponseObject;
|
|
8
|
+
export declare const createOrder: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createOrder = void 0;
|
|
4
|
+
var createOrder = function (_a) {
|
|
5
|
+
var data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/widget/openapi/order",
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createOrder = createOrder;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WidgetOpenapiFindedCertificateResponseObject } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-finded-certificate.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = WidgetOpenapiFindedCertificateResponseObject;
|
|
5
|
+
export declare const findCertificate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findCertificate = void 0;
|
|
4
|
+
var findCertificate = function (code) { return ({
|
|
5
|
+
url: "/widget/openapi/certificate/" + code,
|
|
6
|
+
method: 'GET'
|
|
7
|
+
}); };
|
|
8
|
+
exports.findCertificate = findCertificate;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getWidgetInfo = void 0;
|
|
4
|
-
|
|
5
|
-
url:
|
|
4
|
+
var getWidgetInfo = function (uid) { return ({
|
|
5
|
+
url: "/widget/openapi/info/".concat(uid),
|
|
6
6
|
method: 'GET',
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.getWidgetInfo = getWidgetInfo;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { getWidgetInfo } from './get-widget-info';
|
|
2
2
|
import { daily } from './widget-daily';
|
|
3
3
|
import { weekly } from './widget-weekly';
|
|
4
|
+
import { createOrder } from './create-order';
|
|
5
|
+
import { createCertificate } from './create-certificate';
|
|
6
|
+
import { findCertificate } from './find-certificate';
|
|
4
7
|
declare type ApiDeclaration = {
|
|
5
8
|
getWidgetInfo: typeof getWidgetInfo;
|
|
6
9
|
daily: typeof daily;
|
|
7
10
|
weekly: typeof weekly;
|
|
11
|
+
createOrder: typeof createOrder;
|
|
12
|
+
createCertificate: typeof createCertificate;
|
|
13
|
+
findCertificate: typeof findCertificate;
|
|
8
14
|
};
|
|
9
15
|
export declare const widgetsOpenApiDeclaration: ApiDeclaration;
|
|
10
16
|
export {};
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.widgetsOpenApiDeclaration = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
var get_widget_info_1 = require("./get-widget-info");
|
|
5
|
+
var widget_daily_1 = require("./widget-daily");
|
|
6
|
+
var widget_weekly_1 = require("./widget-weekly");
|
|
7
|
+
var create_order_1 = require("./create-order");
|
|
8
|
+
var create_certificate_1 = require("./create-certificate");
|
|
9
|
+
var find_certificate_1 = require("./find-certificate");
|
|
7
10
|
exports.widgetsOpenApiDeclaration = {
|
|
8
11
|
getWidgetInfo: get_widget_info_1.getWidgetInfo,
|
|
9
12
|
daily: widget_daily_1.daily,
|
|
10
13
|
weekly: widget_weekly_1.weekly,
|
|
14
|
+
createOrder: create_order_1.createOrder,
|
|
15
|
+
createCertificate: create_certificate_1.createCertificate,
|
|
16
|
+
findCertificate: find_certificate_1.findCertificate
|
|
11
17
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.daily = void 0;
|
|
4
|
-
|
|
4
|
+
var daily = function (params) { return ({
|
|
5
5
|
url: '/widget/openapi/daily',
|
|
6
6
|
method: 'GET',
|
|
7
|
-
params,
|
|
8
|
-
});
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
9
|
exports.daily = daily;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WidgetOpenapiScheduleQueryDto } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-schedule-query.dto';
|
|
2
2
|
import { WidgetOpenapiSlotResponseObject } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-slot.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
declare type ParamsData =
|
|
5
|
-
declare type ResponseData =
|
|
4
|
+
declare type ParamsData = WidgetOpenapiScheduleQueryDto;
|
|
5
|
+
declare type ResponseData = WidgetOpenapiSlotResponseObject[];
|
|
6
6
|
export declare const weekly: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.weekly = void 0;
|
|
4
|
-
|
|
4
|
+
var weekly = function (params) { return ({
|
|
5
5
|
url: '/widget/openapi/weekly',
|
|
6
6
|
method: 'GET',
|
|
7
|
-
params,
|
|
8
|
-
});
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
9
|
exports.weekly = weekly;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.fetchFailure = exports.fetchSuccess = exports.fetchStart = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var api_1 = require("../types/api");
|
|
5
|
+
var fetchStart = function () { return ({
|
|
6
6
|
type: api_1.ActionTypes.FETCH_START,
|
|
7
|
-
});
|
|
7
|
+
}); };
|
|
8
8
|
exports.fetchStart = fetchStart;
|
|
9
|
-
|
|
9
|
+
var fetchSuccess = function (response) { return ({
|
|
10
10
|
type: api_1.ActionTypes.FETCH_SUCCESS,
|
|
11
11
|
payload: {
|
|
12
|
-
response,
|
|
12
|
+
response: response,
|
|
13
13
|
},
|
|
14
|
-
});
|
|
14
|
+
}); };
|
|
15
15
|
exports.fetchSuccess = fetchSuccess;
|
|
16
|
-
|
|
16
|
+
var fetchFailure = function (error) { return ({
|
|
17
17
|
type: api_1.ActionTypes.FETCH_FAILURE,
|
|
18
18
|
payload: {
|
|
19
|
-
error,
|
|
19
|
+
error: error,
|
|
20
20
|
},
|
|
21
|
-
});
|
|
21
|
+
}); };
|
|
22
22
|
exports.fetchFailure = fetchFailure;
|