chore: update
This commit is contained in:
@@ -704,6 +704,12 @@ export interface PointsTier {
|
||||
points: number;
|
||||
}
|
||||
|
||||
export interface PostalZone {
|
||||
name: string;
|
||||
min_amount: number;
|
||||
codes: string[];
|
||||
}
|
||||
|
||||
export interface DaySchedule {
|
||||
enabled: boolean;
|
||||
open_time: string; // "09:00"
|
||||
@@ -720,6 +726,12 @@ export interface DeliverySchedule {
|
||||
sunday: DaySchedule;
|
||||
}
|
||||
|
||||
export const DEFAULT_POSTAL_ZONES: PostalZone[] = [
|
||||
{ name: "Zone 30€", min_amount: 30, codes: ["44000", "44100", "44200", "44300"] },
|
||||
{ name: "Zone 50€", min_amount: 50, codes: ["44400", "44880", "44120", "44230", "44115", "44980", "44470", "44240", "44700", "44800", "44340", "44620", "44830"] },
|
||||
{ name: "Zone 100€", min_amount: 100, codes: ["44860", "44220", "44118", "44710", "44690", "44119"] },
|
||||
];
|
||||
|
||||
export const DEFAULT_DAY: DaySchedule = { enabled: true, open_time: "09:00", close_time: "20:00" };
|
||||
|
||||
export const DEFAULT_DELIVERY_SCHEDULE: DeliverySchedule = {
|
||||
@@ -741,6 +753,7 @@ export interface AppSettings {
|
||||
points_total_tiers: PointsTier[];
|
||||
referral_enabled: boolean;
|
||||
delivery_schedule: DeliverySchedule;
|
||||
postal_zones: PostalZone[];
|
||||
}
|
||||
|
||||
export const getSettings = async (): Promise<{
|
||||
|
||||
Reference in New Issue
Block a user