@wppconnect/wa-js 1.1.6 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ ## 1.1.10 (2022-01-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Fixed getMessageById when the message is from status (wppconnect-team/wppconnect[#823](https://github.com/wppconnect-team/wa-js/issues/823)) ([f075cd2](https://github.com/wppconnect-team/wa-js/commit/f075cd24fd01e33f0322da9f9be321f039b9b6b3))
7
+
8
+
9
+
10
+ ## 1.1.9 (2022-01-21)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Fixed live location event register and added a option ([08949a9](https://github.com/wppconnect-team/wa-js/commit/08949a9c3c46274f2ccca7d30e3aeb9c8a4e9851))
16
+
17
+
18
+
19
+ ## 1.1.8 (2022-01-21)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * Fixed WPP.contact.queryExists function (fix wppconnect-team/wppconnect[#803](https://github.com/wppconnect-team/wa-js/issues/803)) ([63a021d](https://github.com/wppconnect-team/wa-js/commit/63a021da96f75b9300f2d8f3409934ab0a0a611a))
25
+
26
+
27
+
28
+ ## 1.1.7 (2022-01-20)
29
+
30
+
31
+
1
32
  ## 1.1.6 (2022-01-20)
2
33
 
3
34
 
package/dist/config.d.ts CHANGED
@@ -20,7 +20,8 @@
20
20
  * ```javascript
21
21
  * // Global variable before injection
22
22
  * WPPConfig = {
23
- * deviceName: 'WPPConnect'
23
+ * deviceName: 'WPPConnect',
24
+ * liveLocationLimit: 10
24
25
  * };
25
26
  * ```
26
27
  */
@@ -30,6 +31,10 @@ export interface Config {
30
31
  * @default 'WPPConnect'
31
32
  */
32
33
  deviceName: string | false;
34
+ /**
35
+ * Number of last chats to check live location after a page reload
36
+ */
37
+ liveLocationLimit: number;
33
38
  }
34
39
  export declare const defaultConfig: Config;
35
40
  export declare const config: Config;
@@ -14,7 +14,21 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
- export declare function queryExists(contactId: string | Wid): Promise<{
17
+ export interface QueryExistsResult {
18
18
  wid: Wid;
19
19
  biz: boolean;
20
- } | null | undefined>;
20
+ bizInfo?: {
21
+ verifiedName?: {
22
+ isApi: boolean;
23
+ level: string;
24
+ name: string;
25
+ privacyMode: any;
26
+ serial: string;
27
+ };
28
+ };
29
+ disappearingMode?: {
30
+ duration: number;
31
+ settingTimestamp: number;
32
+ };
33
+ }
34
+ export declare function queryExists(contactId: string | Wid): Promise<QueryExistsResult | null>;
@@ -14,4 +14,4 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  /** @whatsapp 78502 */
17
- export declare function findFirstWebLink(message: string): Promise<undefined | string>;
17
+ export declare function findFirstWebLink(message: string): undefined | string;
@@ -0,0 +1,31 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '.';
17
+ /** @whatsapp 69610 */
18
+ export declare class WapClass {
19
+ queryExist(contactId: string): Promise<{
20
+ status: 200;
21
+ jid: Wid;
22
+ biz?: true;
23
+ }>;
24
+ queryDisappearingMode(contactId: Wid): Promise<{
25
+ status: 200;
26
+ duration: number;
27
+ settingTimestamp: number;
28
+ }>;
29
+ }
30
+ /** @whatsapp 69162 */
31
+ export declare const Wap: WapClass;
@@ -35,5 +35,6 @@ export * from './OpaqueData';
35
35
  export * from './State';
36
36
  export * from './UserPrefs';
37
37
  export * from './VCard';
38
+ export * from './Wap';
38
39
  export * from './Wid';
39
40
  export * from './WidFactory';