@juzi/wechaty 1.0.18 → 1.0.19
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/dist/cjs/src/package-json.js +2 -2
- package/dist/cjs/src/pure-functions/update.d.ts +9 -0
- package/dist/cjs/src/pure-functions/update.d.ts.map +1 -0
- package/dist/cjs/src/pure-functions/update.js +73 -0
- package/dist/cjs/src/pure-functions/update.js.map +1 -0
- package/dist/cjs/src/schemas/contact-events.d.ts +4 -1
- package/dist/cjs/src/schemas/contact-events.d.ts.map +1 -1
- package/dist/cjs/src/schemas/contact-events.js.map +1 -1
- package/dist/cjs/src/schemas/room-events.d.ts +5 -1
- package/dist/cjs/src/schemas/room-events.d.ts.map +1 -1
- package/dist/cjs/src/schemas/room-events.js +1 -0
- package/dist/cjs/src/schemas/room-events.js.map +1 -1
- package/dist/cjs/src/schemas/update.d.ts +12 -0
- package/dist/cjs/src/schemas/update.d.ts.map +1 -0
- package/dist/cjs/src/schemas/update.js +3 -0
- package/dist/cjs/src/schemas/update.js.map +1 -0
- package/dist/cjs/src/schemas/wechaty-events.d.ts +5 -1
- package/dist/cjs/src/schemas/wechaty-events.d.ts.map +1 -1
- package/dist/cjs/src/schemas/wechaty-events.js +1 -0
- package/dist/cjs/src/schemas/wechaty-events.js.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-base.d.ts +7 -7
- package/dist/cjs/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
- package/dist/cjs/src/wechaty-mixins/io-mixin.d.ts +2 -2
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +5 -5
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +5 -5
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +6 -6
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +4 -12
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +23 -0
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +1 -1
- package/dist/esm/src/package-json.js +2 -2
- package/dist/esm/src/pure-functions/update.d.ts +9 -0
- package/dist/esm/src/pure-functions/update.d.ts.map +1 -0
- package/dist/esm/src/pure-functions/update.js +69 -0
- package/dist/esm/src/pure-functions/update.js.map +1 -0
- package/dist/esm/src/schemas/contact-events.d.ts +4 -1
- package/dist/esm/src/schemas/contact-events.d.ts.map +1 -1
- package/dist/esm/src/schemas/contact-events.js.map +1 -1
- package/dist/esm/src/schemas/room-events.d.ts +5 -1
- package/dist/esm/src/schemas/room-events.d.ts.map +1 -1
- package/dist/esm/src/schemas/room-events.js +1 -0
- package/dist/esm/src/schemas/room-events.js.map +1 -1
- package/dist/esm/src/schemas/update.d.ts +12 -0
- package/dist/esm/src/schemas/update.d.ts.map +1 -0
- package/dist/esm/src/schemas/update.js +2 -0
- package/dist/esm/src/schemas/update.js.map +1 -0
- package/dist/esm/src/schemas/wechaty-events.d.ts +5 -1
- package/dist/esm/src/schemas/wechaty-events.d.ts.map +1 -1
- package/dist/esm/src/schemas/wechaty-events.js +1 -0
- package/dist/esm/src/schemas/wechaty-events.js.map +1 -1
- package/dist/esm/src/wechaty/wechaty-base.d.ts +7 -7
- package/dist/esm/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
- package/dist/esm/src/wechaty-mixins/io-mixin.d.ts +2 -2
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +5 -5
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +5 -5
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +6 -6
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +4 -12
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.js +23 -0
- package/dist/esm/src/wechaty-mixins/puppet-mixin.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +1 -1
- package/package.json +1 -1
- package/src/package-json.ts +2 -2
- package/src/pure-functions/update.ts +68 -0
- package/src/schemas/contact-events.ts +4 -0
- package/src/schemas/room-events.ts +5 -0
- package/src/schemas/update.ts +14 -0
- package/src/schemas/wechaty-events.ts +5 -1
- package/src/wechaty-mixins/puppet-mixin.ts +24 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.packageJson = exports.GIT_COMMIT_HASH = void 0;
|
|
4
|
-
exports.GIT_COMMIT_HASH = '
|
|
4
|
+
exports.GIT_COMMIT_HASH = '57a2595e3a5d5a2b1705ee967dbf2429a569bfbd';
|
|
5
5
|
exports.packageJson = {
|
|
6
6
|
"name": "@juzi/wechaty",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.19",
|
|
8
8
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
9
9
|
"type": "module",
|
|
10
10
|
"exports": {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InfoUpdateValuePair } from '../schemas/update';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* No need to go recursive on payload diff becasue
|
|
5
|
+
* 1. most fields of payloads are primitive values
|
|
6
|
+
* 2. users does not want to compare array items, they just need to know this field has changed. And we don't offer methods to get a subObject value
|
|
7
|
+
*/
|
|
8
|
+
export declare const diffPayload: (objectOld: any, objectNew: any) => InfoUpdateValuePair[];
|
|
9
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/pure-functions/update.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,WAAW,cAAe,GAAG,aAAa,GAAG,KAAG,mBAAmB,EAwC/E,CAAA"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.diffPayload = void 0;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* No need to go recursive on payload diff becasue
|
|
7
|
+
* 1. most fields of payloads are primitive values
|
|
8
|
+
* 2. users does not want to compare array items, they just need to know this field has changed. And we don't offer methods to get a subObject value
|
|
9
|
+
*/
|
|
10
|
+
const diffPayload = (objectOld, objectNew) => {
|
|
11
|
+
const keys = new Set([...Object.keys(objectOld || {}), ...Object.keys(objectNew || {})]);
|
|
12
|
+
const result = [];
|
|
13
|
+
for (const key of keys) {
|
|
14
|
+
const subObjectOld = objectOld[key];
|
|
15
|
+
const subObjectNew = objectNew[key];
|
|
16
|
+
if (typeof subObjectOld !== typeof subObjectNew) {
|
|
17
|
+
result.push({
|
|
18
|
+
key,
|
|
19
|
+
oldValue: typeof subObjectOld !== 'object' ? subObjectOld : JSON.stringify(subObjectOld),
|
|
20
|
+
newValue: typeof subObjectNew !== 'object' ? subObjectNew : JSON.stringify(subObjectNew),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
if (typeof subObjectOld !== 'object') {
|
|
25
|
+
if (subObjectOld === subObjectNew) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
result.push({
|
|
30
|
+
key,
|
|
31
|
+
oldValue: subObjectOld,
|
|
32
|
+
newValue: subObjectNew,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
// for objects, we just judge if they were same or not, but do not record every different value
|
|
38
|
+
if (objectDeepDiff(subObjectOld, subObjectNew)) {
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
result.push({
|
|
43
|
+
key,
|
|
44
|
+
oldValue: JSON.stringify(subObjectOld),
|
|
45
|
+
newValue: JSON.stringify(subObjectNew),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return result;
|
|
52
|
+
};
|
|
53
|
+
exports.diffPayload = diffPayload;
|
|
54
|
+
const objectDeepDiff = (objectA, objectB) => {
|
|
55
|
+
const keys = new Set([...Object.keys(objectA), ...Object.keys(objectB)]);
|
|
56
|
+
for (const key of keys) {
|
|
57
|
+
if (typeof objectA[key] !== typeof objectB[key]) {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
if (typeof objectA[key] !== 'object') {
|
|
61
|
+
if (objectA[key] !== objectB[key]) {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
if (!objectDeepDiff(objectA[key], objectB[key])) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return true;
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/pure-functions/update.ts"],"names":[],"mappings":";;;AAEA;;;;;GAKG;AACI,MAAM,WAAW,GAAG,CAAC,SAAc,EAAE,SAAc,EAAyB,EAAE;IACnF,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;IACxF,MAAM,MAAM,GAAG,EAAE,CAAA;IACjB,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;QACnC,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC,CAA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,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,OAAO,OAAO,CAAC,GAAG,CAAC,EAAE;YAC/C,OAAO,KAAK,CAAA;SACb;QACD,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE;YACpC,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,EAAE;gBACjC,OAAO,KAAK,CAAA;aACb;SACF;aAAM;YACL,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE;gBAC/C,OAAO,KAAK,CAAA;aACb;SACF;KACF;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type TypedEventEmitter from 'typed-emitter';
|
|
2
2
|
import type { ContactInterface, FriendshipInterface, MessageInterface } from '../user-modules/mod.js';
|
|
3
|
+
import type { InfoUpdateInterface } from './update.js';
|
|
3
4
|
declare type ContactEventListenerMessage = (this: ContactInterface, message: MessageInterface, date?: Date) => void | Promise<void>;
|
|
4
5
|
declare type ContactEventListenerFriendship = (friendship: FriendshipInterface) => void | Promise<void>;
|
|
6
|
+
declare type ContactEventListenerUpdate = (info: InfoUpdateInterface) => void | Promise<void>;
|
|
5
7
|
interface ContactEventListeners {
|
|
6
8
|
friendship: ContactEventListenerFriendship;
|
|
7
9
|
message: ContactEventListenerMessage;
|
|
10
|
+
update: ContactEventListenerUpdate;
|
|
8
11
|
}
|
|
9
12
|
declare const ContactEventEmitter: new () => TypedEventEmitter<ContactEventListeners>;
|
|
10
|
-
export type { ContactEventListeners, ContactEventListenerMessage, ContactEventListenerFriendship, };
|
|
13
|
+
export type { ContactEventListeners, ContactEventListenerMessage, ContactEventListenerFriendship, ContactEventListenerUpdate, };
|
|
11
14
|
export { ContactEventEmitter, };
|
|
12
15
|
//# sourceMappingURL=contact-events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-events.d.ts","sourceRoot":"","sources":["../../../../src/schemas/contact-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAO,eAAe,CAAA;AAEnD,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EACjB,MAAwB,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"contact-events.d.ts","sourceRoot":"","sources":["../../../../src/schemas/contact-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAO,eAAe,CAAA;AAEnD,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EACjB,MAAwB,wBAAwB,CAAA;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,aAAK,2BAA2B,GAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,gBAAgB,EAAE,IAAI,CAAC,EAAE,IAAI,KAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAC/H,aAAK,8BAA8B,GAAG,CAAC,UAAU,EAAE,mBAAmB,KAAqC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAC/H,aAAK,0BAA0B,GAAG,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAErF,UAAU,qBAAqB;IAC7B,UAAU,EAAG,8BAA8B,CAAC;IAC5C,OAAO,EAAM,2BAA2B,CAAC;IACzC,MAAM,EAAO,0BAA0B,CAAC;CACzC;AAED,QAAA,MAAM,mBAAmB,YAAoC,kBAC3D,qBAAqB,CACtB,CAAA;AAED,YAAY,EACV,qBAAqB,EACrB,2BAA2B,EAC3B,8BAA8B,EAC9B,0BAA0B,GAC3B,CAAA;AACD,OAAO,EACL,mBAAmB,GACpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact-events.js","sourceRoot":"","sources":["../../../../src/schemas/contact-events.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;
|
|
1
|
+
{"version":3,"file":"contact-events.js","sourceRoot":"","sources":["../../../../src/schemas/contact-events.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;AAoBvC,MAAM,mBAAmB,GAAG,qBAE3B,CAAA;AASC,kDAAmB"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type TypedEventEmitter from 'typed-emitter';
|
|
2
2
|
import type { ContactInterface, MessageInterface, RoomInterface, RoomInvitationInterface } from '../user-modules/mod.js';
|
|
3
|
+
import type { InfoUpdateInterface } from './update.js';
|
|
3
4
|
export declare const ROOM_EVENT_DICT: {
|
|
4
5
|
invite: string;
|
|
5
6
|
join: string;
|
|
6
7
|
leave: string;
|
|
7
8
|
message: string;
|
|
9
|
+
update: string;
|
|
8
10
|
topic: string;
|
|
9
11
|
};
|
|
10
12
|
export declare type RoomEventName = keyof typeof ROOM_EVENT_DICT;
|
|
@@ -90,14 +92,16 @@ declare type RoomEventListenerJoin = (this: RoomInterface, inviteeList: ContactI
|
|
|
90
92
|
declare type RoomEventListenerLeave = (this: RoomInterface, leaverList: ContactInterface[], remover?: ContactInterface, date?: Date) => void | Promise<void>;
|
|
91
93
|
declare type RoomEventListenerMessage = (this: RoomInterface, message: MessageInterface, date?: Date) => void | Promise<void>;
|
|
92
94
|
declare type RoomEventListenerTopic = (this: RoomInterface, topic: string, oldTopic: string, changer: ContactInterface, date?: Date) => void | Promise<void>;
|
|
95
|
+
declare type RoomEventListenerUpdate = (info: InfoUpdateInterface) => void | Promise<void>;
|
|
93
96
|
interface RoomEventListeners {
|
|
94
97
|
invite: RoomEventListenerInvite;
|
|
95
98
|
join: RoomEventListenerJoin;
|
|
96
99
|
leave: RoomEventListenerLeave;
|
|
97
100
|
message: RoomEventListenerMessage;
|
|
98
101
|
topic: RoomEventListenerTopic;
|
|
102
|
+
update: RoomEventListenerUpdate;
|
|
99
103
|
}
|
|
100
104
|
declare const RoomEventEmitter: new () => TypedEventEmitter<RoomEventListeners>;
|
|
101
|
-
export type { RoomEventListeners, RoomEventListenerInvite, RoomEventListenerJoin, RoomEventListenerLeave, RoomEventListenerMessage, RoomEventListenerTopic, };
|
|
105
|
+
export type { RoomEventListeners, RoomEventListenerInvite, RoomEventListenerJoin, RoomEventListenerLeave, RoomEventListenerMessage, RoomEventListenerTopic, RoomEventListenerUpdate, };
|
|
102
106
|
export { RoomEventEmitter, };
|
|
103
107
|
//# sourceMappingURL=room-events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"room-events.d.ts","sourceRoot":"","sources":["../../../../src/schemas/room-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAO,eAAe,CAAA;AAEnD,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,uBAAuB,EACxB,MAAwB,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"room-events.d.ts","sourceRoot":"","sources":["../../../../src/schemas/room-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAO,eAAe,CAAA;AAEnD,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,uBAAuB,EACxB,MAAwB,wBAAwB,CAAA;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAA;AACD,oBAAY,aAAa,GAAG,MAAM,OAAO,eAAe,CAAA;AAExD;;;;;;;GAOG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,aAAK,uBAAuB,GAAI,CAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,uBAAuB,KAAe,IAAI,GAAG,OAAO,CAAC,IAAI,CAA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BAAsB,EACtB,uBAAuB,GACxB,CAAA;AACD,OAAO,EACL,gBAAgB,GACjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"room-events.js","sourceRoot":"","sources":["../../../../src/schemas/room-events.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;
|
|
1
|
+
{"version":3,"file":"room-events.js","sourceRoot":"","sources":["../../../../src/schemas/room-events.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;AAW1B,QAAA,eAAe,GAAG;IAC7B,MAAM,EAAI,KAAK;IACf,IAAI,EAAM,KAAK;IACf,KAAK,EAAK,KAAK;IACf,OAAO,EAAG,oCAAoC;IAC9C,MAAM,EAAI,kBAAkB;IAC5B,KAAK,EAAK,KAAK;CAChB,CAAA;AAmGD,MAAM,gBAAgB,GAAG,qBAExB,CAAA;AAYC,4CAAgB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as PUPPET from '@juzi/wechaty-puppet';
|
|
2
|
+
export interface InfoUpdateInterface {
|
|
3
|
+
type: PUPPET.types.Payload;
|
|
4
|
+
id: string;
|
|
5
|
+
updates: InfoUpdateValuePair[];
|
|
6
|
+
}
|
|
7
|
+
export interface InfoUpdateValuePair {
|
|
8
|
+
key: string;
|
|
9
|
+
oldValue: string;
|
|
10
|
+
newValue: string;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../src/schemas/update.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAEnD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,mBAAmB,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../src/schemas/update.ts"],"names":[],"mappings":""}
|
|
@@ -2,6 +2,7 @@ import type TypedEventEmitter from 'typed-emitter';
|
|
|
2
2
|
import type { GError } from 'gerror';
|
|
3
3
|
import * as PUPPET from '@juzi/wechaty-puppet';
|
|
4
4
|
import type { FriendshipInterface, ContactSelfInterface, RoomInterface, RoomInvitationInterface, ContactInterface, MessageInterface, PostInterface } from '../user-modules/mod.js';
|
|
5
|
+
import type { InfoUpdateInterface } from './update.js';
|
|
5
6
|
declare const WECHATY_EVENT_DICT: {
|
|
6
7
|
readonly dong: "Should be emitted after we call `Wechaty.ding()`";
|
|
7
8
|
readonly error: "Will be emitted when there's an Error occurred.";
|
|
@@ -10,6 +11,7 @@ declare const WECHATY_EVENT_DICT: {
|
|
|
10
11
|
readonly ready: "All underlined data source are ready for use.";
|
|
11
12
|
readonly start: "Will be emitted after the Wechaty had been started.";
|
|
12
13
|
readonly stop: "Will be emitted after the Wechaty had been stopped.";
|
|
14
|
+
readonly update: "Will be emitted when some info has been changed.";
|
|
13
15
|
readonly friendship: string;
|
|
14
16
|
readonly login: string;
|
|
15
17
|
readonly logout: string;
|
|
@@ -41,6 +43,7 @@ declare type WechatyEventListenerRoomLeave = (room: RoomInterface, leaverList: C
|
|
|
41
43
|
declare type WechatyEventListenerRoomTopic = (room: RoomInterface, newTopic: string, oldTopic: string, changer: ContactInterface, date?: Date) => void | Promise<void>;
|
|
42
44
|
declare type WechatyEventListenerScan = (qrcode: string, status: PUPPET.types.ScanStatus, data?: string) => void | Promise<void>;
|
|
43
45
|
declare type WechatyEventListenerStartStop = () => void | Promise<void>;
|
|
46
|
+
declare type WechatyEventListenerUpdate = (info: InfoUpdateInterface) => void | Promise<void>;
|
|
44
47
|
/**
|
|
45
48
|
* @desc Wechaty Class Event Type
|
|
46
49
|
* @typedef WechatyEventName
|
|
@@ -211,8 +214,9 @@ interface WechatyEventListeners {
|
|
|
211
214
|
scan: WechatyEventListenerScan;
|
|
212
215
|
start: WechatyEventListenerStartStop;
|
|
213
216
|
stop: WechatyEventListenerStartStop;
|
|
217
|
+
update: WechatyEventListenerUpdate;
|
|
214
218
|
}
|
|
215
219
|
declare const WechatyEventEmitter: new () => TypedEventEmitter<WechatyEventListeners>;
|
|
216
|
-
export type { WechatyEventName, WechatyEventListeners, WechatyEventListenerDong, WechatyEventListenerError, WechatyEventListenerFriendship, WechatyEventListenerHeartbeat, WechatyEventListenerLogin, WechatyEventListenerLogout, WechatyEventListenerMessage, WechatyEventListenerPost, WechatyEventListenerPuppet, WechatyEventListenerReady, WechatyEventListenerRoomInvite, WechatyEventListenerRoomJoin, WechatyEventListenerRoomLeave, WechatyEventListenerRoomTopic, WechatyEventListenerScan, WechatyEventListenerStartStop, };
|
|
220
|
+
export type { WechatyEventName, WechatyEventListeners, WechatyEventListenerDong, WechatyEventListenerError, WechatyEventListenerFriendship, WechatyEventListenerHeartbeat, WechatyEventListenerLogin, WechatyEventListenerLogout, WechatyEventListenerMessage, WechatyEventListenerPost, WechatyEventListenerPuppet, WechatyEventListenerReady, WechatyEventListenerRoomInvite, WechatyEventListenerRoomJoin, WechatyEventListenerRoomLeave, WechatyEventListenerRoomTopic, WechatyEventListenerScan, WechatyEventListenerStartStop, WechatyEventListenerUpdate, };
|
|
217
221
|
export { WechatyEventEmitter, };
|
|
218
222
|
//# sourceMappingURL=wechaty-events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wechaty-events.d.ts","sourceRoot":"","sources":["../../../../src/schemas/wechaty-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAQ,eAAe,CAAA;AAEpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAO,QAAQ,CAAA;AACrC,OAAO,KAAK,MAAM,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,YAAoC,kBAC3D,qBAAqB,CACtB,CAAA;AAED,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EAErB,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,EAC7B,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,wBAAwB,EACxB,6BAA6B,EAC7B,0BAA0B,GAC3B,CAAA;AACD,OAAO,EACL,mBAAmB,GACpB,CAAA"}
|
|
@@ -35,6 +35,7 @@ const WECHATY_EVENT_DICT = {
|
|
|
35
35
|
ready: 'All underlined data source are ready for use.',
|
|
36
36
|
start: 'Will be emitted after the Wechaty had been started.',
|
|
37
37
|
stop: 'Will be emitted after the Wechaty had been stopped.',
|
|
38
|
+
update: 'Will be emitted when some info has been changed.',
|
|
38
39
|
};
|
|
39
40
|
const WechatyEventEmitter = events_1.EventEmitter;
|
|
40
41
|
exports.WechatyEventEmitter = WechatyEventEmitter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wechaty-events.js","sourceRoot":"","sources":["../../../../src/schemas/wechaty-events.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA6C;AAI7C,6DAAmD;
|
|
1
|
+
{"version":3,"file":"wechaty-events.js","sourceRoot":"","sources":["../../../../src/schemas/wechaty-events.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA6C;AAI7C,6DAAmD;AAanD,MAAM,kBAAkB,GAAG;IACzB,GAAG,MAAM,CAAC,KAAK,CAAC,eAAe;IAC/B,IAAI,EAAQ,kDAAkD;IAC9D,KAAK,EAAO,iDAAiD;IAC7D,SAAS,EAAG,kGAAkG;IAC9G,MAAM,EAAM,+CAA+C;IAC3D,KAAK,EAAO,+CAA+C;IAC3D,KAAK,EAAO,qDAAqD;IACjE,IAAI,EAAQ,qDAAqD;IACjE,MAAM,EAAM,kDAAkD;CACtD,CAAA;AAuMV,MAAM,mBAAmB,GAAG,qBAE3B,CAAA;AAyBC,kDAAmB"}
|
|
@@ -26,7 +26,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
26
26
|
init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
27
27
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
28
28
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
29
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
29
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
30
30
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
31
31
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
32
32
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -127,7 +127,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
127
127
|
init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
128
128
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
129
129
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
130
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
130
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
131
131
|
addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
132
132
|
once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
133
133
|
prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
|
|
@@ -225,7 +225,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
225
225
|
__options: WechatyOptions;
|
|
226
226
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
227
227
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
228
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
228
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
229
229
|
addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
|
|
230
230
|
once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
|
|
231
231
|
prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
|
|
@@ -375,7 +375,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
375
375
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
376
376
|
readonly memory: import("memory-card").MemoryCard;
|
|
377
377
|
__options: WechatyOptions;
|
|
378
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
378
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
379
379
|
addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
|
|
380
380
|
once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
|
|
381
381
|
prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
|
|
@@ -410,7 +410,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
410
410
|
readonly memory: import("memory-card").MemoryCard;
|
|
411
411
|
__options: WechatyOptions;
|
|
412
412
|
init(): Promise<void>;
|
|
413
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
413
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
414
414
|
addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
|
|
415
415
|
once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
|
|
416
416
|
prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
|
|
@@ -492,7 +492,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
492
492
|
__options: WechatyOptions;
|
|
493
493
|
start(): Promise<void>;
|
|
494
494
|
stop(): Promise<void>;
|
|
495
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
495
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
496
496
|
addListener<E_39 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_39, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_39]): any;
|
|
497
497
|
once<E_40 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_40, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_40]): any;
|
|
498
498
|
prependListener<E_41 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_41, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_41]): any;
|
|
@@ -522,7 +522,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
522
522
|
init(): Promise<void>;
|
|
523
523
|
start(): Promise<void>;
|
|
524
524
|
stop(): Promise<void>;
|
|
525
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
525
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
526
526
|
addListener<E_46 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_46, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_46]): any;
|
|
527
527
|
once<E_47 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_47, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_47]): any;
|
|
528
528
|
prependListener<E_48 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_48, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_48]): any;
|
|
@@ -27,7 +27,7 @@ declare const gErrorMixin: <MixinBase extends typeof WechatySkeleton>(mixinBase:
|
|
|
27
27
|
init(): Promise<void>;
|
|
28
28
|
start(): Promise<void>;
|
|
29
29
|
stop(): Promise<void>;
|
|
30
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
30
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
31
31
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
32
32
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
33
33
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -18,7 +18,7 @@ declare const ioMixin: <MixinBase extends typeof WechatySkeleton & ((abstract ne
|
|
|
18
18
|
init(): Promise<void>;
|
|
19
19
|
start(): Promise<void>;
|
|
20
20
|
stop(): Promise<void>;
|
|
21
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
21
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
22
22
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
23
23
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
24
24
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -47,7 +47,7 @@ declare const ioMixin: <MixinBase extends typeof WechatySkeleton & ((abstract ne
|
|
|
47
47
|
readonly memory: import("memory-card").MemoryCard;
|
|
48
48
|
__options: WechatyOptions;
|
|
49
49
|
init(): Promise<void>;
|
|
50
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
50
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
51
51
|
addListener<E_10 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_10, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_10]): any;
|
|
52
52
|
once<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
53
53
|
prependListener<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
@@ -45,7 +45,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
45
45
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
46
46
|
readonly memory: import("memory-card").MemoryCard;
|
|
47
47
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
48
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
48
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
49
49
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
50
50
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
51
51
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -107,7 +107,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
107
107
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
108
108
|
start(): Promise<void>;
|
|
109
109
|
stop(): Promise<void>;
|
|
110
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
110
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
111
111
|
addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
112
112
|
once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
113
113
|
prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
|
|
@@ -137,7 +137,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
137
137
|
init(): Promise<void>;
|
|
138
138
|
start(): Promise<void>;
|
|
139
139
|
stop(): Promise<void>;
|
|
140
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
140
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
141
141
|
addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
|
|
142
142
|
once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
|
|
143
143
|
prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
|
|
@@ -166,7 +166,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
166
166
|
readonly memory: import("memory-card").MemoryCard;
|
|
167
167
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
168
168
|
init(): Promise<void>;
|
|
169
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
169
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
170
170
|
addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
|
|
171
171
|
once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
|
|
172
172
|
prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
|
|
@@ -235,7 +235,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
235
235
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
236
236
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
237
237
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
238
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
238
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
239
239
|
addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
|
|
240
240
|
once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
|
|
241
241
|
prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
|
|
@@ -44,7 +44,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
44
44
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
45
45
|
readonly memory: import("memory-card").MemoryCard;
|
|
46
46
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
47
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
47
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
48
48
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
49
49
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
50
50
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -108,7 +108,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
108
108
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
109
109
|
start(): Promise<void>;
|
|
110
110
|
stop(): Promise<void>;
|
|
111
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
111
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
112
112
|
addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
113
113
|
once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
114
114
|
prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
|
|
@@ -140,7 +140,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
140
140
|
init(): Promise<void>;
|
|
141
141
|
start(): Promise<void>;
|
|
142
142
|
stop(): Promise<void>;
|
|
143
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
143
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
144
144
|
addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
|
|
145
145
|
once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
|
|
146
146
|
prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
|
|
@@ -171,7 +171,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
171
171
|
readonly memory: import("memory-card").MemoryCard;
|
|
172
172
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
173
173
|
init(): Promise<void>;
|
|
174
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
174
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
175
175
|
addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
|
|
176
176
|
once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
|
|
177
177
|
prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
|
|
@@ -229,7 +229,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
229
229
|
init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
230
230
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
231
231
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
232
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
232
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
233
233
|
addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
|
|
234
234
|
once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
|
|
235
235
|
prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
|
|
@@ -15,7 +15,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
15
15
|
init(): Promise<void>;
|
|
16
16
|
start(): Promise<void>;
|
|
17
17
|
stop(): Promise<void>;
|
|
18
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
18
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
19
19
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
20
20
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
21
21
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -65,7 +65,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
65
65
|
init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
66
66
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
67
67
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
68
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
68
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
69
69
|
addListener<E_10 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_10, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_10]): any;
|
|
70
70
|
once<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
71
71
|
prependListener<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
@@ -169,7 +169,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
169
169
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
170
170
|
readonly memory: import("memory-card").MemoryCard;
|
|
171
171
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
172
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
172
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
173
173
|
addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
|
|
174
174
|
once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
|
|
175
175
|
prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
|
|
@@ -231,7 +231,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
231
231
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
232
232
|
start(): Promise<void>;
|
|
233
233
|
stop(): Promise<void>;
|
|
234
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
234
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
235
235
|
addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
|
|
236
236
|
once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
|
|
237
237
|
prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
|
|
@@ -261,7 +261,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
261
261
|
readonly memory: import("memory-card").MemoryCard;
|
|
262
262
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
263
263
|
init(): Promise<void>;
|
|
264
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
264
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
265
265
|
addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
|
|
266
266
|
once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
|
|
267
267
|
prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
|
|
@@ -310,7 +310,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
310
310
|
init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
311
311
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
312
312
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
313
|
-
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
|
|
313
|
+
on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
|
|
314
314
|
addListener<E_39 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_39, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_39]): any;
|
|
315
315
|
once<E_40 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_40, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_40]): any;
|
|
316
316
|
prependListener<E_41 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_41, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_41]): any;
|