evolution-api-sdk
Version:
Unofficial SDK for the Evolution Whatsapp API v2
25 lines (23 loc) • 758 B
TypeScript
interface FetchBusinessProfileRequest {
number: string;
}
interface BusinessHoursConfig {
day_of_week: "sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat";
mode: "open_24h" | "specific_hours" | "closed";
open_time?: string;
close_time?: string;
}
interface BusinessHours {
timezone: string;
business_config: BusinessHoursConfig[];
}
interface FetchBusinessProfileResponse {
isBusiness: boolean;
wid: string;
description: string;
website: string[];
category: string;
business_hours: BusinessHours;
}
type FetchBusinessProfileOptions = FetchBusinessProfileRequest;
export type { BusinessHours, BusinessHoursConfig, FetchBusinessProfileOptions, FetchBusinessProfileRequest, FetchBusinessProfileResponse };