@escapenavigator/services 2.0.43 → 2.0.46
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/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 +8 -0
- package/dist/api/init-client-api.js +8 -0
- package/dist/api/invoice-express-api/connect.d.ts +6 -0
- package/dist/api/invoice-express-api/connect.js +12 -0
- package/dist/api/invoice-express-api/get.d.ts +3 -0
- package/dist/api/invoice-express-api/get.js +8 -0
- package/dist/api/invoice-express-api/index.d.ts +14 -0
- package/dist/api/invoice-express-api/index.js +15 -0
- package/dist/api/invoice-express-api/remove.d.ts +3 -0
- package/dist/api/invoice-express-api/remove.js +8 -0
- package/dist/api/invoice-express-api/retry.d.ts +5 -0
- package/dist/api/invoice-express-api/retry.js +11 -0
- package/dist/api/invoice-express-api/update.d.ts +6 -0
- package/dist/api/invoice-express-api/update.js +12 -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/index.d.ts +18 -0
- package/dist/api/lead-forms-api/index.js +19 -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/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/packages/package-availability-range.d.ts +9 -0
- package/dist/api/openapi-widget-api/packages/package-availability-range.js +23 -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,6 @@
|
|
|
1
|
+
import { LeadCountersRO } from '@escapenavigator/types/dist/lead/lead-counters.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = undefined;
|
|
4
|
+
type ResponseData = LeadCountersRO;
|
|
5
|
+
export declare const getCounters: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -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';
|
|
@@ -54,6 +64,7 @@ import { updateOrderSlot } from './orders/update-order-slot';
|
|
|
54
64
|
import { bookPackage } from './packages/book-package';
|
|
55
65
|
import { listPackages } from './packages/list-packages';
|
|
56
66
|
import { packageAvailability } from './packages/package-availability';
|
|
67
|
+
import { packageAvailabilityRange } from './packages/package-availability-range';
|
|
57
68
|
import { packagesByQuestroom } from './packages/packages-by-questroom';
|
|
58
69
|
import { createHold } from './slots/create-hold';
|
|
59
70
|
import { removeHold } from './slots/remove-hold';
|
|
@@ -66,7 +77,11 @@ import { resolvePromocode } from './widget/resolve-promocode';
|
|
|
66
77
|
import { validatePhone } from './widget/validate-phone';
|
|
67
78
|
type ApiDeclaration = {
|
|
68
79
|
certificateSquarePayment: typeof certificateSquarePayment;
|
|
80
|
+
certificateCloudPaymentsPayment: typeof certificateCloudPaymentsPayment;
|
|
81
|
+
certificateYooKassaPayment: typeof certificateYooKassaPayment;
|
|
69
82
|
orderSquarePayment: typeof orderSquarePayment;
|
|
83
|
+
orderCloudPaymentsPayment: typeof orderCloudPaymentsPayment;
|
|
84
|
+
orderYooKassaPayment: typeof orderYooKassaPayment;
|
|
70
85
|
getOrderAvailableUpsellings: typeof getOrderAvailableUpsellings;
|
|
71
86
|
capturePaypalCertificate: typeof capturePaypalCertificate;
|
|
72
87
|
getCertificatePaymentMethods: typeof getCertificatePaymentMethods;
|
|
@@ -127,6 +142,8 @@ type ApiDeclaration = {
|
|
|
127
142
|
orderGroupStripePayment: typeof orderGroupStripePayment;
|
|
128
143
|
orderGroupPaypalPayment: typeof orderGroupPaypalPayment;
|
|
129
144
|
orderGroupSquarePayment: typeof orderGroupSquarePayment;
|
|
145
|
+
orderGroupCloudPaymentsPayment: typeof orderGroupCloudPaymentsPayment;
|
|
146
|
+
orderGroupYooKassaPayment: typeof orderGroupYooKassaPayment;
|
|
130
147
|
orderGroupConfirmWithoutPayment: typeof orderGroupConfirmWithoutPayment;
|
|
131
148
|
capturePaypalOrderGroup: typeof capturePaypalOrderGroup;
|
|
132
149
|
batchCreateOrderGroup: typeof batchCreateOrderGroup;
|
|
@@ -134,7 +151,12 @@ type ApiDeclaration = {
|
|
|
134
151
|
listPackages: typeof listPackages;
|
|
135
152
|
packagesByQuestroom: typeof packagesByQuestroom;
|
|
136
153
|
packageAvailability: typeof packageAvailability;
|
|
154
|
+
packageAvailabilityRange: typeof packageAvailabilityRange;
|
|
137
155
|
bookPackage: typeof bookPackage;
|
|
156
|
+
getLeadForm: typeof getLeadForm;
|
|
157
|
+
getLeadFormByUuid: typeof getLeadFormByUuid;
|
|
158
|
+
submitLead: typeof submitLead;
|
|
159
|
+
submitLeadByUuid: typeof submitLeadByUuid;
|
|
138
160
|
};
|
|
139
161
|
export declare const openapiWidgetApiDeclaration: ApiDeclaration;
|
|
140
162
|
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");
|
|
@@ -57,6 +67,7 @@ var update_order_slot_1 = require("./orders/update-order-slot");
|
|
|
57
67
|
var book_package_1 = require("./packages/book-package");
|
|
58
68
|
var list_packages_1 = require("./packages/list-packages");
|
|
59
69
|
var package_availability_1 = require("./packages/package-availability");
|
|
70
|
+
var package_availability_range_1 = require("./packages/package-availability-range");
|
|
60
71
|
var packages_by_questroom_1 = require("./packages/packages-by-questroom");
|
|
61
72
|
var create_hold_1 = require("./slots/create-hold");
|
|
62
73
|
var remove_hold_1 = require("./slots/remove-hold");
|
|
@@ -72,7 +83,11 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
72
83
|
setCertificateMarketingConsent: set_certificate_marketing_consent_1.setCertificateMarketingConsent,
|
|
73
84
|
cancelCertificate: cancel_certificate_1.cancelCertificate,
|
|
74
85
|
certificateSquarePayment: certificate_square_payment_1.certificateSquarePayment,
|
|
86
|
+
certificateCloudPaymentsPayment: certificate_cloudpayments_payment_1.certificateCloudPaymentsPayment,
|
|
87
|
+
certificateYooKassaPayment: certificate_yookassa_payment_1.certificateYooKassaPayment,
|
|
75
88
|
orderSquarePayment: order_payment_square_1.orderSquarePayment,
|
|
89
|
+
orderCloudPaymentsPayment: order_payment_cloudpayments_1.orderCloudPaymentsPayment,
|
|
90
|
+
orderYooKassaPayment: order_payment_yookassa_1.orderYooKassaPayment,
|
|
76
91
|
addPromocodeToCertificate: add_promocode_to_certificate_1.addPromocodeToCertificate,
|
|
77
92
|
getOrderAvailableUpsellings: get_order_available_upsellings_1.getOrderAvailableUpsellings,
|
|
78
93
|
findOrderForOrderService: find_order_for_order_service_1.findOrderForOrderService,
|
|
@@ -130,6 +145,8 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
130
145
|
orderGroupStripePayment: order_group_payment_stripe_1.orderGroupStripePayment,
|
|
131
146
|
orderGroupPaypalPayment: order_group_payment_paypal_1.orderGroupPaypalPayment,
|
|
132
147
|
orderGroupSquarePayment: order_group_payment_square_1.orderGroupSquarePayment,
|
|
148
|
+
orderGroupCloudPaymentsPayment: order_group_payment_cloudpayments_1.orderGroupCloudPaymentsPayment,
|
|
149
|
+
orderGroupYooKassaPayment: order_group_payment_yookassa_1.orderGroupYooKassaPayment,
|
|
133
150
|
orderGroupConfirmWithoutPayment: order_group_confirm_without_payment_1.orderGroupConfirmWithoutPayment,
|
|
134
151
|
capturePaypalOrderGroup: capture_paypal_order_group_1.capturePaypalOrderGroup,
|
|
135
152
|
batchCreateOrderGroup: batch_create_order_group_1.batchCreateOrderGroup,
|
|
@@ -137,5 +154,10 @@ exports.openapiWidgetApiDeclaration = {
|
|
|
137
154
|
listPackages: list_packages_1.listPackages,
|
|
138
155
|
packagesByQuestroom: packages_by_questroom_1.packagesByQuestroom,
|
|
139
156
|
packageAvailability: package_availability_1.packageAvailability,
|
|
157
|
+
packageAvailabilityRange: package_availability_range_1.packageAvailabilityRange,
|
|
140
158
|
bookPackage: book_package_1.bookPackage,
|
|
159
|
+
getLeadForm: get_lead_form_1.getLeadForm,
|
|
160
|
+
getLeadFormByUuid: get_lead_form_by_uuid_1.getLeadFormByUuid,
|
|
161
|
+
submitLead: submit_lead_1.submitLead,
|
|
162
|
+
submitLeadByUuid: submit_lead_by_uuid_1.submitLeadByUuid,
|
|
141
163
|
};
|
|
@@ -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;
|