// Copyright: © 2026 TWWIM UG. All rights reserved. (www.twwim.com) /** * Operator availability HTTP layer — wraps GET + PATCH /operator/availability * with typed payloads from @archer/api-interface. Consumed only via the * useOperatorAvailability hook (UI components never touch HttpClient). */ import { OPERATOR_AVAILABILITY_GET, OPERATOR_AVAILABILITY_SET, } from '@archer/api-interface/endpoints/customer-api'; import type { OperatorAvailabilityRequest, OperatorAvailabilityResponse, } from '@archer/api-interface'; import { apiClient } from '../../ApiClient'; export const operatorAvailabilityApi = { async get(): Promise { return apiClient.get(OPERATOR_AVAILABILITY_GET.path); }, async set(payload: OperatorAvailabilityRequest): Promise { return apiClient.patch( OPERATOR_AVAILABILITY_SET.path, payload, ); }, };