The Node.js SDK re-exports the WAJS namespace for TypeScript. This reference describes types from WA-JS 4.8.5-rc.0 . For operations available on a connected Node.js client, see Whatsapp . For functions running inside WhatsApp Web, see the WA-JS browser API .
Class BusinessProfileModel
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/models/BusinessProfileModel.d.ts:42
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/models/BusinessProfileModel.d.ts:47
Constructors
Properties
Optionaladdress
address ?: any
Readonlyattributes
attributes : Props & Session
Optionalbusiness Hours
businessHours ?: any
Optionalcatalog Status
catalogStatus ?: any
Optionalcategories
categories ?: any
Optionaldescription
description ?: any
Optionalemail
email ?: any
id Class
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/models/BusinessProfileModel.d.ts:48
Readonlyis State
isState : true
Optionallatitude
latitude ?: any
Optionallongitude
longitude ?: any
Readonlymirror Mask
mirrorMask : { "change:address" ?: number ; "change:businessHours" ?: number ; "change:catalogStatus" ?: number ; "change:categories" ?: number ; "change:description" ?: number ; "change:email" ?: number ; "change:id" : number ; "change:latitude" ?: number ; "change:longitude" ?: number ; "change:profileOptions" ?: number ; "change:stale" ?: number ; "change:structuredAddress" ?: number ; "change:tag" ?: number ; "change:website" ?: number ; }
Optionalparent
parent ?: any
Optionalprofile Options
profileOptions ?: any
proxy Name
proxyName : string
Optionalstale
stale ?: any
Optionalstructured Address
structuredAddress ?: any
Optionalwebsite
website ?: any
Static Optionalallowed Ids
allowedIds ?: any []
Static Optionalid Class
idClass ?: any
StaticProxy
Proxy : string
Methods
add Child
addChild ( id : Stringable , context : { [ key : string ]: any } ) : void
Parameters
id : Stringable
context : { [ key : string ]: any }
Returns void
bind
bind ( eventName : Event , listener : Listener , context ?: any ) : this
Parameters
eventName : Event
listener : Listener
Optionalcontext : any
Returns this
emit
emit ( eventName : Event , ... args : any [] ) : this
Parameters
eventName : Event
... args : any []
Returns this
get
Inherited from Model .get
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/models/Model.d.ts:54
get Collection
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/models/BusinessProfileModel.d.ts:51
has Unfired Changes
hasUnfiredChanges () : boolean
inc Observers
incObservers ( e ?: boolean ) : void
is Listening
isListening ( eventName : Event ) : boolean
is Valid
Returns boolean
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/models/BusinessProfileModel.d.ts:52
listen To
listenTo ( context : any , eventName : Event , listener ?: Listener ) : this
Parameters
context : any
eventName : Event
Optionallistener : Listener
Returns this
listen To And Run
listenToAndRun ( context : any , eventName : Event , listener ?: Listener ) : this
Parameters
context : any
eventName : Event
Optionallistener : Listener
Returns this
listen To Once
listenToOnce ( context : any , eventName : Event , listener ?: Listener ) : this
Parameters
context : any
eventName : Event
Optionallistener : Listener
Returns this
mark Stale
Returns any
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/models/BusinessProfileModel.d.ts:50
off
off ( eventName ?: Event , listener ?: Listener , context ?: any ) : this
Parameters
OptionaleventName : Event
Optionallistener : Listener
Optionalcontext : any
Returns this Returns a reference to the EventEmitter, so that calls can be chained.
Inherited from Model .off
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/EventEmitter.d.ts:55
on
on ( eventName : Event , listener : Listener , context ?: any ) : this
Parameters
eventName : Event
listener : Listener
Optionalcontext : any
Returns this Returns a reference to the EventEmitter, so that calls can be chained.
Inherited from Model .on
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/misc/EventEmitter.d.ts:37
once
once ( eventName : Event , listener : Listener , context ?: any ) : this
Parameters
eventName : Event
listener : Listener
Optionalcontext : any
Returns this Returns a reference to the EventEmitter, so that calls can be chained.
remove All Listeners
removeAllListeners () : this
Returns this Returns a reference to the EventEmitter, so that calls can be chained.
remove Listener
removeListener ( eventName ?: Event , listener ?: Listener , context ?: any ) : this
Parameters
OptionaleventName : Event
Optionallistener : Listener
Optionalcontext : any
Returns this
set
Returns any
Inherited from Model .set
Defined in node_modules/@wppconnect/wa-js/dist/whatsapp/models/Model.d.ts:55
stop Listening
stopListening ( context ?: any , eventName ?: Event , listener ?: Listener ) : this
Parameters
Optionalcontext : any
OptionaleventName : Event
Optionallistener : Listener
Returns this
trigger
trigger ( eventName : Event , ... args : any [] ) : this
Parameters
eventName : Event
... args : any []
Returns this Returns a reference to the EventEmitter, so that calls can be chained.
unbind
unbind ( eventName ?: Event , listener ?: Listener , context ?: any ) : this
Parameters
OptionaleventName : Event
Optionallistener : Listener
Optionalcontext : any
Returns this
unset
unset ( ids : Stringable | Stringable [] , t ?: any ) : void
Parameters
ids : Stringable | Stringable []
Optionalt : any
Returns void
Staticis Id Type
isIdType ( e : any ) : boolean
Whatsapp
48018
Whatsapp
348018 >= 2.2222.8