tickera-angular-components 0.0.1-dev.96 → 0.0.1-dev.97
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.
|
@@ -460,6 +460,7 @@ const PERFORMANCES_API_ROUTES = {
|
|
|
460
460
|
createBulk: '/performances/bulk',
|
|
461
461
|
findOneById: (id) => `/performances/${id}`,
|
|
462
462
|
findOneBookingData: (id) => `/performances/${id}/booking-data`,
|
|
463
|
+
findOneBookingDataAdmin: (id) => `/performances/${id}/booking-data/admin`,
|
|
463
464
|
update: (id) => `/performances/${id}`,
|
|
464
465
|
delete: (id) => `/performances/${id}`,
|
|
465
466
|
deleteMany: '/performances/bulk',
|
|
@@ -2598,8 +2599,9 @@ class PerformanceService {
|
|
|
2598
2599
|
fetchOneById(id) {
|
|
2599
2600
|
return this.apiService.get(PERFORMANCES_API_ROUTES.findOneById(id));
|
|
2600
2601
|
}
|
|
2601
|
-
fetchOneBookingData(id) {
|
|
2602
|
-
const
|
|
2602
|
+
fetchOneBookingData(id, isAdmin = false) {
|
|
2603
|
+
const routeMethod = isAdmin ? 'findOneBookingDataAdmin' : 'findOneBookingData';
|
|
2604
|
+
const apiRoute = PERFORMANCES_API_ROUTES[routeMethod](id);
|
|
2603
2605
|
return this.apiService.get(apiRoute);
|
|
2604
2606
|
}
|
|
2605
2607
|
fetchAvailableDays(params) {
|