@escapenavigator/services 1.6.82 → 1.6.84
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/index.d.ts +2 -0
- package/dist/api/cashboxes-api/index.js +2 -0
- package/dist/api/cashboxes-api/update.d.ts +10 -0
- package/dist/api/cashboxes-api/update.js +12 -0
- package/dist/api/{profiles-api/cross-sale → cross-sale-api}/get-cross-sale.d.ts +3 -2
- package/dist/api/{profiles-api/cross-sale → cross-sale-api}/get-cross-sale.js +3 -2
- package/dist/api/cross-sale-api/get-early-booking.d.ts +7 -0
- package/dist/api/cross-sale-api/get-early-booking.js +9 -0
- package/dist/api/cross-sale-api/get-retargeting.d.ts +7 -0
- package/dist/api/cross-sale-api/get-retargeting.js +9 -0
- package/dist/api/cross-sale-api/get-updale-sale.d.ts +7 -0
- package/dist/api/cross-sale-api/get-updale-sale.js +9 -0
- package/dist/api/cross-sale-api/index.d.ts +24 -0
- package/dist/api/cross-sale-api/index.js +25 -0
- package/dist/api/cross-sale-api/send-test-cross-sale-email.d.ts +10 -0
- package/dist/api/cross-sale-api/send-test-cross-sale-email.js +11 -0
- package/dist/api/cross-sale-api/toggle-status.d.ts +10 -0
- package/dist/api/cross-sale-api/toggle-status.js +12 -0
- package/dist/api/{profiles-api/cross-sale → cross-sale-api}/update-cross-sale.d.ts +1 -1
- package/dist/api/cross-sale-api/update-early-booking.d.ts +7 -0
- package/dist/api/cross-sale-api/update-early-booking.js +9 -0
- package/dist/api/cross-sale-api/update-retargeting.d.ts +7 -0
- package/dist/api/cross-sale-api/update-retargeting.js +9 -0
- package/dist/api/cross-sale-api/update-up-sale.d.ts +7 -0
- package/dist/api/cross-sale-api/update-up-sale.js +9 -0
- package/dist/api/init-client-api.d.ts +4 -0
- package/dist/api/init-client-api.js +4 -0
- package/dist/api/mailchimp-api/auth-link.d.ts +5 -0
- package/dist/api/mailchimp-api/auth-link.js +8 -0
- package/dist/api/mailchimp-api/check-code.d.ts +9 -0
- package/dist/api/mailchimp-api/check-code.js +11 -0
- package/dist/api/mailchimp-api/get-lists.d.ts +6 -0
- package/dist/api/mailchimp-api/get-lists.js +8 -0
- package/dist/api/mailchimp-api/get.d.ts +6 -0
- package/dist/api/mailchimp-api/get.js +8 -0
- package/dist/api/mailchimp-api/index.d.ts +16 -0
- package/dist/api/mailchimp-api/index.js +17 -0
- package/dist/api/mailchimp-api/remove.d.ts +6 -0
- package/dist/api/mailchimp-api/remove.js +8 -0
- package/dist/api/mailchimp-api/update.d.ts +9 -0
- package/dist/api/mailchimp-api/update.js +12 -0
- package/dist/api/now-escape-api/now-escape-orders-by-profile-and-month.d.ts +2 -2
- package/dist/api/openapi-widget-api/index.d.ts +2 -0
- package/dist/api/openapi-widget-api/index.js +2 -0
- package/dist/api/openapi-widget-api/orders/get-order-available-upsellings.d.ts +7 -0
- package/dist/api/openapi-widget-api/orders/get-order-available-upsellings.js +9 -0
- package/dist/api/orders-api/index.d.ts +2 -0
- package/dist/api/orders-api/index.js +2 -0
- package/dist/api/orders-api/query-agregator-orders.d.ts +8 -0
- package/dist/api/orders-api/query-agregator-orders.js +9 -0
- package/dist/api/profiles-api/index.d.ts +0 -4
- package/dist/api/profiles-api/index.js +0 -4
- package/package.json +4 -4
- /package/dist/api/{profiles-api/cross-sale → cross-sale-api}/update-cross-sale.js +0 -0
|
@@ -4,8 +4,10 @@ import { getOne } from './get-one';
|
|
|
4
4
|
import { getVerificationLink } from './get-verification-link';
|
|
5
5
|
import { query } from './query';
|
|
6
6
|
import { remove } from './remove';
|
|
7
|
+
import { update } from './update';
|
|
7
8
|
import { updateOnline } from './update-online';
|
|
8
9
|
declare type ApiDeclaration = {
|
|
10
|
+
update: typeof update;
|
|
9
11
|
createOnline: typeof createOnline;
|
|
10
12
|
getVerificationLink: typeof getVerificationLink;
|
|
11
13
|
getOne: typeof getOne;
|
|
@@ -7,8 +7,10 @@ var get_one_1 = require("./get-one");
|
|
|
7
7
|
var get_verification_link_1 = require("./get-verification-link");
|
|
8
8
|
var query_1 = require("./query");
|
|
9
9
|
var remove_1 = require("./remove");
|
|
10
|
+
var update_1 = require("./update");
|
|
10
11
|
var update_online_1 = require("./update-online");
|
|
11
12
|
exports.cashboxesApiDeclaration = {
|
|
13
|
+
update: update_1.update,
|
|
12
14
|
createOnline: create_online_1.createOnline,
|
|
13
15
|
create: create_1.create,
|
|
14
16
|
getVerificationLink: get_verification_link_1.getVerificationLink,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CashboxRO } from '@escapenavigator/types/dist/cashbox/cashbox.ro';
|
|
2
|
+
import { CreateCashboxDto } from '@escapenavigator/types/dist/cashbox/create-cashbox.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: CreateCashboxDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = CashboxRO;
|
|
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 data = _a.data, id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/cashboxes/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.update = update;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { CrossSaleDto } from '@escapenavigator/types/dist/profile/cross-sale/cross-sale.dto';
|
|
1
2
|
import { CrossSaleRO } from '@escapenavigator/types/dist/profile/cross-sale/cross-sale.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '
|
|
3
|
-
declare type ParamsData =
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = CrossSaleDto;
|
|
4
5
|
declare type ResponseData = CrossSaleRO;
|
|
5
6
|
export declare const getCrossSales: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
7
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCrossSales = void 0;
|
|
4
|
-
var getCrossSales = function () { return ({
|
|
4
|
+
var getCrossSales = function (data) { return ({
|
|
5
5
|
url: '/cross-sales',
|
|
6
|
-
method: '
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data: data,
|
|
7
8
|
}); };
|
|
8
9
|
exports.getCrossSales = getCrossSales;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EarlyBookingDto } from '@escapenavigator/types/dist/profile/cross-sale/early-booking/early-booking.dto';
|
|
2
|
+
import { EarlyBookingRO } from '@escapenavigator/types/dist/profile/cross-sale/early-booking/early-booking.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = EarlyBookingDto;
|
|
5
|
+
declare type ResponseData = EarlyBookingRO;
|
|
6
|
+
export declare const getEarlyBooking: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEarlyBooking = void 0;
|
|
4
|
+
var getEarlyBooking = function (data) { return ({
|
|
5
|
+
url: '/early-booking',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.getEarlyBooking = getEarlyBooking;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RetargetingDto } from '@escapenavigator/types/dist/profile/cross-sale/retargeting/retargeting.dto';
|
|
2
|
+
import { RetargetingRO } from '@escapenavigator/types/dist/profile/cross-sale/retargeting/retargeting.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = RetargetingDto;
|
|
5
|
+
declare type ResponseData = RetargetingRO;
|
|
6
|
+
export declare const getRetargeting: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRetargeting = void 0;
|
|
4
|
+
var getRetargeting = function (data) { return ({
|
|
5
|
+
url: '/retargeting',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.getRetargeting = getRetargeting;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UpSaleDto } from '@escapenavigator/types/dist/profile/cross-sale/up-sale/up-sale.dto';
|
|
2
|
+
import { UpSaleRO } from '@escapenavigator/types/dist/profile/cross-sale/up-sale/up-sale.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = UpSaleDto;
|
|
5
|
+
declare type ResponseData = UpSaleRO;
|
|
6
|
+
export declare const getUpSales: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getCrossSales } from './get-cross-sale';
|
|
2
|
+
import { getEarlyBooking } from './get-early-booking';
|
|
3
|
+
import { getRetargeting } from './get-retargeting';
|
|
4
|
+
import { getUpSales } from './get-updale-sale';
|
|
5
|
+
import { sendTestCrossSaleEmail } from './send-test-cross-sale-email';
|
|
6
|
+
import { toggleStatus } from './toggle-status';
|
|
7
|
+
import { updateCrossSale } from './update-cross-sale';
|
|
8
|
+
import { updateEarlyBooking } from './update-early-booking';
|
|
9
|
+
import { updateRetargeting } from './update-retargeting';
|
|
10
|
+
import { updateUpSale } from './update-up-sale';
|
|
11
|
+
declare type ApiDeclaration = {
|
|
12
|
+
getCrossSales: typeof getCrossSales;
|
|
13
|
+
updateCrossSale: typeof updateCrossSale;
|
|
14
|
+
getUpSales: typeof getUpSales;
|
|
15
|
+
updateUpSale: typeof updateUpSale;
|
|
16
|
+
getRetargeting: typeof getRetargeting;
|
|
17
|
+
updateRetargeting: typeof updateRetargeting;
|
|
18
|
+
getEarlyBooking: typeof getEarlyBooking;
|
|
19
|
+
updateEarlyBooking: typeof updateEarlyBooking;
|
|
20
|
+
toggleStatus: typeof toggleStatus;
|
|
21
|
+
sendTestCrossSaleEmail: typeof sendTestCrossSaleEmail;
|
|
22
|
+
};
|
|
23
|
+
export declare const crossSalesApiDeclaration: ApiDeclaration;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.crossSalesApiDeclaration = void 0;
|
|
4
|
+
var get_cross_sale_1 = require("./get-cross-sale");
|
|
5
|
+
var get_early_booking_1 = require("./get-early-booking");
|
|
6
|
+
var get_retargeting_1 = require("./get-retargeting");
|
|
7
|
+
var get_updale_sale_1 = require("./get-updale-sale");
|
|
8
|
+
var send_test_cross_sale_email_1 = require("./send-test-cross-sale-email");
|
|
9
|
+
var toggle_status_1 = require("./toggle-status");
|
|
10
|
+
var update_cross_sale_1 = require("./update-cross-sale");
|
|
11
|
+
var update_early_booking_1 = require("./update-early-booking");
|
|
12
|
+
var update_retargeting_1 = require("./update-retargeting");
|
|
13
|
+
var update_up_sale_1 = require("./update-up-sale");
|
|
14
|
+
exports.crossSalesApiDeclaration = {
|
|
15
|
+
updateCrossSale: update_cross_sale_1.updateCrossSale,
|
|
16
|
+
sendTestCrossSaleEmail: send_test_cross_sale_email_1.sendTestCrossSaleEmail,
|
|
17
|
+
getCrossSales: get_cross_sale_1.getCrossSales,
|
|
18
|
+
toggleStatus: toggle_status_1.toggleStatus,
|
|
19
|
+
updateEarlyBooking: update_early_booking_1.updateEarlyBooking,
|
|
20
|
+
getEarlyBooking: get_early_booking_1.getEarlyBooking,
|
|
21
|
+
updateRetargeting: update_retargeting_1.updateRetargeting,
|
|
22
|
+
getRetargeting: get_retargeting_1.getRetargeting,
|
|
23
|
+
updateUpSale: update_up_sale_1.updateUpSale,
|
|
24
|
+
getUpSales: get_updale_sale_1.getUpSales,
|
|
25
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ToggleStatusDto } from '@escapenavigator/types/dist/profile/cross-sale/toggle-status.dto';
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
orderId: number;
|
|
6
|
+
type: ToggleStatusDto['type'];
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = SuccessRO;
|
|
9
|
+
export declare const sendTestCrossSaleEmail: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendTestCrossSaleEmail = void 0;
|
|
4
|
+
var sendTestCrossSaleEmail = function (_a) {
|
|
5
|
+
var orderId = _a.orderId, type = _a.type;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/orders/send-test-cross-sale-email/".concat(orderId, "/").concat(type),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.sendTestCrossSaleEmail = sendTestCrossSaleEmail;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { ToggleStatusDto } from '@escapenavigator/types/dist/profile/cross-sale/toggle-status.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: ToggleStatusDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = OrderRO;
|
|
9
|
+
export declare const toggleStatus: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toggleStatus = void 0;
|
|
4
|
+
var toggleStatus = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/orders/cross-sale-status/".concat(id),
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.toggleStatus = toggleStatus;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CrossSaleDto } from '@escapenavigator/types/dist/profile/cross-sale/cross-sale.dto';
|
|
2
2
|
import { CrossSaleRO } from '@escapenavigator/types/dist/profile/cross-sale/cross-sale.ro';
|
|
3
|
-
import { ApiMethodDeclaration } from '
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
declare type ParamsData = CrossSaleDto;
|
|
5
5
|
declare type ResponseData = CrossSaleRO;
|
|
6
6
|
export declare const updateCrossSale: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EarlyBookingDto } from '@escapenavigator/types/dist/profile/cross-sale/early-booking/early-booking.dto';
|
|
2
|
+
import { EarlyBookingRO } from '@escapenavigator/types/dist/profile/cross-sale/early-booking/early-booking.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = EarlyBookingDto;
|
|
5
|
+
declare type ResponseData = EarlyBookingRO;
|
|
6
|
+
export declare const updateEarlyBooking: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateEarlyBooking = void 0;
|
|
4
|
+
var updateEarlyBooking = function (data) { return ({
|
|
5
|
+
url: '/early-booking',
|
|
6
|
+
method: 'PATCH',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.updateEarlyBooking = updateEarlyBooking;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RetargetingDto } from '@escapenavigator/types/dist/profile/cross-sale/retargeting/retargeting.dto';
|
|
2
|
+
import { RetargetingRO } from '@escapenavigator/types/dist/profile/cross-sale/retargeting/retargeting.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = RetargetingDto;
|
|
5
|
+
declare type ResponseData = RetargetingRO;
|
|
6
|
+
export declare const updateRetargeting: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateRetargeting = void 0;
|
|
4
|
+
var updateRetargeting = function (data) { return ({
|
|
5
|
+
url: '/retargeting',
|
|
6
|
+
method: 'PATCH',
|
|
7
|
+
data: data,
|
|
8
|
+
}); };
|
|
9
|
+
exports.updateRetargeting = updateRetargeting;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UpSaleDto } from '@escapenavigator/types/dist/profile/cross-sale/up-sale/up-sale.dto';
|
|
2
|
+
import { UpSaleRO } from '@escapenavigator/types/dist/profile/cross-sale/up-sale/up-sale.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = UpSaleDto;
|
|
5
|
+
declare type ResponseData = UpSaleRO;
|
|
6
|
+
export declare const updateUpSale: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -9,6 +9,7 @@ import { certificatesaleDiscountsApiDeclaration } from './certificatesales-disco
|
|
|
9
9
|
import { certificateUploadsApiDeclaration } from './certificateuploads-api';
|
|
10
10
|
import { citiesApiDeclaration } from './cities-api';
|
|
11
11
|
import { clientsApiDeclaration } from './clients-api';
|
|
12
|
+
import { crossSalesApiDeclaration } from './cross-sale-api';
|
|
12
13
|
import { dashboardApiDeclaration } from './dashboard-api';
|
|
13
14
|
import { emailsApiDeclaration } from './emails-api';
|
|
14
15
|
import { financeItemsApiDeclaration } from './financeitems-api';
|
|
@@ -16,6 +17,7 @@ import { googleCalendarsApiDeclaration } from './google-calendars-api';
|
|
|
16
17
|
import { imagesApiDeclaration } from './images-api';
|
|
17
18
|
import { locationsApiDeclaration } from './locations-api';
|
|
18
19
|
import { logsApiDeclaration } from './logs-api';
|
|
20
|
+
import { mailchimpApiDeclaration } from './mailchimp-api';
|
|
19
21
|
import { nowEscapeApiDeclaration } from './now-escape-api';
|
|
20
22
|
import { openapiWidgetApiDeclaration } from './openapi-widget-api';
|
|
21
23
|
import { orderCertificateUploadsApiDeclaration } from './order-certificate-uploads-api';
|
|
@@ -52,6 +54,8 @@ import { usersApiDeclaration } from './users-api';
|
|
|
52
54
|
import { widgetsApiDeclaration } from './widgets-api';
|
|
53
55
|
import { Api } from '.';
|
|
54
56
|
export declare type InitApiDeclaration = {
|
|
57
|
+
crossSalesApi: Api<typeof crossSalesApiDeclaration>;
|
|
58
|
+
mailchimpApi: Api<typeof mailchimpApiDeclaration>;
|
|
55
59
|
playersApi: Api<typeof playersApiDeclaration>;
|
|
56
60
|
googleCalendarsApi: Api<typeof googleCalendarsApiDeclaration>;
|
|
57
61
|
slotRulesApi: Api<typeof slotRulesApi>;
|
|
@@ -12,6 +12,7 @@ var certificatesales_discounts_api_1 = require("./certificatesales-discounts-api
|
|
|
12
12
|
var certificateuploads_api_1 = require("./certificateuploads-api");
|
|
13
13
|
var cities_api_1 = require("./cities-api");
|
|
14
14
|
var clients_api_1 = require("./clients-api");
|
|
15
|
+
var cross_sale_api_1 = require("./cross-sale-api");
|
|
15
16
|
var dashboard_api_1 = require("./dashboard-api");
|
|
16
17
|
var emails_api_1 = require("./emails-api");
|
|
17
18
|
var financeitems_api_1 = require("./financeitems-api");
|
|
@@ -19,6 +20,7 @@ var google_calendars_api_1 = require("./google-calendars-api");
|
|
|
19
20
|
var images_api_1 = require("./images-api");
|
|
20
21
|
var locations_api_1 = require("./locations-api");
|
|
21
22
|
var logs_api_1 = require("./logs-api");
|
|
23
|
+
var mailchimp_api_1 = require("./mailchimp-api");
|
|
22
24
|
var now_escape_api_1 = require("./now-escape-api");
|
|
23
25
|
var openapi_widget_api_1 = require("./openapi-widget-api");
|
|
24
26
|
var order_certificate_uploads_api_1 = require("./order-certificate-uploads-api");
|
|
@@ -55,7 +57,9 @@ var users_api_1 = require("./users-api");
|
|
|
55
57
|
var widgets_api_1 = require("./widgets-api");
|
|
56
58
|
var _1 = require(".");
|
|
57
59
|
var initClientApi = function (url) { return ({
|
|
60
|
+
crossSalesApi: (0, _1.initApi)(cross_sale_api_1.crossSalesApiDeclaration, url),
|
|
58
61
|
playersApi: (0, _1.initApi)(players_api_1.playersApiDeclaration, url),
|
|
62
|
+
mailchimpApi: (0, _1.initApi)(mailchimp_api_1.mailchimpApiDeclaration, url),
|
|
59
63
|
nowEscape: (0, _1.initApi)(now_escape_api_1.nowEscapeApiDeclaration, url),
|
|
60
64
|
googleCalendarsApi: (0, _1.initApi)(google_calendars_api_1.googleCalendarsApiDeclaration, url),
|
|
61
65
|
slotRulesApi: (0, _1.initApi)(slot_rules_api_1.slotRulesApi, url),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MailchimpRO } from '@escapenavigator/types/dist/mailchimp/mailchimp.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = {
|
|
4
|
+
profileId: number;
|
|
5
|
+
code: string;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = MailchimpRO;
|
|
8
|
+
export declare const checkCode: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.checkCode = void 0;
|
|
4
|
+
var checkCode = function (_a) {
|
|
5
|
+
var code = _a.code, profileId = _a.profileId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/mailchimp/check-code/".concat(code, "/").concat(profileId),
|
|
8
|
+
method: 'GET',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.checkCode = checkCode;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MailchimpListRO } from '@escapenavigator/types/dist/mailchimp/mailchimp.list.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = MailchimpListRO[];
|
|
5
|
+
export declare const getLists: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MailchimpRO } from '@escapenavigator/types/dist/mailchimp/mailchimp.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = MailchimpRO;
|
|
5
|
+
export declare const get: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { authLink } from './auth-link';
|
|
2
|
+
import { checkCode } from './check-code';
|
|
3
|
+
import { get } from './get';
|
|
4
|
+
import { getLists } from './get-lists';
|
|
5
|
+
import { remove } from './remove';
|
|
6
|
+
import { update } from './update';
|
|
7
|
+
declare type ApiDeclaration = {
|
|
8
|
+
getLists: typeof getLists;
|
|
9
|
+
authLink: typeof authLink;
|
|
10
|
+
checkCode: typeof checkCode;
|
|
11
|
+
get: typeof get;
|
|
12
|
+
update: typeof update;
|
|
13
|
+
remove: typeof remove;
|
|
14
|
+
};
|
|
15
|
+
export declare const mailchimpApiDeclaration: ApiDeclaration;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mailchimpApiDeclaration = void 0;
|
|
4
|
+
var auth_link_1 = require("./auth-link");
|
|
5
|
+
var check_code_1 = require("./check-code");
|
|
6
|
+
var get_1 = require("./get");
|
|
7
|
+
var get_lists_1 = require("./get-lists");
|
|
8
|
+
var remove_1 = require("./remove");
|
|
9
|
+
var update_1 = require("./update");
|
|
10
|
+
exports.mailchimpApiDeclaration = {
|
|
11
|
+
get: get_1.get,
|
|
12
|
+
getLists: get_lists_1.getLists,
|
|
13
|
+
authLink: auth_link_1.authLink,
|
|
14
|
+
checkCode: check_code_1.checkCode,
|
|
15
|
+
update: update_1.update,
|
|
16
|
+
remove: remove_1.remove,
|
|
17
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = SuccessRO;
|
|
5
|
+
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MailchimpDto } from '@escapenavigator/types/dist/mailchimp/mailchimp.dto';
|
|
2
|
+
import { MailchimpRO } from '@escapenavigator/types/dist/mailchimp/mailchimp.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: MailchimpDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = MailchimpRO;
|
|
8
|
+
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
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 data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/mailchimp',
|
|
8
|
+
method: 'PATCH',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.update = update;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AggregatorOrderRO } from '@escapenavigator/types/dist/openapi/now-escape/now-escape-order.ro';
|
|
2
2
|
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
3
|
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
4
|
import { ApiMethodDeclaration } from '..';
|
|
5
5
|
declare type ParamsData = QueryDto;
|
|
6
|
-
declare type ResponseData = QueryRO<
|
|
6
|
+
declare type ResponseData = QueryRO<AggregatorOrderRO>;
|
|
7
7
|
export declare const nowEscapeOrdersByProfileAndMonth: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -11,6 +11,7 @@ import { capturePaypalOrder } from './orders/capture-paypal-order';
|
|
|
11
11
|
import { confirmWithoutPayment } from './orders/continue-order-without-payment';
|
|
12
12
|
import { createPreorder } from './orders/create-preorder';
|
|
13
13
|
import { findOrder } from './orders/find-order';
|
|
14
|
+
import { getOrderAvailableUpsellings } from './orders/get-order-available-upsellings';
|
|
14
15
|
import { getOrderPaymentMethods } from './orders/get-order-payment-methods';
|
|
15
16
|
import { orderPaypalPayment } from './orders/order-payment-paypal';
|
|
16
17
|
import { orderStripePayment } from './orders/order-payment-stripe';
|
|
@@ -27,6 +28,7 @@ import { getBookeoPrice } from './widget/bookeo/get-bookeo-price';
|
|
|
27
28
|
import { getAgregatorWidgetData } from './widget/get-agreagator-widget-data';
|
|
28
29
|
import { getWidgetData } from './widget/get-widget-data';
|
|
29
30
|
declare type ApiDeclaration = {
|
|
31
|
+
getOrderAvailableUpsellings: typeof getOrderAvailableUpsellings;
|
|
30
32
|
capturePaypalCertificate: typeof capturePaypalCertificate;
|
|
31
33
|
getCertificatePaymentMethods: typeof getCertificatePaymentMethods;
|
|
32
34
|
updateOrderPlayers: typeof updateOrderPlayers;
|
|
@@ -14,6 +14,7 @@ var capture_paypal_order_1 = require("./orders/capture-paypal-order");
|
|
|
14
14
|
var continue_order_without_payment_1 = require("./orders/continue-order-without-payment");
|
|
15
15
|
var create_preorder_1 = require("./orders/create-preorder");
|
|
16
16
|
var find_order_1 = require("./orders/find-order");
|
|
17
|
+
var get_order_available_upsellings_1 = require("./orders/get-order-available-upsellings");
|
|
17
18
|
var get_order_payment_methods_1 = require("./orders/get-order-payment-methods");
|
|
18
19
|
var order_payment_paypal_1 = require("./orders/order-payment-paypal");
|
|
19
20
|
var order_payment_stripe_1 = require("./orders/order-payment-stripe");
|
|
@@ -30,6 +31,7 @@ var get_bookeo_price_1 = require("./widget/bookeo/get-bookeo-price");
|
|
|
30
31
|
var get_agreagator_widget_data_1 = require("./widget/get-agreagator-widget-data");
|
|
31
32
|
var get_widget_data_1 = require("./widget/get-widget-data");
|
|
32
33
|
exports.openapiWidgetApiDeclaration = {
|
|
34
|
+
getOrderAvailableUpsellings: get_order_available_upsellings_1.getOrderAvailableUpsellings,
|
|
33
35
|
capturePaypalCertificate: capture_paypal_certificate_1.capturePaypalCertificate,
|
|
34
36
|
getCertificatePaymentMethods: get_certificate_payment_methods_1.getCertificatePaymentMethods,
|
|
35
37
|
updateOrderPlayers: update_order_players_1.updateOrderPlayers,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OpenapiGetOrderDTO } from '@escapenavigator/types/dist/openapi/orders/openapi-get-order.dto';
|
|
2
|
+
import { OpenapiUpsellingRO } from '@escapenavigator/types/dist/openapi/upsellings/openapi-upselling.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '../..';
|
|
4
|
+
declare type ParamsData = OpenapiGetOrderDTO;
|
|
5
|
+
declare type ResponseData = OpenapiUpsellingRO[];
|
|
6
|
+
export declare const getOrderAvailableUpsellings: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOrderAvailableUpsellings = void 0;
|
|
4
|
+
var getOrderAvailableUpsellings = function (params) { return ({
|
|
5
|
+
url: '/openapi/orders/upsellings/find',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.getOrderAvailableUpsellings = getOrderAvailableUpsellings;
|
|
@@ -8,6 +8,7 @@ import { create } from './create';
|
|
|
8
8
|
import { exportOrders } from './export';
|
|
9
9
|
import { getOne } from './get-one';
|
|
10
10
|
import { query } from './query';
|
|
11
|
+
import { queryAgregaotrOrder } from './query-agregator-orders';
|
|
11
12
|
import { remove } from './remove';
|
|
12
13
|
import { resendEmail } from './resend-email';
|
|
13
14
|
import { update } from './update';
|
|
@@ -18,6 +19,7 @@ import { updateSlot } from './update-slot';
|
|
|
18
19
|
import { uploadOrders } from './upload-orders';
|
|
19
20
|
declare type ApiDeclaration = {
|
|
20
21
|
addWorkers: typeof addWorkers;
|
|
22
|
+
queryAgregaotrOrder: typeof queryAgregaotrOrder;
|
|
21
23
|
getWorkers: typeof getWorkers;
|
|
22
24
|
removeWorker: typeof removeWorker;
|
|
23
25
|
uploadOrders: typeof uploadOrders;
|
|
@@ -11,6 +11,7 @@ var create_1 = require("./create");
|
|
|
11
11
|
var export_1 = require("./export");
|
|
12
12
|
var get_one_1 = require("./get-one");
|
|
13
13
|
var query_1 = require("./query");
|
|
14
|
+
var query_agregator_orders_1 = require("./query-agregator-orders");
|
|
14
15
|
var remove_1 = require("./remove");
|
|
15
16
|
var resend_email_1 = require("./resend-email");
|
|
16
17
|
var update_1 = require("./update");
|
|
@@ -22,6 +23,7 @@ var upload_orders_1 = require("./upload-orders");
|
|
|
22
23
|
exports.ordersApiDeclaration = {
|
|
23
24
|
count: count_1.count,
|
|
24
25
|
removeWorker: remove_worker_1.removeWorker,
|
|
26
|
+
queryAgregaotrOrder: query_agregator_orders_1.queryAgregaotrOrder,
|
|
25
27
|
getWorkers: get_workers_1.getWorkers,
|
|
26
28
|
addWorkers: add_worker_1.addWorkers,
|
|
27
29
|
uploadOrders: upload_orders_1.uploadOrders,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AggregatorOrderRO } from '@escapenavigator/types/dist/openapi/now-escape/now-escape-order.ro';
|
|
2
|
+
import { QueryDto } from '@escapenavigator/types/dist/shared/query.dto';
|
|
3
|
+
import { QueryRO } from '@escapenavigator/types/dist/shared/query.ro';
|
|
4
|
+
import { ApiMethodDeclaration } from '..';
|
|
5
|
+
declare type ParamsData = QueryDto;
|
|
6
|
+
declare type ResponseData = QueryRO<AggregatorOrderRO>;
|
|
7
|
+
export declare const queryAgregaotrOrder: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queryAgregaotrOrder = void 0;
|
|
4
|
+
var queryAgregaotrOrder = function (params) { return ({
|
|
5
|
+
url: '/orders-aggregator',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params: params,
|
|
8
|
+
}); };
|
|
9
|
+
exports.queryAgregaotrOrder = queryAgregaotrOrder;
|
|
@@ -9,8 +9,6 @@ import { getBookeoOrders } from './bookeo/get-bookeo-orders';
|
|
|
9
9
|
import { resyncBookeo } from './bookeo/resync-bookeo';
|
|
10
10
|
import { createContact } from './contacts/create-contact';
|
|
11
11
|
import { removeContact } from './contacts/remove-contact';
|
|
12
|
-
import { getCrossSales } from './cross-sale/get-cross-sale';
|
|
13
|
-
import { updateCrossSale } from './cross-sale/update-cross-sale';
|
|
14
12
|
import { current } from './current/current';
|
|
15
13
|
import { finalizeCurrent } from './current/finalize-current';
|
|
16
14
|
import { updateCurrent } from './current/update-current';
|
|
@@ -57,8 +55,6 @@ declare type ApiDeclaration = {
|
|
|
57
55
|
getBookeoInfo: typeof getBookeoInfo;
|
|
58
56
|
getBookeoIntegrationLink: typeof getBookeoIntegrationLink;
|
|
59
57
|
getBookeoOrders: typeof getBookeoOrders;
|
|
60
|
-
getCrossSales: typeof getCrossSales;
|
|
61
|
-
updateCrossSale: typeof updateCrossSale;
|
|
62
58
|
getProfileAgb: typeof getProfileAgb;
|
|
63
59
|
getProfileAgbForOrderService: typeof getProfileAgbForOrderService;
|
|
64
60
|
updateProfileAgb: typeof updateProfileAgb;
|
|
@@ -12,8 +12,6 @@ var get_bookeo_orders_1 = require("./bookeo/get-bookeo-orders");
|
|
|
12
12
|
var resync_bookeo_1 = require("./bookeo/resync-bookeo");
|
|
13
13
|
var create_contact_1 = require("./contacts/create-contact");
|
|
14
14
|
var remove_contact_1 = require("./contacts/remove-contact");
|
|
15
|
-
var get_cross_sale_1 = require("./cross-sale/get-cross-sale");
|
|
16
|
-
var update_cross_sale_1 = require("./cross-sale/update-cross-sale");
|
|
17
15
|
var current_1 = require("./current/current");
|
|
18
16
|
var finalize_current_1 = require("./current/finalize-current");
|
|
19
17
|
var update_current_1 = require("./current/update-current");
|
|
@@ -59,8 +57,6 @@ exports.profilesApiDeclaration = {
|
|
|
59
57
|
getAllCrm: get_all_crm_1.getAllCrm,
|
|
60
58
|
createOtherCrm: create_other_crm_1.createOtherCrm,
|
|
61
59
|
getProfileAgbForOrderService: get_profile_agb_for_order_service_1.getProfileAgbForOrderService,
|
|
62
|
-
getCrossSales: get_cross_sale_1.getCrossSales,
|
|
63
|
-
updateCrossSale: update_cross_sale_1.updateCrossSale,
|
|
64
60
|
getProfileAgb: get_profile_agb_1.getProfileAgb,
|
|
65
61
|
updateProfileAgb: update_profile_agb_1.updateProfileAgb,
|
|
66
62
|
updateSubscription: update_subscription_1.updateSubscription,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.84",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "9ea11bd43f4737b0acbb17c0419f2f9c74dbd813",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.6.
|
|
18
|
-
"@escapenavigator/utils": "^1.6.
|
|
17
|
+
"@escapenavigator/types": "^1.6.79",
|
|
18
|
+
"@escapenavigator/utils": "^1.6.81",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1",
|
|
File without changes
|