@escapenavigator/services 1.6.96 → 1.6.98

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.
Files changed (56) hide show
  1. package/dist/api/cross-sale-api/index.d.ts +0 -4
  2. package/dist/api/cross-sale-api/index.js +0 -4
  3. package/dist/api/init-client-api.d.ts +4 -0
  4. package/dist/api/init-client-api.js +4 -0
  5. package/dist/api/openapi-widget-api/index.d.ts +2 -0
  6. package/dist/api/openapi-widget-api/index.js +2 -0
  7. package/dist/api/openapi-widget-api/orders/find-order-for-order-service.d.ts +7 -0
  8. package/dist/api/openapi-widget-api/orders/find-order-for-order-service.js +9 -0
  9. package/dist/api/order-emails-api/create-retargeting.d.ts +8 -0
  10. package/dist/api/order-emails-api/create-retargeting.js +11 -0
  11. package/dist/api/order-emails-api/get-order-emails.d.ts +8 -0
  12. package/dist/api/order-emails-api/get-order-emails.js +11 -0
  13. package/dist/api/order-emails-api/index.d.ts +12 -0
  14. package/dist/api/order-emails-api/index.js +13 -0
  15. package/dist/api/order-emails-api/test.d.ts +8 -0
  16. package/dist/api/order-emails-api/test.js +11 -0
  17. package/dist/api/order-emails-api/toggle.d.ts +9 -0
  18. package/dist/api/order-emails-api/toggle.js +12 -0
  19. package/dist/api/orders-api/index.d.ts +10 -0
  20. package/dist/api/orders-api/index.js +10 -0
  21. package/dist/api/orders-api/upload-participants-photos.d.ts +10 -0
  22. package/dist/api/orders-api/upload-participants-photos.js +16 -0
  23. package/dist/api/orders-api/waivers/get-order-for-sign.d.ts +7 -0
  24. package/dist/api/orders-api/waivers/get-order-for-sign.js +9 -0
  25. package/dist/api/orders-api/waivers/get-waiver-pdf.d.ts +7 -0
  26. package/dist/api/orders-api/waivers/get-waiver-pdf.js +11 -0
  27. package/dist/api/orders-api/waivers/remove-participant.d.ts +7 -0
  28. package/dist/api/orders-api/waivers/remove-participant.js +9 -0
  29. package/dist/api/orders-api/waivers/sign-order-waiver.d.ts +7 -0
  30. package/dist/api/orders-api/waivers/sign-order-waiver.js +9 -0
  31. package/dist/api/profiles-api/email/get-all-customer-emails.d.ts +8 -0
  32. package/dist/api/profiles-api/email/get-all-customer-emails.js +9 -0
  33. package/dist/api/profiles-api/email/get-customer-email.d.ts +9 -0
  34. package/dist/api/profiles-api/email/get-customer-email.js +11 -0
  35. package/dist/api/profiles-api/index.d.ts +10 -0
  36. package/dist/api/profiles-api/index.js +10 -0
  37. package/dist/api/profiles-api/waiver/get-profile-waiver-for-order-service.d.ts +6 -0
  38. package/dist/api/profiles-api/waiver/get-profile-waiver-for-order-service.js +8 -0
  39. package/dist/api/profiles-api/waiver/get-profile-waiver.d.ts +7 -0
  40. package/dist/api/profiles-api/waiver/get-profile-waiver.js +9 -0
  41. package/dist/api/profiles-api/waiver/update-profile-waiver.d.ts +9 -0
  42. package/dist/api/profiles-api/waiver/update-profile-waiver.js +12 -0
  43. package/dist/api/questrooms-scenatio-email-api/create.d.ts +9 -0
  44. package/dist/api/questrooms-scenatio-email-api/create.js +12 -0
  45. package/dist/api/questrooms-scenatio-email-api/index.d.ts +12 -0
  46. package/dist/api/questrooms-scenatio-email-api/index.js +13 -0
  47. package/dist/api/questrooms-scenatio-email-api/query.d.ts +8 -0
  48. package/dist/api/questrooms-scenatio-email-api/query.js +11 -0
  49. package/dist/api/questrooms-scenatio-email-api/remove.d.ts +6 -0
  50. package/dist/api/questrooms-scenatio-email-api/remove.js +8 -0
  51. package/dist/api/questrooms-scenatio-email-api/update.d.ts +10 -0
  52. package/dist/api/{cross-sale-api/toggle-status.js → questrooms-scenatio-email-api/update.js} +4 -4
  53. package/package.json +4 -4
  54. package/dist/api/cross-sale-api/send-test-cross-sale-email.d.ts +0 -10
  55. package/dist/api/cross-sale-api/send-test-cross-sale-email.js +0 -11
  56. package/dist/api/cross-sale-api/toggle-status.d.ts +0 -10
