@wppconnect/wa-js 2.1.2 → 2.1.3
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
|
@@ -31,5 +31,3 @@ import { MsgKey, MsgModel } from '../../whatsapp';
|
|
|
31
31
|
*/
|
|
32
32
|
export declare function getMessageById(id: string | MsgKey): Promise<MsgModel>;
|
|
33
33
|
export declare function getMessageById(ids: (string | MsgKey)[]): Promise<MsgModel[]>;
|
|
34
|
-
export declare function getMessageById(notUsed: any, id: string): Promise<MsgModel>;
|
|
35
|
-
export declare function getMessageById(notUsed: any, ids: string[]): Promise<MsgModel[]>;
|
package/dist/labels/types.d.ts
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { ChatModel, LabelModel } from '../models';
|
|
17
|
-
import {
|
|
17
|
+
import { BaseCollection } from './BaseCollection';
|
|
18
18
|
/** @whatsapp 16770 */
|
|
19
|
-
export declare class LabelCollection extends
|
|
19
|
+
export declare class LabelCollection extends BaseCollection<LabelModel> {
|
|
20
20
|
static model: LabelModel;
|
|
21
21
|
static staleCollection?: any;
|
|
22
22
|
static resumeOnAvailable?: any;
|
|
@@ -31,8 +31,6 @@ export declare class LabelCollection extends Collection<LabelModel> {
|
|
|
31
31
|
getNewLabelColor(): any;
|
|
32
32
|
getLabelColorPalette(): any;
|
|
33
33
|
handleRemove(e?: any): any;
|
|
34
|
-
onResume(): any;
|
|
35
|
-
sync(e?: any): any;
|
|
36
34
|
updateChecksum(e?: any): any;
|
|
37
35
|
getLabelsForModel(e?: any, t?: any): any;
|
|
38
36
|
_find(): any;
|
|
@@ -15,16 +15,17 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Model, ModelOptions, ModelPropertiesContructor, ModelProxy } from './Model';
|
|
17
17
|
interface Props {
|
|
18
|
-
id
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
colorIndex?: number;
|
|
21
|
+
color?: number;
|
|
21
22
|
count?: any;
|
|
22
23
|
}
|
|
23
24
|
interface Session {
|
|
24
25
|
stale?: any;
|
|
25
26
|
}
|
|
26
27
|
interface Derived {
|
|
27
|
-
hexColor
|
|
28
|
+
hexColor: string;
|
|
28
29
|
}
|
|
29
30
|
/** @whatsapp 8803 */
|
|
30
31
|
export declare interface LabelModel extends ModelProxy<Props, Session, Derived> {
|