feat: Add Bussines Contact Types (#2369)
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
This commit is contained in:
parent
d81b74324d
commit
4009bb792b
1 changed files with 73 additions and 2 deletions
75
index.d.ts
vendored
75
index.d.ts
vendored
|
|
@ -1192,12 +1192,83 @@ declare namespace WAWebJS {
|
|||
_serialized: string,
|
||||
}
|
||||
|
||||
export interface BusinessCategory {
|
||||
id: string,
|
||||
localized_display_name: string,
|
||||
}
|
||||
|
||||
export interface BusinessHoursOfDay {
|
||||
mode: string,
|
||||
hours: number[]
|
||||
}
|
||||
|
||||
export interface BusinessHours {
|
||||
config: {
|
||||
sun: BusinessHoursOfDay,
|
||||
mon: BusinessHoursOfDay,
|
||||
tue: BusinessHoursOfDay,
|
||||
wed: BusinessHoursOfDay,
|
||||
thu: BusinessHoursOfDay,
|
||||
fri: BusinessHoursOfDay,
|
||||
}
|
||||
timezone: string,
|
||||
}
|
||||
|
||||
|
||||
|
||||
export interface BusinessContact extends Contact {
|
||||
/**
|
||||
* The contact's business profile
|
||||
* @todo add a more specific type for the object
|
||||
*/
|
||||
businessProfile: object
|
||||
businessProfile: {
|
||||
/** The contact's business profile id */
|
||||
id: ContactId,
|
||||
|
||||
/** The contact's business profile tag */
|
||||
tag: string,
|
||||
|
||||
/** The contact's business profile description */
|
||||
description: string,
|
||||
|
||||
/** The contact's business profile categories */
|
||||
categories: BusinessCategory[],
|
||||
|
||||
/** The contact's business profile options */
|
||||
profileOptions: {
|
||||
/** The contact's business profile commerce experience*/
|
||||
commerceExperience: string,
|
||||
|
||||
/** The contact's business profile cart options */
|
||||
cartEnabled: boolean,
|
||||
}
|
||||
|
||||
/** The contact's business profile email */
|
||||
email: string,
|
||||
|
||||
/** The contact's business profile websites */
|
||||
website: string[],
|
||||
|
||||
/** The contact's business profile latitude */
|
||||
latitude: number,
|
||||
|
||||
/** The contact's business profile longitude */
|
||||
longitude: number,
|
||||
|
||||
/** The contact's business profile work hours*/
|
||||
businessHours: BusinessHours
|
||||
|
||||
/** The contact's business profile address */
|
||||
address: string,
|
||||
|
||||
/** The contact's business profile facebook page */
|
||||
fbPage: object,
|
||||
|
||||
/** Indicate if the contact's business profile linked */
|
||||
ifProfileLinked: boolean
|
||||
|
||||
/** The contact's business profile coverPhoto */
|
||||
coverPhoto: null | any,
|
||||
}
|
||||
}
|
||||
|
||||
export interface PrivateContact extends Contact {
|
||||
|
|
|
|||
Loading…
Reference in a new issue