aktueller stand

This commit is contained in:
2026-01-29 18:17:13 +01:00
parent 9f2825edd4
commit ad32f299cf
8 changed files with 491 additions and 18 deletions

View File

@@ -442,6 +442,17 @@ async function fetchStoreMembers(storeId, cookieHeader, context) {
return Array.isArray(response.data) ? response.data : [];
}
async function fetchRegularPickup(storeId, cookieHeader, context) {
if (!storeId) {
return [];
}
const response = await client.get(
`/api/stores/${storeId}/regularPickup`,
buildRequestConfig({ cookieHeader, context })
);
return Array.isArray(response.data) ? response.data : [];
}
async function bookSlot(storeId, utcDate, profileId, session) {
await client.post(
`/api/stores/${storeId}/pickups/${utcDate}/${profileId}`,
@@ -464,6 +475,7 @@ module.exports = {
fetchRegionStores,
fetchStoreDetails,
fetchStoreMembers,
fetchRegularPickup,
pickupRuleCheck,
bookSlot
};