@escapenavigator/services 2.0.45 → 2.0.47
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/clients-api/delete-complaint.d.ts +9 -0
- package/dist/api/clients-api/delete-complaint.js +11 -0
- package/dist/api/clients-api/get-complaints.d.ts +1 -0
- package/dist/api/clients-api/index.d.ts +2 -0
- package/dist/api/clients-api/index.js +2 -0
- package/dist/api/fiscal-api/authorize-moloni.d.ts +4 -0
- package/dist/api/fiscal-api/authorize-moloni.js +8 -0
- package/dist/api/fiscal-api/connect-invoicexpress.d.ts +6 -0
- package/dist/api/fiscal-api/connect-invoicexpress.js +12 -0
- package/dist/api/fiscal-api/get.d.ts +3 -0
- package/dist/api/fiscal-api/get.js +8 -0
- package/dist/api/fiscal-api/index.d.ts +16 -0
- package/dist/api/fiscal-api/index.js +17 -0
- package/dist/api/fiscal-api/remove.d.ts +3 -0
- package/dist/api/fiscal-api/remove.js +8 -0
- package/dist/api/fiscal-api/retry.d.ts +5 -0
- package/dist/api/fiscal-api/retry.js +11 -0
- package/dist/api/fiscal-api/update.d.ts +6 -0
- package/dist/api/fiscal-api/update.js +12 -0
- package/dist/api/init-client-api.d.ts +6 -0
- package/dist/api/init-client-api.js +6 -0
- package/dist/api/lead-forms-api/create-form.d.ts +9 -0
- package/dist/api/lead-forms-api/create-form.js +12 -0
- package/dist/api/lead-forms-api/get-defaults.d.ts +7 -0
- package/dist/api/lead-forms-api/get-defaults.js +9 -0
- package/dist/api/lead-forms-api/get-forms.d.ts +6 -0
- package/dist/api/lead-forms-api/get-forms.js +8 -0
- package/dist/api/lead-forms-api/get-stages.d.ts +6 -0
- package/dist/api/lead-forms-api/get-stages.js +8 -0
- package/dist/api/lead-forms-api/get-widget-display.d.ts +6 -0
- package/dist/api/lead-forms-api/get-widget-display.js +8 -0
- package/dist/api/lead-forms-api/index.d.ts +22 -0
- package/dist/api/lead-forms-api/index.js +23 -0
- package/dist/api/lead-forms-api/remove-form.d.ts +7 -0
- package/dist/api/lead-forms-api/remove-form.js +11 -0
- package/dist/api/lead-forms-api/update-form.d.ts +10 -0
- package/dist/api/lead-forms-api/update-form.js +12 -0
- package/dist/api/lead-forms-api/update-stages.d.ts +9 -0
- package/dist/api/lead-forms-api/update-stages.js +12 -0
- package/dist/api/lead-forms-api/update-widget-display.d.ts +9 -0
- package/dist/api/lead-forms-api/update-widget-display.js +12 -0
- package/dist/api/leads-api/create.d.ts +9 -0
- package/dist/api/leads-api/create.js +12 -0
- package/dist/api/leads-api/get-board-column.d.ts +11 -0
- package/dist/api/leads-api/get-board-column.js +24 -0
- package/dist/api/leads-api/get-board.d.ts +7 -0
- package/dist/api/leads-api/get-board.js +9 -0
- package/dist/api/leads-api/get-conversion-prefill.d.ts +9 -0
- package/dist/api/leads-api/get-conversion-prefill.js +12 -0
- package/dist/api/leads-api/get-counters.d.ts +6 -0
- package/dist/api/leads-api/get-counters.js +8 -0
- package/dist/api/leads-api/get-events.d.ts +8 -0
- package/dist/api/leads-api/get-events.js +11 -0
- package/dist/api/leads-api/get-one.d.ts +8 -0
- package/dist/api/leads-api/get-one.js +11 -0
- package/dist/api/leads-api/index.d.ts +37 -0
- package/dist/api/leads-api/index.js +27 -0
- package/dist/api/leads-api/link-conversion.d.ts +10 -0
- package/dist/api/leads-api/link-conversion.js +12 -0
- package/dist/api/leads-api/mark-viewed.d.ts +9 -0
- package/dist/api/leads-api/mark-viewed.js +12 -0
- package/dist/api/leads-api/query.d.ts +10 -0
- package/dist/api/leads-api/query.js +9 -0
- package/dist/api/leads-api/update.d.ts +10 -0
- package/dist/api/leads-api/update.js +12 -0
- package/dist/api/openapi-widget-api/certificates/certificate-cloudpayments-payment.d.ts +7 -0
- package/dist/api/openapi-widget-api/certificates/certificate-cloudpayments-payment.js +9 -0
- package/dist/api/openapi-widget-api/certificates/certificate-yookassa-payment.d.ts +7 -0
- package/dist/api/openapi-widget-api/certificates/certificate-yookassa-payment.js +9 -0
- package/dist/api/openapi-widget-api/index.d.ts +22 -0
- package/dist/api/openapi-widget-api/index.js +22 -0
- package/dist/api/openapi-widget-api/leads/get-lead-form-by-uuid.d.ts +9 -0
- package/dist/api/openapi-widget-api/leads/get-lead-form-by-uuid.js +12 -0
- package/dist/api/openapi-widget-api/leads/get-lead-form.d.ts +8 -0
- package/dist/api/openapi-widget-api/leads/get-lead-form.js +9 -0
- package/dist/api/openapi-widget-api/leads/submit-lead-by-uuid.d.ts +12 -0
- package/dist/api/openapi-widget-api/leads/submit-lead-by-uuid.js +13 -0
- package/dist/api/openapi-widget-api/leads/submit-lead.d.ts +11 -0
- package/dist/api/openapi-widget-api/leads/submit-lead.js +13 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-cloudpayments.d.ts +9 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-cloudpayments.js +23 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-yookassa.d.ts +9 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-yookassa.js +23 -0
- package/dist/api/openapi-widget-api/orders/order-payment-cloudpayments.d.ts +7 -0
- package/dist/api/openapi-widget-api/orders/order-payment-cloudpayments.js +9 -0
- package/dist/api/openapi-widget-api/orders/order-payment-yookassa.d.ts +7 -0
- package/dist/api/openapi-widget-api/orders/order-payment-yookassa.js +9 -0
- package/dist/api/openapi-widget-api/slots/slots-upcoming.d.ts +9 -0
- package/dist/api/openapi-widget-api/slots/slots-upcoming.js +9 -0
- package/dist/api/profiles-api/index.d.ts +12 -0
- package/dist/api/profiles-api/index.js +12 -0
- package/dist/api/profiles-api/telephony/get-telephony-settings.d.ts +3 -0
- package/dist/api/profiles-api/telephony/get-telephony-settings.js +8 -0
- package/dist/api/profiles-api/telephony/query-client-calls.d.ts +8 -0
- package/dist/api/profiles-api/telephony/query-client-calls.js +12 -0
- package/dist/api/profiles-api/telephony/query-live-calls.d.ts +3 -0
- package/dist/api/profiles-api/telephony/query-live-calls.js +8 -0
- package/dist/api/profiles-api/telephony/rotate-telephony-webhook-token.d.ts +3 -0
- package/dist/api/profiles-api/telephony/rotate-telephony-webhook-token.js +8 -0
- package/dist/api/profiles-api/telephony/send-telephony-test-call.d.ts +8 -0
- package/dist/api/profiles-api/telephony/send-telephony-test-call.js +12 -0
- package/dist/api/profiles-api/telephony/update-telephony-settings.d.ts +8 -0
- package/dist/api/profiles-api/telephony/update-telephony-settings.js +12 -0
- package/package.json +4 -4
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LeadEventRO } from '@escapenavigator/types/dist/lead/lead-event.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = LeadEventRO[];
|
|
7
|
+
export declare const getEvents: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEvents = void 0;
|
|
4
|
+
var getEvents = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/leads/".concat(id, "/events"),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.getEvents = getEvents;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LeadRO } from '@escapenavigator/types/dist/lead/lead.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = LeadRO;
|
|
7
|
+
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const leadsApiDeclaration: {
|
|
2
|
+
getBoard: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/lead/query-leads.dto").QueryLeadsDto, import("@escapenavigator/types/dist/lead/lead-board.ro").LeadBoardRO>;
|
|
3
|
+
getBoardColumn: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/lead/query-leads.dto").QueryLeadsDto & {
|
|
4
|
+
stageId: number;
|
|
5
|
+
offset: number;
|
|
6
|
+
}, import("@escapenavigator/types/dist/lead/lead-board.ro").LeadBoardColumnRO>;
|
|
7
|
+
getCounters: import("..").ApiMethodDeclaration<undefined, import("@escapenavigator/types/dist/lead/lead-counters.ro").LeadCountersRO>;
|
|
8
|
+
getConversionPrefill: import("..").ApiMethodDeclaration<{
|
|
9
|
+
id: number;
|
|
10
|
+
}, import("@escapenavigator/types/dist/lead/lead-conversion-prefill.ro").LeadConversionPrefillRO>;
|
|
11
|
+
getEvents: import("..").ApiMethodDeclaration<{
|
|
12
|
+
id: number;
|
|
13
|
+
}, import("@escapenavigator/types/dist/lead/lead-event.ro").LeadEventRO[]>;
|
|
14
|
+
getOne: import("..").ApiMethodDeclaration<{
|
|
15
|
+
id: number;
|
|
16
|
+
}, import("@escapenavigator/types/dist/lead/lead.ro").LeadRO>;
|
|
17
|
+
query: import("..").ApiMethodDeclaration<import("@escapenavigator/types/dist/lead/query-leads.dto").QueryLeadsListDto, {
|
|
18
|
+
items: (import("@escapenavigator/types/dist/lead/lead.ro").LeadRO & {
|
|
19
|
+
overdue: boolean;
|
|
20
|
+
})[];
|
|
21
|
+
meta: any;
|
|
22
|
+
}>;
|
|
23
|
+
create: import("..").ApiMethodDeclaration<{
|
|
24
|
+
data: import("@escapenavigator/types/dist/lead/create-lead.dto").CreateLeadDto;
|
|
25
|
+
}, import("@escapenavigator/types/dist/lead/lead.ro").LeadRO>;
|
|
26
|
+
update: import("..").ApiMethodDeclaration<{
|
|
27
|
+
id: number;
|
|
28
|
+
data: import("@escapenavigator/types/dist/lead/update-lead.dto").UpdateLeadDto;
|
|
29
|
+
}, import("@escapenavigator/types/dist/lead/lead.ro").LeadRO>;
|
|
30
|
+
markViewed: import("..").ApiMethodDeclaration<{
|
|
31
|
+
id: number;
|
|
32
|
+
}, import("@escapenavigator/types/dist/lead/lead.ro").LeadRO>;
|
|
33
|
+
linkConversion: import("..").ApiMethodDeclaration<{
|
|
34
|
+
id: number;
|
|
35
|
+
data: import("@escapenavigator/types/dist/lead/link-lead-conversion.dto").LinkLeadConversionDto;
|
|
36
|
+
}, import("@escapenavigator/types/dist/lead/lead.ro").LeadRO>;
|
|
37
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.leadsApiDeclaration = void 0;
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var get_board_1 = require("./get-board");
|
|
6
|
+
var get_board_column_1 = require("./get-board-column");
|
|
7
|
+
var get_conversion_prefill_1 = require("./get-conversion-prefill");
|
|
8
|
+
var get_counters_1 = require("./get-counters");
|
|
9
|
+
var get_events_1 = require("./get-events");
|
|
10
|
+
var get_one_1 = require("./get-one");
|
|
11
|
+
var link_conversion_1 = require("./link-conversion");
|
|
12
|
+
var mark_viewed_1 = require("./mark-viewed");
|
|
13
|
+
var query_1 = require("./query");
|
|
14
|
+
var update_1 = require("./update");
|
|
15
|
+
exports.leadsApiDeclaration = {
|
|
16
|
+
getBoard: get_board_1.getBoard,
|
|
17
|
+
getBoardColumn: get_board_column_1.getBoardColumn,
|
|
18
|
+
getCounters: get_counters_1.getCounters,
|
|
19
|
+
getConversionPrefill: get_conversion_prefill_1.getConversionPrefill,
|
|
20
|
+
getEvents: get_events_1.getEvents,
|
|
21
|
+
getOne: get_one_1.getOne,
|
|
22
|
+
query: query_1.query,
|
|
23
|
+
create: create_1.create,
|
|
24
|
+
update: update_1.update,
|
|
25
|
+
markViewed: mark_viewed_1.markViewed,
|
|
26
|
+
linkConversion: link_conversion_1.linkConversion,
|
|
27
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LeadRO } from '@escapenavigator/types/dist/lead/lead.ro';
|
|
2
|
+
import { LinkLeadConversionDto } from '@escapenavigator/types/dist/lead/link-lead-conversion.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: LinkLeadConversionDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = LeadRO;
|
|
9
|
+
export declare const linkConversion: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.linkConversion = void 0;
|
|
4
|
+
var linkConversion = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/leads/".concat(id, "/conversion"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.linkConversion = linkConversion;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LeadRO } from '@escapenavigator/types/dist/lead/lead.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = LeadRO;
|
|
7
|
+
/** Гасит заявку в бейдже «новые»: пишется только первый просмотр. */
|
|
8
|
+
export declare const markViewed: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.markViewed = void 0;
|
|
4
|
+
/** Гасит заявку в бейдже «новые»: пишется только первый просмотр. */
|
|
5
|
+
var markViewed = function (_a) {
|
|
6
|
+
var id = _a.id;
|
|
7
|
+
return ({
|
|
8
|
+
url: "/leads/".concat(id, "/viewed"),
|
|
9
|
+
method: 'POST',
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.markViewed = markViewed;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LeadRO } from '@escapenavigator/types/dist/lead/lead.ro';
|
|
2
|
+
import { QueryLeadsListDto } from '@escapenavigator/types/dist/lead/query-leads.dto';
|
|
3
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
|
+
import { ApiMethodDeclaration } from '..';
|
|
5
|
+
type ParamsData = QueryLeadsListDto;
|
|
6
|
+
type ResponseData = QueryRO<LeadRO & {
|
|
7
|
+
overdue: boolean;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LeadRO } from '@escapenavigator/types/dist/lead/lead.ro';
|
|
2
|
+
import { UpdateLeadDto } from '@escapenavigator/types/dist/lead/update-lead.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateLeadDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = LeadRO;
|
|
9
|
+
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update = void 0;
|
|
4
|
+
var update = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/leads/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.update = update;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenapiCreateCertificatePaymentDto } from '@escapenavigator/types/dist/openapi/certificates/openapi-create-certificate-payment.dto';
|
|
2
|
+
import { OpenapiCreatePaymentRO } from '@escapenavigator/types/dist/openapi/shared/openapi-create-payment.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = OpenapiCreateCertificatePaymentDto;
|
|
5
|
+
type ResponseData = OpenapiCreatePaymentRO;
|
|
6
|
+
export declare const certificateCloudPaymentsPayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.certificateCloudPaymentsPayment = void 0;
|
|
4
|
+
var certificateCloudPaymentsPayment = function (data) { return ({
|
|
5
|
+
url: '/openapi/certificates/payment/cloudpayments',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.certificateCloudPaymentsPayment = certificateCloudPaymentsPayment;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenapiCreateCertificatePaymentDto } from '@escapenavigator/types/dist/openapi/certificates/openapi-create-certificate-payment.dto';
|
|
2
|
+
import { OpenapiCreatePaymentRO } from '@escapenavigator/types/dist/openapi/shared/openapi-create-payment.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = OpenapiCreateCertificatePaymentDto;
|
|
5
|
+
type ResponseData = OpenapiCreatePaymentRO;
|
|
6
|
+
export declare const certificateYooKassaPayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.certificateYooKassaPayment = void 0;
|
|
4
|
+
var certificateYooKassaPayment = function (data) { return ({
|
|
5
|
+
url: '/openapi/certificates/payment/yookassa',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.certificateYooKassaPayment = certificateYooKassaPayment;
|
|
@@ -9,23 +9,31 @@ import { navigatorCertificateStripePayment } from '../agregator-api/certificates
|
|
|
9
9
|
import { addPromocodeToCertificate } from './certificates/add-promocode-to-certificate';
|
|
10
10
|
import { cancelCertificate } from './certificates/cancel-certificate';
|
|
11
11
|
import { capturePaypalCertificate } from './certificates/capture-paypal-certificate';
|
|
12
|
+
import { certificateCloudPaymentsPayment } from './certificates/certificate-cloudpayments-payment';
|
|
12
13
|
import { certificatePaypalPayment } from './certificates/certificate-paypal-payment';
|
|
13
14
|
import { certificateSquarePayment } from './certificates/certificate-square-payment';
|
|
14
15
|
import { certificateStripePayment } from './certificates/certificate-stripe-payment';
|
|
16
|
+
import { certificateYooKassaPayment } from './certificates/certificate-yookassa-payment';
|
|
15
17
|
import { createCertificateShop } from './certificates/create-certificate-shop';
|
|
16
18
|
import { findCertificate } from './certificates/find-certificate';
|
|
17
19
|
import { getCertificatePaymentMethods } from './certificates/get-certificate-payment-methods';
|
|
18
20
|
import { removePromocodeFromCertificate } from './certificates/remove-certificate-from-order';
|
|
19
21
|
import { setCertificateMarketingConsent } from './certificates/set-certificate-marketing-consent';
|
|
20
22
|
import { createBookeoOrder, createMyerpOrder, createPartnerOrder, getBookeoPrice, getMyerpPrice } from './external';
|
|
23
|
+
import { getLeadForm } from './leads/get-lead-form';
|
|
24
|
+
import { getLeadFormByUuid } from './leads/get-lead-form-by-uuid';
|
|
25
|
+
import { submitLead } from './leads/submit-lead';
|
|
26
|
+
import { submitLeadByUuid } from './leads/submit-lead-by-uuid';
|
|
21
27
|
import { batchCreateOrderGroup } from './order-groups/batch-create-order-group';
|
|
22
28
|
import { capturePaypalOrderGroup } from './order-groups/capture-paypal-order-group';
|
|
23
29
|
import { findOrderGroup } from './order-groups/find-order-group';
|
|
24
30
|
import { getOrderGroupPaymentMethods } from './order-groups/get-order-group-payment-methods';
|
|
25
31
|
import { orderGroupConfirmWithoutPayment } from './order-groups/order-group-confirm-without-payment';
|
|
32
|
+
import { orderGroupCloudPaymentsPayment } from './order-groups/order-group-payment-cloudpayments';
|
|
26
33
|
import { orderGroupPaypalPayment } from './order-groups/order-group-payment-paypal';
|
|
27
34
|
import { orderGroupSquarePayment } from './order-groups/order-group-payment-square';
|
|
28
35
|
import { orderGroupStripePayment } from './order-groups/order-group-payment-stripe';
|
|
36
|
+
import { orderGroupYooKassaPayment } from './order-groups/order-group-payment-yookassa';
|
|
29
37
|
import { removeOrderGroupPreorders } from './order-groups/remove-order-group-preorders';
|
|
30
38
|
import { addPromocodeToOrder } from './orders/add-promocode-to-order';
|
|
31
39
|
import { addUpsellingToOrder } from './orders/add-upselling-to-order';
|
|
@@ -40,9 +48,11 @@ import { findOrder } from './orders/find-order';
|
|
|
40
48
|
import { findOrderForOrderService } from './orders/find-order-for-order-service';
|
|
41
49
|
import { getOrderAvailableUpsellings } from './orders/get-order-available-upsellings';
|
|
42
50
|
import { getOrderPaymentMethods } from './orders/get-order-payment-methods';
|
|
51
|
+
import { orderCloudPaymentsPayment } from './orders/order-payment-cloudpayments';
|
|
43
52
|
import { orderPaypalPayment } from './orders/order-payment-paypal';
|
|
44
53
|
import { orderSquarePayment } from './orders/order-payment-square';
|
|
45
54
|
import { orderStripePayment } from './orders/order-payment-stripe';
|
|
55
|
+
import { orderYooKassaPayment } from './orders/order-payment-yookassa';
|
|
46
56
|
import { removePreorder } from './orders/remove-preorder';
|
|
47
57
|
import { removePromocodeFromOrder } from './orders/remove-promocode-from-order';
|
|
48
58
|
import { removeUpsellingFromOrder } from './orders/remove-upselling-from-order';
|
|
@@ -61,13 +71,18 @@ import { removeHold } from './slots/remove-hold';
|
|
|
61
71
|
import { slotDetails } from './slots/slot-details';
|
|
62
72
|
import { slotsForDay } from './slots/slots-for-day';
|
|
63
73
|
import { slotsForWeek } from './slots/slots-for-week';
|
|
74
|
+
import { slotsUpcoming } from './slots/slots-upcoming';
|
|
64
75
|
import { getAgregatorWidgetData } from './widget/get-agreagator-widget-data';
|
|
65
76
|
import { getWidgetData } from './widget/get-widget-data';
|
|
66
77
|
import { resolvePromocode } from './widget/resolve-promocode';
|
|
67
78
|
import { validatePhone } from './widget/validate-phone';
|
|
68
79
|
type ApiDeclaration = {
|
|
69
80
|
certificateSquarePayment: typeof certificateSquarePayment;
|
|
81
|
+
certificateCloudPaymentsPayment: typeof certificateCloudPaymentsPayment;
|
|
82
|
+
certificateYooKassaPayment: typeof certificateYooKassaPayment;
|
|
70
83
|
orderSquarePayment: typeof orderSquarePayment;
|
|
84
|
+
orderCloudPaymentsPayment: typeof orderCloudPaymentsPayment;
|
|
85
|
+
orderYooKassaPayment: typeof orderYooKassaPayment;
|
|
71
86
|
getOrderAvailableUpsellings: typeof getOrderAvailableUpsellings;
|
|
72
87
|
capturePaypalCertificate: typeof capturePaypalCertificate;
|
|
73
88
|
getCertificatePaymentMethods: typeof getCertificatePaymentMethods;
|
|
@@ -110,6 +125,7 @@ type ApiDeclaration = {
|
|
|
110
125
|
slotDetails: typeof slotDetails;
|
|
111
126
|
slotsForDay: typeof slotsForDay;
|
|
112
127
|
slotsForWeek: typeof slotsForWeek;
|
|
128
|
+
slotsUpcoming: typeof slotsUpcoming;
|
|
113
129
|
createBookeoOrder: typeof createBookeoOrder;
|
|
114
130
|
getBookeoPrice: typeof getBookeoPrice;
|
|
115
131
|
createMyerpOrder: typeof createMyerpOrder;
|
|
@@ -128,6 +144,8 @@ type ApiDeclaration = {
|
|
|
128
144
|
orderGroupStripePayment: typeof orderGroupStripePayment;
|
|
129
145
|
orderGroupPaypalPayment: typeof orderGroupPaypalPayment;
|
|
130
146
|
orderGroupSquarePayment: typeof orderGroupSquarePayment;
|
|
147
|
+
orderGroupCloudPaymentsPayment: typeof orderGroupCloudPaymentsPayment;
|
|
148
|
+
orderGroupYooKassaPayment: typeof orderGroupYooKassaPayment;
|
|
131
149
|
orderGroupConfirmWithoutPayment: typeof orderGroupConfirmWithoutPayment;
|
|
132
150
|
capturePaypalOrderGroup: typeof capturePaypalOrderGroup;
|
|
133
151
|
batchCreateOrderGroup: typeof batchCreateOrderGroup;
|
|
@@ -137,6 +155,10 @@ type ApiDeclaration = {
|
|
|
137
155
|
packageAvailability: typeof packageAvailability;
|
|
138
156
|
packageAvailabilityRange: typeof packageAvailabilityRange;
|
|
139
157
|
bookPackage: typeof bookPackage;
|
|
158
|
+
getLeadForm: typeof getLeadForm;
|
|
159
|
+
getLeadFormByUuid: typeof getLeadFormByUuid;
|
|
160
|
+
submitLead: typeof submitLead;
|
|
161
|
+
submitLeadByUuid: typeof submitLeadByUuid;
|
|
140
162
|
};
|
|
141
163
|
export declare const openapiWidgetApiDeclaration: ApiDeclaration;
|
|
142
164
|
export {};
|
|
@@ -12,23 +12,31 @@ var navigator_certificate_stripe_payment_1 = require("../agregator-api/certifica
|
|
|
12
12
|
var add_promocode_to_certificate_1 = require("./certificates/add-promocode-to-certificate");
|
|
13
13
|
var cancel_certificate_1 = require("./certificates/cancel-certificate");
|
|
14
14
|
var capture_paypal_certificate_1 = require("./certificates/capture-paypal-certificate");
|
|
15
|
+
var certificate_cloudpayments_payment_1 = require("./certificates/certificate-cloudpayments-payment");
|
|
15
16
|
var certificate_paypal_payment_1 = require("./certificates/certificate-paypal-payment");
|
|
16
17
|
var certificate_square_payment_1 = require("./certificates/certificate-square-payment");
|
|
17
18
|
var certificate_stripe_payment_1 = require("./certificates/certificate-stripe-payment");
|
|
19
|
+
var certificate_yookassa_payment_1 = require("./certificates/certificate-yookassa-payment");
|
|
18
20
|
var create_certificate_shop_1 = require("./certificates/create-certificate-shop");
|
|
19
21
|
var find_certificate_1 = require("./certificates/find-certificate");
|
|
20
22
|
var get_certificate_payment_methods_1 = require("./certificates/get-certificate-payment-methods");
|
|
21
23
|
var remove_certificate_from_order_1 = require("./certificates/remove-certificate-from-order");
|
|
22
24
|
var set_certificate_marketing_consent_1 = require("./certificates/set-certificate-marketing-consent");
|
|
23
25
|
var external_1 = require("./external");
|
|
26
|
+
var get_lead_form_1 = require("./leads/get-lead-form");
|
|
27
|
+
var get_lead_form_by_uuid_1 = require("./leads/get-lead-form-by-uuid");
|
|
28
|
+
var submit_lead_1 = require("./leads/submit-lead");
|
|
29
|
+
var submit_lead_by_uuid_1 = require("./leads/submit-lead-by-uuid");
|
|
24
30
|
var batch_create_order_group_1 = require("./order-groups/batch-create-order-group");
|
|
25
31
|
var capture_paypal_order_group_1 = require("./order-groups/capture-paypal-order-group");
|
|
26
32
|
var find_order_group_1 = require("./order-groups/find-order-group");
|
|
27
33
|
var get_order_group_payment_methods_1 = require("./order-groups/get-order-group-payment-methods");
|
|
28
34
|
var order_group_confirm_without_payment_1 = require("./order-groups/order-group-confirm-without-payment");
|
|
35
|
+
var order_group_payment_cloudpayments_1 = require("./order-groups/order-group-payment-cloudpayments");
|
|
29
36
|
var order_group_payment_paypal_1 = require("./order-groups/order-group-payment-paypal");
|
|
30
37
|
var order_group_payment_square_1 = require("./order-groups/order-group-payment-square");
|
|
31
38
|
var order_group_payment_stripe_1 = require("./order-groups/order-group-payment-stripe");
|
|
39
|
+
var order_group_payment_yookassa_1 = require("./order-groups/order-group-payment-yookassa");
|
|
32
40
|
var remove_order_group_preorders_1 = require("./order-groups/remove-order-group-preorders");
|
|
33
41
|
var add_promocode_to_order_1 = require("./orders/add-promocode-to-order");
|
|
34
42
|
var add_upselling_to_order_1 = require("./orders/add-upselling-to-order");
|
|
@@ -43,9 +51,11 @@ var find_order_1 = require("./orders/find-order");
|
|
|
43
51
|
var find_order_for_order_service_1 = require("./orders/find-order-for-order-service");
|
|
44
52
|
var get_order_available_upsellings_1 = require("./orders/get-order-available-upsellings");
|
|
45
53
|
var get_order_payment_methods_1 = require("./orders/get-order-payment-methods");
|
|
54
|
+
var order_payment_cloudpayments_1 = require("./orders/order-payment-cloudpayments");
|
|
46
55
|
var order_payment_paypal_1 = require("./orders/order-payment-paypal");
|
|
47
56
|
var order_payment_square_1 = require("./orders/order-payment-square");
|
|
48
57
|
var order_payment_stripe_1 = require("./orders/order-payment-stripe");
|
|
58
|
+
var order_payment_yookassa_1 = require("./orders/order-payment-yookassa");
|
|
49
59
|
var remove_preorder_1 = require("./orders/remove-preorder");
|
|
50
60
|
var remove_promocode_from_order_1 = require("./orders/remove-promocode-from-order");
|
|
51
61
|
var remove_upselling_from_order_1 = require("./orders/remove-upselling-from-order");
|
|
@@ -64,6 +74,7 @@ var remove_hold_1 = require("./slots/remove-hold");
|
|
|
64
74
|
var slot_details_1 = require("./slots/slot-details");
|
|
65
75
|
var slots_for_day_1 = require("./slots/slots-for-day");
|
|
66
76
|
var slots_for_week_1 = require("./slots/slots-for-week");
|
|
77
|
+
var slots_upcoming_1 = require("./slots/slots-upcoming");
|
|
67
78
|
var get_agreagator_widget_data_1 = require("./widget/get-agreagator-widget-data");
|
|
68
79
|
var get_widget_data_1 = require("./widget/get-widget-data");
|
|
69
80
|
var resolve_promocode_1 = require("./widget/resolve-promocode");
|
|
@@ -73,7 +84,11 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
73
84
|
setCertificateMarketingConsent: set_certificate_marketing_consent_1.setCertificateMarketingConsent,
|
|
74
85
|
cancelCertificate: cancel_certificate_1.cancelCertificate,
|
|
75
86
|
certificateSquarePayment: certificate_square_payment_1.certificateSquarePayment,
|
|
87
|
+
certificateCloudPaymentsPayment: certificate_cloudpayments_payment_1.certificateCloudPaymentsPayment,
|
|
88
|
+
certificateYooKassaPayment: certificate_yookassa_payment_1.certificateYooKassaPayment,
|
|
76
89
|
orderSquarePayment: order_payment_square_1.orderSquarePayment,
|
|
90
|
+
orderCloudPaymentsPayment: order_payment_cloudpayments_1.orderCloudPaymentsPayment,
|
|
91
|
+
orderYooKassaPayment: order_payment_yookassa_1.orderYooKassaPayment,
|
|
77
92
|
addPromocodeToCertificate: add_promocode_to_certificate_1.addPromocodeToCertificate,
|
|
78
93
|
getOrderAvailableUpsellings: get_order_available_upsellings_1.getOrderAvailableUpsellings,
|
|
79
94
|
findOrderForOrderService: find_order_for_order_service_1.findOrderForOrderService,
|
|
@@ -117,6 +132,7 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
117
132
|
slotDetails: slot_details_1.slotDetails,
|
|
118
133
|
slotsForDay: slots_for_day_1.slotsForDay,
|
|
119
134
|
slotsForWeek: slots_for_week_1.slotsForWeek,
|
|
135
|
+
slotsUpcoming: slots_upcoming_1.slotsUpcoming,
|
|
120
136
|
createBookeoOrder: external_1.createBookeoOrder,
|
|
121
137
|
getBookeoPrice: external_1.getBookeoPrice,
|
|
122
138
|
createMyerpOrder: external_1.createMyerpOrder,
|
|
@@ -131,6 +147,8 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
131
147
|
orderGroupStripePayment: order_group_payment_stripe_1.orderGroupStripePayment,
|
|
132
148
|
orderGroupPaypalPayment: order_group_payment_paypal_1.orderGroupPaypalPayment,
|
|
133
149
|
orderGroupSquarePayment: order_group_payment_square_1.orderGroupSquarePayment,
|
|
150
|
+
orderGroupCloudPaymentsPayment: order_group_payment_cloudpayments_1.orderGroupCloudPaymentsPayment,
|
|
151
|
+
orderGroupYooKassaPayment: order_group_payment_yookassa_1.orderGroupYooKassaPayment,
|
|
134
152
|
orderGroupConfirmWithoutPayment: order_group_confirm_without_payment_1.orderGroupConfirmWithoutPayment,
|
|
135
153
|
capturePaypalOrderGroup: capture_paypal_order_group_1.capturePaypalOrderGroup,
|
|
136
154
|
batchCreateOrderGroup: batch_create_order_group_1.batchCreateOrderGroup,
|
|
@@ -140,4 +158,8 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
140
158
|
packageAvailability: package_availability_1.packageAvailability,
|
|
141
159
|
packageAvailabilityRange: package_availability_range_1.packageAvailabilityRange,
|
|
142
160
|
bookPackage: book_package_1.bookPackage,
|
|
161
|
+
getLeadForm: get_lead_form_1.getLeadForm,
|
|
162
|
+
getLeadFormByUuid: get_lead_form_by_uuid_1.getLeadFormByUuid,
|
|
163
|
+
submitLead: submit_lead_1.submitLead,
|
|
164
|
+
submitLeadByUuid: submit_lead_by_uuid_1.submitLeadByUuid,
|
|
143
165
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PublicLeadFormRO } from '@escapenavigator/types/dist/lead/public/public-lead-form.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
uuid: string;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = PublicLeadFormRO;
|
|
7
|
+
/** Форма по ссылке или QR: без widget-токена, поэтому uuid в пути. */
|
|
8
|
+
export declare const getLeadFormByUuid: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLeadFormByUuid = void 0;
|
|
4
|
+
/** Форма по ссылке или QR: без widget-токена, поэтому uuid в пути. */
|
|
5
|
+
var getLeadFormByUuid = function (_a) {
|
|
6
|
+
var uuid = _a.uuid;
|
|
7
|
+
return ({
|
|
8
|
+
url: "/openapi/leads/form/".concat(uuid),
|
|
9
|
+
method: 'GET',
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.getLeadFormByUuid = getLeadFormByUuid;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PublicLeadFormRO } from '@escapenavigator/types/dist/lead/public/public-lead-form.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '../..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
formId?: number;
|
|
5
|
+
} | undefined;
|
|
6
|
+
type ResponseData = PublicLeadFormRO;
|
|
7
|
+
export declare const getLeadForm: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLeadForm = void 0;
|
|
4
|
+
var getLeadForm = function (params) { return ({
|
|
5
|
+
url: '/openapi/leads/form',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.getLeadForm = getLeadForm;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SubmitLeadDto } from '@escapenavigator/types/dist/lead/public/submit-lead.dto';
|
|
2
|
+
import { SubmitLeadRO } from '@escapenavigator/types/dist/lead/public/submit-lead.ro';
|
|
3
|
+
import { Languages } from '@escapenavigator/types/dist/shared/enum/languages.enum';
|
|
4
|
+
import { ApiMethodDeclaration } from '../..';
|
|
5
|
+
type ParamsData = {
|
|
6
|
+
uuid: string;
|
|
7
|
+
language?: Languages;
|
|
8
|
+
data: SubmitLeadDto;
|
|
9
|
+
};
|
|
10
|
+
type ResponseData = SubmitLeadRO;
|
|
11
|
+
export declare const submitLeadByUuid: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.submitLeadByUuid = void 0;
|
|
4
|
+
var submitLeadByUuid = function (_a) {
|
|
5
|
+
var uuid = _a.uuid, language = _a.language, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/openapi/leads/form/".concat(uuid),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
params: language ? { language: language } : undefined,
|
|
10
|
+
data: data,
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
exports.submitLeadByUuid = submitLeadByUuid;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SubmitLeadDto } from '@escapenavigator/types/dist/lead/public/submit-lead.dto';
|
|
2
|
+
import { SubmitLeadRO } from '@escapenavigator/types/dist/lead/public/submit-lead.ro';
|
|
3
|
+
import { Languages } from '@escapenavigator/types/dist/shared/enum/languages.enum';
|
|
4
|
+
import { ApiMethodDeclaration } from '../..';
|
|
5
|
+
type ParamsData = {
|
|
6
|
+
language?: Languages;
|
|
7
|
+
data: SubmitLeadDto;
|
|
8
|
+
};
|
|
9
|
+
type ResponseData = SubmitLeadRO;
|
|
10
|
+
export declare const submitLead: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.submitLead = void 0;
|
|
4
|
+
var submitLead = function (_a) {
|
|
5
|
+
var language = _a.language, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/openapi/leads',
|
|
8
|
+
method: 'POST',
|
|
9
|
+
params: language ? { language: language } : undefined,
|
|
10
|
+
data: data,
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
exports.submitLead = submitLead;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OpenapiCreateOrderGroupPaymentDto } from '@escapenavigator/types/dist/openapi/order-groups/openapi-create-order-group-payment.dto';
|
|
2
|
+
import { OpenapiCreatePaymentRO } from '@escapenavigator/types/dist/openapi/shared/openapi-create-payment.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = OpenapiCreateOrderGroupPaymentDto & {
|
|
5
|
+
id: number;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = OpenapiCreatePaymentRO;
|
|
8
|
+
export declare const orderGroupCloudPaymentsPayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.orderGroupCloudPaymentsPayment = void 0;
|
|
15
|
+
var orderGroupCloudPaymentsPayment = function (_a) {
|
|
16
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
17
|
+
return ({
|
|
18
|
+
url: "/openapi/order-groups/".concat(id, "/payment/cloudpayments"),
|
|
19
|
+
method: 'POST',
|
|
20
|
+
data: data,
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.orderGroupCloudPaymentsPayment = orderGroupCloudPaymentsPayment;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OpenapiCreateOrderGroupPaymentDto } from '@escapenavigator/types/dist/openapi/order-groups/openapi-create-order-group-payment.dto';
|
|
2
|
+
import { OpenapiCreatePaymentRO } from '@escapenavigator/types/dist/openapi/shared/openapi-create-payment.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = OpenapiCreateOrderGroupPaymentDto & {
|
|
5
|
+
id: number;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = OpenapiCreatePaymentRO;
|
|
8
|
+
export declare const orderGroupYooKassaPayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.orderGroupYooKassaPayment = void 0;
|
|
15
|
+
var orderGroupYooKassaPayment = function (_a) {
|
|
16
|
+
var id = _a.id, data = __rest(_a, ["id"]);
|
|
17
|
+
return ({
|
|
18
|
+
url: "/openapi/order-groups/".concat(id, "/payment/yookassa"),
|
|
19
|
+
method: 'POST',
|
|
20
|
+
data: data,
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.orderGroupYooKassaPayment = orderGroupYooKassaPayment;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenapiCreateOrderPaymentDto } from '@escapenavigator/types/dist/openapi/orders/openapi-create-order-payment.dto';
|
|
2
|
+
import { OpenapiCreatePaymentRO } from '@escapenavigator/types/dist/openapi/shared/openapi-create-payment.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
type ParamsData = OpenapiCreateOrderPaymentDto;
|
|
5
|
+
type ResponseData = OpenapiCreatePaymentRO;
|
|
6
|
+
export declare const orderCloudPaymentsPayment: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderCloudPaymentsPayment = void 0;
|
|
4
|
+
var orderCloudPaymentsPayment = function (data) { return ({
|
|
5
|
+
url: '/openapi/orders/payment/cloudpayments',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.orderCloudPaymentsPayment = orderCloudPaymentsPayment;
|