@escapenavigator/services 1.0.17 → 1.1.6
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/admins-api/get-profile-token.d.ts +8 -0
- package/dist/api/admins-api/get-profile-token.js +8 -1
- package/dist/api/admins-api/index.d.ts +12 -0
- package/dist/api/admins-api/index.js +13 -1
- package/dist/api/admins-api/login.d.ts +9 -0
- package/dist/api/admins-api/login.js +9 -1
- package/dist/api/admins-api/logout.d.ts +5 -0
- package/dist/api/admins-api/logout.js +8 -1
- package/dist/api/admins-api/me.d.ts +5 -0
- package/dist/api/admins-api/me.js +8 -1
- package/dist/api/agb-api/get-one.d.ts +7 -0
- package/dist/api/agb-api/get-one.js +8 -1
- package/dist/api/agb-api/index.d.ts +8 -0
- package/dist/api/agb-api/index.js +9 -1
- package/dist/api/agb-api/update.d.ts +9 -0
- package/dist/api/agb-api/update.js +9 -1
- package/dist/api/cashboxes-api/create.d.ts +9 -0
- package/dist/api/cashboxes-api/create.js +9 -1
- package/dist/api/cashboxes-api/get-one.d.ts +6 -0
- package/dist/api/cashboxes-api/get-one.js +8 -1
- package/dist/api/cashboxes-api/index.d.ts +14 -0
- package/dist/api/cashboxes-api/index.js +15 -1
- package/dist/api/cashboxes-api/query.d.ts +6 -0
- package/dist/api/cashboxes-api/query.js +8 -1
- package/dist/api/cashboxes-api/recover.d.ts +7 -0
- package/dist/api/cashboxes-api/recover.js +8 -1
- package/dist/api/cashboxes-api/remove.d.ts +7 -0
- package/dist/api/cashboxes-api/remove.js +8 -1
- package/dist/api/cashboxes-api/update.d.ts +10 -0
- package/dist/api/cashboxes-api/update.js +9 -0
- package/dist/api/certificates-api/create.d.ts +9 -0
- package/dist/api/certificates-api/create.js +9 -1
- package/dist/api/certificates-api/get-one.d.ts +7 -0
- package/dist/api/certificates-api/get-one.js +8 -1
- package/dist/api/certificates-api/index.d.ts +15 -0
- package/dist/api/certificates-api/index.js +17 -1
- package/dist/api/certificates-api/query.d.ts +6 -0
- package/dist/api/certificates-api/query.js +8 -1
- package/dist/api/certificates-api/recover.d.ts +7 -0
- package/dist/api/certificates-api/recover.js +8 -1
- package/dist/api/certificates-api/remove.d.ts +7 -0
- package/dist/api/certificates-api/remove.js +8 -1
- package/dist/api/certificates-api/update.d.ts +10 -0
- package/dist/api/certificates-api/update.js +9 -1
- package/dist/api/certificatesales-api/annul.d.ts +10 -0
- package/dist/api/certificatesales-api/annul.js +9 -1
- package/dist/api/certificatesales-api/create.d.ts +9 -0
- package/dist/api/certificatesales-api/create.js +9 -1
- package/dist/api/certificatesales-api/get-one-by-code.d.ts +7 -0
- package/dist/api/certificatesales-api/get-one-by-code.js +8 -0
- package/dist/api/certificatesales-api/get-one.d.ts +7 -0
- package/dist/api/certificatesales-api/get-one.js +8 -1
- package/dist/api/certificatesales-api/index.d.ts +22 -0
- package/dist/api/certificatesales-api/index.js +23 -1
- package/dist/api/certificatesales-api/paginate.d.ts +7 -0
- package/dist/api/certificatesales-api/paginate.js +9 -0
- package/dist/api/certificatesales-api/query.d.ts +7 -0
- package/dist/api/certificatesales-api/query.js +9 -1
- package/dist/api/certificatesales-api/update-expire-date.d.ts +10 -0
- package/dist/api/certificatesales-api/update-expire-date.js +9 -1
- package/dist/api/certificatesales-api/update-status.d.ts +10 -0
- package/dist/api/certificatesales-api/update-status.js +9 -1
- package/dist/api/certificatesales-api/update.d.ts +10 -0
- package/dist/api/certificatesales-api/update.js +9 -1
- package/dist/api/cities-api/get-cities-by-country.d.ts +7 -0
- package/dist/api/cities-api/get-cities-by-country.js +8 -0
- package/dist/api/cities-api/get-city-by-ip.d.ts +6 -0
- package/dist/api/cities-api/get-city-by-ip.js +8 -0
- package/dist/api/cities-api/get-city-by-slug.d.ts +6 -0
- package/dist/api/cities-api/get-city-by-slug.js +8 -0
- package/dist/api/cities-api/get-one.d.ts +6 -0
- package/dist/api/cities-api/get-one.js +8 -0
- package/dist/api/cities-api/get-popular-cities-near.d.ts +6 -0
- package/dist/api/cities-api/get-popular-cities-near.js +8 -0
- package/dist/api/cities-api/index.d.ts +18 -0
- package/dist/api/cities-api/index.js +19 -0
- package/dist/api/cities-api/query.d.ts +7 -0
- package/dist/api/cities-api/query.js +9 -0
- package/dist/api/cities-api/remove.d.ts +7 -0
- package/dist/api/cities-api/remove.js +8 -0
- package/dist/api/cities-api/update.d.ts +10 -0
- package/dist/api/cities-api/update.js +9 -0
- package/dist/api/clients-api/create-from-widget.d.ts +9 -0
- package/dist/api/clients-api/create-from-widget.js +9 -0
- package/dist/api/clients-api/create.d.ts +9 -0
- package/dist/api/clients-api/create.js +9 -1
- package/dist/api/clients-api/get-all.d.ts +6 -0
- package/dist/api/clients-api/get-all.js +9 -0
- package/dist/api/clients-api/get-one.d.ts +7 -0
- package/dist/api/clients-api/get-one.js +8 -1
- package/dist/api/clients-api/index.d.ts +16 -0
- package/dist/api/clients-api/index.js +17 -1
- package/dist/api/clients-api/query.d.ts +7 -0
- package/dist/api/clients-api/query.js +9 -1
- package/dist/api/clients-api/update.d.ts +10 -0
- package/dist/api/clients-api/update.js +9 -1
- package/dist/api/emails-api/index.d.ts +6 -0
- package/dist/api/emails-api/index.js +7 -0
- package/dist/api/emails-api/query.d.ts +7 -0
- package/dist/api/emails-api/query.js +9 -0
- package/dist/api/financeitems-api/create.d.ts +9 -0
- package/dist/api/financeitems-api/create.js +9 -1
- package/dist/api/financeitems-api/get-all.d.ts +6 -0
- package/dist/api/financeitems-api/get-all.js +9 -0
- package/dist/api/financeitems-api/get-one.d.ts +7 -0
- package/dist/api/financeitems-api/get-one.js +8 -1
- package/dist/api/financeitems-api/index.d.ts +14 -0
- package/dist/api/financeitems-api/index.js +15 -1
- package/dist/api/financeitems-api/query.d.ts +6 -0
- package/dist/api/financeitems-api/query.js +9 -1
- package/dist/api/financeitems-api/remove.d.ts +7 -0
- package/dist/api/financeitems-api/remove.js +8 -1
- package/dist/api/images-api/create.d.ts +9 -0
- package/dist/api/images-api/create.js +9 -1
- package/dist/api/images-api/index.d.ts +6 -0
- package/dist/api/images-api/index.js +7 -1
- package/dist/api/index.d.ts +27 -0
- package/dist/api/index.js +45 -1
- package/dist/api/init-client-api.d.ts +62 -0
- package/dist/api/init-client-api.js +67 -1
- package/dist/api/locations-api/create.d.ts +9 -0
- package/dist/api/locations-api/create.js +9 -1
- package/dist/api/locations-api/get-by-coordinates.d.ts +7 -0
- package/dist/api/locations-api/get-by-coordinates.js +8 -0
- package/dist/api/locations-api/get-one.d.ts +7 -0
- package/dist/api/locations-api/get-one.js +8 -1
- package/dist/api/locations-api/index.d.ts +18 -0
- package/dist/api/locations-api/index.js +19 -1
- package/dist/api/locations-api/query.d.ts +6 -0
- package/dist/api/locations-api/query.js +9 -1
- package/dist/api/locations-api/recover.d.ts +7 -0
- package/dist/api/locations-api/recover.js +8 -1
- package/dist/api/locations-api/remove.d.ts +7 -0
- package/dist/api/locations-api/remove.js +8 -1
- package/dist/api/locations-api/update.d.ts +10 -0
- package/dist/api/locations-api/update.js +9 -1
- package/dist/api/order-discounts-api/create.d.ts +9 -0
- package/dist/api/order-discounts-api/create.js +9 -1
- package/dist/api/order-discounts-api/index.d.ts +8 -0
- package/dist/api/order-discounts-api/index.js +9 -1
- package/dist/api/order-discounts-api/remove.d.ts +7 -0
- package/dist/api/order-discounts-api/remove.js +8 -1
- package/dist/api/order-penalties-api/create.d.ts +9 -0
- package/dist/api/order-penalties-api/create.js +9 -1
- package/dist/api/order-penalties-api/index.d.ts +8 -0
- package/dist/api/order-penalties-api/index.js +9 -1
- package/dist/api/order-penalties-api/remove.d.ts +7 -0
- package/dist/api/order-penalties-api/remove.js +8 -1
- package/dist/api/order-upsellings-api/create.d.ts +9 -0
- package/dist/api/order-upsellings-api/create.js +9 -1
- package/dist/api/order-upsellings-api/index.d.ts +8 -0
- package/dist/api/order-upsellings-api/index.js +9 -1
- package/dist/api/order-upsellings-api/remove.d.ts +7 -0
- package/dist/api/order-upsellings-api/remove.js +8 -1
- package/dist/api/orders-api/add-certificate.d.ts +9 -0
- package/dist/api/orders-api/add-certificate.js +9 -1
- package/dist/api/orders-api/create-from-widget.d.ts +8 -0
- package/dist/api/orders-api/create-from-widget.js +9 -1
- package/dist/api/orders-api/create.d.ts +9 -0
- package/dist/api/orders-api/create.js +9 -1
- package/dist/api/orders-api/get-one.d.ts +7 -0
- package/dist/api/orders-api/get-one.js +8 -1
- package/dist/api/orders-api/index.d.ts +26 -0
- package/dist/api/orders-api/index.js +27 -1
- package/dist/api/orders-api/paginate.d.ts +7 -0
- package/dist/api/orders-api/paginate.js +9 -0
- package/dist/api/orders-api/query.d.ts +7 -0
- package/dist/api/orders-api/query.js +9 -1
- package/dist/api/orders-api/remove-certificate.d.ts +9 -0
- package/dist/api/orders-api/remove-certificate.js +9 -1
- package/dist/api/orders-api/remove.d.ts +7 -0
- package/dist/api/orders-api/remove.js +8 -1
- package/dist/api/orders-api/update-slot.d.ts +10 -0
- package/dist/api/orders-api/update-slot.js +9 -1
- package/dist/api/orders-api/update-status.d.ts +10 -0
- package/dist/api/orders-api/update-status.js +9 -1
- package/dist/api/orders-api/update.d.ts +10 -0
- package/dist/api/orders-api/update.js +9 -1
- package/dist/api/partners-api/create.d.ts +9 -0
- package/dist/api/partners-api/create.js +9 -1
- package/dist/api/partners-api/get-all.d.ts +6 -0
- package/dist/api/partners-api/get-all.js +9 -0
- package/dist/api/partners-api/get-one.d.ts +7 -0
- package/dist/api/partners-api/get-one.js +8 -1
- package/dist/api/partners-api/index.d.ts +18 -0
- package/dist/api/partners-api/index.js +19 -1
- package/dist/api/partners-api/query.d.ts +6 -0
- package/dist/api/partners-api/query.js +9 -1
- package/dist/api/partners-api/recover.d.ts +7 -0
- package/dist/api/partners-api/recover.js +8 -1
- package/dist/api/partners-api/remove.d.ts +7 -0
- package/dist/api/partners-api/remove.js +8 -1
- package/dist/api/partners-api/update.d.ts +10 -0
- package/dist/api/partners-api/update.js +9 -1
- package/dist/api/profiles-api/create.d.ts +9 -0
- package/dist/api/profiles-api/create.js +9 -1
- package/dist/api/profiles-api/current.d.ts +7 -0
- package/dist/api/profiles-api/current.js +8 -0
- package/dist/api/profiles-api/get-by-slug.d.ts +7 -0
- package/dist/api/profiles-api/get-by-slug.js +8 -0
- package/dist/api/profiles-api/get-one.d.ts +7 -0
- package/dist/api/profiles-api/get-one.js +8 -1
- package/dist/api/profiles-api/index.d.ts +18 -0
- package/dist/api/profiles-api/index.js +19 -1
- package/dist/api/profiles-api/query.d.ts +8 -0
- package/dist/api/profiles-api/query.js +9 -1
- package/dist/api/profiles-api/remove.d.ts +7 -0
- package/dist/api/profiles-api/remove.js +8 -1
- package/dist/api/profiles-api/update-current.d.ts +9 -0
- package/dist/api/profiles-api/update-current.js +9 -0
- package/dist/api/profiles-api/update.d.ts +10 -0
- package/dist/api/profiles-api/update.js +9 -1
- package/dist/api/questrooms-api/create.d.ts +9 -0
- package/dist/api/questrooms-api/create.js +9 -1
- package/dist/api/questrooms-api/get-by-coordinates.d.ts +7 -0
- package/dist/api/questrooms-api/get-by-coordinates.js +8 -0
- package/dist/api/questrooms-api/get-by-location.d.ts +7 -0
- package/dist/api/questrooms-api/get-by-location.js +8 -0
- package/dist/api/questrooms-api/get-by-slug.d.ts +7 -0
- package/dist/api/questrooms-api/get-by-slug.js +8 -0
- package/dist/api/questrooms-api/get-by-title.d.ts +7 -0
- package/dist/api/questrooms-api/get-by-title.js +8 -0
- package/dist/api/questrooms-api/get-one.d.ts +7 -0
- package/dist/api/questrooms-api/get-one.js +8 -1
- package/dist/api/questrooms-api/index.d.ts +22 -0
- package/dist/api/questrooms-api/index.js +23 -1
- package/dist/api/questrooms-api/query.d.ts +6 -0
- package/dist/api/questrooms-api/query.js +9 -1
- package/dist/api/questrooms-api/recover.d.ts +7 -0
- package/dist/api/questrooms-api/recover.js +8 -1
- package/dist/api/questrooms-api/remove.d.ts +7 -0
- package/dist/api/questrooms-api/remove.js +8 -1
- package/dist/api/questrooms-api/update.d.ts +10 -0
- package/dist/api/questrooms-api/update.js +9 -1
- package/dist/api/registration-requests-api/create.d.ts +9 -0
- package/dist/api/registration-requests-api/create.js +9 -0
- package/dist/api/registration-requests-api/get-one.d.ts +7 -0
- package/dist/api/registration-requests-api/get-one.js +8 -0
- package/dist/api/registration-requests-api/index.d.ts +14 -0
- package/dist/api/registration-requests-api/index.js +15 -0
- package/dist/api/registration-requests-api/query.d.ts +8 -0
- package/dist/api/registration-requests-api/query.js +9 -0
- package/dist/api/registration-requests-api/remove.d.ts +7 -0
- package/dist/api/registration-requests-api/remove.js +8 -0
- package/dist/api/registration-requests-api/update.d.ts +10 -0
- package/dist/api/registration-requests-api/update.js +9 -0
- package/dist/api/roles-api/create.d.ts +9 -0
- package/dist/api/roles-api/create.js +9 -1
- package/dist/api/roles-api/get-one.d.ts +7 -0
- package/dist/api/roles-api/get-one.js +8 -1
- package/dist/api/roles-api/index.d.ts +14 -0
- package/dist/api/roles-api/index.js +15 -1
- package/dist/api/roles-api/query.d.ts +6 -0
- package/dist/api/roles-api/query.js +9 -1
- package/dist/api/roles-api/remove.d.ts +7 -0
- package/dist/api/roles-api/remove.js +8 -1
- package/dist/api/roles-api/update.d.ts +10 -0
- package/dist/api/roles-api/update.js +9 -1
- package/dist/api/slot-templates-api/get.d.ts +8 -0
- package/dist/api/slot-templates-api/get.js +8 -0
- package/dist/api/slot-templates-api/index.d.ts +8 -0
- package/dist/api/slot-templates-api/index.js +9 -0
- package/dist/api/slot-templates-api/update.d.ts +12 -0
- package/dist/api/slot-templates-api/update.js +9 -0
- package/dist/api/slots-api/add-breaks.d.ts +9 -0
- package/dist/api/slots-api/add-breaks.js +9 -0
- package/dist/api/slots-api/add-or-remove-break.d.ts +11 -0
- package/dist/api/slots-api/add-or-remove-break.js +9 -0
- package/dist/api/slots-api/calendar.d.ts +7 -0
- package/dist/api/slots-api/calendar.js +9 -0
- package/dist/api/slots-api/create.d.ts +9 -0
- package/dist/api/slots-api/create.js +9 -0
- package/dist/api/slots-api/daily.d.ts +7 -0
- package/dist/api/slots-api/daily.js +9 -0
- package/dist/api/slots-api/index.d.ts +20 -0
- package/dist/api/slots-api/index.js +21 -1
- package/dist/api/slots-api/remove-breaks.d.ts +9 -0
- package/dist/api/slots-api/remove-breaks.js +9 -0
- package/dist/api/slots-api/remove.d.ts +7 -0
- package/dist/api/slots-api/remove.js +8 -0
- package/dist/api/slots-api/weekly.d.ts +7 -0
- package/dist/api/slots-api/weekly.js +9 -0
- package/dist/api/support/create.d.ts +9 -0
- package/dist/api/support/create.js +9 -1
- package/dist/api/support/index.d.ts +6 -0
- package/dist/api/support/index.js +7 -1
- package/dist/api/tariffs-api/create.d.ts +9 -0
- package/dist/api/tariffs-api/create.js +9 -1
- package/dist/api/tariffs-api/get-one.d.ts +7 -0
- package/dist/api/tariffs-api/get-one.js +8 -1
- package/dist/api/tariffs-api/index.d.ts +14 -0
- package/dist/api/tariffs-api/index.js +15 -1
- package/dist/api/tariffs-api/query.d.ts +6 -0
- package/dist/api/tariffs-api/query.js +9 -1
- package/dist/api/tariffs-api/remove.d.ts +7 -0
- package/dist/api/tariffs-api/remove.js +8 -1
- package/dist/api/tariffs-api/update.d.ts +10 -0
- package/dist/api/tariffs-api/update.js +9 -1
- package/dist/api/transactions-api/create-certificate-payment.d.ts +9 -0
- package/dist/api/transactions-api/create-certificate-payment.js +9 -1
- package/dist/api/transactions-api/create-certificate-refund.d.ts +9 -0
- package/dist/api/transactions-api/create-certificate-refund.js +9 -1
- package/dist/api/transactions-api/create-order-payment.d.ts +9 -0
- package/dist/api/transactions-api/create-order-payment.js +9 -1
- package/dist/api/transactions-api/create-order-refund.d.ts +9 -0
- package/dist/api/transactions-api/create-order-refund.js +9 -1
- package/dist/api/transactions-api/create.d.ts +9 -0
- package/dist/api/transactions-api/create.js +9 -1
- package/dist/api/transactions-api/get-one.d.ts +7 -0
- package/dist/api/transactions-api/get-one.js +8 -1
- package/dist/api/transactions-api/index.d.ts +30 -0
- package/dist/api/transactions-api/index.js +31 -1
- package/dist/api/transactions-api/query.d.ts +7 -0
- package/dist/api/transactions-api/query.js +9 -1
- package/dist/api/transactions-api/remove-certificate-payment.d.ts +7 -0
- package/dist/api/transactions-api/remove-certificate-payment.js +8 -1
- package/dist/api/transactions-api/remove-certificate-refund.d.ts +7 -0
- package/dist/api/transactions-api/remove-certificate-refund.js +8 -1
- package/dist/api/transactions-api/remove-order-payment.d.ts +7 -0
- package/dist/api/transactions-api/remove-order-payment.js +8 -1
- package/dist/api/transactions-api/remove-order-refund.d.ts +7 -0
- package/dist/api/transactions-api/remove-order-refund.js +8 -1
- package/dist/api/transactions-api/remove.d.ts +7 -0
- package/dist/api/transactions-api/remove.js +8 -1
- package/dist/api/transactions-api/update.d.ts +10 -0
- package/dist/api/transactions-api/update.js +9 -1
- package/dist/api/uploads-api/index.d.ts +6 -0
- package/dist/api/uploads-api/index.js +7 -0
- package/dist/api/uploads-api/upload-image.d.ts +9 -0
- package/dist/api/uploads-api/upload-image.js +13 -0
- package/dist/api/upsellings-api/create.d.ts +9 -0
- package/dist/api/upsellings-api/create.js +9 -0
- package/dist/api/upsellings-api/get-one.d.ts +7 -0
- package/dist/api/upsellings-api/get-one.js +8 -0
- package/dist/api/upsellings-api/index.d.ts +14 -0
- package/dist/api/upsellings-api/index.js +15 -0
- package/dist/api/upsellings-api/query.d.ts +6 -0
- package/dist/api/upsellings-api/query.js +9 -0
- package/dist/api/upsellings-api/remove.d.ts +7 -0
- package/dist/api/upsellings-api/remove.js +8 -0
- package/dist/api/upsellings-api/update.d.ts +10 -0
- package/dist/api/upsellings-api/update.js +9 -0
- package/dist/api/user-messages-api/create.d.ts +9 -0
- package/dist/api/user-messages-api/create.js +9 -0
- package/dist/api/user-messages-api/get-one.d.ts +7 -0
- package/dist/api/user-messages-api/get-one.js +8 -0
- package/dist/api/user-messages-api/index.d.ts +12 -0
- package/dist/api/user-messages-api/index.js +13 -0
- package/dist/api/user-messages-api/query.d.ts +7 -0
- package/dist/api/user-messages-api/query.js +9 -0
- package/dist/api/user-messages-api/remove.d.ts +7 -0
- package/dist/api/user-messages-api/remove.js +8 -0
- package/dist/api/users-api/check-token.d.ts +7 -0
- package/dist/api/users-api/check-token.js +8 -1
- package/dist/api/users-api/create.d.ts +9 -0
- package/dist/api/users-api/create.js +9 -0
- package/dist/api/users-api/current-update-password.d.ts +9 -0
- package/dist/api/users-api/current-update-password.js +9 -0
- package/dist/api/users-api/current-update.d.ts +9 -0
- package/dist/api/users-api/current-update.js +9 -0
- package/dist/api/users-api/get-one.d.ts +7 -0
- package/dist/api/users-api/get-one.js +8 -1
- package/dist/api/users-api/index.d.ts +34 -0
- package/dist/api/users-api/index.js +35 -1
- package/dist/api/users-api/login.d.ts +9 -0
- package/dist/api/users-api/login.js +9 -1
- package/dist/api/users-api/logout.d.ts +6 -0
- package/dist/api/users-api/logout.js +8 -1
- package/dist/api/users-api/me.d.ts +6 -0
- package/dist/api/users-api/me.js +8 -1
- package/dist/api/users-api/query.d.ts +6 -0
- package/dist/api/users-api/query.js +9 -1
- package/dist/api/users-api/recover.d.ts +7 -0
- package/dist/api/users-api/recover.js +8 -1
- package/dist/api/users-api/remove.d.ts +7 -0
- package/dist/api/users-api/remove.js +8 -1
- package/dist/api/users-api/send-invite.d.ts +6 -0
- package/dist/api/users-api/send-invite.js +8 -1
- package/dist/api/users-api/send-recover-link.d.ts +8 -0
- package/dist/api/users-api/send-recover-link.js +8 -1
- package/dist/api/users-api/update-password.d.ts +10 -0
- package/dist/api/users-api/update-password.js +9 -1
- package/dist/api/users-api/update.d.ts +10 -0
- package/dist/api/users-api/update.js +9 -1
- package/dist/api/widgets-api/create.d.ts +9 -0
- package/dist/api/widgets-api/create.js +9 -1
- package/dist/api/widgets-api/get-info.d.ts +7 -0
- package/dist/api/widgets-api/get-info.js +8 -1
- package/dist/api/widgets-api/get-one.d.ts +7 -0
- package/dist/api/widgets-api/get-one.js +8 -1
- package/dist/api/widgets-api/index.d.ts +16 -0
- package/dist/api/widgets-api/index.js +17 -1
- package/dist/api/widgets-api/query.d.ts +6 -0
- package/dist/api/widgets-api/query.js +9 -1
- package/dist/api/widgets-api/remove.d.ts +7 -0
- package/dist/api/widgets-api/remove.js +8 -1
- package/dist/api/widgets-api/update.d.ts +10 -0
- package/dist/api/widgets-api/update.js +9 -1
- package/dist/api/widgets-openapi/widget-daily.d.ts +7 -0
- package/dist/api/widgets-openapi/widget-daily.js +9 -0
- package/dist/api/widgets-openapi/widget-weekly.d.ts +7 -0
- package/dist/api/widgets-openapi/widget-weekly.js +9 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +13 -0
- package/dist/hooks/use-api-method/actions/creators/api.d.ts +18 -0
- package/dist/hooks/use-api-method/actions/creators/api.js +22 -0
- package/dist/hooks/use-api-method/actions/types/api.d.ts +5 -0
- package/dist/hooks/use-api-method/actions/types/api.js +9 -0
- package/dist/hooks/use-api-method/actions/types.d.ts +6 -0
- package/dist/hooks/use-api-method/actions/types.js +2 -0
- package/dist/hooks/use-api-method/index.d.ts +24 -0
- package/dist/hooks/use-api-method/index.js +67 -0
- package/dist/hooks/use-api-method/reducers/api.d.ts +23 -0
- package/dist/hooks/use-api-method/reducers/api.js +24 -0
- package/dist/utils/convert-to-options.d.ts +13 -0
- package/dist/utils/convert-to-options.js +8 -1
- package/dist/utils/define-status.d.ts +14 -0
- package/dist/utils/define-status.js +57 -1
- package/dist/utils/enum-to-options.d.ts +5 -0
- package/dist/utils/enum-to-options.js +8 -0
- package/dist/utils/get-handled-error-message.d.ts +1 -0
- package/dist/utils/get-handled-error-message.js +5 -0
- package/dist/utils/get-many.d.ts +1 -0
- package/dist/utils/get-many.js +12 -1
- package/dist/utils/get-one.d.ts +1 -0
- package/dist/utils/get-one.js +12 -1
- package/dist/utils/get-service-error.d.ts +18 -0
- package/dist/utils/get-service-error.js +66 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.js +15 -0
- package/dist/utils/is-axios-error.d.ts +6 -0
- package/dist/utils/is-axios-error.js +11 -0
- package/dist/utils/is-network-error.d.ts +5 -0
- package/dist/utils/is-network-error.js +18 -0
- package/dist/utils/redirect.d.ts +1 -0
- package/dist/utils/redirect.js +7 -0
- package/dist/utils/serialize-record.d.ts +1 -0
- package/dist/utils/serialize-record.js +8 -0
- package/dist/utils/validate-by-dto.d.ts +1 -0
- package/dist/utils/validate-by-dto.js +16 -0
- package/package.json +10 -45
- package/dist/api/certificatesales-api/recover.js +0 -1
- package/dist/api/certificatesales-api/remove.js +0 -1
- package/dist/api/clients-api/remove.js +0 -1
- package/dist/api/financeitems-api/recover.js +0 -1
- package/dist/api/options-api/create.js +0 -1
- package/dist/api/options-api/get-one.js +0 -1
- package/dist/api/options-api/index.js +0 -1
- package/dist/api/options-api/query.js +0 -1
- package/dist/api/options-api/recover.js +0 -1
- package/dist/api/options-api/remove.js +0 -1
- package/dist/api/options-api/update.js +0 -1
- package/dist/api/order-comments-api/create.js +0 -1
- package/dist/api/order-comments-api/index.js +0 -1
- package/dist/api/order-comments-api/remove.js +0 -1
- package/dist/api/orders-api/update-players.js +0 -1
- package/dist/api/roles-api/recover.js +0 -1
- package/dist/api/slots-api/daily-schedule.js +0 -1
- package/dist/api/tariffs-api/recover.js +0 -1
- package/dist/api/widgets-api/recover.js +0 -1
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.remove = void 0;
|
|
4
|
+
const remove = (id) => ({
|
|
5
|
+
url: `/financeitems/${id}`,
|
|
6
|
+
method: 'DELETE',
|
|
7
|
+
});
|
|
8
|
+
exports.remove = remove;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateImageDto } from '@escapenavigator/types/dist/image/create-image.dto';
|
|
2
|
+
import { ImageResponseObject } from '@escapenavigator/types/dist/image/image.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateImageDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = ImageResponseObject;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
const create = ({ data }) => ({
|
|
5
|
+
url: '/images',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data,
|
|
8
|
+
});
|
|
9
|
+
exports.create = create;
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.imagesApiDeclaration = void 0;
|
|
4
|
+
const create_1 = require("./create");
|
|
5
|
+
exports.imagesApiDeclaration = {
|
|
6
|
+
create: create_1.create,
|
|
7
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AxiosPromise, AxiosRequestConfig } from 'axios';
|
|
2
|
+
export declare type ErrorData = {
|
|
3
|
+
errorId: string;
|
|
4
|
+
application: string;
|
|
5
|
+
errorCode: string;
|
|
6
|
+
message: string;
|
|
7
|
+
originalErrorCode?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function initApi<T>(apiDeclaration: ApiDeclaration<T>, baseURL: string): Api<T>;
|
|
10
|
+
export declare type ApiMethodDeclaration<ParamsData, ResponseData, DisplayName = ''> = {
|
|
11
|
+
(params: ParamsData): AxiosRequestConfig;
|
|
12
|
+
displayName?: DisplayName;
|
|
13
|
+
};
|
|
14
|
+
export declare type ApiDeclaration<T> = {
|
|
15
|
+
[P in keyof T]: T[P];
|
|
16
|
+
};
|
|
17
|
+
export declare type Api<T> = {
|
|
18
|
+
[P in keyof T]: MakeServiceFromServiceDeclaration<T[P], P>;
|
|
19
|
+
};
|
|
20
|
+
export declare type MakeServiceFromServiceDeclaration<T, DisplayName> = {
|
|
21
|
+
(params: ExtractApiMethodParamsType<T>): AxiosPromise<ExtractApiMethodResponseDataType<T>>;
|
|
22
|
+
displayName: DisplayName;
|
|
23
|
+
};
|
|
24
|
+
declare type ExtractApiMethodResponseDataType<T> = T extends ApiMethodDeclaration<infer P, infer D> ? D : any;
|
|
25
|
+
declare type ExtractApiMethodParamsType<T> = T extends ApiMethodDeclaration<infer P, infer D> ? P : any;
|
|
26
|
+
export declare type ExtendServiceParams<T> = ApiMethodDeclaration<ExtractApiMethodParamsType<T>, ExtractApiMethodResponseDataType<T>>;
|
|
27
|
+
export {};
|
package/dist/api/index.js
CHANGED
|
@@ -1 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.initApi = void 0;
|
|
16
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
17
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
18
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
19
|
+
const axios_1 = __importDefault(require("axios"));
|
|
20
|
+
function initApi(apiDeclaration, baseURL) {
|
|
21
|
+
const api = {};
|
|
22
|
+
// Wrap with axios and apply config extenders
|
|
23
|
+
Object.keys(apiDeclaration).forEach((key) => {
|
|
24
|
+
api[key] = (params = undefined) => __awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
let axiosConfig = apiDeclaration[key](params);
|
|
26
|
+
axiosConfig = Object.assign(Object.assign({}, axiosConfig), { baseURL, withCredentials: true });
|
|
27
|
+
// console.log({ axiosConfig });
|
|
28
|
+
try {
|
|
29
|
+
const result = yield (0, axios_1.default)(axiosConfig);
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
const e = error;
|
|
34
|
+
if (e.code === 401) {
|
|
35
|
+
document.cookie = 'user=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
36
|
+
document.cookie = 'token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';
|
|
37
|
+
}
|
|
38
|
+
throw error;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
api[key].displayName = key;
|
|
42
|
+
});
|
|
43
|
+
return api;
|
|
44
|
+
}
|
|
45
|
+
exports.initApi = initApi;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { adminsApiDeclaration } from './admins-api';
|
|
2
|
+
import { agbApiDeclaration } from './agb-api';
|
|
3
|
+
import { cashboxesApiDeclaration } from './cashboxes-api';
|
|
4
|
+
import { certificatesApiDeclaration } from './certificates-api';
|
|
5
|
+
import { certificateSalesApiDeclaration } from './certificatesales-api';
|
|
6
|
+
import { clientsApiDeclaration } from './clients-api';
|
|
7
|
+
import { emailsApiDeclaration } from './emails-api';
|
|
8
|
+
import { financeItemsApiDeclaration } from './financeitems-api';
|
|
9
|
+
import { imagesApiDeclaration } from './images-api';
|
|
10
|
+
import { locationsApiDeclaration } from './locations-api';
|
|
11
|
+
import { orderDiscountsApiDeclaration } from './order-discounts-api';
|
|
12
|
+
import { orderPenaltiesApiDeclaration } from './order-penalties-api';
|
|
13
|
+
import { orderUpsellngsApiDeclaration } from './order-upsellings-api';
|
|
14
|
+
import { ordersApiDeclaration } from './orders-api';
|
|
15
|
+
import { partnersApiDeclaration } from './partners-api';
|
|
16
|
+
import { profilesApiDeclaration } from './profiles-api';
|
|
17
|
+
import { questroomsApiDeclaration } from './questrooms-api';
|
|
18
|
+
import { registrationRequestsApiDeclaration } from './registration-requests-api';
|
|
19
|
+
import { rolesApiDeclaration } from './roles-api';
|
|
20
|
+
import { slotTemplatesApiDeclaration } from './slot-templates-api';
|
|
21
|
+
import { slotsApiDeclaration } from './slots-api';
|
|
22
|
+
import { supportApiDeclaration } from './support';
|
|
23
|
+
import { tariffsApiDeclaration } from './tariffs-api';
|
|
24
|
+
import { transactionsApiDeclaration } from './transactions-api';
|
|
25
|
+
import { uploadsApiDeclaration } from './uploads-api';
|
|
26
|
+
import { upsellingsApiDeclaration } from './upsellings-api';
|
|
27
|
+
import { userMessagesApiDeclaration } from './user-messages-api';
|
|
28
|
+
import { usersApiDeclaration } from './users-api';
|
|
29
|
+
import { widgetsApiDeclaration } from './widgets-api';
|
|
30
|
+
import { Api } from '.';
|
|
31
|
+
export declare type InitApiDeclaration = {
|
|
32
|
+
admins: Api<typeof adminsApiDeclaration>;
|
|
33
|
+
uploads: Api<typeof uploadsApiDeclaration>;
|
|
34
|
+
emails: Api<typeof emailsApiDeclaration>;
|
|
35
|
+
userMessages: Api<typeof userMessagesApiDeclaration>;
|
|
36
|
+
orderDiscounts: Api<typeof orderDiscountsApiDeclaration>;
|
|
37
|
+
orderPenalties: Api<typeof orderPenaltiesApiDeclaration>;
|
|
38
|
+
orderUpsellngs: Api<typeof orderUpsellngsApiDeclaration>;
|
|
39
|
+
slots: Api<typeof slotsApiDeclaration>;
|
|
40
|
+
slotTemplates: Api<typeof slotTemplatesApiDeclaration>;
|
|
41
|
+
agbs: Api<typeof agbApiDeclaration>;
|
|
42
|
+
orders: Api<typeof ordersApiDeclaration>;
|
|
43
|
+
cashboxes: Api<typeof cashboxesApiDeclaration>;
|
|
44
|
+
certificates: Api<typeof certificatesApiDeclaration>;
|
|
45
|
+
financeItems: Api<typeof financeItemsApiDeclaration>;
|
|
46
|
+
locations: Api<typeof locationsApiDeclaration>;
|
|
47
|
+
upsellings: Api<typeof upsellingsApiDeclaration>;
|
|
48
|
+
partners: Api<typeof partnersApiDeclaration>;
|
|
49
|
+
questrooms: Api<typeof questroomsApiDeclaration>;
|
|
50
|
+
widgets: Api<typeof widgetsApiDeclaration>;
|
|
51
|
+
profiles: Api<typeof profilesApiDeclaration>;
|
|
52
|
+
users: Api<typeof usersApiDeclaration>;
|
|
53
|
+
clients: Api<typeof clientsApiDeclaration>;
|
|
54
|
+
transactions: Api<typeof transactionsApiDeclaration>;
|
|
55
|
+
images: Api<typeof imagesApiDeclaration>;
|
|
56
|
+
roles: Api<typeof rolesApiDeclaration>;
|
|
57
|
+
tariffs: Api<typeof tariffsApiDeclaration>;
|
|
58
|
+
certificatesales: Api<typeof certificateSalesApiDeclaration>;
|
|
59
|
+
support: Api<typeof supportApiDeclaration>;
|
|
60
|
+
registrationRequests: Api<typeof registrationRequestsApiDeclaration>;
|
|
61
|
+
};
|
|
62
|
+
export declare const initClientApi: (url: string) => InitApiDeclaration;
|
|
@@ -1 +1,67 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initClientApi = void 0;
|
|
4
|
+
const admins_api_1 = require("./admins-api");
|
|
5
|
+
const agb_api_1 = require("./agb-api");
|
|
6
|
+
const cashboxes_api_1 = require("./cashboxes-api");
|
|
7
|
+
const certificates_api_1 = require("./certificates-api");
|
|
8
|
+
const certificatesales_api_1 = require("./certificatesales-api");
|
|
9
|
+
const clients_api_1 = require("./clients-api");
|
|
10
|
+
const emails_api_1 = require("./emails-api");
|
|
11
|
+
const financeitems_api_1 = require("./financeitems-api");
|
|
12
|
+
const images_api_1 = require("./images-api");
|
|
13
|
+
const locations_api_1 = require("./locations-api");
|
|
14
|
+
const order_discounts_api_1 = require("./order-discounts-api");
|
|
15
|
+
const order_penalties_api_1 = require("./order-penalties-api");
|
|
16
|
+
const order_upsellings_api_1 = require("./order-upsellings-api");
|
|
17
|
+
const orders_api_1 = require("./orders-api");
|
|
18
|
+
const partners_api_1 = require("./partners-api");
|
|
19
|
+
const profiles_api_1 = require("./profiles-api");
|
|
20
|
+
const questrooms_api_1 = require("./questrooms-api");
|
|
21
|
+
const registration_requests_api_1 = require("./registration-requests-api");
|
|
22
|
+
const roles_api_1 = require("./roles-api");
|
|
23
|
+
const slot_templates_api_1 = require("./slot-templates-api");
|
|
24
|
+
const slots_api_1 = require("./slots-api");
|
|
25
|
+
const support_1 = require("./support");
|
|
26
|
+
const tariffs_api_1 = require("./tariffs-api");
|
|
27
|
+
const transactions_api_1 = require("./transactions-api");
|
|
28
|
+
const uploads_api_1 = require("./uploads-api");
|
|
29
|
+
const upsellings_api_1 = require("./upsellings-api");
|
|
30
|
+
const user_messages_api_1 = require("./user-messages-api");
|
|
31
|
+
const users_api_1 = require("./users-api");
|
|
32
|
+
const widgets_api_1 = require("./widgets-api");
|
|
33
|
+
const _1 = require(".");
|
|
34
|
+
const initClientApi = (url) => {
|
|
35
|
+
return {
|
|
36
|
+
agbs: (0, _1.initApi)(agb_api_1.agbApiDeclaration, url),
|
|
37
|
+
uploads: (0, _1.initApi)(uploads_api_1.uploadsApiDeclaration, url),
|
|
38
|
+
emails: (0, _1.initApi)(emails_api_1.emailsApiDeclaration, url),
|
|
39
|
+
admins: (0, _1.initApi)(admins_api_1.adminsApiDeclaration, url),
|
|
40
|
+
userMessages: (0, _1.initApi)(user_messages_api_1.userMessagesApiDeclaration, url),
|
|
41
|
+
orderDiscounts: (0, _1.initApi)(order_discounts_api_1.orderDiscountsApiDeclaration, url),
|
|
42
|
+
orderPenalties: (0, _1.initApi)(order_penalties_api_1.orderPenaltiesApiDeclaration, url),
|
|
43
|
+
orderUpsellngs: (0, _1.initApi)(order_upsellings_api_1.orderUpsellngsApiDeclaration, url),
|
|
44
|
+
slots: (0, _1.initApi)(slots_api_1.slotsApiDeclaration, url),
|
|
45
|
+
slotTemplates: (0, _1.initApi)(slot_templates_api_1.slotTemplatesApiDeclaration, url),
|
|
46
|
+
orders: (0, _1.initApi)(orders_api_1.ordersApiDeclaration, url),
|
|
47
|
+
cashboxes: (0, _1.initApi)(cashboxes_api_1.cashboxesApiDeclaration, url),
|
|
48
|
+
certificates: (0, _1.initApi)(certificates_api_1.certificatesApiDeclaration, url),
|
|
49
|
+
financeItems: (0, _1.initApi)(financeitems_api_1.financeItemsApiDeclaration, url),
|
|
50
|
+
locations: (0, _1.initApi)(locations_api_1.locationsApiDeclaration, url),
|
|
51
|
+
upsellings: (0, _1.initApi)(upsellings_api_1.upsellingsApiDeclaration, url),
|
|
52
|
+
partners: (0, _1.initApi)(partners_api_1.partnersApiDeclaration, url),
|
|
53
|
+
questrooms: (0, _1.initApi)(questrooms_api_1.questroomsApiDeclaration, url),
|
|
54
|
+
widgets: (0, _1.initApi)(widgets_api_1.widgetsApiDeclaration, url),
|
|
55
|
+
profiles: (0, _1.initApi)(profiles_api_1.profilesApiDeclaration, url),
|
|
56
|
+
users: (0, _1.initApi)(users_api_1.usersApiDeclaration, url),
|
|
57
|
+
clients: (0, _1.initApi)(clients_api_1.clientsApiDeclaration, url),
|
|
58
|
+
transactions: (0, _1.initApi)(transactions_api_1.transactionsApiDeclaration, url),
|
|
59
|
+
images: (0, _1.initApi)(images_api_1.imagesApiDeclaration, url),
|
|
60
|
+
roles: (0, _1.initApi)(roles_api_1.rolesApiDeclaration, url),
|
|
61
|
+
tariffs: (0, _1.initApi)(tariffs_api_1.tariffsApiDeclaration, url),
|
|
62
|
+
certificatesales: (0, _1.initApi)(certificatesales_api_1.certificateSalesApiDeclaration, url),
|
|
63
|
+
support: (0, _1.initApi)(support_1.supportApiDeclaration, url),
|
|
64
|
+
registrationRequests: (0, _1.initApi)(registration_requests_api_1.registrationRequestsApiDeclaration, url),
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
exports.initClientApi = initClientApi;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateLocationDto } from '@escapenavigator/types/dist/location/create-location.dto';
|
|
2
|
+
import { LocationResponseObject } from '@escapenavigator/types/dist/location/location.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateLocationDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = LocationResponseObject;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
const create = ({ data }) => ({
|
|
5
|
+
url: '/locations',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data,
|
|
8
|
+
});
|
|
9
|
+
exports.create = create;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetNearestLocationDto } from '@escapenavigator/types/dist/location/get-nearest-location.dto';
|
|
2
|
+
import { NearestLocationResponseObject } from '@escapenavigator/types/dist/location/nearest-location.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = GetNearestLocationDto;
|
|
5
|
+
declare type ResponseData = NearestLocationResponseObject[];
|
|
6
|
+
export declare const getByCoordinates: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LocationResponseObject } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID локации */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = LocationResponseObject;
|
|
6
|
+
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getOne = void 0;
|
|
4
|
+
const getOne = (id) => ({
|
|
5
|
+
url: `/locations/${id}`,
|
|
6
|
+
method: 'GET',
|
|
7
|
+
});
|
|
8
|
+
exports.getOne = getOne;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { create } from './create';
|
|
2
|
+
import { getOne } from './get-one';
|
|
3
|
+
import { query } from './query';
|
|
4
|
+
import { recover } from './recover';
|
|
5
|
+
import { remove } from './remove';
|
|
6
|
+
import { update } from './update';
|
|
7
|
+
import { getByCoordinates } from './get-by-coordinates';
|
|
8
|
+
declare type ApiDeclaration = {
|
|
9
|
+
create: typeof create;
|
|
10
|
+
remove: typeof remove;
|
|
11
|
+
update: typeof update;
|
|
12
|
+
getOne: typeof getOne;
|
|
13
|
+
recover: typeof recover;
|
|
14
|
+
query: typeof query;
|
|
15
|
+
getByCoordinates: typeof getByCoordinates;
|
|
16
|
+
};
|
|
17
|
+
export declare const locationsApiDeclaration: ApiDeclaration;
|
|
18
|
+
export {};
|
|
@@ -1 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.locationsApiDeclaration = void 0;
|
|
4
|
+
const create_1 = require("./create");
|
|
5
|
+
const get_one_1 = require("./get-one");
|
|
6
|
+
const query_1 = require("./query");
|
|
7
|
+
const recover_1 = require("./recover");
|
|
8
|
+
const remove_1 = require("./remove");
|
|
9
|
+
const update_1 = require("./update");
|
|
10
|
+
const get_by_coordinates_1 = require("./get-by-coordinates");
|
|
11
|
+
exports.locationsApiDeclaration = {
|
|
12
|
+
create: create_1.create,
|
|
13
|
+
remove: remove_1.remove,
|
|
14
|
+
update: update_1.update,
|
|
15
|
+
query: query_1.query,
|
|
16
|
+
recover: recover_1.recover,
|
|
17
|
+
getOne: get_one_1.getOne,
|
|
18
|
+
getByCoordinates: get_by_coordinates_1.getByCoordinates,
|
|
19
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LocationResponseObject } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = any;
|
|
4
|
+
declare type ResponseData = LocationResponseObject[];
|
|
5
|
+
export declare const query: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.query = void 0;
|
|
4
|
+
const query = (params) => ({
|
|
5
|
+
url: '/locations',
|
|
6
|
+
method: 'GET',
|
|
7
|
+
params,
|
|
8
|
+
});
|
|
9
|
+
exports.query = query;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LocationResponseObject } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID локации */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = LocationResponseObject;
|
|
6
|
+
export declare const recover: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recover = void 0;
|
|
4
|
+
const recover = (id) => ({
|
|
5
|
+
url: `/locations/recover/${id}`,
|
|
6
|
+
method: 'PATCH',
|
|
7
|
+
});
|
|
8
|
+
exports.recover = recover;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LocationResponseObject } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID локации */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = LocationResponseObject;
|
|
6
|
+
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.remove = void 0;
|
|
4
|
+
const remove = (id) => ({
|
|
5
|
+
url: `/locations/${id}`,
|
|
6
|
+
method: 'DELETE',
|
|
7
|
+
});
|
|
8
|
+
exports.remove = remove;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LocationResponseObject } from '@escapenavigator/types/dist/location/location.ro';
|
|
2
|
+
import { UpdateLocationDto } from '@escapenavigator/types/dist/location/update-location.dto';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
id: number;
|
|
6
|
+
data: UpdateLocationDto;
|
|
7
|
+
};
|
|
8
|
+
declare type ResponseData = LocationResponseObject;
|
|
9
|
+
export declare const update: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
10
|
+
export {};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.update = void 0;
|
|
4
|
+
const update = ({ id, data }) => ({
|
|
5
|
+
url: `/locations/${id}`,
|
|
6
|
+
method: 'PATCH',
|
|
7
|
+
data,
|
|
8
|
+
});
|
|
9
|
+
exports.update = update;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateOrderDiscountDto } from '@escapenavigator/types/dist/order-discount/create-order-discount.dto';
|
|
2
|
+
import { OrderResponseObject } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateOrderDiscountDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = OrderResponseObject;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
const create = ({ data }) => ({
|
|
5
|
+
url: '/order-discounts',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data,
|
|
8
|
+
});
|
|
9
|
+
exports.create = create;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderDiscountsApiDeclaration = void 0;
|
|
4
|
+
const create_1 = require("./create");
|
|
5
|
+
const remove_1 = require("./remove");
|
|
6
|
+
exports.orderDiscountsApiDeclaration = {
|
|
7
|
+
create: create_1.create,
|
|
8
|
+
remove: remove_1.remove,
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OrderResponseObject } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID скидки */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = OrderResponseObject;
|
|
6
|
+
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.remove = void 0;
|
|
4
|
+
const remove = (id) => ({
|
|
5
|
+
url: `/order-discounts/${id}`,
|
|
6
|
+
method: 'DELETE',
|
|
7
|
+
});
|
|
8
|
+
exports.remove = remove;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateOrderPenaltyDto } from '@escapenavigator/types/dist/order-penalty/create-order-penalty.dto';
|
|
2
|
+
import { OrderResponseObject } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateOrderPenaltyDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = OrderResponseObject;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
const create = ({ data }) => ({
|
|
5
|
+
url: '/order-penalties',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data,
|
|
8
|
+
});
|
|
9
|
+
exports.create = create;
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.orderPenaltiesApiDeclaration = void 0;
|
|
4
|
+
const create_1 = require("./create");
|
|
5
|
+
const remove_1 = require("./remove");
|
|
6
|
+
exports.orderPenaltiesApiDeclaration = {
|
|
7
|
+
create: create_1.create,
|
|
8
|
+
remove: remove_1.remove,
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OrderResponseObject } from '@escapenavigator/types/dist/order/order.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID штрафа */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = OrderResponseObject;
|
|
6
|
+
export declare const remove: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.remove = void 0;
|
|
4
|
+
const remove = (id) => ({
|
|
5
|
+
url: `/order-penalties/${id}`,
|
|
6
|
+
method: 'DELETE',
|
|
7
|
+
});
|
|
8
|
+
exports.remove = remove;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreateOrderUpsellingDto } from '@escapenavigator/types/dist/order-upselling/create-order-upselling.dto';
|
|
2
|
+
import { OrderResponseObject } from '@escapenavigator/types/dist/order/order.ro';
|
|
3
|
+
import { ApiMethodDeclaration } from '..';
|
|
4
|
+
declare type ParamsData = {
|
|
5
|
+
data: CreateOrderUpsellingDto;
|
|
6
|
+
};
|
|
7
|
+
declare type ResponseData = OrderResponseObject;
|
|
8
|
+
export declare const create: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
9
|
+
export {};
|
|
@@ -1 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create = void 0;
|
|
4
|
+
const create = ({ data }) => ({
|
|
5
|
+
url: '/order-upsellings',
|
|
6
|
+
method: 'POST',
|
|
7
|
+
data,
|
|
8
|
+
});
|
|
9
|
+
exports.create = create;
|