@@ -2,8 +2,6 @@ import { getCrossSales } from './get-cross-sale';
2
2
  import { getEarlyBooking } from './get-early-booking';
3
3
  import { getRetargeting } from './get-retargeting';
4
4
  import { getUpSales } from './get-updale-sale';
5
- import { sendTestCrossSaleEmail } from './send-test-cross-sale-email';
6
- import { toggleStatus } from './toggle-status';
7
5
  import { updateCrossSale } from './update-cross-sale';
8
6
  import { updateEarlyBooking } from './update-early-booking';
9
7
  import { updateRetargeting } from './update-retargeting';
@@ -17,8 +15,6 @@ declare type ApiDeclaration = {
17
15
  updateRetargeting: typeof updateRetargeting;
18
16
  getEarlyBooking: typeof getEarlyBooking;
19
17
  updateEarlyBooking: typeof updateEarlyBooking;
20
- toggleStatus: typeof toggleStatus;
21
- sendTestCrossSaleEmail: typeof sendTestCrossSaleEmail;
22
18
  };
23
19
  export declare const crossSalesApiDeclaration: ApiDeclaration;
24
20
  export {};
@@ -5,17 +5,13 @@ var get_cross_sale_1 = require("./get-cross-sale");
5
5
  var get_early_booking_1 = require("./get-early-booking");
6
6
  var get_retargeting_1 = require("./get-retargeting");
7
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
8
  var update_cross_sale_1 = require("./update-cross-sale");
11
9
  var update_early_booking_1 = require("./update-early-booking");
12
10
  var update_retargeting_1 = require("./update-retargeting");
13
11
  var update_up_sale_1 = require("./update-up-sale");
