ifixkart-admin/New admin panel/ikixkart-dashboard/services/api/deliverySettingsService.ts
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

20 lines
587 B
TypeScript

import { apiFetch } from './client';
export interface DeliverySettings {
delivery_charge: number;
free_delivery_enabled: boolean;
free_delivery_min_order_amount: number;
}
export const deliverySettingsService = {
getSettings: async (): Promise<DeliverySettings> => {
return apiFetch<DeliverySettings>('/api/v1/settings/delivery');
},
updateSettings: async (payload: Partial<DeliverySettings>): Promise<DeliverySettings> => {
return apiFetch<DeliverySettings>('/api/v1/settings/delivery', {
method: 'PUT',
body: JSON.stringify(payload),
});
},
};