@wppconnect/wa-js 3.12.1 → 3.13.0
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 +1 -6
- package/README.md +4 -4
- package/dist/community/functions/getAnnouncementGroup.d.ts +28 -0
- package/dist/community/functions/getSubgroups.d.ts +28 -0
- package/dist/community/functions/index.d.ts +2 -0
- package/dist/whatsapp/collections/BotProfileCollection.d.ts +26 -0
- package/dist/whatsapp/collections/index.d.ts +1 -0
- package/dist/whatsapp/functions/genBotMsgSecretFromMsgSecret.d.ts +19 -0
- package/dist/whatsapp/functions/index.d.ts +1 -0
- package/dist/whatsapp/misc/Wid.d.ts +1 -0
- package/dist/whatsapp/models/BotProfileModel.d.ts +51 -0
- package/dist/whatsapp/models/ChatModel.d.ts +1 -0
- package/dist/whatsapp/models/index.d.ts +1 -0
- package/dist/whatsapp/stores.d.ts +3 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@wppconnect/wa-js)
|
|
4
4
|
[](https://www.npmjs.com/package/@wppconnect/wa-js)
|
|
5
|
-
[](https://isitmaintained.com/project/wppconnect/wa-js 'Average time to resolve an issue')
|
|
6
|
-
[](https://isitmaintained.com/project/wppconnect/wa-js 'Percentage of issues still open')
|
|
5
|
+
[](https://isitmaintained.com/project/wppconnect-team/wa-js 'Average time to resolve an issue')
|
|
6
|
+
[](https://isitmaintained.com/project/wppconnect-team/wa-js 'Percentage of issues still open')
|
|
7
7
|
|
|
8
8
|
[](https://github.com/wppconnect-team/wa-js/actions/workflows/build.yml)
|
|
9
9
|
[](https://github.com/wppconnect-team/wa-js/actions/workflows/test.yml)
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
## Our online channels
|
|
16
16
|
|
|
17
17
|
[](https://discord.gg/JU5JGGKGNG)
|
|
18
|
-
[](https://t.me/wppconnect)
|
|
19
|
-
[](https://chat.whatsapp.com/LJaQu6ZyNvnBPNAVRbX00K)
|
|
20
18
|
[](https://www.youtube.com/c/wppconnect)
|
|
19
|
+
[](https://chat.whatsapp.com/LJaQu6ZyNvnBPNAVRbX00K)
|
|
20
|
+
[](https://t.me/wppconnect)
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
### Top Contributors (last 45 days) widget
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 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 '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Get the default announcement group of a community
|
|
19
|
+
* You can pass any group id inside a community
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```javascript
|
|
23
|
+
* WPP.community.getAnnouncementGroup('123456@g.us');
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @category Community
|
|
27
|
+
*/
|
|
28
|
+
export declare function getAnnouncementGroup(communityId: string | Wid): Wid | undefined;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 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 '../../whatsapp';
|
|
17
|
+
/**
|
|
18
|
+
* Get all subgroups of a community
|
|
19
|
+
* You can pass id of group community, or id of a inside a grupo
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```javascript
|
|
23
|
+
* await WPP.community.getSubgroups('123456@g.us');
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @category Community
|
|
27
|
+
*/
|
|
28
|
+
export declare function getSubgroups(communityId: string | Wid): Wid[];
|
|
@@ -17,6 +17,8 @@ export { addSubgroups } from './addSubgroups';
|
|
|
17
17
|
export { create } from './create';
|
|
18
18
|
export { deactivate } from './deactivate';
|
|
19
19
|
export { demoteParticipants } from './demoteParticipants';
|
|
20
|
+
export { getAnnouncementGroup } from './getAnnouncementGroup';
|
|
20
21
|
export { getParticipants } from './getParticipants';
|
|
22
|
+
export { getSubgroups } from './getSubgroups';
|
|
21
23
|
export { promoteParticipants } from './promoteParticipants';
|
|
22
24
|
export { removeSubgroups } from './removeSubgroups';
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { BotProfileModel } from '../models/BotProfileModel';
|
|
17
|
+
import { Collection } from './Collection';
|
|
18
|
+
/** @whatsapp WAWebBotProfileCollection
|
|
19
|
+
*/
|
|
20
|
+
export declare class BotProfileCollection extends Collection<BotProfileModel> {
|
|
21
|
+
static model: BotProfileModel;
|
|
22
|
+
static staleCollection?: any;
|
|
23
|
+
getDefaultBot(): any;
|
|
24
|
+
findImpl(a?: any): any;
|
|
25
|
+
update(): any;
|
|
26
|
+
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export * from './AggReactionsCollection';
|
|
17
17
|
export * from './BaseCollection';
|
|
18
18
|
export * from './BlocklistCollection';
|
|
19
|
+
export * from './BotProfileCollection';
|
|
19
20
|
export * from './BusinessCategoriesResultCollection';
|
|
20
21
|
export * from './BusinessProfileCollection';
|
|
21
22
|
export * from './ButtonCollection';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 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 WAWebBotMessageSecret
|
|
18
|
+
*/
|
|
19
|
+
export declare function genBotMsgSecretFromMsgSecret(a: any): Promise<any>;
|
|
@@ -49,6 +49,7 @@ export * from './findCommonGroups';
|
|
|
49
49
|
export * from './findFirstWebLink';
|
|
50
50
|
export * from './forwardMessagesToChats';
|
|
51
51
|
export * from './frontendFireAndForget';
|
|
52
|
+
export * from './genBotMsgSecretFromMsgSecret';
|
|
52
53
|
export * from './generateVideoThumbsAndDuration';
|
|
53
54
|
export * from './genLinkDeviceCodeForPhoneNumber';
|
|
54
55
|
export * from './genMinimalLinkPreview';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2024 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 { BotProfileCollection } from '../collections';
|
|
17
|
+
import { Wid } from '../misc';
|
|
18
|
+
import { ContactModel } from './ContactModel';
|
|
19
|
+
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
20
|
+
interface Props {
|
|
21
|
+
id: Wid;
|
|
22
|
+
name: string;
|
|
23
|
+
attrs?: any;
|
|
24
|
+
description?: any;
|
|
25
|
+
category?: any;
|
|
26
|
+
isDefault: boolean;
|
|
27
|
+
prompts?: any[];
|
|
28
|
+
personaId: string;
|
|
29
|
+
commands: any[];
|
|
30
|
+
commandsDescription: any;
|
|
31
|
+
isMetaCreated: boolean;
|
|
32
|
+
creatorName?: string;
|
|
33
|
+
creatorProfileUrl?: string;
|
|
34
|
+
lastUpdateTs: number;
|
|
35
|
+
}
|
|
36
|
+
interface Session {
|
|
37
|
+
contact: ContactModel;
|
|
38
|
+
}
|
|
39
|
+
interface Derived {
|
|
40
|
+
}
|
|
41
|
+
/** @whatsapp WAWebBotProfileModel
|
|
42
|
+
*/
|
|
43
|
+
export declare interface BotProfileModel extends ModelProxy<Props, Session, Derived> {
|
|
44
|
+
}
|
|
45
|
+
/** @whatsapp WAWebBotProfileModel
|
|
46
|
+
*/
|
|
47
|
+
export declare class BotProfileModel extends Model<BotProfileCollection> {
|
|
48
|
+
idClass: typeof Wid;
|
|
49
|
+
constructor(proterties?: ModelPropertiesContructor<BotProfileModel>, options?: ModelOptions);
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
export * from './AggReactionsModel';
|
|
17
17
|
export * from './AttachMediaModel';
|
|
18
18
|
export * from './BlocklistModel';
|
|
19
|
+
export * from './BotProfileModel';
|
|
19
20
|
export * from './BusinessCategoriesResultModel';
|
|
20
21
|
export * from './BusinessProfileModel';
|
|
21
22
|
export * from './CallModel';
|
|
@@ -26,6 +26,9 @@ export declare const BusinessCategoriesResultStore: collections.BusinessCategori
|
|
|
26
26
|
* @whatsapp 493581 >= 2.2222.8
|
|
27
27
|
*/
|
|
28
28
|
export declare const BusinessProfileStore: collections.BusinessProfileCollection;
|
|
29
|
+
/** @whatsapp WAWebBotProfileCollection
|
|
30
|
+
*/
|
|
31
|
+
export declare const BotProfileStore: collections.BotProfileCollection;
|
|
29
32
|
/** @whatsapp 60868
|
|
30
33
|
* @whatsapp 31218 >= 2.2204.13
|
|
31
34
|
* @whatsapp 160868 >= 2.2222.8
|