wix-twix
Version:
A simple library for managing server and web Wix clients built on top of Wix SDK.
29 lines • 1.4 kB
TypeScript
import { locations } from '@wix/business-tools';
import { WixBusiness } from './wixBusiness';
import { HoursPeriod, SpecialHoursPeriod, Address } from './wixBusiness.types';
export declare class WixBusinessLocation {
private client;
private props;
constructor(client: WixBusiness['client'], props: locations.Location);
private get revision();
private get isArchived();
get id(): string;
get name(): string | undefined;
get description(): string | null | undefined;
get isDefault(): boolean | undefined;
get status(): locations.LocationStatus | undefined;
get fax(): string | null | undefined;
get timeZone(): string | null | undefined;
get email(): string | null | undefined;
get phone(): string | null | undefined;
get address(): Address;
get hours(): HoursPeriod[];
get specialHours(): SpecialHoursPeriod[];
update({ name, description, email, phone, fax, timeZone, }: Pick<locations.UpdateLocation, 'name' | 'description' | 'phone' | 'email' | 'fax' | 'timeZone'>): Promise<locations.Location & locations.LocationNonNullableFields>;
setAsDefault(): Promise<void>;
archive(): Promise<(locations.ArchiveLocationResponse & locations.ArchiveLocationResponseNonNullableFields) | undefined>;
private getHours;
private getSpecialHours;
private getDayOfWeek;
}
//# sourceMappingURL=wixBusinessLocation.d.ts.map