chore: mark version v1.0.0

This commit is contained in:
Pedro Lopez
2020-02-09 00:58:10 -04:00
parent f947f75725
commit 7deef27800
34 changed files with 1130 additions and 168 deletions

View File

@@ -4,7 +4,7 @@
<head>
<meta name="generator" content="JSDoc 3.6.3">
<meta charset="utf-8">
<title>whatsapp-web.js 0.3.2-post &raquo; Source: structures/Contact.js</title>
<title>whatsapp-web.js 1.0.0 &raquo; Source: structures/Contact.js</title>
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Karla:400,400i,700,700i" type="text/css">
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Noto+Serif:400,400i,700,700i" type="text/css">
<link rel="stylesheet" href="https://brick.a.ssl.fastly.net/Inconsolata:500" type="text/css">
@@ -15,7 +15,7 @@
<nav id="jsdoc-navbar" role="navigation" class="jsdoc-navbar">
<div id="jsdoc-navbar-container">
<div id="jsdoc-navbar-content">
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 0.<wbr>3.<wbr>2-post</a>
<a href="index.html" class="jsdoc-navbar-package-name">whatsapp-web.<wbr>js 1.<wbr>0.<wbr>0</a>
</div>
</div>
</nav>
@@ -51,6 +51,12 @@ class Contact extends Base {
*/
this.id &#x3D; data.id;
/**
* Contact&#x27;s phone number
* @type {string}
*/
this.number &#x3D; data.userid;
/**
* Indicates if the contact is a business contact
* @type {boolean}
@@ -90,8 +96,50 @@ class Contact extends Base {
this.verifiedLevel &#x3D; data.verifiedLevel;
this.verifiedName &#x3D; data.verifiedName;
/**
* Indicates if the contact is the current user&#x27;s contact
* @type {boolean}
*/
this.isMe &#x3D; data.isMe;
/**
* Indicates if the contact is a user contact
* @type {boolean}
*/
this.isUser &#x3D; data.isUser;
/**
* Indicates if the contact is a group contact
* @type {boolean}
*/
this.isGroup &#x3D; data.isGroup;
/**
* Indicates if the number is registered on WhatsApp
* @type {boolean}
*/
this.isWAContact &#x3D; data.isWAContact;
/**
* Indicates if the number is saved in the current phone&#x27;s contacts
* @type {boolean}
*/
this.isMyContact &#x3D; data.isMyContact;
return super._patch(data);
}
/**
* Returns the contact&#x27;s profile picture URL, if privacy settings allow it
* @returns {Promise&amp;lt;string&gt;}
*/
async getProfilePicUrl() {
const profilePic &#x3D; await this.client.pupPage.evaluate((contactId) &#x3D;&gt; {
return window.Store.Wap.profilePicFind(contactId);
}, this.id._serialized);
return profilePic ? profilePic.eurl : undefined;
}
}
@@ -105,7 +153,7 @@ module.exports &#x3D; Contact;</code></pre>
<footer id="jsdoc-footer" class="jsdoc-footer">
<div id="jsdoc-footer-container">
<p>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.3 on February 5, 2020.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> 3.6.3 on February 9, 2020.
</p>
</div>
</footer>