@wppconnect/wa-js 2.23.3 → 2.23.5
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 +2 -2
- package/dist/chat/functions/getQuotedMsg.d.ts +1 -1
- package/dist/conn/functions/index.d.ts +1 -0
- package/dist/conn/functions/setLimit.d.ts +65 -0
- package/dist/util/linkPreview.d.ts +0 -10
- package/dist/whatsapp/functions/getABPropConfigValue.d.ts +21 -0
- package/dist/whatsapp/functions/getHistorySyncProgress.d.ts +1 -1
- package/dist/whatsapp/functions/getNumChatsPinned.d.ts +21 -0
- package/dist/whatsapp/functions/index.d.ts +2 -0
- package/dist/whatsapp/misc/ServerProps.d.ts +20 -0
- package/dist/whatsapp/misc/index.d.ts +1 -0
- package/dist/whatsapp/models/ServerPropsModel.d.ts +40 -0
- package/dist/whatsapp/models/index.d.ts +1 -0
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
## 2.23.
|
|
1
|
+
## 2.23.5 (2023-04-29)
|
|
2
2
|
|
|
3
3
|
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
- Fixed
|
|
5
|
+
- Fixed generated quoted id on msg group ([#1079](https://github.com/wppconnect-team/wa-js/issues/1079)) ([48c6780](https://github.com/wppconnect-team/wa-js/commit/48c67809777f8e9a61b738f5b9d8387a2750f068))
|
|
@@ -30,4 +30,5 @@ export { markAvailable, markUnavailable } from './markAvailable';
|
|
|
30
30
|
export { needsUpdate } from './needsUpdate';
|
|
31
31
|
export { refreshQR } from './refreshQR';
|
|
32
32
|
export { setKeepAlive } from './setKeepAlive';
|
|
33
|
+
export { setLimit } from './setLimit';
|
|
33
34
|
export { setMultiDevice } from './setMultiDevice';
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Change the limit of MediaSize
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```javascript
|
|
21
|
+
* //Change the maximum size (bytes) for uploading media (max 70MB)
|
|
22
|
+
* WPP.conn.setLimit('maxMediaSize',16777216);
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function setLimit(key: 'maxMediaSize', value: number): number;
|
|
26
|
+
/**
|
|
27
|
+
* Change the limit of FileSize
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```javascript
|
|
31
|
+
* //Change the maximum size (bytes) for uploading files (max 1GB)
|
|
32
|
+
* WPP.conn.setLimit('maxFileSize',104857600);
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function setLimit(key: 'maxFileSize', value: number): number;
|
|
36
|
+
/**
|
|
37
|
+
* Change the limit of Share
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```javascript
|
|
41
|
+
* //Change the maximum number of contacts that can be selected when sharing (Default 5)
|
|
42
|
+
* WPP.conn.setLimit('maxShare',100);
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function setLimit(key: 'maxShare', value: number): number;
|
|
46
|
+
/**
|
|
47
|
+
* Change the limit of Status Video Duration
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```javascript
|
|
51
|
+
* //Change the maximum time (seconds) of a video status
|
|
52
|
+
* WPP.conn.setLimit('statusVideoMaxDuration',120);
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
export declare function setLimit(key: 'statusVideoMaxDuration', value: number): number;
|
|
56
|
+
/**
|
|
57
|
+
* Change the limit of Pin
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```javascript
|
|
61
|
+
* //Remove pinned conversation limit (only whatsapp web) (Default 3)
|
|
62
|
+
* WPP.conn.setLimit('unlimitedPin',true);
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function setLimit(key: 'unlimitedPin', value: boolean): boolean;
|
|
@@ -29,16 +29,6 @@ export declare function fetchRemoteLinkPreviewData(url: string): Promise<{
|
|
|
29
29
|
* Generate the preview link thumbnail data
|
|
30
30
|
*/
|
|
31
31
|
export declare function generateThumbnailLinkPreviewData(url: string): Promise<{
|
|
32
|
-
thumbnail: unknown;
|
|
33
|
-
thumbnailHQ?: undefined;
|
|
34
|
-
mediaKey?: undefined;
|
|
35
|
-
mediaKeyTimestamp?: undefined;
|
|
36
|
-
thumbnailDirectPath?: undefined;
|
|
37
|
-
thumbnailSha256?: undefined;
|
|
38
|
-
thumbnailEncSha256?: undefined;
|
|
39
|
-
thumbnailWidth?: undefined;
|
|
40
|
-
thumbnailHeight?: undefined;
|
|
41
|
-
} | {
|
|
42
32
|
thumbnail: unknown;
|
|
43
33
|
thumbnailHQ: string;
|
|
44
34
|
mediaKey: any;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* @whatsapp 95547
|
|
18
|
+
* @whatsapp 695547 >= 2.2222.8
|
|
19
|
+
* @whatsapp 925080 >= 2.2228.4
|
|
20
|
+
*/
|
|
21
|
+
export declare function getABPropConfigValue(value: any): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* @whatsapp 95547
|
|
18
|
+
* @whatsapp 695547 >= 2.2222.8
|
|
19
|
+
* @whatsapp 925080 >= 2.2228.4
|
|
20
|
+
*/
|
|
21
|
+
export declare function getNumChatsPinned(value: any): any;
|
|
@@ -33,11 +33,13 @@ export * from './findChat';
|
|
|
33
33
|
export * from './findFirstWebLink';
|
|
34
34
|
export * from './generateVideoThumbsAndDuration';
|
|
35
35
|
export * from './genMinimalLinkPreview';
|
|
36
|
+
export * from './getABPropConfigValue';
|
|
36
37
|
export * from './getCommunityParticipants';
|
|
37
38
|
export * from './getFanOutList';
|
|
38
39
|
export * from './getGroupSenderKeyList';
|
|
39
40
|
export * from './getGroupSizeLimit';
|
|
40
41
|
export * from './getHistorySyncProgress';
|
|
42
|
+
export * from './getNumChatsPinned';
|
|
41
43
|
export * from './getParticipants';
|
|
42
44
|
export * from './getQuotedMsgObj';
|
|
43
45
|
export * from './getReactions';
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { ServerPropsModel } from '../models';
|
|
17
|
+
/** @whatsapp 8080
|
|
18
|
+
* @whatsapp 608080 >= 2.2222.8
|
|
19
|
+
*/
|
|
20
|
+
export declare const ServerProps: ServerPropsModel;
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
17
|
+
interface Props {
|
|
18
|
+
statusVideoMaxDuration: number;
|
|
19
|
+
multicastLimitGlobal: number;
|
|
20
|
+
frequentlyForwardedThreshold: number;
|
|
21
|
+
frequentlyForwardedMax: number;
|
|
22
|
+
maxFileSize: number;
|
|
23
|
+
media: number;
|
|
24
|
+
}
|
|
25
|
+
interface Session {
|
|
26
|
+
}
|
|
27
|
+
interface Derived {
|
|
28
|
+
}
|
|
29
|
+
/** @whatsapp 17239
|
|
30
|
+
* @whatsapp 317239 >= 2.2222.8
|
|
31
|
+
*/
|
|
32
|
+
export declare interface ServerPropsModel extends ModelProxy<Props, Session, Derived> {
|
|
33
|
+
}
|
|
34
|
+
/** @whatsapp 17239
|
|
35
|
+
* @whatsapp 317239 >= 2.2222.8
|
|
36
|
+
*/
|
|
37
|
+
export declare class ServerPropsModel extends Model {
|
|
38
|
+
constructor(proterties?: ModelPropertiesContructor<ServerPropsModel>, options?: ModelOptions);
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -58,6 +58,7 @@ export * from './ReactionsSendersModel';
|
|
|
58
58
|
export * from './RecentEmojiModel';
|
|
59
59
|
export * from './RecentStickerModel';
|
|
60
60
|
export * from './ReplyButtonModel';
|
|
61
|
+
export * from './ServerPropsModel';
|
|
61
62
|
export * from './SocketModel';
|
|
62
63
|
export * from './StatusModel';
|
|
63
64
|
export * from './StatusV3Model';
|