@escapenavigator/services 1.10.112 → 1.10.113
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/admin-announcements-api/create.d.ts +9 -0
- package/dist/api/{certificatesales-api → admin-announcements-api}/create.js +1 -1
- package/dist/api/admin-announcements-api/index.d.ts +12 -0
- package/dist/api/admin-announcements-api/index.js +13 -0
- package/dist/api/admin-announcements-api/query.d.ts +8 -0
- package/dist/api/admin-announcements-api/query.js +9 -0
- package/dist/api/{certificates-api → admin-announcements-api}/remove.d.ts +2 -3
- package/dist/api/{certificates-api → admin-announcements-api}/remove.js +1 -1
- package/dist/api/admin-announcements-api/update.d.ts +10 -0
- package/dist/api/{certificates-api → admin-announcements-api}/update.js +1 -1
- package/dist/api/admins-api/get-aggregator-statistics-constants.d.ts +1 -1
- package/dist/api/admins-api/index.d.ts +11 -9
- package/dist/api/admins-api/index.js +11 -9
- package/dist/api/admins-api/refill-orders-certificates-analytics.d.ts +11 -0
- package/dist/api/admins-api/refill-orders-certificates-analytics.js +12 -0
- package/dist/api/agregator-api/index.d.ts +2 -2
- package/dist/api/agregator-api/index.js +2 -2
- package/dist/api/agregator-api/players/add-like.d.ts +1 -1
- package/dist/api/agregator-api/reviews/original-review.js +1 -1
- package/dist/api/agregator-api/reviews/reviews-city.d.ts +1 -1
- package/dist/api/agregator-api/reviews/reviews-questroom.d.ts +1 -1
- package/dist/api/certificate-designs-api/create.d.ts +9 -0
- package/dist/api/{certificates-api/create-inside.js → certificate-designs-api/create.js} +4 -4
- package/dist/api/certificate-designs-api/get-all.d.ts +5 -0
- package/dist/api/certificate-designs-api/get-all.js +8 -0
- package/dist/api/certificate-designs-api/index.d.ts +12 -0
- package/dist/api/certificate-designs-api/index.js +13 -0
- package/dist/api/certificate-designs-api/remove.d.ts +5 -0
- package/dist/api/certificate-designs-api/remove.js +8 -0
- package/dist/api/certificate-designs-api/update.d.ts +10 -0
- package/dist/api/{certificates-api/update-inside.js → certificate-designs-api/update.js} +4 -4
- package/dist/api/certificate-nominals-api/create.d.ts +9 -0
- package/dist/api/certificate-nominals-api/create.js +12 -0
- package/dist/api/certificate-nominals-api/get-all.d.ts +5 -0
- package/dist/api/certificate-nominals-api/get-all.js +8 -0
- package/dist/api/certificate-nominals-api/index.d.ts +12 -0
- package/dist/api/certificate-nominals-api/index.js +13 -0
- package/dist/api/certificate-nominals-api/remove.d.ts +5 -0
- package/dist/api/certificate-nominals-api/remove.js +8 -0
- package/dist/api/certificate-nominals-api/update.d.ts +10 -0
- package/dist/api/certificate-nominals-api/update.js +12 -0
- package/dist/api/certificate-settings-api/get.d.ts +5 -0
- package/dist/api/certificate-settings-api/get.js +8 -0
- package/dist/api/certificate-settings-api/index.d.ts +8 -0
- package/dist/api/certificate-settings-api/index.js +9 -0
- package/dist/api/certificate-settings-api/update.d.ts +9 -0
- package/dist/api/certificate-settings-api/update.js +12 -0
- package/dist/api/certificates-api/index.d.ts +0 -20
- package/dist/api/certificates-api/index.js +0 -20
- package/dist/api/certificatesales-api/index.d.ts +6 -8
- package/dist/api/certificatesales-api/index.js +6 -8
- package/dist/api/certificatesales-api/promocodes/create-promocode.d.ts +1 -1
- package/dist/api/certificatesales-api/resend.d.ts +1 -1
- package/dist/api/clients-api/create-complaint.d.ts +1 -1
- package/dist/api/clients-api/get-billing-defaults.d.ts +12 -0
- package/dist/api/clients-api/get-billing-defaults.js +8 -0
- package/dist/api/clients-api/get-utm-touchpoints.d.ts +23 -0
- package/dist/api/clients-api/get-utm-touchpoints.js +8 -0
- package/dist/api/clients-api/index.d.ts +6 -0
- package/dist/api/clients-api/index.js +6 -0
- package/dist/api/clients-api/suggest-utm.d.ts +11 -0
- package/dist/api/clients-api/suggest-utm.js +13 -0
- package/dist/api/cron-parser-api/parse-all.d.ts +1 -1
- package/dist/api/cross-sale-api/get-birthday-marketing.d.ts +15 -0
- package/dist/api/cross-sale-api/get-birthday-marketing.js +9 -0
- package/dist/api/cross-sale-api/get-custom-client-booking-email.d.ts +7 -0
- package/dist/api/cross-sale-api/get-custom-client-booking-email.js +9 -0
- package/dist/api/cross-sale-api/index.d.ts +8 -0
- package/dist/api/cross-sale-api/index.js +8 -0
- package/dist/api/cross-sale-api/update-birthday-marketing.d.ts +15 -0
- package/dist/api/cross-sale-api/update-birthday-marketing.js +9 -0
- package/dist/api/cross-sale-api/update-custom-client-booking-email.d.ts +7 -0
- package/dist/api/cross-sale-api/update-custom-client-booking-email.js +9 -0
- package/dist/api/dashboard-api/get-unread-announcements.d.ts +6 -0
- package/dist/api/dashboard-api/get-unread-announcements.js +8 -0
- package/dist/api/dashboard-api/index.d.ts +4 -0
- package/dist/api/dashboard-api/index.js +4 -0
- package/dist/api/dashboard-api/mark-all-announcements-read.d.ts +6 -0
- package/dist/api/dashboard-api/mark-all-announcements-read.js +8 -0
- package/dist/api/index.d.ts +21 -1
- package/dist/api/index.js +48 -10
- package/dist/api/init-client-api.d.ts +15 -1
- package/dist/api/init-client-api.js +15 -1
- package/dist/api/landing-reviews-api/update.d.ts +1 -1
- package/dist/api/marketing-email-variables-api/get.d.ts +13 -0
- package/dist/api/marketing-email-variables-api/get.js +16 -0
- package/dist/api/marketing-email-variables-api/index.d.ts +6 -0
- package/dist/api/marketing-email-variables-api/index.js +7 -0
- package/dist/api/marketing-emails-unsubscribe-api/confirm.d.ts +15 -0
- package/dist/api/marketing-emails-unsubscribe-api/confirm.js +17 -0
- package/dist/api/marketing-emails-unsubscribe-api/index.d.ts +8 -0
- package/dist/api/marketing-emails-unsubscribe-api/index.js +9 -0
- package/dist/api/marketing-emails-unsubscribe-api/preview.d.ts +18 -0
- package/dist/api/marketing-emails-unsubscribe-api/preview.js +18 -0
- package/dist/api/openapi-widget-api/certificates/create-certificate-shop.d.ts +11 -0
- package/dist/api/openapi-widget-api/certificates/create-certificate-shop.js +13 -0
- package/dist/api/openapi-widget-api/external/index.d.ts +3 -3
- package/dist/api/openapi-widget-api/external/index.js +7 -7
- package/dist/api/openapi-widget-api/index.d.ts +28 -10
- package/dist/api/openapi-widget-api/index.js +28 -10
- package/dist/api/openapi-widget-api/order-groups/capture-paypal-order-group.d.ts +9 -0
- package/dist/api/openapi-widget-api/order-groups/capture-paypal-order-group.js +23 -0
- package/dist/api/openapi-widget-api/order-groups/find-order-group.d.ts +8 -0
- package/dist/api/openapi-widget-api/order-groups/find-order-group.js +11 -0
- package/dist/api/openapi-widget-api/order-groups/get-order-group-payment-methods.d.ts +8 -0
- package/dist/api/openapi-widget-api/order-groups/get-order-group-payment-methods.js +11 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-confirm-without-payment.d.ts +9 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-confirm-without-payment.js +23 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-paypal.d.ts +9 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-paypal.js +23 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-square.d.ts +9 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-square.js +23 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-stripe.d.ts +9 -0
- package/dist/api/openapi-widget-api/order-groups/order-group-payment-stripe.js +23 -0
- package/dist/api/openapi-widget-api/widget/resolve-promocode.d.ts +7 -0
- package/dist/api/openapi-widget-api/widget/resolve-promocode.js +9 -0
- package/dist/api/openapi-widget-api/widget/validate-phone.d.ts +7 -0
- package/dist/api/openapi-widget-api/widget/validate-phone.js +9 -0
- package/dist/api/order-certificate-uploads-api/create.d.ts +1 -1
- package/dist/api/order-certificates-api/create.d.ts +2 -2
- package/dist/api/order-certificates-api/remove.d.ts +2 -2
- package/dist/api/order-discounts-api/create.d.ts +2 -2
- package/dist/api/order-discounts-api/remove.d.ts +2 -2
- package/dist/api/order-emails-api/toggle.d.ts +1 -1
- package/dist/api/order-groups-api/create-certificate.d.ts +10 -0
- package/dist/api/order-groups-api/create-certificate.js +12 -0
- package/dist/api/order-groups-api/create-closing-document.d.ts +10 -0
- package/dist/api/order-groups-api/create-closing-document.js +12 -0
- package/dist/api/order-groups-api/create-discount.d.ts +10 -0
- package/dist/api/order-groups-api/create-discount.js +12 -0
- package/dist/api/order-groups-api/create-invoice.d.ts +10 -0
- package/dist/api/order-groups-api/create-invoice.js +12 -0
- package/dist/api/order-groups-api/create-promocode.d.ts +10 -0
- package/dist/api/order-groups-api/create-promocode.js +12 -0
- package/dist/api/order-groups-api/create-refund-promocode.d.ts +10 -0
- package/dist/api/order-groups-api/create-refund-promocode.js +12 -0
- package/dist/api/order-groups-api/create-refund.d.ts +10 -0
- package/dist/api/order-groups-api/create-refund.js +12 -0
- package/dist/api/order-groups-api/create-stripe-refund.d.ts +10 -0
- package/dist/api/order-groups-api/create-stripe-refund.js +12 -0
- package/dist/api/order-groups-api/create-transaction.d.ts +10 -0
- package/dist/api/order-groups-api/create-transaction.js +12 -0
- package/dist/api/order-groups-api/create.d.ts +9 -0
- package/dist/api/{certificates-api → order-groups-api}/create.js +1 -1
- package/dist/api/order-groups-api/get-one.d.ts +8 -0
- package/dist/api/order-groups-api/get-one.js +11 -0
- package/dist/api/order-groups-api/index.d.ts +42 -0
- package/dist/api/order-groups-api/index.js +43 -0
- package/dist/api/order-groups-api/mark-invoice-paid.d.ts +9 -0
- package/dist/api/order-groups-api/mark-invoice-paid.js +11 -0
- package/dist/api/order-groups-api/query.d.ts +8 -0
- package/dist/api/order-groups-api/query.js +12 -0
- package/dist/api/order-groups-api/remove-certificate.d.ts +9 -0
- package/dist/api/order-groups-api/remove-certificate.js +11 -0
- package/dist/api/order-groups-api/remove-discount.d.ts +9 -0
- package/dist/api/order-groups-api/remove-discount.js +11 -0
- package/dist/api/order-groups-api/remove-order.d.ts +11 -0
- package/dist/api/order-groups-api/remove-order.js +11 -0
- package/dist/api/order-groups-api/remove-promocode.d.ts +9 -0
- package/dist/api/order-groups-api/remove-promocode.js +11 -0
- package/dist/api/order-groups-api/remove-transaction.d.ts +9 -0
- package/dist/api/order-groups-api/remove-transaction.js +11 -0
- package/dist/api/order-groups-api/resend-closing-document.d.ts +10 -0
- package/dist/api/order-groups-api/resend-closing-document.js +12 -0
- package/dist/api/order-penalties-api/create.d.ts +2 -2
- package/dist/api/order-penalties-api/remove.d.ts +2 -2
- package/dist/api/order-products-api/create.d.ts +2 -2
- package/dist/api/order-products-api/remove.d.ts +2 -2
- package/dist/api/order-promocodes-api/create-refund.d.ts +2 -2
- package/dist/api/order-promocodes-api/create.d.ts +2 -2
- package/dist/api/order-promocodes-api/remove-refund.d.ts +2 -2
- package/dist/api/order-promocodes-api/remove.d.ts +2 -2
- package/dist/api/order-transactions-api/create-order-closing-document.d.ts +10 -0
- package/dist/api/order-transactions-api/create-order-closing-document.js +12 -0
- package/dist/api/order-transactions-api/create-order-invoice.d.ts +1 -1
- package/dist/api/order-transactions-api/create-order-payment.d.ts +1 -1
- package/dist/api/order-transactions-api/create-order-refund.d.ts +1 -1
- package/dist/api/order-transactions-api/create-order-stripe-refund.d.ts +1 -1
- package/dist/api/order-transactions-api/index.d.ts +7 -1
- package/dist/api/order-transactions-api/index.js +7 -1
- package/dist/api/order-transactions-api/mark-invoice-paid.d.ts +8 -0
- package/dist/api/order-transactions-api/mark-invoice-paid.js +11 -0
- package/dist/api/order-transactions-api/resend-order-closing-document.d.ts +10 -0
- package/dist/api/order-transactions-api/resend-order-closing-document.js +12 -0
- package/dist/api/order-upsellings-api/create.d.ts +2 -2
- package/dist/api/order-upsellings-api/remove.d.ts +2 -2
- package/dist/api/orders-api/book-immediately.d.ts +2 -2
- package/dist/api/orders-api/cancel.d.ts +2 -2
- package/dist/api/orders-api/confirm.d.ts +2 -2
- package/dist/api/orders-api/create.d.ts +9 -2
- package/dist/api/orders-api/dashboard/get-orders-for-dashboard.d.ts +3 -2
- package/dist/api/orders-api/get-cancel-preview.d.ts +12 -0
- package/dist/api/orders-api/get-cancel-preview.js +25 -0
- package/dist/api/orders-api/index.d.ts +19 -17
- package/dist/api/orders-api/index.js +19 -17
- package/dist/api/orders-api/remove.d.ts +2 -2
- package/dist/api/orders-api/transactions/delete-transaction.d.ts +2 -2
- package/dist/api/orders-api/transactions/recover-transaction.d.ts +2 -2
- package/dist/api/orders-api/update-players.d.ts +2 -2
- package/dist/api/orders-api/update-slot.d.ts +2 -2
- package/dist/api/orders-api/update.d.ts +2 -2
- package/dist/api/orders-api/workers/add-worker.d.ts +1 -1
- package/dist/api/products-api/get-all-movements.d.ts +1 -0
- package/dist/api/products-api/remove.d.ts +1 -1
- package/dist/api/profiles-api/current/get-current-commission.d.ts +6 -0
- package/dist/api/profiles-api/current/get-current-commission.js +8 -0
- package/dist/api/profiles-api/email/get-emails-by-client.d.ts +13 -0
- package/dist/api/profiles-api/email/get-emails-by-client.js +16 -0
- package/dist/api/profiles-api/email/get-profile-emails-summary.d.ts +12 -0
- package/dist/api/profiles-api/email/get-profile-emails-summary.js +9 -0
- package/dist/api/profiles-api/email/resend-profile-email.d.ts +8 -0
- package/dist/api/profiles-api/email/resend-profile-email.js +11 -0
- package/dist/api/profiles-api/email-senders/add-email-domain.d.ts +9 -0
- package/dist/api/profiles-api/email-senders/add-email-domain.js +12 -0
- package/dist/api/profiles-api/email-senders/create-email-sender.d.ts +9 -0
- package/dist/api/profiles-api/email-senders/create-email-sender.js +12 -0
- package/dist/api/profiles-api/email-senders/get-email-domains.d.ts +6 -0
- package/dist/api/profiles-api/email-senders/get-email-domains.js +8 -0
- package/dist/api/profiles-api/email-senders/get-email-senders.d.ts +6 -0
- package/dist/api/profiles-api/email-senders/get-email-senders.js +8 -0
- package/dist/api/profiles-api/email-senders/recheck-email-domain.d.ts +8 -0
- package/dist/api/profiles-api/email-senders/recheck-email-domain.js +11 -0
- package/dist/api/profiles-api/email-senders/remove-email-domain.d.ts +6 -0
- package/dist/api/profiles-api/email-senders/remove-email-domain.js +8 -0
- package/dist/api/profiles-api/email-senders/remove-email-sender.d.ts +6 -0
- package/dist/api/profiles-api/email-senders/remove-email-sender.js +8 -0
- package/dist/api/profiles-api/email-senders/set-default-email-sender.d.ts +8 -0
- package/dist/api/profiles-api/email-senders/set-default-email-sender.js +11 -0
- package/dist/api/profiles-api/email-senders/update-email-sender.d.ts +10 -0
- package/dist/api/profiles-api/email-senders/update-email-sender.js +12 -0
- package/dist/api/profiles-api/index.d.ts +79 -11
- package/dist/api/profiles-api/index.js +85 -17
- package/dist/api/profiles-api/marketing-email-campaign/cancel-marketing-email-campaign.d.ts +10 -0
- package/dist/api/profiles-api/marketing-email-campaign/cancel-marketing-email-campaign.js +12 -0
- package/dist/api/profiles-api/marketing-email-campaign/create-marketing-email-campaign.d.ts +9 -0
- package/dist/api/profiles-api/marketing-email-campaign/create-marketing-email-campaign.js +12 -0
- package/dist/api/profiles-api/marketing-email-campaign/get-marketing-email-campaign.d.ts +6 -0
- package/dist/api/profiles-api/marketing-email-campaign/get-marketing-email-campaign.js +8 -0
- package/dist/api/profiles-api/marketing-email-campaign/pause-marketing-email-campaign.d.ts +8 -0
- package/dist/api/profiles-api/marketing-email-campaign/pause-marketing-email-campaign.js +11 -0
- package/dist/api/profiles-api/marketing-email-campaign/preflight-marketing-email-campaign.d.ts +8 -0
- package/dist/api/profiles-api/marketing-email-campaign/preflight-marketing-email-campaign.js +11 -0
- package/dist/api/profiles-api/marketing-email-campaign/preview-marketing-email-campaign-v2.d.ts +12 -0
- package/dist/api/profiles-api/marketing-email-campaign/preview-marketing-email-campaign-v2.js +16 -0
- package/dist/api/profiles-api/marketing-email-campaign/preview-marketing-email-segment.d.ts +9 -0
- package/dist/api/profiles-api/marketing-email-campaign/preview-marketing-email-segment.js +12 -0
- package/dist/api/profiles-api/marketing-email-campaign/query-marketing-email-campaigns.d.ts +8 -0
- package/dist/api/profiles-api/marketing-email-campaign/query-marketing-email-campaigns.js +9 -0
- package/dist/api/profiles-api/marketing-email-campaign/resume-marketing-email-campaign.d.ts +8 -0
- package/dist/api/profiles-api/marketing-email-campaign/resume-marketing-email-campaign.js +11 -0
- package/dist/api/profiles-api/marketing-email-campaign/schedule-marketing-email-campaign.d.ts +10 -0
- package/dist/api/profiles-api/marketing-email-campaign/schedule-marketing-email-campaign.js +12 -0
- package/dist/api/profiles-api/marketing-email-campaign/send-marketing-email-campaign.d.ts +8 -0
- package/dist/api/profiles-api/marketing-email-campaign/send-marketing-email-campaign.js +11 -0
- package/dist/api/profiles-api/marketing-email-campaign/send-test-marketing-email-campaign.d.ts +10 -0
- package/dist/api/profiles-api/marketing-email-campaign/send-test-marketing-email-campaign.js +12 -0
- package/dist/api/profiles-api/marketing-email-campaign/unschedule-marketing-email-campaign.d.ts +8 -0
- package/dist/api/profiles-api/marketing-email-campaign/unschedule-marketing-email-campaign.js +11 -0
- package/dist/api/profiles-api/marketing-email-campaign/update-marketing-email-campaign.d.ts +10 -0
- package/dist/api/profiles-api/marketing-email-campaign/update-marketing-email-campaign.js +12 -0
- package/dist/api/profiles-api/marketing-email-template/create-marketing-email-template.d.ts +9 -0
- package/dist/api/profiles-api/marketing-email-template/create-marketing-email-template.js +12 -0
- package/dist/api/profiles-api/marketing-email-template/delete-marketing-email-template.d.ts +9 -0
- package/dist/api/profiles-api/marketing-email-template/delete-marketing-email-template.js +11 -0
- package/dist/api/profiles-api/marketing-email-template/duplicate-marketing-email-template.d.ts +8 -0
- package/dist/api/profiles-api/marketing-email-template/duplicate-marketing-email-template.js +11 -0
- package/dist/api/profiles-api/marketing-email-template/get-marketing-email-template.d.ts +6 -0
- package/dist/api/profiles-api/marketing-email-template/get-marketing-email-template.js +8 -0
- package/dist/api/profiles-api/marketing-email-template/query-marketing-email-templates.d.ts +8 -0
- package/dist/api/profiles-api/marketing-email-template/query-marketing-email-templates.js +9 -0
- package/dist/api/profiles-api/marketing-email-template/update-marketing-email-template.d.ts +10 -0
- package/dist/api/profiles-api/marketing-email-template/update-marketing-email-template.js +12 -0
- package/dist/api/profiles-api/notification-chanel/query.d.ts +1 -1
- package/dist/api/profiles-api/profile-sms/get-sms-settings.d.ts +1 -1
- package/dist/api/profiles-api/profile-sms/query-order-sms-logs.d.ts +2 -2
- package/dist/api/profiles-api/profile-sms/query-sms-logs-by-client.d.ts +12 -0
- package/dist/api/profiles-api/profile-sms/query-sms-logs-by-client.js +12 -0
- package/dist/api/profiles-api/profile-sms/send-order-client-email.d.ts +1 -1
- package/dist/api/profiles-api/profile-sms/send-order-client-sms.d.ts +1 -1
- package/dist/api/profiles-api/profile-sms/update-sms-settings.d.ts +1 -1
- package/dist/api/profiles-api/subscription/update-subscription.d.ts +3 -0
- package/dist/api/questrooms-api/index.d.ts +4 -4
- package/dist/api/questrooms-api/index.js +4 -4
- package/dist/api/questrooms-api/update-for-admin.d.ts +1 -1
- package/dist/api/questrooms-api/update-integration.d.ts +1 -1
- package/dist/api/statistics-api/index.d.ts +2 -0
- package/dist/api/statistics-api/index.js +2 -0
- package/dist/api/statistics-api/promocodes-report.d.ts +9 -0
- package/dist/api/statistics-api/promocodes-report.js +12 -0
- package/dist/api/transactions-api/create-certificate-payment.d.ts +1 -1
- package/dist/api/transactions-api/create-certificate-refund.d.ts +1 -1
- package/dist/api/users-api/index.d.ts +14 -14
- package/dist/api/users-api/index.js +14 -14
- package/dist/api/users-api/task/update-task-status.d.ts +1 -1
- package/dist/hooks/use-api-method/actions/creators/api.d.ts +1 -1
- package/dist/hooks/use-api-method/actions/types/api.js +1 -1
- package/dist/hooks/use-api-method/index.js +5 -5
- package/dist/hooks/use-api-method/reducers/api.d.ts +1 -1
- package/package.json +7 -30
- package/dist/api/certificates-api/create-inside.d.ts +0 -9
- package/dist/api/certificates-api/create.d.ts +0 -9
- package/dist/api/certificates-api/find-or-create-certificate-service.d.ts +0 -6
- package/dist/api/certificates-api/find-or-create-certificate-service.js +0 -8
- package/dist/api/certificates-api/get-all-inside.d.ts +0 -6
- package/dist/api/certificates-api/get-all-inside.js +0 -8
- package/dist/api/certificates-api/recover.d.ts +0 -7
- package/dist/api/certificates-api/recover.js +0 -8
- package/dist/api/certificates-api/remove-inside.d.ts +0 -7
- package/dist/api/certificates-api/remove-inside.js +0 -8
- package/dist/api/certificates-api/update-certificate-service.d.ts +0 -9
- package/dist/api/certificates-api/update-certificate-service.js +0 -12
- package/dist/api/certificates-api/update-inside.d.ts +0 -10
- package/dist/api/certificates-api/update.d.ts +0 -10
- package/dist/api/certificatesales-api/create.d.ts +0 -9
- package/dist/api/openapi-widget-api/certificates/create-certificate.d.ts +0 -7
- package/dist/api/openapi-widget-api/certificates/create-certificate.js +0 -9
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderGroupsApiDeclaration = void 0;
|
|
4
|
+
var create_1 = require("./create");
|
|
5
|
+
var create_certificate_1 = require("./create-certificate");
|
|
6
|
+
var create_closing_document_1 = require("./create-closing-document");
|
|
7
|
+
var create_discount_1 = require("./create-discount");
|
|
8
|
+
var create_invoice_1 = require("./create-invoice");
|
|
9
|
+
var create_promocode_1 = require("./create-promocode");
|
|
10
|
+
var create_refund_1 = require("./create-refund");
|
|
11
|
+
var create_refund_promocode_1 = require("./create-refund-promocode");
|
|
12
|
+
var create_stripe_refund_1 = require("./create-stripe-refund");
|
|
13
|
+
var create_transaction_1 = require("./create-transaction");
|
|
14
|
+
var get_one_1 = require("./get-one");
|
|
15
|
+
var mark_invoice_paid_1 = require("./mark-invoice-paid");
|
|
16
|
+
var query_1 = require("./query");
|
|
17
|
+
var remove_certificate_1 = require("./remove-certificate");
|
|
18
|
+
var remove_discount_1 = require("./remove-discount");
|
|
19
|
+
var remove_order_1 = require("./remove-order");
|
|
20
|
+
var remove_promocode_1 = require("./remove-promocode");
|
|
21
|
+
var remove_transaction_1 = require("./remove-transaction");
|
|
22
|
+
var resend_closing_document_1 = require("./resend-closing-document");
|
|
23
|
+
exports.orderGroupsApiDeclaration = {
|
|
24
|
+
create: create_1.create,
|
|
25
|
+
getOne: get_one_1.getOne,
|
|
26
|
+
query: query_1.query,
|
|
27
|
+
removeOrder: remove_order_1.removeOrder,
|
|
28
|
+
createTransaction: create_transaction_1.createTransaction,
|
|
29
|
+
createRefund: create_refund_1.createRefund,
|
|
30
|
+
createStripeRefund: create_stripe_refund_1.createStripeRefund,
|
|
31
|
+
createRefundPromocode: create_refund_promocode_1.createRefundPromocode,
|
|
32
|
+
createInvoice: create_invoice_1.createInvoice,
|
|
33
|
+
createClosingDocument: create_closing_document_1.createClosingDocument,
|
|
34
|
+
resendClosingDocument: resend_closing_document_1.resendClosingDocument,
|
|
35
|
+
createDiscount: create_discount_1.createDiscount,
|
|
36
|
+
createPromocode: create_promocode_1.createPromocode,
|
|
37
|
+
createCertificate: create_certificate_1.createCertificate,
|
|
38
|
+
removeTransaction: remove_transaction_1.removeTransaction,
|
|
39
|
+
removeDiscount: remove_discount_1.removeDiscount,
|
|
40
|
+
removePromocode: remove_promocode_1.removePromocode,
|
|
41
|
+
removeCertificate: remove_certificate_1.removeCertificate,
|
|
42
|
+
markInvoicePaid: mark_invoice_paid_1.markInvoicePaid,
|
|
43
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OrderGroupRO } from '@escapenavigator/types/dist/order-group/order-group.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
txId: number;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = OrderGroupRO;
|
|
8
|
+
export declare const markInvoicePaid: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.markInvoicePaid = void 0;
|
|
4
|
+
var markInvoicePaid = function (_a) {
|
|
5
|
+
var id = _a.id, txId = _a.txId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-groups/".concat(id, "/invoice/").concat(txId, "/mark-paid"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.markInvoicePaid = markInvoicePaid;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrderGroupRO } from '@escapenavigator/types/dist/order-group/order-group.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
clientId: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = OrderGroupRO[];
|
|
7
|
+
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.query = void 0;
|
|
4
|
+
var query = function (_a) {
|
|
5
|
+
var clientId = _a.clientId;
|
|
6
|
+
return ({
|
|
7
|
+
url: '/order-groups',
|
|
8
|
+
method: 'GET',
|
|
9
|
+
params: { clientId: clientId },
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.query = query;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OrderGroupRO } from '@escapenavigator/types/dist/order-group/order-group.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
certId: number;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = OrderGroupRO;
|
|
8
|
+
export declare const removeCertificate: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeCertificate = void 0;
|
|
4
|
+
var removeCertificate = function (_a) {
|
|
5
|
+
var id = _a.id, certId = _a.certId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-groups/".concat(id, "/certificates/").concat(certId),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.removeCertificate = removeCertificate;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OrderGroupRO } from '@escapenavigator/types/dist/order-group/order-group.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
discountId: number;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = OrderGroupRO;
|
|
8
|
+
export declare const removeDiscount: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeDiscount = void 0;
|
|
4
|
+
var removeDiscount = function (_a) {
|
|
5
|
+
var id = _a.id, discountId = _a.discountId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-groups/".concat(id, "/discounts/").concat(discountId),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.removeDiscount = removeDiscount;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OrderGroupRO } from '@escapenavigator/types/dist/order-group/order-group.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
orderId: number;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = OrderGroupRO | {
|
|
8
|
+
deleted: true;
|
|
9
|
+
};
|
|
10
|
+
export declare const removeOrder: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeOrder = void 0;
|
|
4
|
+
var removeOrder = function (_a) {
|
|
5
|
+
var id = _a.id, orderId = _a.orderId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-groups/".concat(id, "/orders/").concat(orderId),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.removeOrder = removeOrder;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OrderGroupRO } from '@escapenavigator/types/dist/order-group/order-group.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
promocodeId: number;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = OrderGroupRO;
|
|
8
|
+
export declare const removePromocode: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removePromocode = void 0;
|
|
4
|
+
var removePromocode = function (_a) {
|
|
5
|
+
var id = _a.id, promocodeId = _a.promocodeId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-groups/".concat(id, "/promocodes/").concat(promocodeId),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.removePromocode = removePromocode;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OrderGroupRO } from '@escapenavigator/types/dist/order-group/order-group.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
transactionId: number;
|
|
6
|
+
};
|
|
7
|
+
type ResponseData = OrderGroupRO;
|
|
8
|
+
export declare const removeTransaction: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeTransaction = void 0;
|
|
4
|
+
var removeTransaction = function (_a) {
|
|
5
|
+
var id = _a.id, transactionId = _a.transactionId;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-groups/".concat(id, "/transactions/").concat(transactionId),
|
|
8
|
+
method: 'DELETE',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.removeTransaction = removeTransaction;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ResendClosingDocumentDto } from '@escapenavigator/types/dist/order/resend-closing-document.dto';
|
|
2
|
+
import { OrderGroupRO } from '@escapenavigator/types/dist/order-group/order-group.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: ResendClosingDocumentDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = OrderGroupRO;
|
|
9
|
+
export declare const resendClosingDocument: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resendClosingDocument = void 0;
|
|
4
|
+
var resendClosingDocument = function (_a) {
|
|
5
|
+
var id = _a.id, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-groups/".concat(id, "/closing-document/resend"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.resendClosingDocument = resendClosingDocument;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateOrderPenaltyDto } from '@escapenavigator/types/dist/order-penalty/create-order-penalty.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
data: CreateOrderPenaltyDto;
|
|
6
6
|
};
|
|
7
|
-
type ResponseData =
|
|
7
|
+
type ResponseData = SuccessRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID штрафа */
|
|
4
4
|
type ParamsData = number;
|
|
5
|
-
type ResponseData =
|
|
5
|
+
type ResponseData = SuccessRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
1
|
import { AddProductToOrderDto } from '@escapenavigator/types/dist/product/add-product-to-order.dto';
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: AddProductToOrderDto;
|
|
7
7
|
};
|
|
8
|
-
type ResponseData =
|
|
8
|
+
type ResponseData = SuccessRO;
|
|
9
9
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
type ParamsData = {
|
|
4
4
|
id: number;
|
|
5
5
|
};
|
|
6
|
-
type ResponseData =
|
|
6
|
+
type ResponseData = SuccessRO;
|
|
7
7
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateOrderRefundPromocodeDto } from '@escapenavigator/types/dist/order-promocode/create-order-refund-promocode.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
data: CreateOrderRefundPromocodeDto;
|
|
6
6
|
};
|
|
7
|
-
type ResponseData =
|
|
7
|
+
type ResponseData = SuccessRO;
|
|
8
8
|
export declare const createRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CreateOrderPromocodeDto } from '@escapenavigator/types/dist/order-promocode/create-order-promocode.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
data: CreateOrderPromocodeDto;
|
|
6
6
|
};
|
|
7
|
-
type ResponseData =
|
|
7
|
+
type ResponseData = SuccessRO;
|
|
8
8
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
9
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID допродажи */
|
|
4
4
|
type ParamsData = number;
|
|
5
|
-
type ResponseData =
|
|
5
|
+
type ResponseData = SuccessRO;
|
|
6
6
|
export declare const removeRefund: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID допродажи */
|
|
4
4
|
type ParamsData = number;
|
|
5
|
-
type ResponseData =
|
|
5
|
+
type ResponseData = SuccessRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CreateOrderClosingDocumentDto } from '@escapenavigator/types/dist/order/create-order-closing-document.dto';
|
|
2
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
orderId: number;
|
|
6
|
+
data: CreateOrderClosingDocumentDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = OrderRO;
|
|
9
|
+
export declare const createOrderClosingDocument: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createOrderClosingDocument = void 0;
|
|
4
|
+
var createOrderClosingDocument = function (_a) {
|
|
5
|
+
var orderId = _a.orderId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-transactions/closing-document/".concat(orderId),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.createOrderClosingDocument = createOrderClosingDocument;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateOrderInvoiceDto } from '@escapenavigator/types/dist/order-transaction/create-order-invoice.dto';
|
|
2
1
|
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { CreateOrderInvoiceDto } from '@escapenavigator/types/dist/order-transaction/create-order-invoice.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
data: CreateOrderInvoiceDto;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateOrderPaymentDto } from '@escapenavigator/types/dist/order-transaction/create-order-payment.dto';
|
|
2
1
|
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { CreateOrderPaymentDto } from '@escapenavigator/types/dist/order-transaction/create-order-payment.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
data: CreateOrderPaymentDto;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateOrderPaymentDto } from '@escapenavigator/types/dist/order-transaction/create-order-payment.dto';
|
|
2
1
|
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { CreateOrderPaymentDto } from '@escapenavigator/types/dist/order-transaction/create-order-payment.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
data: CreateOrderPaymentDto;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateOrderStripeRefundDto } from '@escapenavigator/types/dist/order-transaction/create-order-stripe-refund.dto';
|
|
2
1
|
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { CreateOrderStripeRefundDto } from '@escapenavigator/types/dist/order-transaction/create-order-stripe-refund.dto';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
data: CreateOrderStripeRefundDto;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
import { createOrderClosingDocument } from './create-order-closing-document';
|
|
2
|
+
import { createOrderInvoice } from './create-order-invoice';
|
|
1
3
|
import { createOrderPayment } from './create-order-payment';
|
|
2
4
|
import { createOrderRefund } from './create-order-refund';
|
|
3
5
|
import { createOrderStripeRefund } from './create-order-stripe-refund';
|
|
4
|
-
import {
|
|
6
|
+
import { markInvoicePaid } from './mark-invoice-paid';
|
|
7
|
+
import { resendOrderClosingDocument } from './resend-order-closing-document';
|
|
5
8
|
type ApiDeclaration = {
|
|
6
9
|
createOrderPayment: typeof createOrderPayment;
|
|
7
10
|
createOrderRefund: typeof createOrderRefund;
|
|
8
11
|
createOrderStripeRefund: typeof createOrderStripeRefund;
|
|
9
12
|
createOrderInvoice: typeof createOrderInvoice;
|
|
13
|
+
createOrderClosingDocument: typeof createOrderClosingDocument;
|
|
14
|
+
resendOrderClosingDocument: typeof resendOrderClosingDocument;
|
|
15
|
+
markInvoicePaid: typeof markInvoicePaid;
|
|
10
16
|
};
|
|
11
17
|
export declare const orderTransactionsApiDeclaration: ApiDeclaration;
|
|
12
18
|
export {};
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.orderTransactionsApiDeclaration = void 0;
|
|
4
|
+
var create_order_closing_document_1 = require("./create-order-closing-document");
|
|
5
|
+
var create_order_invoice_1 = require("./create-order-invoice");
|
|
4
6
|
var create_order_payment_1 = require("./create-order-payment");
|
|
5
7
|
var create_order_refund_1 = require("./create-order-refund");
|
|
6
8
|
var create_order_stripe_refund_1 = require("./create-order-stripe-refund");
|
|
7
|
-
var
|
|
9
|
+
var mark_invoice_paid_1 = require("./mark-invoice-paid");
|
|
10
|
+
var resend_order_closing_document_1 = require("./resend-order-closing-document");
|
|
8
11
|
exports.orderTransactionsApiDeclaration = {
|
|
9
12
|
createOrderPayment: create_order_payment_1.createOrderPayment,
|
|
10
13
|
createOrderRefund: create_order_refund_1.createOrderRefund,
|
|
11
14
|
createOrderStripeRefund: create_order_stripe_refund_1.createOrderStripeRefund,
|
|
12
15
|
createOrderInvoice: create_order_invoice_1.createOrderInvoice,
|
|
16
|
+
createOrderClosingDocument: create_order_closing_document_1.createOrderClosingDocument,
|
|
17
|
+
resendOrderClosingDocument: resend_order_closing_document_1.resendOrderClosingDocument,
|
|
18
|
+
markInvoicePaid: mark_invoice_paid_1.markInvoicePaid,
|
|
13
19
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
type ParamsData = {
|
|
4
|
+
id: number;
|
|
5
|
+
};
|
|
6
|
+
type ResponseData = OrderRO;
|
|
7
|
+
export declare const markInvoicePaid: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.markInvoicePaid = void 0;
|
|
4
|
+
var markInvoicePaid = function (_a) {
|
|
5
|
+
var id = _a.id;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-transactions/invoice/".concat(id, "/mark-paid"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
exports.markInvoicePaid = markInvoicePaid;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { ResendClosingDocumentDto } from '@escapenavigator/types/dist/order/resend-closing-document.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
orderId: number;
|
|
6
|
+
data: ResendClosingDocumentDto;
|
|
7
|
+
};
|
|
8
|
+
type ResponseData = OrderRO;
|
|
9
|
+
export declare const resendOrderClosingDocument: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resendOrderClosingDocument = void 0;
|
|
4
|
+
var resendOrderClosingDocument = function (_a) {
|
|
5
|
+
var orderId = _a.orderId, data = _a.data;
|
|
6
|
+
return ({
|
|
7
|
+
url: "/order-transactions/closing-document/".concat(orderId, "/resend"),
|
|
8
|
+
method: 'POST',
|
|
9
|
+
data: data,
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.resendOrderClosingDocument = resendOrderClosingDocument;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CreateOrderUpsellingDto } from '@escapenavigator/types/dist/order-upselling/create-order-upselling.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: CreateOrderUpsellingDto;
|
|
7
7
|
};
|
|
8
|
-
type ResponseData =
|
|
8
|
+
type ResponseData = SuccessRO;
|
|
9
9
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
/** ID допродажи */
|
|
4
4
|
type ParamsData = number;
|
|
5
|
-
type ResponseData =
|
|
5
|
+
type ResponseData = SuccessRO;
|
|
6
6
|
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
7
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
type ParamsData = {
|
|
4
4
|
id: number;
|
|
5
5
|
};
|
|
6
|
-
type ResponseData =
|
|
6
|
+
type ResponseData = SuccessRO;
|
|
7
7
|
export declare const bookImmediately: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CancelOrderDto } from '@escapenavigator/types/dist/order/cancel-order.dto';
|
|
2
|
-
import {
|
|
2
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
3
3
|
import { ApiMethodDeclaration } from '..';
|
|
4
4
|
type ParamsData = {
|
|
5
5
|
id: number;
|
|
6
6
|
data: CancelOrderDto;
|
|
7
7
|
};
|
|
8
|
-
type ResponseData =
|
|
8
|
+
type ResponseData = SuccessRO;
|
|
9
9
|
export declare const cancel: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
10
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SuccessRO } from '@escapenavigator/types/dist/shared/success.ro';
|
|
2
2
|
import { ApiMethodDeclaration } from '..';
|
|
3
3
|
type ParamsData = {
|
|
4
4
|
id: number;
|
|
5
5
|
};
|
|
6
|
-
type ResponseData =
|
|
6
|
+
type ResponseData = SuccessRO;
|
|
7
7
|
export declare const confirm: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
8
|
export {};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { CreateOrderDto } from '@escapenavigator/types/dist/order/create-order.dto';
|
|
2
|
-
import { OrderRO } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
2
|
import { ApiMethodDeclaration } from '..';
|
|
4
3
|
type ParamsData = {
|
|
5
4
|
data: CreateOrderDto;
|
|
6
5
|
};
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Бэкенд возвращает не полный `OrderRO`, а лёгкий `{success, orderId}` —
|
|
8
|
+
* фронт использует `orderId` чтобы тут же дёрнуть `orders.getOne(orderId)`
|
|
9
|
+
* под slim `MODAL_RELATIONS` (см. `useOrderApi.refreshOrder`).
|
|
10
|
+
*/
|
|
11
|
+
type ResponseData = {
|
|
12
|
+
success: boolean;
|
|
13
|
+
orderId: number;
|
|
14
|
+
};
|
|
8
15
|
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
16
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DashboardOrderBaseRO } from '@escapenavigator/types/dist/order/dashboard/dashboard-order-base.ro';
|
|
2
|
+
import { DashboardOrderDetailsRO } from '@escapenavigator/types/dist/order/dashboard/dashboard-order-details.ro';
|
|
2
3
|
import { QueryDashboardOrderDto } from '@escapenavigator/types/dist/order/dashboard/query-dashboard-order.dto';
|
|
3
4
|
import { ApiMethodDeclaration } from '../..';
|
|
4
5
|
type ParamsData = QueryDashboardOrderDto;
|
|
5
|
-
type ResponseData =
|
|
6
|
+
type ResponseData = Array<DashboardOrderBaseRO & DashboardOrderDetailsRO>;
|
|
6
7
|
export declare const getOrdersForDashboard: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
8
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OrderCancelReasonEnum } from '@escapenavigator/types/dist/order/enum/order-cancel-reson.enum';
|
|
2
|
+
import { OrderCancelPreviewRo } from '@escapenavigator/types/dist/order/order-cancel-preview.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
cancelationType: OrderCancelReasonEnum;
|
|
7
|
+
returnCertificates: boolean;
|
|
8
|
+
cancelationAmount?: number;
|
|
9
|
+
};
|
|
10
|
+
type ResponseData = OrderCancelPreviewRo;
|
|
11
|
+
export declare const getCancelPreview: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.getCancelPreview = void 0;
|
|
15
|
+
var getCancelPreview = function (_a) {
|
|
16
|
+
var id = _a.id, cancelationType = _a.cancelationType, returnCertificates = _a.returnCertificates, cancelationAmount = _a.cancelationAmount;
|
|
17
|
+
return ({
|
|
18
|
+
url: "/orders/cancel-preview/".concat(id),
|
|
19
|
+
method: 'GET',
|
|
20
|
+
params: __assign({ cancelationType: cancelationType, returnCertificates: returnCertificates }, (cancelationAmount !== undefined && cancelationAmount !== null
|
|
21
|
+
? { cancelationAmount: cancelationAmount }
|
|
22
|
+
: {})),
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
exports.getCancelPreview = getCancelPreview;
|