14
12
  exports.crossSalesApiDeclaration = {
15
13
  updateCrossSale: update_cross_sale_1.updateCrossSale,
16
- sendTestCrossSaleEmail: send_test_cross_sale_email_1.sendTestCrossSaleEmail,
17
14
  getCrossSales: get_cross_sale_1.getCrossSales,
18
- toggleStatus: toggle_status_1.toggleStatus,
19
15
  updateEarlyBooking: update_early_booking_1.updateEarlyBooking,
20
16
  getEarlyBooking: get_early_booking_1.getEarlyBooking,
21
17
  updateRetargeting: update_retargeting_1.updateRetargeting,
@@ -23,6 +23,7 @@ import { openapiWidgetApiDeclaration } from './openapi-widget-api';
23
23
  import { orderCertificateUploadsApiDeclaration } from './order-certificate-uploads-api';
24
24
  import { orderCertificatesApiDeclaration } from './order-certificates-api';
25
25
  import { orderDiscountsApiDeclaration } from './order-discounts-api';
26
+ import { orderEmailsApiDeclaration } from './order-emails-api';
26
27
  import { orderPenaltiesApiDeclaration } from './order-penalties-api';
27
28
  import { orderPromocodesApiDeclaration } from './order-promocodes-api';
28
29
  import { orderTransactionsApiDeclaration } from './order-transactions-api';
@@ -33,6 +34,7 @@ import { playersApiDeclaration } from './players-api';
33
34
  import { profilesApiDeclaration } from './profiles-api';
34
35
  import { promocodesApiDeclaration } from './promocodes-api';
35
36
  import { questroomsApiDeclaration } from './questrooms-api';
37
+ import { questroomScenarioEmailApiDeclaration } from './questrooms-scenatio-email-api';
36
38
  import { registrationRequestsApiDeclaration } from './registration-requests-api';
37
39
  import { expertsReviewsApiDeclaration } from './reviews-experts-api';
38
40
  import { socialReviewsApiDeclaration } from './reviews-social-api';
@@ -54,6 +56,8 @@ import { usersApiDeclaration } from './users-api';
54
56
  import { widgetsApiDeclaration } from './widgets-api';
55
57
  import { Api } from '.';
56
58
  export declare type InitApiDeclaration = {
59
+ questroomScenarioEmailApi: Api<typeof questroomScenarioEmailApiDeclaration>;
60
+ orderEmailsApi: Api<typeof orderEmailsApiDeclaration>;
57
61
  crossSalesApi: Api<typeof crossSalesApiDeclaration>;
58
62
  mailchimpApi: Api<typeof mailchimpApiDeclaration>;
59
63
  playersApi: Api<typeof playersApiDeclaration>;
@@ -26,6 +26,7 @@ var openapi_widget_api_1 = require("./openapi-widget-api");
26
26
  var order_certificate_uploads_api_1 = require("./order-certificate-uploads-api");
27
27
  var order_certificates_api_1 = require("./order-certificates-api");
28
28
  var order_discounts_api_1 = require("./order-discounts-api");
29
+ var order_emails_api_1 = require("./order-emails-api");
29
30
  var order_penalties_api_1 = require("./order-penalties-api");
30
31
  var order_promocodes_api_1 = require("./order-promocodes-api");
31
32
  var order_transactions_api_1 = require("./order-transactions-api");
@@ -36,6 +37,7 @@ var players_api_1 = require("./players-api");
36
37
  var profiles_api_1 = require("./profiles-api");
37
38
  var promocodes_api_1 = require("./promocodes-api");
38
39
  var questrooms_api_1 = require("./questrooms-api");
40
+ var questrooms_scenatio_email_api_1 = require("./questrooms-scenatio-email-api");
39
41
  var registration_requests_api_1 = require("./registration-requests-api");
40
42
  var reviews_experts_api_1 = require("./reviews-experts-api");
41
43
  var reviews_social_api_1 = require("./reviews-social-api");
@@ -57,6 +59,8 @@ var users_api_1 = require("./users-api");
57
59
  var widgets_api_1 = require("./widgets-api");
58
60
  var _1 = require(".");
59
61
  var initClientApi = function (url) { return ({
62
+ orderEmailsApi: (0, _1.initApi)(order_emails_api_1.orderEmailsApiDeclaration, url),
63
+ questroomScenarioEmailApi: (0, _1.initApi)(questrooms_scenatio_email_api_1.questroomScenarioEmailApiDeclaration, url),
60
64
  crossSalesApi: (0, _1.initApi)(cross_sale_api_1.crossSalesApiDeclaration, url),
61
65
  playersApi: (0, _1.initApi)(players_api_1.playersApiDeclaration, url),
62
66
  mailchimpApi: (0, _1.initApi)(mailchimp_api_1.mailchimpApiDeclaration, url),
@@ -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 { findOrderForOrderService } from './orders/find-order-for-order-service';
14
15
  import { getOrderAvailableUpsellings } from './orders/get-order-available-upsellings';
15
16
  import { getOrderPaymentMethods } from './orders/get-order-payment-methods';
16
17
  import { orderPaypalPayment } from './orders/order-payment-paypal';
@@ -48,6 +49,7 @@ declare type ApiDeclaration = {
48
49
  createPreorder: typeof createPreorder;
49
50
  findOrder: typeof findOrder;
50
51
  removePromocodeFromOrder: typeof removePromocodeFromOrder;
52
+ findOrderForOrderService: typeof findOrderForOrderService;
51
53
  updateOrder: typeof updateOrder;
52
54
  createHold: typeof createHold;
53
55
  removeHold: typeof removeHold;
@@ -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 find_order_for_order_service_1 = require("./orders/find-order-for-order-service");
17
18
  var get_order_available_upsellings_1 = require("./orders/get-order-available-upsellings");
18
19
  var get_order_payment_methods_1 = require("./orders/get-order-payment-methods");
19
20
  var order_payment_paypal_1 = require("./orders/order-payment-paypal");
@@ -32,6 +33,7 @@ var get_agreagator_widget_data_1 = require("./widget/get-agreagator-widget-data"
32
33
  var get_widget_data_1 = require("./widget/get-widget-data");
33
34
  exports.openapiWidgetApiDeclaration = {
34
35
  getOrderAvailableUpsellings: get_order_available_upsellings_1.getOrderAvailableUpsellings,
36
+ findOrderForOrderService: find_order_for_order_service_1.findOrderForOrderService,
35
37
  capturePaypalCertificate: capture_paypal_certificate_1.capturePaypalCertificate,
36
38
  getCertificatePaymentMethods: get_certificate_payment_methods_1.getCertificatePaymentMethods,
37
39
  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 { OpenapiOrderForOrderServiceRO } from '@escapenavigator/types/dist/openapi/orders/openapi-order-for-order-service.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = OpenapiGetOrderDTO;
5
+ declare type ResponseData = OpenapiOrderForOrderServiceRO;
6
+ export declare const findOrderForOrderService: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.findOrderForOrderService = void 0;
4
+ var findOrderForOrderService = function (params) { return ({
5
+ url: '/openapi/orders/for-order-service',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.findOrderForOrderService = findOrderForOrderService;
@@ -0,0 +1,8 @@
1
+ import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = {
4
+ orderId: number;
5
+ };
6
+ declare type ResponseData = OrderRO;
7
+ export declare const createRetargeting: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createRetargeting = void 0;
4
+ var createRetargeting = function (_a) {
5
+ var orderId = _a.orderId;
6
+ return ({
7
+ url: "/order-emails/retargeting/".concat(orderId),
8
+ method: 'POST',
9
+ });
10
+ };
11
+ exports.createRetargeting = createRetargeting;
@@ -0,0 +1,8 @@
1
+ import { OrderEmailRO } from '@escapenavigator/types/dist/order-emails/order-email.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = {
4
+ orderId: number;
5
+ };
6
+ declare type ResponseData = OrderEmailRO[];
7
+ export declare const getOrderEmails: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOrderEmails = void 0;
4
+ var getOrderEmails = function (_a) {
5
+ var orderId = _a.orderId;
6
+ return ({
7
+ url: "/order-emails/order/".concat(orderId),
8
+ method: 'GET',
9
+ });
10
+ };
11
+ exports.getOrderEmails = getOrderEmails;
@@ -0,0 +1,12 @@
1
+ import { createRetargeting } from './create-retargeting';
2
+ import { getOrderEmails } from './get-order-emails';
3
+ import { test } from './test';
4
+ import { toggle } from './toggle';
5
+ declare type ApiDeclaration = {
6
+ toggle: typeof toggle;
7
+ createRetargeting: typeof createRetargeting;
8
+ getOrderEmails: typeof getOrderEmails;
9
+ test: typeof test;
10
+ };
11
+ export declare const orderEmailsApiDeclaration: ApiDeclaration;
12
+ export {};
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.orderEmailsApiDeclaration = void 0;
4
+ var create_retargeting_1 = require("./create-retargeting");
5
+ var get_order_emails_1 = require("./get-order-emails");
6
+ var test_1 = require("./test");
7
+ var toggle_1 = require("./toggle");
8
+ exports.orderEmailsApiDeclaration = {
9
+ toggle: toggle_1.toggle,
10
+ getOrderEmails: get_order_emails_1.getOrderEmails,
11
+ createRetargeting: create_retargeting_1.createRetargeting,
12
+ test: test_1.test,
13
+ };
@@ -0,0 +1,8 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = {
4
+ orderEmailId: number;
5
+ };
6
+ declare type ResponseData = SuccessRO;
7
+ export declare const test: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.test = void 0;
4
+ var test = function (_a) {
5
+ var orderEmailId = _a.orderEmailId;
6
+ return ({
7
+ url: "/order-emails/test/".concat(orderEmailId),
8
+ method: 'GET',
9
+ });
10
+ };
11
+ exports.test = test;
@@ -0,0 +1,9 @@
1
+ import { ToggleDto } from '@escapenavigator/types/dist/order-emails/toggle.dto';
2
+ import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ data: ToggleDto;
6
+ };
7
+ declare type ResponseData = OrderRO;
8
+ export declare const toggle: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toggle = void 0;
4
+ var toggle = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/order-emails/toggle',
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.toggle = toggle;
@@ -1,3 +1,7 @@
1
+ import { getOrderToSign } from './waivers/get-order-for-sign';
2
+ import { getWaiverPdf } from './waivers/get-waiver-pdf';
3
+ import { removeParticipant } from './waivers/remove-participant';
4
+ import { signOrderWaiver } from './waivers/sign-order-waiver';
1
5
  import { addWorkers } from './workers/add-worker';
2
6
  import { getWorkers } from './workers/get-workers';
3
7
  import { removeWorker } from './workers/remove-worker';
@@ -17,7 +21,13 @@ import { updateParticipants } from './update-participants';
17
21
  import { updatePlayers } from './update-players';
18
22
  import { updateSlot } from './update-slot';
19
23
  import { uploadOrders } from './upload-orders';
24
+ import { uploadParticipantsPhotos } from './upload-participants-photos';
20
25
  declare type ApiDeclaration = {
26
+ uploadParticipantsPhotos: typeof uploadParticipantsPhotos;
27
+ getOrderToSign: typeof getOrderToSign;
28
+ getWaiverPdf: typeof getWaiverPdf;
29
+ signOrderWaiver: typeof signOrderWaiver;
30
+ removeParticipant: typeof removeParticipant;
21
31
  addWorkers: typeof addWorkers;
22
32
  queryAgregaotrOrder: typeof queryAgregaotrOrder;
23
33
  getWorkers: typeof getWorkers;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ordersApiDeclaration = void 0;
4
+ var get_order_for_sign_1 = require("./waivers/get-order-for-sign");
5
+ var get_waiver_pdf_1 = require("./waivers/get-waiver-pdf");
6
+ var remove_participant_1 = require("./waivers/remove-participant");
7
+ var sign_order_waiver_1 = require("./waivers/sign-order-waiver");
4
8
  var add_worker_1 = require("./workers/add-worker");
5
9
  var get_workers_1 = require("./workers/get-workers");
6
10
  var remove_worker_1 = require("./workers/remove-worker");
@@ -20,8 +24,14 @@ var update_participants_1 = require("./update-participants");
20
24
  var update_players_1 = require("./update-players");
21
25
  var update_slot_1 = require("./update-slot");
22
26
  var upload_orders_1 = require("./upload-orders");
27
+ var upload_participants_photos_1 = require("./upload-participants-photos");
23
28
  exports.ordersApiDeclaration = {
29
+ uploadParticipantsPhotos: upload_participants_photos_1.uploadParticipantsPhotos,
30
+ removeParticipant: remove_participant_1.removeParticipant,
31
+ getOrderToSign: get_order_for_sign_1.getOrderToSign,
32
+ signOrderWaiver: sign_order_waiver_1.signOrderWaiver,
24
33
  count: count_1.count,
34
+ getWaiverPdf: get_waiver_pdf_1.getWaiverPdf,
25
35
  removeWorker: remove_worker_1.removeWorker,
26
36
  queryAgregaotrOrder: query_agregator_orders_1.queryAgregaotrOrder,
27
37
  getWorkers: get_workers_1.getWorkers,
@@ -0,0 +1,10 @@
1
+ import { UploadImageResponseObject } from '@escapenavigator/types/dist/upload/upload-image.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = {
4
+ orderId: number;
5
+ data: FormData;
6
+ onUploadProgress: (progressEvent: ProgressEvent) => void;
7
+ };
8
+ declare type ResponseData = UploadImageResponseObject;
9
+ export declare const uploadParticipantsPhotos: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.uploadParticipantsPhotos = void 0;
4
+ var uploadParticipantsPhotos = function (_a) {
5
+ var orderId = _a.orderId, data = _a.data, onUploadProgress = _a.onUploadProgress;
6
+ return ({
7
+ url: "/orders/participants-image/".concat(orderId),
8
+ headers: {
9
+ 'Content-Type': 'multipart/form-data',
10
+ },
11
+ onUploadProgress: onUploadProgress,
12
+ method: 'POST',
13
+ data: data,
14
+ });
15
+ };
16
+ exports.uploadParticipantsPhotos = uploadParticipantsPhotos;
@@ -0,0 +1,7 @@
1
+ import { OpenapiGetOrderDTO } from '@escapenavigator/types/dist/openapi/orders/openapi-get-order.dto';
2
+ import { OrderForSignRO } from '@escapenavigator/types/dist/order/waivers/order-to-sign.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = OpenapiGetOrderDTO;
5
+ declare type ResponseData = OrderForSignRO;
6
+ export declare const getOrderToSign: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getOrderToSign = void 0;
4
+ var getOrderToSign = function (params) { return ({
5
+ url: '/order-waivers/order',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.getOrderToSign = getOrderToSign;
@@ -0,0 +1,7 @@
1
+ import { ApiMethodDeclaration } from '../..';
2
+ declare type ParamsData = {
3
+ id: number;
4
+ };
5
+ declare type ResponseData = any;
6
+ export declare const getWaiverPdf: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getWaiverPdf = void 0;
4
+ var getWaiverPdf = function (_a) {
5
+ var id = _a.id;
6
+ return ({
7
+ url: "/order-waivers/pdf/".concat(id),
8
+ method: 'GET',
9
+ });
10
+ };
11
+ exports.getWaiverPdf = getWaiverPdf;
@@ -0,0 +1,7 @@
1
+ import { OpenapiGetOrderDTO } from '@escapenavigator/types/dist/openapi/orders/openapi-get-order.dto';
2
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = OpenapiGetOrderDTO;
5
+ declare type ResponseData = SuccessRO;
6
+ export declare const removeParticipant: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.removeParticipant = void 0;
4
+ var removeParticipant = function (params) { return ({
5
+ url: '/order-waivers/remove-participant',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.removeParticipant = removeParticipant;
@@ -0,0 +1,7 @@
1
+ import { OrderForSignRO } from '@escapenavigator/types/dist/order/waivers/order-to-sign.ro';
2
+ import { SignOrderDTO } from '@escapenavigator/types/dist/order/waivers/sign-order.dto';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = SignOrderDTO;
5
+ declare type ResponseData = OrderForSignRO;
6
+ export declare const signOrderWaiver: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.signOrderWaiver = void 0;
4
+ var signOrderWaiver = function (data) { return ({
5
+ url: '/order-waivers/sign',
6
+ method: 'POST',
7
+ data: data,
8
+ }); };
9
+ exports.signOrderWaiver = signOrderWaiver;
@@ -0,0 +1,8 @@
1
+ import { ProfileEmailCardRO } from '@escapenavigator/types/dist/profile/email/profile-email-card.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<ProfileEmailCardRO>;
7
+ export declare const getAllCustomersEmail: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAllCustomersEmail = void 0;
4
+ var getAllCustomersEmail = function (params) { return ({
5
+ url: '/profile-emails',
6
+ method: 'GET',
7
+ params: params,
8
+ }); };
9
+ exports.getAllCustomersEmail = getAllCustomersEmail;
@@ -0,0 +1,9 @@
1
+ import { ProfileEmailRO } from '@escapenavigator/types/dist/profile/email/profile-email.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ /** Поиск по названию организации и контактному телефону */
4
+ declare type ParamsData = {
5
+ profileEmailId: number;
6
+ };
7
+ declare type ResponseData = ProfileEmailRO;
8
+ export declare const getCustomerEmail: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCustomerEmail = void 0;
4
+ var getCustomerEmail = function (_a) {
5
+ var profileEmailId = _a.profileEmailId;
6
+ return ({
7
+ url: "/profile-emails/".concat(profileEmailId),
8
+ method: 'GET',
9
+ });
10
+ };
11
+ exports.getCustomerEmail = getCustomerEmail;
@@ -17,6 +17,8 @@ import { removeContact } from './contacts/remove-contact';
17
17
  import { current } from './current/current';
18
18
  import { finalizeCurrent } from './current/finalize-current';
19
19
  import { updateCurrent } from './current/update-current';
20
+ import { getAllCustomersEmail } from './email/get-all-customer-emails';
21
+ import { getCustomerEmail } from './email/get-customer-email';
20
22
  import { queryCampaigns } from './email/query-campaigns';
21
23
  import { testEmail } from './email/test-email';
22
24
  import { createOtherCrm } from './other-crm/create-other-crm';
@@ -30,6 +32,9 @@ import { getProfileInvoices } from './subscription/get-profile-invoices';
30
32
  import { getSubscriptionInfo } from './subscription/get-subscription-info';
31
33
  import { paginateBills } from './subscription/paginate-bills';
32
34
  import { updateSubscription } from './subscription/update-subscription';
35
+ import { getProfileWaiver } from './waiver/get-profile-waiver';
36
+ import { getProfileWaiverForOrderService } from './waiver/get-profile-waiver-for-order-service';
37
+ import { updateProfileWaiver } from './waiver/update-profile-waiver';
33
38
  import { getWidgetCustomization } from './widget-customization/get';
34
39
  import { updateWidgetCustomization } from './widget-customization/update';
35
40
  import { create } from './create';
@@ -52,6 +57,8 @@ declare type ApiDeclaration = {
52
57
  updateWidgetCustomization: typeof updateWidgetCustomization;
53
58
  createContact: typeof createContact;
54
59
  removeContact: typeof removeContact;
60
+ getAllCustomersEmail: typeof getAllCustomersEmail;
61
+ getCustomerEmail: typeof getCustomerEmail;
55
62
  testEmail: typeof testEmail;
56
63
  queryCampaigns: typeof queryCampaigns;
57
64
  createAction: typeof createAction;
@@ -70,6 +77,9 @@ declare type ApiDeclaration = {
70
77
  getProfileAgb: typeof getProfileAgb;
71
78
  getProfileAgbForOrderService: typeof getProfileAgbForOrderService;
72
79
  updateProfileAgb: typeof updateProfileAgb;
80
+ getProfileWaiver: typeof getProfileWaiver;
81
+ getProfileWaiverForOrderService: typeof getProfileWaiverForOrderService;
82
+ updateProfileWaiver: typeof updateProfileWaiver;
73
83
  getSubscriptionInfo: typeof getSubscriptionInfo;
74
84
  paginateBills: typeof paginateBills;
75
85
  getPrices: typeof getPrices;
@@ -20,6 +20,8 @@ var remove_contact_1 = require("./contacts/remove-contact");
20
20
  var current_1 = require("./current/current");
21
21
  var finalize_current_1 = require("./current/finalize-current");
22
22
  var update_current_1 = require("./current/update-current");
23
+ var get_all_customer_emails_1 = require("./email/get-all-customer-emails");
24
+ var get_customer_email_1 = require("./email/get-customer-email");
23
25
  var query_campaigns_1 = require("./email/query-campaigns");
24
26
  var test_email_1 = require("./email/test-email");
25
27
  var create_other_crm_1 = require("./other-crm/create-other-crm");
@@ -33,6 +35,9 @@ var get_profile_invoices_1 = require("./subscription/get-profile-invoices");
33
35
  var get_subscription_info_1 = require("./subscription/get-subscription-info");
34
36
  var paginate_bills_1 = require("./subscription/paginate-bills");
35
37
  var update_subscription_1 = require("./subscription/update-subscription");
38
+ var get_profile_waiver_1 = require("./waiver/get-profile-waiver");
39
+ var get_profile_waiver_for_order_service_1 = require("./waiver/get-profile-waiver-for-order-service");
40
+ var update_profile_waiver_1 = require("./waiver/update-profile-waiver");
36
41
  var get_1 = require("./widget-customization/get");
37
42
  var update_1 = require("./widget-customization/update");
38
43
  var create_2 = require("./create");
@@ -46,6 +51,11 @@ var update_crm_verification_1 = require("./update-crm-verification");
46
51
  var update_partner_program_1 = require("./update-partner-program");
47
52
  var update_step_1 = require("./update-step");
48
53
  exports.profilesApiDeclaration = {
54
+ getAllCustomersEmail: get_all_customer_emails_1.getAllCustomersEmail,
55
+ getCustomerEmail: get_customer_email_1.getCustomerEmail,
56
+ getProfileWaiverForOrderService: get_profile_waiver_for_order_service_1.getProfileWaiverForOrderService,
57
+ updateProfileWaiver: update_profile_waiver_1.updateProfileWaiver,
58
+ getProfileWaiver: get_profile_waiver_1.getProfileWaiver,
49
59
  getApiKeys: get_api_keys_1.getApiKeys,
50
60
  createApiKey: create_api_key_1.createApiKey,
51
61
  removeApiKey: remove_api_key_1.removeApiKey,
@@ -0,0 +1,6 @@
1
+ import { ProfileWaiverRO } from '@escapenavigator/types/dist/profile/waiver/profile-waiver.ro';
2
+ import { ApiMethodDeclaration } from '../..';
3
+ declare type ParamsData = number;
4
+ declare type ResponseData = ProfileWaiverRO;
5
+ export declare const getProfileWaiverForOrderService: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProfileWaiverForOrderService = void 0;
4
+ var getProfileWaiverForOrderService = function (profileId) { return ({
5
+ url: "/profile-waivers/".concat(profileId),
6
+ method: 'GET',
7
+ }); };
8
+ exports.getProfileWaiverForOrderService = getProfileWaiverForOrderService;
@@ -0,0 +1,7 @@
1
+ import { ProfileWaiverRO } from '@escapenavigator/types/dist/profile/waiver/profile-waiver.ro';
2
+ import { UpdateProfileWaiverDto } from '@escapenavigator/types/dist/profile/waiver/update-waiver.dto';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = UpdateProfileWaiverDto;
5
+ declare type ResponseData = ProfileWaiverRO;
6
+ export declare const getProfileWaiver: ApiMethodDeclaration<ParamsData, ResponseData>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProfileWaiver = void 0;
4
+ var getProfileWaiver = function (data) { return ({
5
+ url: '/profile-waivers',
6
+ method: 'POST',
7
+ data: data,
8
+ }); };
9
+ exports.getProfileWaiver = getProfileWaiver;
@@ -0,0 +1,9 @@
1
+ import { ProfileWaiverRO } from '@escapenavigator/types/dist/profile/waiver/profile-waiver.ro';
2
+ import { UpdateProfileWaiverDto } from '@escapenavigator/types/dist/profile/waiver/update-waiver.dto';
3
+ import { ApiMethodDeclaration } from '../..';
4
+ declare type ParamsData = {
5
+ data: UpdateProfileWaiverDto;
6
+ };
7
+ declare type ResponseData = ProfileWaiverRO;
8
+ export declare const updateProfileWaiver: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updateProfileWaiver = void 0;
4
+ var updateProfileWaiver = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/profile-waivers',
8
+ method: 'PATCH',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.updateProfileWaiver = updateProfileWaiver;
@@ -0,0 +1,9 @@
1
+ import { CreateQuestroomScenarioEmailDto } from '@escapenavigator/types/dist/questroom-scenario-email/create-questroom-scenario-email.dto';
2
+ import { QuestroomScenarioEmailRO } from '@escapenavigator/types/dist/questroom-scenario-email/questroom-scenario-email.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ data: CreateQuestroomScenarioEmailDto;
6
+ };
7
+ declare type ResponseData = QuestroomScenarioEmailRO;
8
+ export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.create = void 0;
4
+ var create = function (_a) {
5
+ var data = _a.data;
6
+ return ({
7
+ url: '/questroom-scenario-email',
8
+ method: 'POST',
9
+ data: data,
10
+ });
11
+ };
12
+ exports.create = create;
@@ -0,0 +1,12 @@
1
+ import { create } from './create';
2
+ import { query } from './query';
3
+ import { remove } from './remove';
4
+ import { update } from './update';
5
+ declare type ApiDeclaration = {
6
+ create: typeof create;
7
+ update: typeof update;
8
+ query: typeof query;
9
+ remove: typeof remove;
10
+ };
11
+ export declare const questroomScenarioEmailApiDeclaration: ApiDeclaration;
12
+ export {};
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.questroomScenarioEmailApiDeclaration = void 0;
4
+ var create_1 = require("./create");
5
+ var query_1 = require("./query");
6
+ var remove_1 = require("./remove");
7
+ var update_1 = require("./update");
8
+ exports.questroomScenarioEmailApiDeclaration = {
9
+ remove: remove_1.remove,
10
+ update: update_1.update,
11
+ query: query_1.query,
12
+ create: create_1.create,
13
+ };
@@ -0,0 +1,8 @@
1
+ import { QuestroomScenarioEmailRO } from '@escapenavigator/types/dist/questroom-scenario-email/questroom-scenario-email.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = {
4
+ questroomId: number;
5
+ };
6
+ declare type ResponseData = QuestroomScenarioEmailRO[];
7
+ export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.query = void 0;
4
+ var query = function (_a) {
5
+ var questroomId = _a.questroomId;
6
+ return ({
7
+ url: "/questroom-scenario-email/".concat(questroomId),
8
+ method: 'GET',
9
+ });
10
+ };
11
+ exports.query = query;
@@ -0,0 +1,6 @@
1
+ import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
2
+ import { ApiMethodDeclaration } from '..';
3
+ declare type ParamsData = number;
4
+ declare type ResponseData = SuccessRO;
5
+ export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.remove = void 0;
4
+ var remove = function (id) { return ({
5
+ url: "/questroom-scenario-email/".concat(id),
6
+ method: 'DELETE',
7
+ }); };
8
+ exports.remove = remove;
@@ -0,0 +1,10 @@
1
+ import { CreateQuestroomScenarioEmailDto } from '@escapenavigator/types/dist/questroom-scenario-email/create-questroom-scenario-email.dto';
2
+ import { QuestroomScenarioEmailRO } from '@escapenavigator/types/dist/questroom-scenario-email/questroom-scenario-email.ro';
3
+ import { ApiMethodDeclaration } from '..';
4
+ declare type ParamsData = {
5
+ id: number;
6
+ data: CreateQuestroomScenarioEmailDto;
7
+ };
8
+ declare type ResponseData = QuestroomScenarioEmailRO;
9
+ export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
10
+ export {};
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toggleStatus = void 0;
4
- var toggleStatus = function (_a) {
3
+ exports.update = void 0;
4
+ var update = function (_a) {
5
5
  var id = _a.id, data = _a.data;
6
6
  return ({
7
- url: "/orders/cross-sale-status/".concat(id),
7
+ url: "/questroom-scenario-email/".concat(id),
8
8
  method: 'PATCH',
9
9
  data: data,
10
10
  });
11
11
  };
12
- exports.toggleStatus = toggleStatus;
12
+ exports.update = update;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/services",
3
- "version": "1.6.96",
3
+ "version": "1.6.98",
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": "ac2aaf69a73adf4877c18225d0d73d14b2dd7855",
15
+ "gitHead": "81769276383becb242af77229a5c379e12f32d07",
16
16
  "dependencies": {
17
- "@escapenavigator/types": "^1.6.91",
18
- "@escapenavigator/utils": "^1.6.93",
17
+ "@escapenavigator/types": "^1.6.93",
18
+ "@escapenavigator/utils": "^1.6.95",
19
19
  "axios": "^0.21.4",
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1",
@@ -1,10 +0,0 @@
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 {};
@@ -1,11 +0,0 @@
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;
@@ -1,10 +0,0 @@
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 {};