talkyzap-wapp-api 1.0.11 → 1.0.13
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/find.d.ts +1 -1
- package/dist/chat/functions/sendFileMessage.d.ts +2 -0
- package/dist/conn/functions/getHistorySyncProgress.d.ts +1 -1
- package/dist/group/functions/getGroupInfoFromInviteCode.d.ts +7 -0
- package/dist/whatsapp/enums/CALL_STATES.d.ts +17 -0
- package/dist/whatsapp/functions/checkChatExistedOrCreate.d.ts +28 -0
- package/dist/whatsapp/functions/findOrCreateLatestChat.d.ts +4 -1
- package/dist/whatsapp/functions/getExisting.d.ts +2 -1
- package/dist/whatsapp/functions/index.d.ts +1 -0
- package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +10 -0
- package/dist/whatsapp/misc/MediaPrep.d.ts +1 -0
- package/dist/whatsapp/models/HistorySyncProgressModel.d.ts +10 -3
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## 3.
|
|
1
|
+
## 3.17.1 (2025-04-02)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* fixed send message to some numbers ([b3478a5](https://github.com/wppconnect-team/wa-js/commit/b3478a570292b7d6d3cd06df1f2d5d6fe22fe566))
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -81,6 +81,7 @@ export interface DocumentMessageOptions extends FileMessageOptions, MessageButto
|
|
|
81
81
|
export interface ImageMessageOptions extends FileMessageOptions, MessageButtonsOptions {
|
|
82
82
|
type: 'image';
|
|
83
83
|
isViewOnce?: boolean;
|
|
84
|
+
isHD?: boolean;
|
|
84
85
|
}
|
|
85
86
|
export interface StickerMessageOptions extends FileMessageOptions {
|
|
86
87
|
type: 'sticker';
|
|
@@ -90,6 +91,7 @@ export interface VideoMessageOptions extends FileMessageOptions, MessageButtonsO
|
|
|
90
91
|
isGif?: boolean;
|
|
91
92
|
isPtv?: boolean;
|
|
92
93
|
isViewOnce?: boolean;
|
|
94
|
+
isHD?: boolean;
|
|
93
95
|
}
|
|
94
96
|
/**
|
|
95
97
|
* Send a file message, that can be an audio, document, image, sticker or video
|
|
@@ -48,4 +48,11 @@ export declare function getGroupInfoFromInviteCode(inviteCode: string): Promise<
|
|
|
48
48
|
subjectTime: number;
|
|
49
49
|
support: boolean;
|
|
50
50
|
suspended: boolean;
|
|
51
|
+
isParentGroup: boolean;
|
|
52
|
+
isParentGroupClosed: boolean;
|
|
53
|
+
defaultSubgroup: boolean;
|
|
54
|
+
generalSubgroup: boolean;
|
|
55
|
+
membershipApprovalMode: boolean;
|
|
56
|
+
isLidAddressingMode: boolean;
|
|
57
|
+
generalChatAutoAddDisabled: boolean;
|
|
51
58
|
}>;
|
|
@@ -32,3 +32,20 @@ export declare enum CALL_STATES {
|
|
|
32
32
|
FAILED = "FAILED",
|
|
33
33
|
NOT_ANSWERED = "NOT_ANSWERED"
|
|
34
34
|
}
|
|
35
|
+
export declare enum CALL_STATES {
|
|
36
|
+
None = 0,
|
|
37
|
+
Calling = 1,
|
|
38
|
+
PreacceptReceived = 2,
|
|
39
|
+
ReceivedCall = 3,
|
|
40
|
+
AcceptSent = 4,
|
|
41
|
+
AcceptReceived = 5,
|
|
42
|
+
CallActive = 6,
|
|
43
|
+
CallActiveElseWhere = 7,
|
|
44
|
+
ReceivedCallWithoutOffer = 8,
|
|
45
|
+
Rejoining = 9,
|
|
46
|
+
Link = 10,
|
|
47
|
+
ConnectedLonely = 11,
|
|
48
|
+
PreCalling = 12,
|
|
49
|
+
CallStateEnding = 13,
|
|
50
|
+
CallBCallStarting = 14
|
|
51
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 WAWebCreateChat >= 2.3000.0
|
|
18
|
+
*/
|
|
19
|
+
export declare function checkChatExistedOrCreate(options: {
|
|
20
|
+
destinationChat: any;
|
|
21
|
+
msgMeta: null;
|
|
22
|
+
chatOriginType: any;
|
|
23
|
+
initialProps: any;
|
|
24
|
+
options: {
|
|
25
|
+
forceUsync: any;
|
|
26
|
+
nextPrivacyMode: any;
|
|
27
|
+
};
|
|
28
|
+
}): Promise<any>;
|
|
@@ -17,4 +17,7 @@ import { Wid } from '../misc';
|
|
|
17
17
|
import { ChatModel } from '../models';
|
|
18
18
|
/** @whatsapp WAWebFindChatAction
|
|
19
19
|
*/
|
|
20
|
-
export declare function findOrCreateLatestChat(wid: Wid, type?: 'username_contactless_search'): Promise<
|
|
20
|
+
export declare function findOrCreateLatestChat(wid: Wid, type?: 'username_contactless_search' | 'forwardSelectedModals' | 'newChatFlow' | 'chatInfoTopCard'): Promise<{
|
|
21
|
+
chat: ChatModel;
|
|
22
|
+
created: boolean;
|
|
23
|
+
}>;
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Wid } from '../misc';
|
|
17
|
+
import { ChatModel } from '../models';
|
|
17
18
|
/**
|
|
18
19
|
* @whatsapp WAWebChatGetExistingBridge >= 2.3000.0
|
|
19
20
|
*/
|
|
20
|
-
export declare function getExisting(chatId: Wid): Promise<
|
|
21
|
+
export declare function getExisting(chatId: Wid): Promise<ChatModel | null>;
|
|
@@ -23,6 +23,7 @@ export * from './canEditCaption';
|
|
|
23
23
|
export * from './canEditMsg';
|
|
24
24
|
export * from './canReplyMsg';
|
|
25
25
|
export * from './changeOptInStatusForExternalWebBeta';
|
|
26
|
+
export * from './checkChatExistedOrCreate';
|
|
26
27
|
export * from './collections';
|
|
27
28
|
export * from './colorIndexToHex';
|
|
28
29
|
export * from './contactFunctions';
|
|
@@ -17,6 +17,7 @@ import { Wid } from '..';
|
|
|
17
17
|
export interface QueryGroupInviteResult {
|
|
18
18
|
announce: boolean;
|
|
19
19
|
creation: number;
|
|
20
|
+
/** description of the group; linebreaks are formatted using `"\n"` */
|
|
20
21
|
desc: string;
|
|
21
22
|
descId: string;
|
|
22
23
|
descOwner?: Wid;
|
|
@@ -32,13 +33,22 @@ export interface QueryGroupInviteResult {
|
|
|
32
33
|
}[];
|
|
33
34
|
pvId?: string;
|
|
34
35
|
restrict: boolean;
|
|
36
|
+
/** how many members the group currently has */
|
|
35
37
|
size: number;
|
|
36
38
|
status: number;
|
|
39
|
+
/** title of the group */
|
|
37
40
|
subject: string;
|
|
38
41
|
subjectOwner?: Wid;
|
|
39
42
|
subjectTime: number;
|
|
40
43
|
support: boolean;
|
|
41
44
|
suspended: boolean;
|
|
45
|
+
isParentGroup: boolean;
|
|
46
|
+
isParentGroupClosed: boolean;
|
|
47
|
+
defaultSubgroup: boolean;
|
|
48
|
+
generalSubgroup: boolean;
|
|
49
|
+
membershipApprovalMode: boolean;
|
|
50
|
+
isLidAddressingMode: boolean;
|
|
51
|
+
generalChatAutoAddDisabled: boolean;
|
|
42
52
|
}
|
|
43
53
|
/** @whatsapp 10790
|
|
44
54
|
* @whatsapp 810790 >= 2.2222.8
|
|
@@ -15,13 +15,18 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
17
17
|
interface Props {
|
|
18
|
+
id: string;
|
|
19
|
+
incomplete: boolean;
|
|
20
|
+
realProgress: number | null;
|
|
21
|
+
fakeProgress: number;
|
|
22
|
+
remainingPausedSeconds?: number;
|
|
23
|
+
_fakePausedCompletionTimeout: number;
|
|
24
|
+
_progressIncrementTimeout: number;
|
|
25
|
+
_lastUpdateSeconds: number;
|
|
18
26
|
}
|
|
19
27
|
interface Session {
|
|
20
28
|
}
|
|
21
29
|
interface Derived {
|
|
22
|
-
progress: number | null;
|
|
23
|
-
paused: boolean;
|
|
24
|
-
inProgress: boolean;
|
|
25
30
|
}
|
|
26
31
|
/**
|
|
27
32
|
* @whatsapp 649959 >= 2.2244.5
|
|
@@ -35,6 +40,8 @@ export declare class HistorySyncProgressModel extends Model {
|
|
|
35
40
|
constructor(proterties?: ModelPropertiesContructor<HistorySyncProgressModel>, options?: ModelOptions);
|
|
36
41
|
setInProgress(inProgress: boolean): void;
|
|
37
42
|
setPaused(paused: boolean): void;
|
|
43
|
+
setIncomplete(value: boolean): void;
|
|
38
44
|
setProgress(progress: number): void;
|
|
45
|
+
pausedExpiryCheckpoint(a?: number): void;
|
|
39
46
|
}
|
|
40
47
|
export {};
|