@wppconnect/wa-js 1.0.14 → 1.0.15
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 +4 -0
- package/README.md +4 -2
- package/dist/assert/assertColor.d.ts +35 -0
- package/dist/assert/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/labels/Labels.d.ts +52 -0
- package/dist/labels/index.d.ts +20 -0
- package/dist/labels/types.d.ts +22 -0
- package/dist/webpack.d.ts +1 -0
- package/dist/whatsapp/collections/{CollectionCache.d.ts → BaseCollection.d.ts} +2 -2
- package/dist/whatsapp/collections/BlocklistCollection.d.ts +1 -1
- package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +1 -1
- package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ButtonCollection.d.ts +3 -3
- package/dist/whatsapp/collections/CallCollection.d.ts +1 -1
- package/dist/whatsapp/collections/CartCollection.d.ts +1 -1
- package/dist/whatsapp/collections/CartItemCollection.d.ts +1 -1
- package/dist/whatsapp/collections/CatalogCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ChatCollection.d.ts +3 -3
- package/dist/whatsapp/collections/ChatstateCollection.d.ts +1 -1
- package/dist/whatsapp/collections/Collection.d.ts +2 -2
- package/dist/whatsapp/collections/ContactCollection.d.ts +1 -1
- package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +1 -1
- package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +1 -1
- package/dist/whatsapp/collections/LabelCollection.d.ts +2 -2
- package/dist/whatsapp/collections/LabelItemCollection.d.ts +1 -1
- package/dist/whatsapp/collections/LiveLocationCollection.d.ts +1 -1
- package/dist/whatsapp/collections/MsgCollection.d.ts +3 -3
- package/dist/whatsapp/collections/MsgInfoCollection.d.ts +1 -1
- package/dist/whatsapp/collections/MuteCollection.d.ts +1 -1
- package/dist/whatsapp/collections/OrderCollection.d.ts +1 -1
- package/dist/whatsapp/collections/OrderItemCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -1
- package/dist/whatsapp/collections/PresenceCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductCollCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductImageCollection.d.ts +1 -1
- package/dist/whatsapp/collections/ProductMessageListCollection.d.ts +4 -4
- package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +1 -1
- package/dist/whatsapp/collections/QuickReplyCollection.d.ts +1 -1
- package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +1 -1
- package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StarredMsgCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StarredStickerCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StatusCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StatusV3Collection.d.ts +3 -3
- package/dist/whatsapp/collections/StickerCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -1
- package/dist/whatsapp/collections/StickerSearchCollection.d.ts +1 -1
- package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +1 -1
- package/dist/whatsapp/collections/index.d.ts +1 -1
- package/dist/whatsapp/enums/LogoutReason.d.ts +1 -1
- package/dist/whatsapp/enums/OUTWARD_TYPES.d.ts +1 -1
- package/dist/whatsapp/enums/SendMsgResult.d.ts +1 -1
- package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +1 -1
- package/dist/whatsapp/functions/blockContact.d.ts +2 -2
- package/dist/whatsapp/functions/findChat.d.ts +1 -1
- package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -1
- package/dist/whatsapp/functions/groupParticipants.d.ts +4 -4
- package/dist/whatsapp/functions/isAuthenticated.d.ts +1 -1
- package/dist/whatsapp/functions/msgFindQuery.d.ts +1 -1
- package/dist/whatsapp/functions/products.d.ts +4 -4
- package/dist/whatsapp/functions/randomId.d.ts +2 -2
- package/dist/whatsapp/functions/sendClear.d.ts +1 -1
- package/dist/whatsapp/functions/sendCreateGroup.d.ts +1 -1
- package/dist/whatsapp/functions/sendDelete.d.ts +1 -1
- package/dist/whatsapp/functions/sendQueryExists.d.ts +1 -1
- package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +1 -1
- package/dist/whatsapp/functions/uploadProductImage.d.ts +1 -1
- package/dist/whatsapp/misc/Base64.d.ts +1 -1
- package/dist/whatsapp/misc/Browser.d.ts +1 -1
- package/dist/whatsapp/misc/Clock.d.ts +47 -0
- package/dist/whatsapp/misc/Cmd.d.ts +2 -2
- package/dist/whatsapp/misc/Conn.d.ts +1 -1
- package/dist/whatsapp/misc/Constants.d.ts +1 -1
- package/dist/whatsapp/misc/EventEmitter.d.ts +1 -1
- package/dist/whatsapp/misc/Features.d.ts +1 -1
- package/dist/whatsapp/misc/ImageUtils.d.ts +1 -1
- package/dist/whatsapp/misc/Locale.d.ts +1 -1
- package/dist/whatsapp/misc/MediaObject.d.ts +1 -1
- package/dist/whatsapp/misc/MediaObjectUtil.d.ts +1 -1
- package/dist/whatsapp/misc/MediaPrep.d.ts +1 -1
- package/dist/whatsapp/misc/MediaUtils.d.ts +1 -1
- package/dist/whatsapp/misc/MsgKey.d.ts +1 -1
- package/dist/whatsapp/misc/MsgLoadState.d.ts +4 -4
- package/dist/whatsapp/misc/OpaqueData.d.ts +2 -2
- package/dist/whatsapp/misc/State.d.ts +1 -1
- package/dist/whatsapp/misc/UserPrefs.d.ts +1 -1
- package/dist/whatsapp/misc/VCard.d.ts +1 -1
- package/dist/whatsapp/misc/Wid.d.ts +1 -1
- package/dist/whatsapp/misc/WidFactory.d.ts +1 -1
- package/dist/whatsapp/misc/index.d.ts +1 -1
- package/dist/whatsapp/models/AttachMediaModel.d.ts +2 -2
- package/dist/whatsapp/models/BlocklistModel.d.ts +2 -2
- package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +2 -2
- package/dist/whatsapp/models/BusinessProfileModel.d.ts +2 -2
- package/dist/whatsapp/models/CallModel.d.ts +2 -2
- package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -2
- package/dist/whatsapp/models/CartItemModel.d.ts +2 -2
- package/dist/whatsapp/models/CartModel.d.ts +2 -2
- package/dist/whatsapp/models/CatalogModel.d.ts +2 -2
- package/dist/whatsapp/models/ChatModel.d.ts +2 -2
- package/dist/whatsapp/models/ChatPreferenceModel.d.ts +2 -2
- package/dist/whatsapp/models/ChatstateModel.d.ts +2 -2
- package/dist/whatsapp/models/ConnModel.d.ts +2 -2
- package/dist/whatsapp/models/ContactModel.d.ts +2 -2
- package/dist/whatsapp/models/ConversionTupleModel.d.ts +2 -2
- package/dist/whatsapp/models/EmojiVariantModel.d.ts +2 -2
- package/dist/whatsapp/models/GroupMetadataModel.d.ts +2 -2
- package/dist/whatsapp/models/LabelItemModel.d.ts +2 -2
- package/dist/whatsapp/models/LabelModel.d.ts +2 -2
- package/dist/whatsapp/models/LiveLocationModel.d.ts +2 -2
- package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +2 -2
- package/dist/whatsapp/models/MediaDataModel.d.ts +2 -2
- package/dist/whatsapp/models/Model.d.ts +1 -1
- package/dist/whatsapp/models/ModelChatBase.d.ts +1 -1
- package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +2 -2
- package/dist/whatsapp/models/MsgInfoModel.d.ts +2 -2
- package/dist/whatsapp/models/MsgModel.d.ts +2 -2
- package/dist/whatsapp/models/MuteModel.d.ts +2 -2
- package/dist/whatsapp/models/OrderItemModel.d.ts +2 -2
- package/dist/whatsapp/models/OrderModel.d.ts +2 -2
- package/dist/whatsapp/models/ParticipantModel.d.ts +2 -2
- package/dist/whatsapp/models/ProductCollModel.d.ts +2 -2
- package/dist/whatsapp/models/ProductImageModel.d.ts +2 -2
- package/dist/whatsapp/models/{Product_listModel.d.ts → ProductMessageListModel.d.ts} +5 -5
- package/dist/whatsapp/models/ProductModel.d.ts +2 -2
- package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +2 -2
- package/dist/whatsapp/models/QuickReplyModel.d.ts +2 -2
- package/dist/whatsapp/models/RecentEmojiModel.d.ts +2 -2
- package/dist/whatsapp/models/RecentStickerModel.d.ts +2 -2
- package/dist/whatsapp/models/ReplyButtonModel.d.ts +2 -2
- package/dist/whatsapp/models/StateModel.d.ts +2 -2
- package/dist/whatsapp/models/StatusModel.d.ts +2 -2
- package/dist/whatsapp/models/StatusV3Model.d.ts +2 -2
- package/dist/whatsapp/models/StickerModel.d.ts +2 -2
- package/dist/whatsapp/models/StickerPackModel.d.ts +2 -2
- package/dist/whatsapp/models/TemplateButtonModel.d.ts +2 -2
- package/dist/whatsapp/models/UnreadMentionModel.d.ts +2 -2
- package/dist/whatsapp/models/WebCallModel.d.ts +2 -2
- package/dist/whatsapp/models/index.d.ts +1 -1
- package/dist/whatsapp/multidevice/adv.d.ts +1 -1
- package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -1
- package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -1
- package/dist/whatsapp/stores.d.ts +29 -29
- package/dist/wppconnect-wa.js +1 -1
- package/package.json +14 -15
- package/dist/whatsapp/misc/ClockSkew.d.ts +0 -43
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/@wppconnect/wa-js)
|
|
5
5
|
[](https://isitmaintained.com/project/wppconnect/wa-js 'Average time to resolve an issue')
|
|
6
6
|
[](https://isitmaintained.com/project/wppconnect/wa-js 'Percentage of issues still open')
|
|
7
|
-
|
|
8
|
-
[](https://github.com/wppconnect-team/wa-js/actions/workflows/build.yml)
|
|
9
|
+
[](https://github.com/wppconnect-team/wa-js/actions/workflows/test.yml)
|
|
10
|
+
[](https://github.com/wppconnect-team/wa-js/actions/workflows/lint.yml)
|
|
9
11
|
[](https://github.com/release-it/release-it)
|
|
10
12
|
|
|
11
13
|
> WPPConnect/WA-JS is an open-source project with the aim of exporting functions from WhatsApp Web, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination...
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { WPPError } from '../util';
|
|
17
|
+
export declare class InvalidColor extends WPPError {
|
|
18
|
+
readonly color?: string | number | {
|
|
19
|
+
_serialized: string;
|
|
20
|
+
} | undefined;
|
|
21
|
+
constructor(color?: string | number | {
|
|
22
|
+
_serialized: string;
|
|
23
|
+
} | undefined);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Return the color in positive decimal
|
|
27
|
+
* @example
|
|
28
|
+
* ```javascript
|
|
29
|
+
* assertColor('#dfaef0'); //Result: 4292849392
|
|
30
|
+
* assertColor('dfaef0'); //Result: 4292849392
|
|
31
|
+
* assertColor(-2117904); //Result: 4292849392
|
|
32
|
+
* assertColor(4292849392); //Result: 4292849392
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function assertColor(color?: string | number): number;
|
package/dist/assert/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export { default as chat } from './chat';
|
|
|
27
27
|
export { default as contact } from './contact';
|
|
28
28
|
export { default as group } from './group';
|
|
29
29
|
export { default as status } from './status';
|
|
30
|
+
export { default as labels } from './labels';
|
|
30
31
|
export * as whatsapp from './whatsapp';
|
|
31
32
|
export declare const version: string;
|
|
32
33
|
export declare const license = "Apache-2.0";
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { newLabelOptions } from './types';
|
|
17
|
+
export declare class Labels {
|
|
18
|
+
constructor();
|
|
19
|
+
initialize(): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Add a new label
|
|
22
|
+
* Use await WPP.labels.getLabelColorPalette() to get the list of available colors
|
|
23
|
+
* @example
|
|
24
|
+
* ```javascript
|
|
25
|
+
* await WPP.labels.addNewLabel(`Name of label`);
|
|
26
|
+
* //or
|
|
27
|
+
* await WPP.labels.addNewLabel(`Name of label`, { labelColor: 'dfaef0' });
|
|
28
|
+
* //or
|
|
29
|
+
* await WPP.labels.addNewLabel(`Name of label`, { labelColor: 4292849392 });
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
addNewLabel(labelName: string, options?: newLabelOptions): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Return the color of the next label in positive decimal
|
|
35
|
+
*/
|
|
36
|
+
getNewLabelColor(): Promise<number>;
|
|
37
|
+
/**
|
|
38
|
+
* Returns an array of color palette in positive decimal
|
|
39
|
+
*/
|
|
40
|
+
getLabelColorPalette(): Promise<Array<number>>;
|
|
41
|
+
/**
|
|
42
|
+
* Check if color is in label palette
|
|
43
|
+
* @param color If it's decimal, send it as a number. If it's hexadecimal, send it as a string
|
|
44
|
+
* @example
|
|
45
|
+
* ```javascript
|
|
46
|
+
* await WPP.labels.colorIsInLabelPalette('ffd429');
|
|
47
|
+
* //or
|
|
48
|
+
* await WPP.labels.colorIsInLabelPalette(4284794111);
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
colorIsInLabelPalette(color: string | number): Promise<boolean>;
|
|
52
|
+
}
|
|
@@ -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 { Labels } from './Labels';
|
|
17
|
+
export * from './Labels';
|
|
18
|
+
export * from './types';
|
|
19
|
+
declare const _default: Labels;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
export interface newLabelOptions {
|
|
17
|
+
/**
|
|
18
|
+
* If it's decimal, send it as a number. If it's hexadecimal, send it as a string.
|
|
19
|
+
* If labelColor is omitted, the color will be generated automatically
|
|
20
|
+
*/
|
|
21
|
+
labelColor?: string | number;
|
|
22
|
+
}
|
package/dist/webpack.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export declare let webpackRequire: (<T = any>(moduleId: string) => T) & {
|
|
|
41
41
|
e: (id: string) => Promise<void>;
|
|
42
42
|
};
|
|
43
43
|
export declare function injectLoader(): void;
|
|
44
|
+
export declare function isReactComponent(moduleId: string): boolean | undefined;
|
|
44
45
|
/**
|
|
45
46
|
* Return the webpack module id from a search function
|
|
46
47
|
* @param condition Function for compare the modules
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Stringable } from '../../types';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
19
|
-
export declare class
|
|
18
|
+
/** @whatsapp 2.2146.9:36513 */
|
|
19
|
+
export declare class BaseCollection<C, A = C | C[]> extends Collection<C> {
|
|
20
20
|
static cachePolicy: {
|
|
21
21
|
id: string;
|
|
22
22
|
policy: string;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BlocklistModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:15701 */
|
|
19
19
|
export declare class BlocklistCollection extends Collection<BlocklistModel> {
|
|
20
20
|
static model: BlocklistModel;
|
|
21
21
|
blockContact(e?: any): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BusinessCategoriesResultModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:54100 */
|
|
19
19
|
export declare class BusinessCategoriesResultCollection extends Collection<BusinessCategoriesResultModel> {
|
|
20
20
|
static model: BusinessCategoriesResultModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { BusinessProfileModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:8581 */
|
|
19
19
|
export declare class BusinessProfileCollection extends Collection<BusinessProfileModel> {
|
|
20
20
|
static model: BusinessProfileModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ReplyButtonModel } from '../models';
|
|
17
|
-
import {
|
|
18
|
-
/** @whatsapp 2.
|
|
19
|
-
export declare class ButtonCollection extends
|
|
17
|
+
import { BaseCollection } from './BaseCollection';
|
|
18
|
+
/** @whatsapp 2.2146.9:84142 */
|
|
19
|
+
export declare class ButtonCollection extends BaseCollection<ReplyButtonModel> {
|
|
20
20
|
static model: ReplyButtonModel;
|
|
21
21
|
static comparator(): any;
|
|
22
22
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CallModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:15971 */
|
|
19
19
|
export declare class CallCollection extends Collection<CallModel> {
|
|
20
20
|
static model: CallModel;
|
|
21
21
|
pendingOffers?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CartModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:25523 */
|
|
19
19
|
export declare class CartCollection extends Collection<CartModel> {
|
|
20
20
|
static model: CartModel;
|
|
21
21
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CartItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:29844 */
|
|
19
19
|
export declare class CartItemCollection extends Collection<CartItemModel> {
|
|
20
20
|
static model: CartItemModel;
|
|
21
21
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { CatalogModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:60028 */
|
|
19
19
|
export declare class CatalogCollection extends Collection<CatalogModel> {
|
|
20
20
|
static model: CatalogModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel } from '../models';
|
|
17
|
-
import {
|
|
18
|
-
/** @whatsapp 2.
|
|
19
|
-
export declare class ChatCollection extends
|
|
17
|
+
import { BaseCollection } from './BaseCollection';
|
|
18
|
+
/** @whatsapp 2.2146.9:84758 */
|
|
19
|
+
export declare class ChatCollection extends BaseCollection<ChatModel> {
|
|
20
20
|
static model: ChatModel;
|
|
21
21
|
static comparator(): any;
|
|
22
22
|
notSpam?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatstateModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:42165 */
|
|
19
19
|
export declare class ChatstateCollection extends Collection<ChatstateModel> {
|
|
20
20
|
static model: ChatstateModel;
|
|
21
21
|
}
|
|
@@ -20,10 +20,10 @@ interface Option {
|
|
|
20
20
|
merge: boolean;
|
|
21
21
|
remove: boolean;
|
|
22
22
|
}
|
|
23
|
-
/** @whatsapp 2.
|
|
23
|
+
/** @whatsapp 2.2146.9:85392 */
|
|
24
24
|
export declare interface Collection<M> extends EventEmitter, Pick<Array<M>, 'indexOf' | 'lastIndexOf' | 'every' | 'some' | 'forEach' | 'map' | 'filter' | 'reduce' | 'slice'> {
|
|
25
25
|
}
|
|
26
|
-
/** @whatsapp 2.
|
|
26
|
+
/** @whatsapp 2.2146.9:85392 */
|
|
27
27
|
export declare class Collection<M, A = M | M[]> extends EventEmitter {
|
|
28
28
|
static model: any;
|
|
29
29
|
static comparator: (a: any, b: any) => number;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ContactModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:17025 */
|
|
19
19
|
export declare class ContactCollection extends Collection<ContactModel> {
|
|
20
20
|
static model: ContactModel;
|
|
21
21
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { EmojiVariantModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:41098 */
|
|
19
19
|
export declare class EmojiVariantCollection extends Collection<EmojiVariantModel> {
|
|
20
20
|
static model: EmojiVariantModel;
|
|
21
21
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { GroupMetadataModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:75798 */
|
|
19
19
|
export declare class GroupMetadataCollection extends Collection<GroupMetadataModel> {
|
|
20
20
|
static model: GroupMetadataModel;
|
|
21
21
|
static cachePolicy?: any;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel, LabelModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:59606 */
|
|
19
19
|
export declare class LabelCollection extends Collection<LabelModel> {
|
|
20
20
|
static model: LabelModel;
|
|
21
21
|
static staleCollection?: any;
|
|
22
22
|
static resumeOnAvailable?: any;
|
|
23
23
|
checksum?: any;
|
|
24
24
|
initializeAssociationsFromCache(e?: any): any;
|
|
25
|
-
addNewLabel(
|
|
25
|
+
addNewLabel(labelName: string, labelColor: string): any;
|
|
26
26
|
removeAllLabelsMD(chat: ChatModel): any;
|
|
27
27
|
addOrRemoveLabelsMD(e?: any, t?: any): any;
|
|
28
28
|
addOrRemoveLabels(e?: any, t?: any): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LabelItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:42745 */
|
|
19
19
|
export declare class LabelItemCollection extends Collection<LabelItemModel> {
|
|
20
20
|
static model: LabelItemModel;
|
|
21
21
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { LiveLocationModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:31104 */
|
|
19
19
|
export declare class LiveLocationCollection extends Collection<LiveLocationModel> {
|
|
20
20
|
static model: LiveLocationModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Wid } from '..';
|
|
17
17
|
import { ModelPropertiesContructor, MsgModel } from '../models';
|
|
18
|
-
import {
|
|
19
|
-
/** @whatsapp 2.
|
|
20
|
-
export declare class MsgCollection extends
|
|
18
|
+
import { BaseCollection } from './BaseCollection';
|
|
19
|
+
/** @whatsapp 2.2146.9:45472 */
|
|
20
|
+
export declare class MsgCollection extends BaseCollection<MsgModel> {
|
|
21
21
|
static model: MsgModel;
|
|
22
22
|
lastReceivedReceipt?: any;
|
|
23
23
|
lastReceivedPaymentTransaction?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MsgInfoModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:57636 */
|
|
19
19
|
export declare class MsgInfoCollection extends Collection<MsgInfoModel> {
|
|
20
20
|
static model: MsgInfoModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MuteModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:80959 */
|
|
19
19
|
export declare class MuteCollection extends Collection<MuteModel> {
|
|
20
20
|
static model: MuteModel;
|
|
21
21
|
static cachePolicy?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { OrderModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:98052 */
|
|
19
19
|
export declare class OrderCollection extends Collection<OrderModel> {
|
|
20
20
|
static model: OrderModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { OrderItemModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:2414 */
|
|
19
19
|
export declare class OrderItemCollection extends Collection<OrderItemModel> {
|
|
20
20
|
static model: OrderItemModel;
|
|
21
21
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ParticipantModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:16748 */
|
|
19
19
|
export declare class ParticipantCollection extends Collection<ParticipantModel> {
|
|
20
20
|
static model: ParticipantModel;
|
|
21
21
|
static comparator(): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ChatstateModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:48327 */
|
|
19
19
|
export declare class PresenceCollection extends Collection<ChatstateModel> {
|
|
20
20
|
static model: ChatstateModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductCollModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:63875 */
|
|
19
19
|
export declare class ProductCollCollection extends Collection<ProductCollModel> {
|
|
20
20
|
static model: ProductCollModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:26491 */
|
|
19
19
|
export declare class ProductCollection extends Collection<ProductModel> {
|
|
20
20
|
static model: ProductModel;
|
|
21
21
|
getProductModels(e?: boolean): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProductImageModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:55845 */
|
|
19
19
|
export declare class ProductImageCollection extends Collection<ProductImageModel> {
|
|
20
20
|
static model: ProductImageModel;
|
|
21
21
|
}
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { ProductMessageListModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
19
|
-
export declare class ProductMessageListCollection extends Collection<
|
|
20
|
-
static model:
|
|
18
|
+
/** @whatsapp 2.2146.9:97038 */
|
|
19
|
+
export declare class ProductMessageListCollection extends Collection<ProductMessageListModel> {
|
|
20
|
+
static model: ProductMessageListModel;
|
|
21
21
|
static staleCollection?: any;
|
|
22
22
|
getOrAdd(e?: any, t?: any, r?: any, a?: any): any;
|
|
23
23
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { ProfilePicThumbModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:3165 */
|
|
19
19
|
export declare class ProfilePicThumbCollection extends Collection<ProfilePicThumbModel> {
|
|
20
20
|
static model: ProfilePicThumbModel;
|
|
21
21
|
static staleCollection?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { QuickReplyModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:60123 */
|
|
19
19
|
export declare class QuickReplyCollection extends Collection<QuickReplyModel> {
|
|
20
20
|
static model: QuickReplyModel;
|
|
21
21
|
checksum?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { RecentEmojiModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:30462 */
|
|
19
19
|
export declare class RecentEmojiCollection extends Collection<RecentEmojiModel> {
|
|
20
20
|
static cachePolicy?: any;
|
|
21
21
|
static model: RecentEmojiModel;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:27686 */
|
|
19
19
|
export declare class RecentStickerCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
enqueue(e?: any): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { MsgModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:30118 */
|
|
19
19
|
export declare class StarredMsgCollection extends Collection<MsgModel> {
|
|
20
20
|
static model: MsgModel;
|
|
21
21
|
syncPromise?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:68477 */
|
|
19
19
|
export declare class StarredStickerCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
syncNextPage(): any;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { Wid } from '../misc';
|
|
17
17
|
import { StatusModel } from '../models';
|
|
18
18
|
import { Collection } from './Collection';
|
|
19
|
-
/** @whatsapp 2.
|
|
19
|
+
/** @whatsapp 2.2146.9:22360 */
|
|
20
20
|
export declare class StatusCollection extends Collection<StatusModel> {
|
|
21
21
|
static model: StatusModel;
|
|
22
22
|
static idClass: typeof Wid;
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { StatusV3Model } from '../models';
|
|
17
|
-
import {
|
|
18
|
-
/** @whatsapp 2.
|
|
19
|
-
export declare class StatusV3Collection extends
|
|
17
|
+
import { BaseCollection } from '.';
|
|
18
|
+
/** @whatsapp 2.2146.9:70173 */
|
|
19
|
+
export declare class StatusV3Collection extends BaseCollection<StatusV3Model> {
|
|
20
20
|
static model: StatusV3Model;
|
|
21
21
|
loadMore(e?: any, t?: any, r?: any): any;
|
|
22
22
|
sync(e?: any): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:16482 */
|
|
19
19
|
export declare class StickerCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
fetch(): any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerPackModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:45822 */
|
|
19
19
|
export declare class StickerPackCollection extends Collection<StickerPackModel> {
|
|
20
20
|
static model: StickerPackModel;
|
|
21
21
|
checksum?: any;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { StickerModel } from '../models';
|
|
17
17
|
import { Collection } from './Collection';
|
|
18
|
-
/** @whatsapp 2.
|
|
18
|
+
/** @whatsapp 2.2146.9:6009 */
|
|
19
19
|
export declare class StickerSearchCollection extends Collection<StickerModel> {
|
|
20
20
|
static model: StickerModel;
|
|
21
21
|
isFetchingData(): boolean;
|