@pacoyang/wechaty-puppet-wechat 0.28.5
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/.editorconfig +14 -0
- package/.eslintrc.js +7 -0
- package/.github/workflows/npm.yml +91 -0
- package/.markdownlintrc +13 -0
- package/.travis.yml +62 -0
- package/.vscode/settings.json +73 -0
- package/CODEOWNERS +9 -0
- package/LICENSE +201 -0
- package/NOTICE +8 -0
- package/README.md +145 -0
- package/dist/examples/demo.d.ts +20 -0
- package/dist/examples/demo.d.ts.map +1 -0
- package/dist/examples/demo.js +113 -0
- package/dist/examples/demo.js.map +1 -0
- package/dist/scripts/retry-unit-tests.d.ts +10 -0
- package/dist/scripts/retry-unit-tests.d.ts.map +1 -0
- package/dist/scripts/retry-unit-tests.js +47 -0
- package/dist/scripts/retry-unit-tests.js.map +1 -0
- package/dist/src/bridge.d.ts +100 -0
- package/dist/src/bridge.d.ts.map +1 -0
- package/dist/src/bridge.js +927 -0
- package/dist/src/bridge.js.map +1 -0
- package/dist/src/bridge.spec.d.ts +21 -0
- package/dist/src/bridge.spec.d.ts.map +1 -0
- package/dist/src/bridge.spec.js +191 -0
- package/dist/src/bridge.spec.js.map +1 -0
- package/dist/src/config.d.ts +10 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/config.js +57 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/event.d.ts +23 -0
- package/dist/src/event.d.ts.map +1 -0
- package/dist/src/event.js +166 -0
- package/dist/src/event.js.map +1 -0
- package/dist/src/event.spec.d.ts +3 -0
- package/dist/src/event.spec.d.ts.map +1 -0
- package/dist/src/event.spec.js +41 -0
- package/dist/src/event.spec.js.map +1 -0
- package/dist/src/firer.d.ts +50 -0
- package/dist/src/firer.d.ts.map +1 -0
- package/dist/src/firer.js +409 -0
- package/dist/src/firer.js.map +1 -0
- package/dist/src/firer.spec.d.ts +21 -0
- package/dist/src/firer.spec.d.ts.map +1 -0
- package/dist/src/firer.spec.js +190 -0
- package/dist/src/firer.spec.js.map +1 -0
- package/dist/src/mod.d.ts +23 -0
- package/dist/src/mod.d.ts.map +1 -0
- package/dist/src/mod.js +28 -0
- package/dist/src/mod.js.map +1 -0
- package/dist/src/puppet-wechat.d.ts +164 -0
- package/dist/src/puppet-wechat.d.ts.map +1 -0
- package/dist/src/puppet-wechat.js +1287 -0
- package/dist/src/puppet-wechat.js.map +1 -0
- package/dist/src/puppet-wechat.spec.d.ts +21 -0
- package/dist/src/puppet-wechat.spec.d.ts.map +1 -0
- package/dist/src/puppet-wechat.spec.js +123 -0
- package/dist/src/puppet-wechat.spec.js.map +1 -0
- package/dist/src/pure-function-helpers/is-type.d.ts +3 -0
- package/dist/src/pure-function-helpers/is-type.d.ts.map +1 -0
- package/dist/src/pure-function-helpers/is-type.js +12 -0
- package/dist/src/pure-function-helpers/is-type.js.map +1 -0
- package/dist/src/pure-function-helpers/message-extname.d.ts +3 -0
- package/dist/src/pure-function-helpers/message-extname.d.ts.map +1 -0
- package/dist/src/pure-function-helpers/message-extname.js +44 -0
- package/dist/src/pure-function-helpers/message-extname.js.map +1 -0
- package/dist/src/pure-function-helpers/message-filename.d.ts +3 -0
- package/dist/src/pure-function-helpers/message-filename.d.ts.map +1 -0
- package/dist/src/pure-function-helpers/message-filename.js +19 -0
- package/dist/src/pure-function-helpers/message-filename.js.map +1 -0
- package/dist/src/pure-function-helpers/message-raw-payload-parser.d.ts +4 -0
- package/dist/src/pure-function-helpers/message-raw-payload-parser.d.ts.map +1 -0
- package/dist/src/pure-function-helpers/message-raw-payload-parser.js +67 -0
- package/dist/src/pure-function-helpers/message-raw-payload-parser.js.map +1 -0
- package/dist/src/pure-function-helpers/mod.d.ts +7 -0
- package/dist/src/pure-function-helpers/mod.d.ts.map +1 -0
- package/dist/src/pure-function-helpers/mod.js +23 -0
- package/dist/src/pure-function-helpers/mod.js.map +1 -0
- package/dist/src/pure-function-helpers/normalize-scan-status.d.ts +3 -0
- package/dist/src/pure-function-helpers/normalize-scan-status.d.ts.map +1 -0
- package/dist/src/pure-function-helpers/normalize-scan-status.js +21 -0
- package/dist/src/pure-function-helpers/normalize-scan-status.js.map +1 -0
- package/dist/src/pure-function-helpers/normalize-scan-status.spec.d.ts +21 -0
- package/dist/src/pure-function-helpers/normalize-scan-status.spec.d.ts.map +1 -0
- package/dist/src/pure-function-helpers/normalize-scan-status.spec.js +37 -0
- package/dist/src/pure-function-helpers/normalize-scan-status.spec.js.map +1 -0
- package/dist/src/pure-function-helpers/web-message-type.d.ts +4 -0
- package/dist/src/pure-function-helpers/web-message-type.d.ts.map +1 -0
- package/dist/src/pure-function-helpers/web-message-type.js +58 -0
- package/dist/src/pure-function-helpers/web-message-type.js.map +1 -0
- package/dist/src/pure-function-helpers/xml.d.ts +14 -0
- package/dist/src/pure-function-helpers/xml.d.ts.map +1 -0
- package/dist/src/pure-function-helpers/xml.js +64 -0
- package/dist/src/pure-function-helpers/xml.js.map +1 -0
- package/dist/src/version.d.ts +6 -0
- package/dist/src/version.d.ts.map +1 -0
- package/dist/src/version.js +9 -0
- package/dist/src/version.js.map +1 -0
- package/dist/src/version.spec.d.ts +3 -0
- package/dist/src/version.spec.d.ts.map +1 -0
- package/dist/src/version.spec.js +13 -0
- package/dist/src/version.spec.js.map +1 -0
- package/dist/src/web-schemas.d.ts +249 -0
- package/dist/src/web-schemas.d.ts.map +1 -0
- package/dist/src/web-schemas.js +118 -0
- package/dist/src/web-schemas.js.map +1 -0
- package/dist/src/wechaty-bro.js +868 -0
- package/dist/tests/puppeteer-contact.spec.d.ts +21 -0
- package/dist/tests/puppeteer-contact.spec.d.ts.map +1 -0
- package/dist/tests/puppeteer-contact.spec.js +67 -0
- package/dist/tests/puppeteer-contact.spec.js.map +1 -0
- package/dist/tests/puppeteer-friendship.spec.d.ts +21 -0
- package/dist/tests/puppeteer-friendship.spec.d.ts.map +1 -0
- package/dist/tests/puppeteer-friendship.spec.js +115 -0
- package/dist/tests/puppeteer-friendship.spec.js.map +1 -0
- package/dist/tests/puppeteer-message.spec.d.ts +21 -0
- package/dist/tests/puppeteer-message.spec.d.ts.map +1 -0
- package/dist/tests/puppeteer-message.spec.js +184 -0
- package/dist/tests/puppeteer-message.spec.js.map +1 -0
- package/dist/tests/puppeteer-room.spec.d.ts +21 -0
- package/dist/tests/puppeteer-room.spec.d.ts.map +1 -0
- package/dist/tests/puppeteer-room.spec.js +129 -0
- package/dist/tests/puppeteer-room.spec.js.map +1 -0
- package/dist/tests/puppeteer.spec.d.ts +21 -0
- package/dist/tests/puppeteer.spec.d.ts.map +1 -0
- package/dist/tests/puppeteer.spec.js +213 -0
- package/dist/tests/puppeteer.spec.js.map +1 -0
- package/docs/images/puppeteer-logo.png +0 -0
- package/docs/images/wechaty-puppet-wechat.png +0 -0
- package/examples/demo.ts +130 -0
- package/package.json +94 -0
- package/scripts/generate-version.sh +18 -0
- package/scripts/npm-pack-testing.sh +49 -0
- package/scripts/package-publish-config-tag.sh +13 -0
- package/scripts/retry-unit-tests.ts +57 -0
- package/src/bridge.spec.ts +224 -0
- package/src/bridge.ts +1122 -0
- package/src/config.ts +71 -0
- package/src/event.spec.ts +41 -0
- package/src/event.ts +247 -0
- package/src/firer.spec.ts +208 -0
- package/src/firer.ts +530 -0
- package/src/mod.ts +29 -0
- package/src/puppet-wechat.spec.ts +149 -0
- package/src/puppet-wechat.ts +1659 -0
- package/src/pure-function-helpers/is-type.ts +7 -0
- package/src/pure-function-helpers/message-extname.ts +57 -0
- package/src/pure-function-helpers/message-filename.ts +25 -0
- package/src/pure-function-helpers/message-raw-payload-parser.ts +85 -0
- package/src/pure-function-helpers/mod.ts +6 -0
- package/src/pure-function-helpers/normalize-scan-status.spec.ts +44 -0
- package/src/pure-function-helpers/normalize-scan-status.ts +23 -0
- package/src/pure-function-helpers/web-message-type.ts +71 -0
- package/src/pure-function-helpers/xml.ts +79 -0
- package/src/typings.d.ts +19 -0
- package/src/version.spec.ts +10 -0
- package/src/version.ts +6 -0
- package/src/web-schemas.ts +298 -0
- package/src/wechaty-bro.js +868 -0
- package/tests/fixtures/inject-file.js +7 -0
- package/tests/fixtures/smoke-testing.ts +42 -0
- package/tests/puppeteer-contact.spec.ts +78 -0
- package/tests/puppeteer-friendship.spec.ts +157 -0
- package/tests/puppeteer-message.spec.ts +249 -0
- package/tests/puppeteer-room.spec.ts +166 -0
- package/tests/puppeteer.spec.ts +262 -0
- package/tsconfig.json +26 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
#!/usr/bin/env ts-node
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* Wechaty - https://github.com/chatie/wechaty
|
|
5
|
+
*
|
|
6
|
+
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
/**
|
|
26
|
+
* Process the Message to find which event to FIRE
|
|
27
|
+
*/
|
|
28
|
+
// tslint:disable:no-shadowed-variable
|
|
29
|
+
const blue_tape_1 = __importDefault(require("blue-tape"));
|
|
30
|
+
// import sinon from 'sinon'
|
|
31
|
+
const firer_1 = require("./firer");
|
|
32
|
+
const SELF_ID = 'self-id';
|
|
33
|
+
const mockPuppetWeChat = {
|
|
34
|
+
selfId: () => SELF_ID,
|
|
35
|
+
};
|
|
36
|
+
(0, blue_tape_1.default)('parseFriendConfirm()', async (t) => {
|
|
37
|
+
const contentList = [
|
|
38
|
+
[
|
|
39
|
+
'You have added 李卓桓 as your WeChat contact. Start chatting!',
|
|
40
|
+
'李卓桓',
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
'你已添加了李卓桓,现在可以开始聊天了。',
|
|
44
|
+
'李卓桓',
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
'johnbassserver@gmail.com just added you to his/her contacts list. Send a message to him/her now!',
|
|
48
|
+
'johnbassserver@gmail.com',
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
'johnbassserver@gmail.com刚刚把你添加到通讯录,现在可以开始聊天了。',
|
|
52
|
+
'johnbassserver@gmail.com',
|
|
53
|
+
],
|
|
54
|
+
];
|
|
55
|
+
let result;
|
|
56
|
+
const firer = new firer_1.Firer(mockPuppetWeChat);
|
|
57
|
+
contentList.forEach(([content]) => {
|
|
58
|
+
result = firer.parseFriendConfirm(content);
|
|
59
|
+
t.true(result, 'should be truthy for confirm msg: ' + content);
|
|
60
|
+
});
|
|
61
|
+
result = firer.parseFriendConfirm('fsdfsdfasdfasdfadsa');
|
|
62
|
+
t.false(result, 'should be falsy for other msg');
|
|
63
|
+
});
|
|
64
|
+
(0, blue_tape_1.default)('parseRoomJoin()', async (t) => {
|
|
65
|
+
const contentList = [
|
|
66
|
+
[
|
|
67
|
+
'You invited 管理员 to the group chat. ',
|
|
68
|
+
'You',
|
|
69
|
+
['管理员'],
|
|
70
|
+
],
|
|
71
|
+
[
|
|
72
|
+
'You invited 李卓桓.PreAngel、Bruce LEE to the group chat. ',
|
|
73
|
+
'You',
|
|
74
|
+
['李卓桓.PreAngel', 'Bruce LEE'],
|
|
75
|
+
],
|
|
76
|
+
[
|
|
77
|
+
'管理员 invited 小桔建群助手 to the group chat',
|
|
78
|
+
'管理员',
|
|
79
|
+
['小桔建群助手'],
|
|
80
|
+
],
|
|
81
|
+
[
|
|
82
|
+
'管理员 invited 庆次、小桔妹 to the group chat',
|
|
83
|
+
'管理员',
|
|
84
|
+
['庆次', '小桔妹'],
|
|
85
|
+
],
|
|
86
|
+
[
|
|
87
|
+
'你邀请"管理员"加入了群聊 ',
|
|
88
|
+
'你',
|
|
89
|
+
['管理员'],
|
|
90
|
+
],
|
|
91
|
+
[
|
|
92
|
+
'"管理员"邀请"宁锐锋"加入了群聊',
|
|
93
|
+
'管理员',
|
|
94
|
+
['宁锐锋'],
|
|
95
|
+
],
|
|
96
|
+
[
|
|
97
|
+
'"管理员"通过扫描你分享的二维码加入群聊 ',
|
|
98
|
+
'你',
|
|
99
|
+
['管理员'],
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
'" 桔小秘"通过扫描"李佳芮"分享的二维码加入群聊',
|
|
103
|
+
'李佳芮',
|
|
104
|
+
['桔小秘'],
|
|
105
|
+
],
|
|
106
|
+
[
|
|
107
|
+
'"管理员" joined group chat via the QR code you shared. ',
|
|
108
|
+
'you',
|
|
109
|
+
['管理员'],
|
|
110
|
+
],
|
|
111
|
+
[
|
|
112
|
+
'"宁锐锋" joined the group chat via the QR Code shared by "管理员".',
|
|
113
|
+
'管理员',
|
|
114
|
+
['宁锐锋'],
|
|
115
|
+
],
|
|
116
|
+
];
|
|
117
|
+
const firer = new firer_1.Firer(mockPuppetWeChat);
|
|
118
|
+
let result;
|
|
119
|
+
contentList.forEach(([content, inviter, inviteeList]) => {
|
|
120
|
+
result = firer.parseRoomJoin(content);
|
|
121
|
+
t.ok(result, 'should check room join message right for ' + content);
|
|
122
|
+
t.deepEqual(result[0], inviteeList, 'should get inviteeList right');
|
|
123
|
+
t.is(result[1], inviter, 'should get inviter right');
|
|
124
|
+
});
|
|
125
|
+
t.throws(() => {
|
|
126
|
+
firer.parseRoomJoin('fsadfsadfsdfsdfs');
|
|
127
|
+
}, Error, 'should throws if message is not expected');
|
|
128
|
+
});
|
|
129
|
+
(0, blue_tape_1.default)('parseRoomLeave()', async (t) => {
|
|
130
|
+
const contentLeaverList = [
|
|
131
|
+
[
|
|
132
|
+
'You removed "Bruce LEE" from the group chat',
|
|
133
|
+
'Bruce LEE',
|
|
134
|
+
],
|
|
135
|
+
[
|
|
136
|
+
'你将"李佳芮"移出了群聊',
|
|
137
|
+
'李佳芮',
|
|
138
|
+
],
|
|
139
|
+
];
|
|
140
|
+
const contentRemoverList = [
|
|
141
|
+
[
|
|
142
|
+
'You were removed from the group chat by "桔小秘"',
|
|
143
|
+
'桔小秘',
|
|
144
|
+
],
|
|
145
|
+
[
|
|
146
|
+
'你被"李佳芮"移出群聊',
|
|
147
|
+
'李佳芮',
|
|
148
|
+
],
|
|
149
|
+
];
|
|
150
|
+
const firer = new firer_1.Firer(mockPuppetWeChat);
|
|
151
|
+
contentLeaverList.forEach(([content, leaver]) => {
|
|
152
|
+
const resultLeaver = firer.parseRoomLeave(content)[0];
|
|
153
|
+
t.ok(resultLeaver, 'should get leaver for leave message: ' + content);
|
|
154
|
+
t.is(resultLeaver, leaver, 'should get leaver name right');
|
|
155
|
+
});
|
|
156
|
+
contentRemoverList.forEach(([content, remover]) => {
|
|
157
|
+
const resultRemover = firer.parseRoomLeave(content)[1];
|
|
158
|
+
t.ok(resultRemover, 'should get remover for leave message: ' + content);
|
|
159
|
+
t.is(resultRemover, remover, 'should get leaver name right');
|
|
160
|
+
});
|
|
161
|
+
t.throws(() => {
|
|
162
|
+
firer.parseRoomLeave('fafdsfsdfafa');
|
|
163
|
+
}, Error, 'should throw if message is not expected');
|
|
164
|
+
});
|
|
165
|
+
(0, blue_tape_1.default)('parseRoomTopic()', async (t) => {
|
|
166
|
+
const contentList = [
|
|
167
|
+
[
|
|
168
|
+
'"李卓桓.PreAngel" changed the group name to "ding"',
|
|
169
|
+
'李卓桓.PreAngel',
|
|
170
|
+
'ding',
|
|
171
|
+
],
|
|
172
|
+
[
|
|
173
|
+
'"李佳芮"修改群名为“dong”',
|
|
174
|
+
'李佳芮',
|
|
175
|
+
'dong',
|
|
176
|
+
],
|
|
177
|
+
];
|
|
178
|
+
const firer = new firer_1.Firer(mockPuppetWeChat);
|
|
179
|
+
let result;
|
|
180
|
+
contentList.forEach(([content, changer, topic]) => {
|
|
181
|
+
result = firer.parseRoomTopic(content);
|
|
182
|
+
t.ok(result, 'should check topic right for content: ' + content);
|
|
183
|
+
t.is(topic, result[0], 'should get right topic');
|
|
184
|
+
t.is(changer, result[1], 'should get right changer');
|
|
185
|
+
});
|
|
186
|
+
t.throws(() => {
|
|
187
|
+
firer.parseRoomTopic('fafdsfsdfafa');
|
|
188
|
+
}, Error, 'should throw if message is not expected');
|
|
189
|
+
});
|
|
190
|
+
//# sourceMappingURL=firer.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firer.spec.js","sourceRoot":"","sources":["../../src/firer.spec.ts"],"names":[],"mappings":";;AACA;;;;;;;;;;;;;;;;;GAiBG;;;;;AAEH;;GAEG;AAEH,sCAAsC;AACtC,0DAA6B;AAC7B,4BAA4B;AAE5B,mCAA0C;AAG1C,MAAM,OAAO,GAAG,SAAS,CAAA;AACzB,MAAM,gBAAgB,GAAG;IACvB,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO;CACC,CAAA;AAExB,IAAA,mBAAI,EAAC,sBAAsB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACvC,MAAM,WAAW,GAAG;QAClB;YACE,4DAA4D;YAC5D,KAAK;SACN;QACD;YACE,qBAAqB;YACrB,KAAK;SACN;QACD;YACE,kGAAkG;YAClG,0BAA0B;SAC3B;QACD;YACE,+CAA+C;YAC/C,0BAA0B;SAC3B;KACF,CAAA;IACD,IAAI,MAAe,CAAA;IAEnB,MAAM,KAAK,GAAG,IAAI,aAAK,CAAC,gBAAgB,CAAC,CAAA;IAEzC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO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,CAAC,cAAc,CAAC,cAAc,CAAC,CAAA;IAC/C,CAAC,EAAE,KAAK,EAAE,yCAAyC,CAAC,CAAA;AAEtD,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wechaty - https://github.com/chatie/wechaty
|
|
3
|
+
*
|
|
4
|
+
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
import { PuppetWeChat } from './puppet-wechat';
|
|
20
|
+
export { VERSION, log, } from './config';
|
|
21
|
+
export { PuppetWeChat, };
|
|
22
|
+
export default PuppetWeChat;
|
|
23
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAO,iBAAiB,CAAA;AAE/C,OAAO,EACL,OAAO,EACP,GAAG,GACJ,MAAmB,UAAU,CAAA;AAE9B,OAAO,EACL,YAAY,GACb,CAAA;AACD,eAAe,YAAY,CAAA"}
|
package/dist/src/mod.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PuppetWeChat = exports.log = exports.VERSION = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Wechaty - https://github.com/chatie/wechaty
|
|
6
|
+
*
|
|
7
|
+
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License.
|
|
11
|
+
* You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
const puppet_wechat_1 = require("./puppet-wechat");
|
|
23
|
+
Object.defineProperty(exports, "PuppetWeChat", { enumerable: true, get: function () { return puppet_wechat_1.PuppetWeChat; } });
|
|
24
|
+
var config_1 = require("./config");
|
|
25
|
+
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return config_1.VERSION; } });
|
|
26
|
+
Object.defineProperty(exports, "log", { enumerable: true, get: function () { return config_1.log; } });
|
|
27
|
+
exports.default = puppet_wechat_1.PuppetWeChat;
|
|
28
|
+
//# sourceMappingURL=mod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../src/mod.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,mDAA+C;AAQ7C,6FARO,4BAAY,OAQP;AANd,mCAG8B;AAF5B,iGAAA,OAAO,OAAA;AACP,6FAAA,GAAG,OAAA;AAML,kBAAe,4BAAY,CAAA"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wechaty - https://github.com/chatie/wechaty
|
|
3
|
+
*
|
|
4
|
+
* @copyright 2016-2018 Huan LI <zixia@zixia.net>
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
import { Watchdog } from 'watchdog';
|
|
20
|
+
import { ContactPayload, FriendshipPayload, FileBox, MessagePayload, MiniProgramPayload, Puppet, PuppetOptions, RoomInvitationPayload, RoomMemberPayload, RoomPayload, UrlLinkPayload, ImageType, EventScanPayload } from 'wechaty-puppet';
|
|
21
|
+
import { Bridge } from './bridge';
|
|
22
|
+
import { WebContactRawPayload, WebMessageRawPayload, WebRoomRawMember, WebRoomRawPayload } from './web-schemas';
|
|
23
|
+
export type ScanFoodType = 'scan' | 'login' | 'logout';
|
|
24
|
+
export declare class PuppetWeChat extends Puppet {
|
|
25
|
+
options: PuppetOptions;
|
|
26
|
+
static readonly VERSION = "0.0.0";
|
|
27
|
+
bridge: Bridge;
|
|
28
|
+
scanPayload?: EventScanPayload;
|
|
29
|
+
scanWatchdog: Watchdog<ScanFoodType>;
|
|
30
|
+
private fileId;
|
|
31
|
+
constructor(options?: PuppetOptions);
|
|
32
|
+
start(): Promise<void>;
|
|
33
|
+
stop(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Deal with SCAN events
|
|
36
|
+
*
|
|
37
|
+
* if web browser stay at login qrcode page long time,
|
|
38
|
+
* sometimes the qrcode will not refresh, leave there expired.
|
|
39
|
+
* so we need to refresh the page after a while
|
|
40
|
+
*/
|
|
41
|
+
private initWatchdogForScan;
|
|
42
|
+
private initBridge;
|
|
43
|
+
private getBaseRequest;
|
|
44
|
+
unref(): void;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* Message
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
messageRawPayload(id: string): Promise<WebMessageRawPayload>;
|
|
51
|
+
messageRawPayloadParser(rawPayload: WebMessageRawPayload): Promise<MessagePayload>;
|
|
52
|
+
messageRecall(messageId: string): Promise<boolean>;
|
|
53
|
+
messageFile(messageId: string): Promise<FileBox>;
|
|
54
|
+
messageUrl(messageId: string): Promise<UrlLinkPayload>;
|
|
55
|
+
messageMiniProgram(messageId: string): Promise<MiniProgramPayload>;
|
|
56
|
+
private messageRawPayloadToFile;
|
|
57
|
+
messageSendUrl(conversationId: string, urlLinkPayload: UrlLinkPayload): Promise<void>;
|
|
58
|
+
messageSendMiniProgram(conversationId: string, miniProgramPayload: MiniProgramPayload): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* TODO: Test this function if it could work...
|
|
61
|
+
*/
|
|
62
|
+
messageForward(conversationId: string, messageId: string): Promise<void>;
|
|
63
|
+
messageSendText(conversationId: string, text: string): Promise<void>;
|
|
64
|
+
login(userId: string): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* logout from browser, then server will emit `logout` event
|
|
67
|
+
*/
|
|
68
|
+
logout(): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* ContactSelf
|
|
72
|
+
*
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
contactSelfQRCode(): Promise<string>;
|
|
76
|
+
contactSelfName(name: string): Promise<void>;
|
|
77
|
+
contactSelfSignature(signature: string): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* Contact
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
contactRawPayload(id: string): Promise<WebContactRawPayload>;
|
|
84
|
+
contactRawPayloadParser(rawPayload: WebContactRawPayload): Promise<ContactPayload>;
|
|
85
|
+
ding(data?: string): void;
|
|
86
|
+
contactAvatar(contactId: string): Promise<FileBox>;
|
|
87
|
+
contactAvatar(contactId: string, file: FileBox): Promise<void>;
|
|
88
|
+
contactQrcode(contactId: string): Promise<string>;
|
|
89
|
+
contactAlias(contactId: string): Promise<string>;
|
|
90
|
+
contactAlias(contactId: string, alias: string | null): Promise<void>;
|
|
91
|
+
contactList(): Promise<string[]>;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* Room
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
roomRawPayload(id: string): Promise<WebRoomRawPayload>;
|
|
98
|
+
roomRawPayloadParser(rawPayload: WebRoomRawPayload): Promise<RoomPayload>;
|
|
99
|
+
roomList(): Promise<string[]>;
|
|
100
|
+
roomDel(roomId: string, contactId: string): Promise<void>;
|
|
101
|
+
roomAvatar(roomId: string): Promise<FileBox>;
|
|
102
|
+
roomAdd(roomId: string, contactId: string): Promise<void>;
|
|
103
|
+
roomTopic(roomId: string): Promise<string>;
|
|
104
|
+
roomTopic(roomId: string, topic: string): Promise<void>;
|
|
105
|
+
roomCreate(contactIdList: string[], topic: string): Promise<string>;
|
|
106
|
+
roomAnnounce(roomId: string): Promise<string>;
|
|
107
|
+
roomAnnounce(roomId: string, text: string): Promise<void>;
|
|
108
|
+
roomQuit(roomId: string): Promise<void>;
|
|
109
|
+
roomQRCode(roomId: string): Promise<string>;
|
|
110
|
+
roomMemberList(roomId: string): Promise<string[]>;
|
|
111
|
+
roomMemberRawPayload(roomId: string, contactId: string): Promise<WebRoomRawMember>;
|
|
112
|
+
roomMemberRawPayloadParser(rawPayload: WebRoomRawMember): Promise<RoomMemberPayload>;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* Room Invitation
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
roomInvitationAccept(roomInvitationId: string): Promise<void>;
|
|
119
|
+
roomInvitationRawPayload(roomInvitationId: string): Promise<any>;
|
|
120
|
+
roomInvitationRawPayloadParser(rawPayload: any): Promise<RoomInvitationPayload>;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* Friendship
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
friendshipRawPayload(id: string): Promise<WebMessageRawPayload>;
|
|
127
|
+
friendshipRawPayloadParser(rawPayload: WebMessageRawPayload): Promise<FriendshipPayload>;
|
|
128
|
+
friendshipSearchPhone(phone: string): Promise<null | string>;
|
|
129
|
+
friendshipSearchWeixin(weixin: string): Promise<null | string>;
|
|
130
|
+
friendshipAdd(contactId: string, hello: string): Promise<void>;
|
|
131
|
+
friendshipAccept(friendshipId: string): Promise<void>;
|
|
132
|
+
/**
|
|
133
|
+
* @private
|
|
134
|
+
* For issue #668
|
|
135
|
+
*/
|
|
136
|
+
waitStable(): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* https://www.chatie.io:8080/api
|
|
139
|
+
* location.hostname = www.chatie.io
|
|
140
|
+
* location.host = www.chatie.io:8080
|
|
141
|
+
* See: https://stackoverflow.com/a/11379802/1123955
|
|
142
|
+
*/
|
|
143
|
+
private hostname;
|
|
144
|
+
private cookies;
|
|
145
|
+
saveCookie(): Promise<void>;
|
|
146
|
+
private extToType;
|
|
147
|
+
private messageRawPayloadToUrl;
|
|
148
|
+
private uploadMedia;
|
|
149
|
+
messageSendFile(conversationId: string, file: FileBox): Promise<void>;
|
|
150
|
+
messageSendContact(conversationId: string, contactId: string): Promise<void>;
|
|
151
|
+
messageImage(messageId: string, imageType: ImageType): Promise<FileBox>;
|
|
152
|
+
messageContact(messageId: string): Promise<string>;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* Tag
|
|
156
|
+
*
|
|
157
|
+
*/
|
|
158
|
+
tagContactAdd(tagId: string, contactId: string): Promise<void>;
|
|
159
|
+
tagContactRemove(tagId: string, contactId: string): Promise<void>;
|
|
160
|
+
tagContactDelete(tagId: string): Promise<void>;
|
|
161
|
+
tagContactList(contactId?: string): Promise<string[]>;
|
|
162
|
+
}
|
|
163
|
+
export default PuppetWeChat;
|
|
164
|
+
//# sourceMappingURL=puppet-wechat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"puppet-wechat.d.ts","sourceRoot":"","sources":["../../src/puppet-wechat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAoBH,OAAO,EACL,QAAQ,EAET,MAAwB,UAAU,CAAA;AAEnC,OAAO,EACL,cAAc,EAGd,iBAAiB,EAKjB,OAAO,EAEP,cAAc,EAGd,kBAAkB,EAElB,MAAM,EACN,aAAa,EAEb,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EAIX,cAAc,EACd,SAAS,EACT,gBAAgB,EACjB,MAAgC,gBAAgB,CAAA;AAmBjD,OAAO,EACL,MAAM,EAEP,MAAgC,UAAU,CAAA;AAK3C,OAAO,EAEL,oBAAoB,EAGpB,oBAAoB,EAGpB,gBAAgB,EAChB,iBAAiB,EAClB,MAAgC,eAAe,CAAA;AAEhD,MAAM,MAAM,YAAY,GAAK,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;AAExD,qBAAa,YAAa,SAAQ,MAAM;IAY7B,OAAO,EAAE,aAAa;IAV/B,gBAAuB,OAAO,WAAU;IAEjC,MAAM,EAAE,MAAM,CAAA;IAEd,WAAW,CAAC,EAAG,gBAAgB,CAAA;IAC/B,YAAY,EAAG,QAAQ,CAAC,YAAY,CAAC,CAAA;IAE5C,OAAO,CAAC,MAAM,CAAQ;gBAGb,OAAO,GAAE,aAAkB;IAoBvB,KAAK,IAAK,OAAO,CAAC,IAAI,CAAC;IAiEvB,IAAI,IAAK,OAAO,CAAC,IAAI,CAAC;IAmCnC;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;YAkD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