@escapenavigator/services 1.4.41 → 1.4.43
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/cashboxes-api/create.d.ts +2 -2
- package/dist/api/cashboxes-api/get-one.d.ts +2 -2
- package/dist/api/cashboxes-api/get-verification-link.d.ts +5 -0
- package/dist/api/cashboxes-api/get-verification-link.js +8 -0
- package/dist/api/cashboxes-api/index.d.ts +2 -0
- package/dist/api/cashboxes-api/index.js +2 -0
- package/dist/api/cashboxes-api/query.d.ts +2 -2
- package/dist/api/cashboxes-api/recover.d.ts +2 -2
- package/dist/api/cashboxes-api/remove.d.ts +2 -2
- package/dist/api/cashboxes-api/update.d.ts +2 -2
- package/dist/api/locations-api/create.d.ts +2 -2
- package/dist/api/locations-api/get-one.d.ts +2 -2
- package/dist/api/locations-api/query.d.ts +2 -2
- package/dist/api/locations-api/recover.d.ts +2 -2
- package/dist/api/locations-api/remove.d.ts +2 -2
- package/dist/api/locations-api/update.d.ts +2 -2
- package/dist/api/orders-api/index.d.ts +2 -0
- package/dist/api/orders-api/index.js +2 -0
- package/dist/api/orders-api/update-moderator.d.ts +10 -0
- package/dist/api/{transactions-api/update.js → orders-api/update-moderator.js} +4 -4
- package/dist/api/profiles-api/update.d.ts +2 -2
- package/dist/api/transactions-api/index.d.ts +0 -2
- package/dist/api/transactions-api/index.js +0 -2
- package/dist/api/widgets-openapi/create-order.d.ts +2 -2
- package/dist/api/widgets-openapi/find-certificatesale.d.ts +6 -0
- package/dist/api/widgets-openapi/find-certificatesale.js +8 -0
- package/dist/api/widgets-openapi/find-order.d.ts +6 -0
- package/dist/api/widgets-openapi/find-order.js +8 -0
- package/dist/api/widgets-openapi/index.d.ts +4 -0
- package/dist/api/widgets-openapi/index.js +4 -0
- package/dist/api/widgets-orders/certificate-payment.d.ts +2 -2
- package/dist/api/widgets-orders/certificate-payment.js +1 -1
- package/dist/api/widgets-orders/order-payment.d.ts +2 -2
- package/dist/api/widgets-orders/order-payment.js +1 -1
- package/dist/utils/serialize-slot.js +5 -10
- package/package.json +3 -3
- package/dist/api/profiles-api/update-current.d.ts +0 -9
- package/dist/api/profiles-api/update-current.js +0 -12
- package/dist/api/transactions-api/update.d.ts +0 -10
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CashboxRO } from '@escapenavigator/types/dist/cashbox/cashbox.ro';
|
|
2
2
|
import { CreateCashboxDto } from '@escapenavigator/types/dist/cashbox/create-cashbox.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateCashboxDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = CashboxRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CashboxRO } from '@escapenavigator/types/dist/cashbox/cashbox.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
declare type ParamsData = number;
|
|
4
|
-
declare type ResponseData =
|
|
4
|
+
declare type ResponseData = CashboxRO;
|
|
5
5
|
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getVerificationLink = void 0;
|
|
4
|
+
var getVerificationLink = function (cashboxId) { return ({
|
|
5
|
+
url: "/cashboxes/verification-link/".concat(cashboxId),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getVerificationLink = getVerificationLink;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { create } from './create';
|
|
2
2
|
import { getOne } from './get-one';
|
|
3
|
+
import { getVerificationLink } from './get-verification-link';
|
|
3
4
|
import { query } from './query';
|
|
4
5
|
import { remove } from './remove';
|
|
5
6
|
import { update } from './update';
|
|
6
7
|
declare type ApiDeclaration = {
|
|
8
|
+
getVerificationLink: typeof getVerificationLink;
|
|
7
9
|
getOne: typeof getOne;
|
|
8
10
|
create: typeof create;
|
|
9
11
|
remove: typeof remove;
|
|
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.cashboxesApiDeclaration = void 0;
|
|
4
4
|
var create_1 = require("./create");
|
|
5
5
|
var get_one_1 = require("./get-one");
|
|
6
|
+
var get_verification_link_1 = require("./get-verification-link");
|
|
6
7
|
var query_1 = require("./query");
|
|
7
8
|
var remove_1 = require("./remove");
|
|
8
9
|
var update_1 = require("./update");
|
|
9
10
|
exports.cashboxesApiDeclaration = {
|
|
10
11
|
create: create_1.create,
|
|
12
|
+
getVerificationLink: get_verification_link_1.getVerificationLink,
|
|
11
13
|
remove: remove_1.remove,
|
|
12
14
|
query: query_1.query,
|
|
13
15
|
getOne: get_one_1.getOne,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CashboxRO } from '@escapenavigator/types/dist/cashbox/cashbox.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
declare type ParamsData = undefined;
|
|
4
|
-
declare type ResponseData =
|
|
4
|
+
declare type ResponseData = CashboxRO[];
|
|
5
5
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CashboxRO } from '@escapenavigator/types/dist/cashbox/cashbox.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID кассы */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = CashboxRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CashboxRO } from '@escapenavigator/types/dist/cashbox/cashbox.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID кассы */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = CashboxRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CashboxRO } from '@escapenavigator/types/dist/cashbox/cashbox.ro';
|
|
2
2
|
import { UpdateCashboxDto } from '@escapenavigator/types/dist/cashbox/update-cashbox.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: UpdateCashboxDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = CashboxRO;
|
|
9
9
|
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateLocationDto } from '@escapenavigator/types/dist/location/create-location.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { LocationRO } from '@escapenavigator/types/dist/location/location.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: CreateLocationDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = LocationRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationRO } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID локации */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = LocationRO;
|
|
6
6
|
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationRO } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
declare type ParamsData = any;
|
|
4
|
-
declare type ResponseData =
|
|
4
|
+
declare type ResponseData = LocationRO[];
|
|
5
5
|
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
6
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationRO } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID локации */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = LocationRO;
|
|
6
6
|
export declare const recover: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationRO } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID локации */
|
|
4
4
|
declare type ParamsData = number;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = LocationRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LocationRO } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
2
|
import { UpdateLocationDto } from '@escapenavigator/types/dist/location/update-location.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: UpdateLocationDto;
|
|
7
7
|
};
|
|
8
|
-
declare type ResponseData =
|
|
8
|
+
declare type ResponseData = LocationRO;
|
|
9
9
|
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -4,9 +4,11 @@ import { getOne } from './get-one';
|
|
|
4
4
|
import { query } from './query';
|
|
5
5
|
import { resendEmail } from './resend-email';
|
|
6
6
|
import { update } from './update';
|
|
7
|
+
import { updateModerator } from './update-moderator';
|
|
7
8
|
import { updateSlot } from './update-slot';
|
|
8
9
|
declare type ApiDeclaration = {
|
|
9
10
|
create: typeof create;
|
|
11
|
+
updateModerator: typeof updateModerator;
|
|
10
12
|
resendEmail: typeof resendEmail;
|
|
11
13
|
getOne: typeof getOne;
|
|
12
14
|
query: typeof query;
|
|
@@ -7,8 +7,10 @@ var get_one_1 = require("./get-one");
|
|
|
7
7
|
var query_1 = require("./query");
|
|
8
8
|
var resend_email_1 = require("./resend-email");
|
|
9
9
|
var update_1 = require("./update");
|
|
10
|
+
var update_moderator_1 = require("./update-moderator");
|
|
10
11
|
var update_slot_1 = require("./update-slot");
|
|
11
12
|
exports.ordersApiDeclaration = {
|
|
13
|
+
updateModerator: update_moderator_1.updateModerator,
|
|
12
14
|
create: create_1.create,
|
|
13
15
|
cancel: cancel_1.cancel,
|
|
14
16
|
update: update_1.update,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UpdateModeratorDto } from '@escapenavigator/types/dist/order/update-moderator.dto';
|
|
2
|
+
import { UpdateModeratorRO } from '@escapenavigator/types/dist/order/update-moderator.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: UpdateModeratorDto;
|
|
6
|
+
id: number;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = UpdateModeratorRO;
|
|
9
|
+
export declare const updateModerator: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
3
|
+
exports.updateModerator = void 0;
|
|
4
|
+
var updateModerator = function (_a) {
|
|
5
5
|
var id = _a.id, data = _a.data;
|
|
6
6
|
return ({
|
|
7
|
-
url: "/
|
|
7
|
+
url: "/orders/update-moderator/".concat(id),
|
|
8
8
|
method: 'PATCH',
|
|
9
9
|
data: data,
|
|
10
10
|
});
|
|
11
11
|
};
|
|
12
|
-
exports.
|
|
12
|
+
exports.updateModerator = updateModerator;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { CreateProfileDto } from '@escapenavigator/types/dist/profile/create-profile.dto';
|
|
1
2
|
import { ProfileResponseObject } from '@escapenavigator/types/dist/profile/profile.ro';
|
|
2
|
-
import { UpdateProfileDto } from '@escapenavigator/types/dist/profile/update-profile.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
|
-
data:
|
|
6
|
+
data: CreateProfileDto;
|
|
7
7
|
};
|
|
8
8
|
declare type ResponseData = ProfileResponseObject;
|
|
9
9
|
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -11,11 +11,9 @@ import { removeCertificatePayment } from './remove-certificate-payment';
|
|
|
11
11
|
import { removeCertificateRefund } from './remove-certificate-refund';
|
|
12
12
|
import { removeOrderPayment } from './remove-order-payment';
|
|
13
13
|
import { removeOrderRefund } from './remove-order-refund';
|
|
14
|
-
import { update } from './update';
|
|
15
14
|
declare type ApiDeclaration = {
|
|
16
15
|
create: typeof create;
|
|
17
16
|
remove: typeof remove;
|
|
18
|
-
update: typeof update;
|
|
19
17
|
query: typeof query;
|
|
20
18
|
captureOrderOnlinePayment: typeof captureOrderOnlinePayment;
|
|
21
19
|
createCertificatePayment: typeof createCertificatePayment;
|
|
@@ -14,11 +14,9 @@ var remove_certificate_payment_1 = require("./remove-certificate-payment");
|
|
|
14
14
|
var remove_certificate_refund_1 = require("./remove-certificate-refund");
|
|
15
15
|
var remove_order_payment_1 = require("./remove-order-payment");
|
|
16
16
|
var remove_order_refund_1 = require("./remove-order-refund");
|
|
17
|
-
var update_1 = require("./update");
|
|
18
17
|
exports.transactionsApiDeclaration = {
|
|
19
18
|
create: create_1.create,
|
|
20
19
|
remove: remove_1.remove,
|
|
21
|
-
update: update_1.update,
|
|
22
20
|
query: query_1.query,
|
|
23
21
|
createCertificatePayment: create_certificate_payment_1.createCertificatePayment,
|
|
24
22
|
captureOrderOnlinePayment: capture_order_online_payment_1.captureOrderOnlinePayment,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WidgetOpenapiCreateOrderDto } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-create-order.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { WidgetOpenapiOrderRO } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-order.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = {
|
|
5
5
|
data: WidgetOpenapiCreateOrderDto;
|
|
6
6
|
};
|
|
7
|
-
declare type ResponseData =
|
|
7
|
+
declare type ResponseData = WidgetOpenapiOrderRO;
|
|
8
8
|
export declare const createOrder: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WidgetOpenapiCertificateRO } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-certificate.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = WidgetOpenapiCertificateRO;
|
|
5
|
+
export declare const findCertificatesale: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.findCertificatesale = void 0;
|
|
4
|
+
var findCertificatesale = function (token) { return ({
|
|
5
|
+
url: "/widget/openapi/certificatesale/".concat(token),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.findCertificatesale = findCertificatesale;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { WidgetOpenapiOrderRO } from '@escapenavigator/types/dist/widget-openapi/widget-openapi-order.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = string;
|
|
4
|
+
declare type ResponseData = WidgetOpenapiOrderRO;
|
|
5
|
+
export declare const findOrder: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -2,6 +2,8 @@ import { createCertificate } from './create-certificate';
|
|
|
2
2
|
import { createOrder } from './create-order';
|
|
3
3
|
import { createReview } from './create-review';
|
|
4
4
|
import { findCertificate } from './find-certificate';
|
|
5
|
+
import { findCertificatesale } from './find-certificatesale';
|
|
6
|
+
import { findOrder } from './find-order';
|
|
5
7
|
import { getCertificates } from './get-certificates';
|
|
6
8
|
import { getCertificatesForAgregator } from './get-certificates-for-agregator';
|
|
7
9
|
import { getQuestroom } from './get-questroom';
|
|
@@ -11,6 +13,8 @@ import { getWidgetInfo } from './get-widget-info';
|
|
|
11
13
|
import { daily } from './widget-daily';
|
|
12
14
|
import { weekly } from './widget-weekly';
|
|
13
15
|
declare type ApiDeclaration = {
|
|
16
|
+
findCertificatesale: typeof findCertificatesale;
|
|
17
|
+
findOrder: typeof findOrder;
|
|
14
18
|
getCertificates: typeof getCertificates;
|
|
15
19
|
getQuestroom: typeof getQuestroom;
|
|
16
20
|
getQuestrooms: typeof getQuestrooms;
|
|
@@ -5,6 +5,8 @@ var create_certificate_1 = require("./create-certificate");
|
|
|
5
5
|
var create_order_1 = require("./create-order");
|
|
6
6
|
var create_review_1 = require("./create-review");
|
|
7
7
|
var find_certificate_1 = require("./find-certificate");
|
|
8
|
+
var find_certificatesale_1 = require("./find-certificatesale");
|
|
9
|
+
var find_order_1 = require("./find-order");
|
|
8
10
|
var get_certificates_1 = require("./get-certificates");
|
|
9
11
|
var get_certificates_for_agregator_1 = require("./get-certificates-for-agregator");
|
|
10
12
|
var get_questroom_1 = require("./get-questroom");
|
|
@@ -15,6 +17,8 @@ var widget_daily_1 = require("./widget-daily");
|
|
|
15
17
|
var widget_weekly_1 = require("./widget-weekly");
|
|
16
18
|
exports.widgetsOpenApiDeclaration = {
|
|
17
19
|
getQuestrooms: get_questrooms_1.getQuestrooms,
|
|
20
|
+
findCertificatesale: find_certificatesale_1.findCertificatesale,
|
|
21
|
+
findOrder: find_order_1.findOrder,
|
|
18
22
|
getCertificates: get_certificates_1.getCertificates,
|
|
19
23
|
getQuestroom: get_questroom_1.getQuestroom,
|
|
20
24
|
getCertificatesForAgregator: get_certificates_for_agregator_1.getCertificatesForAgregator,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { WidgetOrdersCertificateRO } from '@escapenavigator/types/dist/widget-orders/widget-orders-certificate.ro';
|
|
2
1
|
import { WidgetOrdersCreateCertificatePaymentDto } from '@escapenavigator/types/dist/widget-orders/widget-orders-create-certificate-payment.dto';
|
|
2
|
+
import { WidgetOrdersCreatePaymentRO } from '@escapenavigator/types/dist/widget-orders/widget-orders-create-payment.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = WidgetOrdersCreateCertificatePaymentDto;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = WidgetOrdersCreatePaymentRO;
|
|
6
6
|
export declare const certificatePayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.certificatePayment = void 0;
|
|
4
4
|
var certificatePayment = function (data) { return ({
|
|
5
5
|
url: '/widget/orders/certificate-payment',
|
|
6
|
-
method: '
|
|
6
|
+
method: 'POST',
|
|
7
7
|
data: data,
|
|
8
8
|
}); };
|
|
9
9
|
exports.certificatePayment = certificatePayment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WidgetOrdersCreateOrderPaymentDto } from '@escapenavigator/types/dist/widget-orders/widget-orders-create-order-payment.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { WidgetOrdersCreatePaymentRO } from '@escapenavigator/types/dist/widget-orders/widget-orders-create-payment.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = WidgetOrdersCreateOrderPaymentDto;
|
|
5
|
-
declare type ResponseData =
|
|
5
|
+
declare type ResponseData = WidgetOrdersCreatePaymentRO;
|
|
6
6
|
export declare const orderPayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.orderPayment = void 0;
|
|
4
4
|
var orderPayment = function (data) { return ({
|
|
5
5
|
url: '/widget/orders/order-payment',
|
|
6
|
-
method: '
|
|
6
|
+
method: 'POST',
|
|
7
7
|
data: data,
|
|
8
8
|
}); };
|
|
9
9
|
exports.orderPayment = orderPayment;
|
|
@@ -1,25 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serializeSlot = exports.serializeSlotOrderData = void 0;
|
|
4
|
-
var getPayedStatus = function (order) {
|
|
5
|
-
if (!order.payed)
|
|
6
|
-
return 'not_payed';
|
|
7
|
-
if (order.total - order.payed === 0)
|
|
8
|
-
return 'payed';
|
|
9
|
-
if (order.total - order.payed > 0)
|
|
10
|
-
return 'half-payed';
|
|
11
|
-
return 'over-payed';
|
|
12
|
-
};
|
|
13
4
|
var serializeSlotOrderData = function (order) {
|
|
14
5
|
var _a, _b, _c, _d;
|
|
15
6
|
return order && {
|
|
16
7
|
id: order.id,
|
|
17
8
|
players: order.players,
|
|
18
|
-
status: getPayedStatus(order),
|
|
19
9
|
hasDiscounts: !!((_a = order.discounts) === null || _a === void 0 ? void 0 : _a.length),
|
|
20
10
|
hasCertificateApplies: !!((_b = order.certificates) === null || _b === void 0 ? void 0 : _b.length),
|
|
21
11
|
hasPenalties: !!((_c = order.penalties) === null || _c === void 0 ? void 0 : _c.length),
|
|
22
12
|
hasUpsellings: !!((_d = order.upsellings) === null || _d === void 0 ? void 0 : _d.length),
|
|
13
|
+
utcDate: order.utcDate,
|
|
14
|
+
moderatorId: order.moderatorId,
|
|
15
|
+
total: order.total,
|
|
16
|
+
payed: order.payed,
|
|
17
|
+
code: order.code,
|
|
23
18
|
};
|
|
24
19
|
};
|
|
25
20
|
exports.serializeSlotOrderData = serializeSlotOrderData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.43",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "5ad802775ca2794c0f88d7e271f58197736d10f5",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.4.
|
|
17
|
+
"@escapenavigator/types": "^1.4.43",
|
|
18
18
|
"@paypal/react-paypal-js": "^7.8.3",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ProfileResponseObject } from '@escapenavigator/types/dist/profile/profile.ro';
|
|
2
|
-
import { UpdateProfileDto } from '@escapenavigator/types/dist/profile/update-profile.dto';
|
|
3
|
-
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
declare type ParamsData = {
|
|
5
|
-
data: UpdateProfileDto;
|
|
6
|
-
};
|
|
7
|
-
declare type ResponseData = ProfileResponseObject;
|
|
8
|
-
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.update = void 0;
|
|
4
|
-
var update = function (_a) {
|
|
5
|
-
var data = _a.data;
|
|
6
|
-
return ({
|
|
7
|
-
url: '/profiles/update-current',
|
|
8
|
-
method: 'PATCH',
|
|
9
|
-
data: data,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
exports.update = update;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TransactionResponseObject } from '@escapenavigator/types/dist/transaction/transaction.ro';
|
|
2
|
-
import { UpdateTransactionDto } from '@escapenavigator/types/dist/transaction/update-transaction.dto';
|
|
3
|
-
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
declare type ParamsData = {
|
|
5
|
-
id: number;
|
|
6
|
-
data: UpdateTransactionDto;
|
|
7
|
-
};
|
|
8
|
-
declare type ResponseData = TransactionResponseObject;
|
|
9
|
-
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
-
export {};
|