@juzi/wechaty 1.0.21 → 1.0.24
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/config.d.ts +2 -0
- package/dist/cjs/src/config.d.ts.map +1 -1
- package/dist/cjs/src/config.js +3 -1
- package/dist/cjs/src/config.js.map +1 -1
- package/dist/cjs/src/package-json.js +4 -4
- package/dist/cjs/src/package-json.js.map +1 -1
- package/dist/cjs/src/pure-functions/update.d.ts +2 -1
- package/dist/cjs/src/pure-functions/update.d.ts.map +1 -1
- package/dist/cjs/src/pure-functions/update.js +18 -6
- package/dist/cjs/src/pure-functions/update.js.map +1 -1
- package/dist/cjs/src/schemas/contact-events.d.ts +14 -2
- 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 +4 -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 +30 -11
- package/dist/cjs/src/schemas/update.d.ts.map +1 -1
- package/dist/cjs/src/schemas/update.js +32 -0
- package/dist/cjs/src/schemas/update.js.map +1 -1
- package/dist/cjs/src/schemas/wechaty-events.d.ts +26 -2
- package/dist/cjs/src/schemas/wechaty-events.d.ts.map +1 -1
- package/dist/cjs/src/schemas/wechaty-events.js +7 -0
- package/dist/cjs/src/schemas/wechaty-events.js.map +1 -1
- package/dist/cjs/src/user-modules/contact.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/contact.js +7 -10
- package/dist/cjs/src/user-modules/contact.js.map +1 -1
- package/dist/cjs/src/user-modules/tag-group.d.ts +54 -20
- package/dist/cjs/src/user-modules/tag-group.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/tag-group.js +103 -44
- package/dist/cjs/src/user-modules/tag-group.js.map +1 -1
- package/dist/cjs/src/user-modules/tag.d.ts +57 -22
- package/dist/cjs/src/user-modules/tag.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/tag.js +140 -48
- package/dist/cjs/src/user-modules/tag.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 -4
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +152 -13
- 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/config.d.ts +2 -0
- package/dist/esm/src/config.d.ts.map +1 -1
- package/dist/esm/src/config.js +2 -0
- package/dist/esm/src/config.js.map +1 -1
- package/dist/esm/src/package-json.js +4 -4
- package/dist/esm/src/package-json.js.map +1 -1
- package/dist/esm/src/pure-functions/update.d.ts +2 -1
- package/dist/esm/src/pure-functions/update.d.ts.map +1 -1
- package/dist/esm/src/pure-functions/update.js +16 -5
- package/dist/esm/src/pure-functions/update.js.map +1 -1
- package/dist/esm/src/schemas/contact-events.d.ts +14 -2
- 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 +4 -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 +30 -11
- package/dist/esm/src/schemas/update.d.ts.map +1 -1
- package/dist/esm/src/schemas/update.js +8 -1
- package/dist/esm/src/schemas/update.js.map +1 -1
- package/dist/esm/src/schemas/wechaty-events.d.ts +26 -2
- package/dist/esm/src/schemas/wechaty-events.d.ts.map +1 -1
- package/dist/esm/src/schemas/wechaty-events.js +7 -0
- package/dist/esm/src/schemas/wechaty-events.js.map +1 -1
- package/dist/esm/src/user-modules/contact.d.ts.map +1 -1
- package/dist/esm/src/user-modules/contact.js +7 -10
- package/dist/esm/src/user-modules/contact.js.map +1 -1
- package/dist/esm/src/user-modules/tag-group.d.ts +54 -20
- package/dist/esm/src/user-modules/tag-group.d.ts.map +1 -1
- package/dist/esm/src/user-modules/tag-group.js +104 -45
- package/dist/esm/src/user-modules/tag-group.js.map +1 -1
- package/dist/esm/src/user-modules/tag.d.ts +57 -22
- package/dist/esm/src/user-modules/tag.d.ts.map +1 -1
- package/dist/esm/src/user-modules/tag.js +119 -50
- package/dist/esm/src/user-modules/tag.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 -4
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.js +153 -14
- 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 +3 -3
- package/src/config.ts +3 -0
- package/src/package-json.ts +4 -4
- package/src/pure-functions/update.ts +20 -8
- package/src/schemas/contact-events.ts +22 -3
- package/src/schemas/room-events.ts +4 -0
- package/src/schemas/update.ts +42 -13
- package/src/schemas/wechaty-events.ts +77 -43
- package/src/user-modules/contact.ts +7 -10
- package/src/user-modules/tag-group.ts +135 -53
- package/src/user-modules/tag.ts +124 -57
- package/src/wechaty-mixins/puppet-mixin.ts +171 -15
|
@@ -1,53 +1,100 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.TagImpl = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* Wechaty Chatbot SDK - https://github.com/wechaty/wechaty
|
|
29
|
+
*
|
|
30
|
+
* @copyright 2016 Huan LI (李卓桓) <https://github.com/huan>, and
|
|
31
|
+
* Wechaty Contributors <https://github.com/wechaty>.
|
|
32
|
+
*
|
|
33
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
34
|
+
* you may not use this file except in compliance with the License.
|
|
35
|
+
* You may obtain a copy of the License at
|
|
36
|
+
*
|
|
37
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
38
|
+
*
|
|
39
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
40
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
41
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
42
|
+
* See the License for the specific language governing permissions and
|
|
43
|
+
* limitations under the License.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
const PUPPET = __importStar(require("@juzi/wechaty-puppet"));
|
|
47
|
+
const helpers_1 = require("@juzi/wechaty-puppet/helpers");
|
|
48
|
+
const rx_queue_1 = require("rx-queue");
|
|
4
49
|
const config_js_1 = require("../config.js");
|
|
50
|
+
const poolify_js_1 = require("../user-mixins/poolify.js");
|
|
5
51
|
const validation_js_1 = require("../user-mixins/validation.js");
|
|
6
52
|
const wechatify_js_1 = require("../user-mixins/wechatify.js");
|
|
7
|
-
|
|
8
|
-
|
|
53
|
+
const MixinBase = (0, wechatify_js_1.wechatifyMixin)((0, poolify_js_1.poolifyMixin)(Object)());
|
|
54
|
+
class TagMixin extends MixinBase {
|
|
55
|
+
key;
|
|
9
56
|
/**
|
|
10
57
|
*
|
|
11
|
-
*
|
|
58
|
+
* Instance properties
|
|
59
|
+
* @ignore
|
|
12
60
|
*
|
|
13
61
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
62
|
+
payload;
|
|
63
|
+
id;
|
|
64
|
+
groupId;
|
|
18
65
|
/**
|
|
19
66
|
* @hideconstructor
|
|
20
67
|
*/
|
|
21
|
-
constructor(
|
|
68
|
+
constructor(key) {
|
|
22
69
|
super();
|
|
23
|
-
this.
|
|
70
|
+
this.key = key;
|
|
71
|
+
this.groupId = this.key.split(config_js_1.FOUR_PER_EM_SPACE)[0];
|
|
72
|
+
this.id = this.key.split(config_js_1.FOUR_PER_EM_SPACE)[1];
|
|
24
73
|
config_js_1.log.silly('Tag', 'constructor()');
|
|
25
74
|
}
|
|
26
|
-
id() {
|
|
27
|
-
return this.payload.id;
|
|
28
|
-
}
|
|
29
75
|
type() {
|
|
30
|
-
return this.payload.type;
|
|
31
|
-
}
|
|
32
|
-
groupId() {
|
|
33
|
-
return this.payload.groupId || '';
|
|
76
|
+
return (this.payload && this.payload.type) || PUPPET.types.Tag.Personal;
|
|
34
77
|
}
|
|
35
78
|
name() {
|
|
36
|
-
return this.payload.name;
|
|
79
|
+
return (this.payload && this.payload.name) || '';
|
|
37
80
|
}
|
|
38
|
-
group() {
|
|
39
|
-
return this.wechaty.TagGroup.
|
|
81
|
+
async group() {
|
|
82
|
+
return this.groupId ? this.wechaty.TagGroup.find(this.groupId) : undefined;
|
|
40
83
|
}
|
|
41
|
-
static pool = [];
|
|
42
84
|
static async list(forceSync = false) {
|
|
43
85
|
config_js_1.log.verbose('Tag', 'list(%s)', forceSync);
|
|
44
|
-
if (this.pool.length > 0 && !forceSync) {
|
|
45
|
-
return this.pool;
|
|
46
|
-
}
|
|
47
86
|
try {
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
87
|
+
const tagIdentifierList = await this.wechaty.puppet.tagTagList();
|
|
88
|
+
const identifierToTag = async (identifier) => this.find(identifier).catch(e => this.wechaty.emitError(e));
|
|
89
|
+
const CONCURRENCY = 17;
|
|
90
|
+
const tagIterator = (0, rx_queue_1.concurrencyExecuter)(CONCURRENCY)(identifierToTag)(tagIdentifierList);
|
|
91
|
+
const tagList = [];
|
|
92
|
+
for await (const tag of tagIterator) {
|
|
93
|
+
if (tag) {
|
|
94
|
+
tagList.push(tag);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return tagList;
|
|
51
98
|
}
|
|
52
99
|
catch (e) {
|
|
53
100
|
this.wechaty.emitError(e);
|
|
@@ -55,29 +102,74 @@ class TagMixin extends (0, wechatify_js_1.wechatifyMixinBase)() {
|
|
|
55
102
|
return [];
|
|
56
103
|
}
|
|
57
104
|
}
|
|
58
|
-
static async
|
|
59
|
-
config_js_1.log.
|
|
60
|
-
|
|
105
|
+
static async find(identifier) {
|
|
106
|
+
config_js_1.log.silly('Tag', 'find(%s)', JSON.stringify(identifier));
|
|
107
|
+
const tag = this.wechaty.Tag.load((0, helpers_1.getTagKey)(identifier));
|
|
108
|
+
try {
|
|
109
|
+
await tag.ready();
|
|
110
|
+
}
|
|
111
|
+
catch (e) {
|
|
112
|
+
this.wechaty.emitError(e);
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
return tag;
|
|
61
116
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
117
|
+
/**
|
|
118
|
+
* Force reload data for Tag, Sync data from low-level API again.
|
|
119
|
+
*
|
|
120
|
+
* @returns {Promise<this>}
|
|
121
|
+
* @example
|
|
122
|
+
* await tag.sync()
|
|
123
|
+
*/
|
|
124
|
+
async sync() {
|
|
125
|
+
await this.wechaty.puppet.tagPayloadDirty((0, helpers_1.getTagKey)({
|
|
126
|
+
id: this.id,
|
|
127
|
+
groupId: this.groupId,
|
|
128
|
+
}));
|
|
129
|
+
await this.ready(true);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* @ignore
|
|
133
|
+
*/
|
|
134
|
+
isReady() {
|
|
135
|
+
return !!(this.payload && this.payload.name);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* `ready()` is For FrameWork ONLY!
|
|
139
|
+
*
|
|
140
|
+
* Please not to use `ready()` at the user land.
|
|
141
|
+
* If you want to sync data, use `sync()` instead.
|
|
142
|
+
*
|
|
143
|
+
* @ignore
|
|
144
|
+
*/
|
|
145
|
+
async ready(forceSync = false) {
|
|
146
|
+
config_js_1.log.silly('Tag', 'ready() @ %s with Tag key="%s"', this.wechaty.puppet, this.key);
|
|
147
|
+
if (!forceSync && this.isReady()) { // already ready
|
|
148
|
+
config_js_1.log.silly('Tag', 'ready() isReady() true');
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
try {
|
|
152
|
+
this.payload = await this.wechaty.puppet.tagPayload({
|
|
153
|
+
id: this.id,
|
|
154
|
+
groupId: this.groupId,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
catch (e) {
|
|
158
|
+
this.wechaty.emitError(e);
|
|
159
|
+
config_js_1.log.verbose('Tag', 'ready() this.wechaty.puppet.tagPayload(%s) exception: %s', this.id, e.message);
|
|
160
|
+
throw e;
|
|
68
161
|
}
|
|
69
|
-
return undefined;
|
|
70
162
|
}
|
|
71
163
|
async contactList() {
|
|
72
164
|
config_js_1.log.verbose('Tag', 'contactList() for tag : %s', this);
|
|
73
|
-
const tag = { id: this.id
|
|
165
|
+
const tag = { id: this.id, groupId: this.groupId };
|
|
74
166
|
const contactIds = await this.wechaty.puppet.tagTagContactList(tag);
|
|
75
167
|
const contactPromises = contactIds.map(id => this.wechaty.Contact.find({ id }));
|
|
76
168
|
return Promise.all(contactPromises);
|
|
77
169
|
}
|
|
78
170
|
async tag(contacts) {
|
|
79
171
|
config_js_1.log.verbose('Tag', 'tag(%s) for tag : %s', contacts, this);
|
|
80
|
-
const tag = { id: this.id
|
|
172
|
+
const tag = { id: this.id, groupId: this.groupId };
|
|
81
173
|
let contactIds;
|
|
82
174
|
if (Array.isArray(contacts)) {
|
|
83
175
|
contactIds = contacts.map(c => c.id);
|
|
@@ -90,24 +182,22 @@ class TagMixin extends (0, wechatify_js_1.wechatifyMixinBase)() {
|
|
|
90
182
|
static async createTag(name, tagGroup) {
|
|
91
183
|
config_js_1.log.verbose('Tag', 'createTag(%s, %s)', tagGroup, name);
|
|
92
184
|
try {
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
-
const newTag =
|
|
96
|
-
this.pool.push(newTag);
|
|
185
|
+
const tagIdentifier = await this.wechaty.puppet.tagTagAdd(name, tagGroup?.name());
|
|
186
|
+
if (tagIdentifier) {
|
|
187
|
+
const newTag = await this.find(tagIdentifier);
|
|
97
188
|
return newTag;
|
|
98
189
|
}
|
|
99
190
|
}
|
|
100
191
|
catch (e) {
|
|
101
192
|
this.wechaty.emitError(e);
|
|
102
|
-
config_js_1.log.error('
|
|
193
|
+
config_js_1.log.error('Tag', 'createTag() exception: %s', e.message);
|
|
103
194
|
}
|
|
104
195
|
}
|
|
105
196
|
static async deleteTag(tagInstance) {
|
|
106
197
|
config_js_1.log.verbose('Tag', 'deleteTag(%s, %s)', tagInstance);
|
|
107
|
-
const
|
|
198
|
+
const tagIdentifier = { id: tagInstance.id, groupId: tagInstance.groupId };
|
|
108
199
|
try {
|
|
109
|
-
await this.wechaty.puppet.tagTagDelete(
|
|
110
|
-
this.pool.splice(this.pool.indexOf(tagInstance), 1);
|
|
200
|
+
await this.wechaty.puppet.tagTagDelete(tagIdentifier);
|
|
111
201
|
}
|
|
112
202
|
catch (e) {
|
|
113
203
|
this.wechaty.emitError(e);
|
|
@@ -115,10 +205,12 @@ class TagMixin extends (0, wechatify_js_1.wechatifyMixinBase)() {
|
|
|
115
205
|
}
|
|
116
206
|
}
|
|
117
207
|
toString() {
|
|
118
|
-
return `<Tag#${this.name() || this.id
|
|
208
|
+
return `<Tag#${this.name() || this.id}>`;
|
|
119
209
|
}
|
|
120
210
|
}
|
|
121
|
-
class
|
|
211
|
+
class TagImplBase extends (0, validation_js_1.validationMixin)(TagMixin)() {
|
|
212
|
+
}
|
|
213
|
+
class TagImpl extends (0, validation_js_1.validationMixin)(TagImplBase)() {
|
|
122
214
|
}
|
|
123
215
|
exports.TagImpl = TagImpl;
|
|
124
216
|
//# sourceMappingURL=tag.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../../src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AG,CAAW,CAAC,OAAO,CAAC,CAAA;SACpE;IACH,CAAC;IAEQ,QAAQ;QACf,OAAO,QAAQ,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC,EAAE,GAAG,CAAA;IAC1C,CAAC;CAEF;AAED,MAAM,WAAY,SAAQ,IAAA,+BAAe,EAAC,QAAQ,CAAC,EAAoB;CAAG;AAO1E,MAAM,OAAQ,SAAQ,IAAA,+BAAe,EAAC,WAAW,CAAC,EAAgB;CAAG;AAanE,0BAAO"}
|
|
@@ -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" | "update", listener: (...args: any[]) => any): any;
|
|
29
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
130
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
228
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
378
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
413
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
495
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
525
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
30
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
21
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
50
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
48
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
110
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
140
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
169
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
238
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
47
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
111
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
143
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
174
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
232
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
18
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
68
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
172
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
234
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
264
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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" | "update", listener: (...args: any[]) => any): any;
|
|
313
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "room-owner", 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;
|