@juzi/wechaty 1.0.149 → 1.0.150
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/mods/impls.d.ts +3 -3
- package/dist/cjs/src/mods/impls.d.ts.map +1 -1
- package/dist/cjs/src/mods/impls.js +2 -1
- package/dist/cjs/src/mods/impls.js.map +1 -1
- package/dist/cjs/src/mods/users.d.ts +1 -1
- package/dist/cjs/src/mods/users.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +4 -4
- package/dist/cjs/src/user-modules/message.d.ts +15 -0
- package/dist/cjs/src/user-modules/message.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/message.js +20 -0
- package/dist/cjs/src/user-modules/message.js.map +1 -1
- package/dist/cjs/src/user-modules/mod.d.ts +4 -3
- package/dist/cjs/src/user-modules/mod.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/mod.js +3 -1
- package/dist/cjs/src/user-modules/mod.js.map +1 -1
- package/dist/cjs/src/user-modules/voice.d.ts +69 -0
- package/dist/cjs/src/user-modules/voice.d.ts.map +1 -0
- package/dist/cjs/src/user-modules/voice.js +64 -0
- package/dist/cjs/src/user-modules/voice.js.map +1 -0
- package/dist/cjs/src/wechaty/wechaty-base.d.ts +10 -0
- package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-impl.spec.js +25 -23
- package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +12 -0
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +6 -0
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +8 -12
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +4 -0
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -2
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +3 -0
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/dist/esm/src/mods/impls.d.ts +3 -3
- package/dist/esm/src/mods/impls.d.ts.map +1 -1
- package/dist/esm/src/mods/impls.js +1 -1
- package/dist/esm/src/mods/impls.js.map +1 -1
- package/dist/esm/src/mods/users.d.ts +1 -1
- package/dist/esm/src/mods/users.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +4 -4
- package/dist/esm/src/user-modules/message.d.ts +15 -0
- package/dist/esm/src/user-modules/message.d.ts.map +1 -1
- package/dist/esm/src/user-modules/message.js +20 -0
- package/dist/esm/src/user-modules/message.js.map +1 -1
- package/dist/esm/src/user-modules/mod.d.ts +4 -3
- package/dist/esm/src/user-modules/mod.d.ts.map +1 -1
- package/dist/esm/src/user-modules/mod.js +2 -1
- package/dist/esm/src/user-modules/mod.js.map +1 -1
- package/dist/esm/src/user-modules/voice.d.ts +69 -0
- package/dist/esm/src/user-modules/voice.d.ts.map +1 -0
- package/dist/esm/src/user-modules/voice.js +61 -0
- package/dist/esm/src/user-modules/voice.js.map +1 -0
- package/dist/esm/src/wechaty/wechaty-base.d.ts +10 -0
- package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/esm/src/wechaty/wechaty-impl.spec.js +25 -23
- package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +12 -0
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +6 -0
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +8 -12
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +4 -0
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -2
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +4 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/package.json +3 -3
- package/src/mods/impls.ts +3 -0
- package/src/mods/users.ts +1 -0
- package/src/package-json.ts +4 -4
- package/src/user-modules/message.ts +24 -0
- package/src/user-modules/mod.ts +8 -0
- package/src/user-modules/voice.ts +104 -0
- package/src/wechaty/wechaty-impl.spec.ts +3 -0
- package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
|
@@ -14,6 +14,7 @@ test('Wechaty interface', async (t) => {
|
|
|
14
14
|
Delay;
|
|
15
15
|
Friendship;
|
|
16
16
|
Image;
|
|
17
|
+
Voice;
|
|
17
18
|
Location;
|
|
18
19
|
Message;
|
|
19
20
|
MiniProgram;
|
|
@@ -44,29 +45,30 @@ test('Wechaty interface', async (t) => {
|
|
|
44
45
|
= this.Delay
|
|
45
46
|
= this.Friendship
|
|
46
47
|
= this.Image
|
|
47
|
-
= this.
|
|
48
|
-
= this.
|
|
49
|
-
= this.
|
|
50
|
-
= this.
|
|
51
|
-
= this.
|
|
52
|
-
= this.
|
|
53
|
-
= this.
|
|
54
|
-
= this.
|
|
55
|
-
= this.
|
|
56
|
-
= this.
|
|
57
|
-
= this.
|
|
58
|
-
= this.
|
|
59
|
-
= this.
|
|
60
|
-
= this.
|
|
61
|
-
= this.
|
|
62
|
-
= this.
|
|
63
|
-
= this.
|
|
64
|
-
= this.
|
|
65
|
-
= this.
|
|
66
|
-
= this.
|
|
67
|
-
= this.
|
|
68
|
-
= this.
|
|
69
|
-
=
|
|
48
|
+
= this.Voice
|
|
49
|
+
= this.Location
|
|
50
|
+
= this.Message
|
|
51
|
+
= this.MiniProgram
|
|
52
|
+
= this.Post
|
|
53
|
+
= this.Room
|
|
54
|
+
= this.RoomInvitation
|
|
55
|
+
= this.Tag
|
|
56
|
+
= this.TagGroup
|
|
57
|
+
= this.UrlLink
|
|
58
|
+
= this.Channel
|
|
59
|
+
= this.ChannelCard
|
|
60
|
+
= this.ConsultCard
|
|
61
|
+
= this.PremiumOnlineAppointmentCard
|
|
62
|
+
= this.Moment
|
|
63
|
+
= this.Call
|
|
64
|
+
= this.CallRecord
|
|
65
|
+
= this.ChatHistory
|
|
66
|
+
= this.Wecom
|
|
67
|
+
= this.DouyinOneClickPhoneCollection
|
|
68
|
+
= this.ImSpecific
|
|
69
|
+
= this.WxxdProduct
|
|
70
|
+
= this.WxxdOrder
|
|
71
|
+
= {};
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
const WechatyTest = WechatyImplementation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,UAAU,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,UAAU,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAkClE,OAAO;AAGL,6BAA6B;AAC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CAAA"}
|
|
@@ -19,6 +19,9 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
19
19
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
20
20
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
21
21
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
22
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined; /**
|
|
23
|
+
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
24
|
+
*/
|
|
22
25
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
23
26
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
24
27
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -46,6 +49,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
46
49
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
47
50
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
48
51
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
52
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
49
53
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
50
54
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
51
55
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -102,6 +106,9 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
102
106
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
103
107
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
104
108
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
109
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined; /**
|
|
110
|
+
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
111
|
+
*/
|
|
105
112
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
106
113
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
107
114
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -129,6 +136,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
129
136
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
130
137
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
131
138
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
139
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
132
140
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
133
141
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
134
142
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -317,6 +325,9 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
317
325
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
318
326
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
319
327
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
328
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined; /**
|
|
329
|
+
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
330
|
+
*/
|
|
320
331
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
321
332
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
322
333
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -344,6 +355,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
344
355
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
345
356
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
346
357
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
358
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
347
359
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
348
360
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
349
361
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;0FA2EZ;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0FAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDA7BmB,GAAG,EAAE;;IAvC3B;;;;;;;OAOG;;IAMH;;;;;;;;;;OAUG;;;YAqBqB,QAAQ,IAAI,CAAC;IAUrC;;;;;;OAMG;oBACoB,MAAM,GAAG,QAAQ,IAAI,CAAC;IAK7C;;OAEG;gBACU,OAAO;IAKpB;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0FAXH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBN,CAAA;AAED,aAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAE/C,aAAK,2BAA2B,GAC5B,UAAU,GACV,UAAU,GACV,oBAAoB,CAAA;AAExB,YAAY,EACV,UAAU,EACV,2BAA2B,GAC5B,CAAA;AACD,OAAO,EACL,UAAU,GACX,CAAA"}
|
|
@@ -18,6 +18,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
18
18
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
19
19
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
20
20
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
21
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
21
22
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
22
23
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
23
24
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -45,6 +46,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
45
46
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
46
47
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
47
48
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
49
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
48
50
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
49
51
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
50
52
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -103,6 +105,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
103
105
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
104
106
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
105
107
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
108
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
106
109
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
107
110
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
108
111
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -130,6 +133,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
130
133
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
131
134
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
132
135
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
136
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
133
137
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
134
138
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
135
139
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -313,6 +317,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
313
317
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
314
318
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
315
319
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
320
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
316
321
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
317
322
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
318
323
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -340,6 +345,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
340
345
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
341
346
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
342
347
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
348
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
343
349
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
344
350
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
345
351
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/misc-mixin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAQ,mBAAmB,CAAA;AAK1D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"misc-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/misc-mixin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAQ,mBAAmB,CAAA;AAK1D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAuDX;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;sDApDmB,GAAG,EAAE;IAI3B;;OAEG;;IAcH;;;OAGG;;IAKH;;;;;;;;OAQG;eACS,MAAM;IAIlB;;OAEG;wBACwB,MAAM,GAAG,QAAQ,IAAI,CAAC;IAMjD;;OAEG;gBACU,MAAM,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;gDAH1B;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcN,CAAA;AAED,aAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAE7C,aAAK,0BAA0B,GAAG,KAAK,CAAA;AAEvC,YAAY,EACV,SAAS,EACT,0BAA0B,GAC3B,CAAA;AACD,OAAO,EACL,SAAS,GACV,CAAA"}
|
|
@@ -96,12 +96,10 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
96
96
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
97
97
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
98
98
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
99
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
99
100
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
100
101
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
101
102
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* Return the function to uninstall all plugins
|
|
104
|
-
*/
|
|
105
103
|
__wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
|
|
106
104
|
__wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
|
|
107
105
|
__wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
|
|
@@ -126,6 +124,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
126
124
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
127
125
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
128
126
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
127
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
129
128
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
130
129
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
131
130
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -173,12 +172,10 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
173
172
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
174
173
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
175
174
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
175
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
176
176
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
177
177
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
178
178
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
179
|
-
/**
|
|
180
|
-
* Return the function to uninstall all plugins
|
|
181
|
-
*/
|
|
182
179
|
__wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
|
|
183
180
|
__wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
|
|
184
181
|
__wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
|
|
@@ -203,6 +200,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
203
200
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
204
201
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
205
202
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
203
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
206
204
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
207
205
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
208
206
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -259,12 +257,10 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
259
257
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
260
258
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
261
259
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
260
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
262
261
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
263
262
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
264
263
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
265
|
-
/**
|
|
266
|
-
* Return the function to uninstall all plugins
|
|
267
|
-
*/
|
|
268
264
|
__wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
|
|
269
265
|
__wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
|
|
270
266
|
__wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
|
|
@@ -289,6 +285,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
289
285
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
290
286
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
291
287
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
288
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
292
289
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
293
290
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
294
291
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -454,12 +451,10 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
454
451
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
455
452
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
456
453
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
454
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
457
455
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
458
456
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
459
457
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
460
|
-
/**
|
|
461
|
-
* Return the function to uninstall all plugins
|
|
462
|
-
*/
|
|
463
458
|
__wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
|
|
464
459
|
__wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
|
|
465
460
|
__wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
|
|
@@ -484,6 +479,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
484
479
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
485
480
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
486
481
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
482
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
487
483
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
488
484
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
489
485
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/plugin-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACzB,MAAkC,cAAc,CAAA;AAKjD,OAAO,KAAK,EACV,eAAe,EAChB,MAA4B,mBAAmB,CAAA;AAKhD,UAAU,QAAQ;IAChB,GAAG,CACD,GAAG,OAAO,EAAE,CACR,aAAa,GACb,aAAa,EAAE,CAClB,EAAE,GACF,wBAAwB,CAAA;CAC5B;AAED,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASb;;;;;;;;;;;;;;;;;;OAkBG
|
|
1
|
+
{"version":3,"file":"plugin-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/plugin-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACzB,MAAkC,cAAc,CAAA;AAKjD,OAAO,KAAK,EACV,eAAe,EAChB,MAA4B,mBAAmB,CAAA;AAKhD,UAAU,QAAQ;IAChB,GAAG,CACD,GAAG,OAAO,EAAE,CACR,aAAa,GACb,aAAa,EAAE,CAClB,EAAE,GACF,wBAAwB,CAAA;CAC5B;AAED,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASb;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAtBmB,GAAG,EAAE;IAI3B;;;;;;;;;;;;;;;;;;OAkBG;oBAEW,CACV,aAAa,GAAG,aAAa,EAAE,CAChC,EAAE,GACF,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAvB3B;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCN,CAAA;AAED,aAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAEjD,aAAK,4BAA4B,GAAG,KAAK,CAAA;AAEzC,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,WAAW,GACZ,CAAA"}
|
|
@@ -16,6 +16,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
16
16
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
17
17
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
18
18
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
19
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
19
20
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
20
21
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
21
22
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -43,6 +44,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
43
44
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
44
45
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
45
46
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
47
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
46
48
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
47
49
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
48
50
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -197,6 +199,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
197
199
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
198
200
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
199
201
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
202
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
200
203
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
201
204
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
202
205
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -224,6 +227,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
224
227
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
225
228
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
226
229
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
230
|
+
readonly Voice: import("../user-modules/voice.js").VoiceConstructor;
|
|
227
231
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
228
232
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
229
233
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puppet-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/puppet-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAW,sBAAsB,CAAA;AAQnD,OAAO,EAEL,gBAAgB,EAChB,oBAAoB,EACrB,MAAO,cAAc,CAAA;AAItB,OAAO,KAAK,EACV,QAAQ,EAST,MAAoC,wBAAwB,CAAA;AAa7D;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"puppet-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/puppet-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAW,sBAAsB,CAAA;AAQnD,OAAO,EAEL,gBAAgB,EAChB,oBAAoB,EACrB,MAAO,cAAc,CAAA;AAItB,OAAO,KAAK,EACV,QAAQ,EAST,MAAoC,wBAAwB,CAAA;AAa7D;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAwBS,GAAG,EAAE;;IAjB3B,yDAAyD;gBAC7C,IAAI,MAAM,EAAE,QAAQ,CAAC;;2BAUT,oBAAoB;sBAE1B,gBAAgB;;aAmBT,QAAQ,IAAI,CAAC;YA+Cd,QAAQ,IAAI,CAAC;aAyBrB,QAAQ,IAAI,CAAC;YAML,QAAQ,IAAI,CAAC;gCA8CR,OAAO,KAAK,CAAC,eAAe,GAAG,IAAI;IAsrBhE;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;4BAC4B,QAAQ,oBAAkB,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4DzE,CAAA;AAED,aAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAEjD,aAAK,4BAA4B,GAC7B,UAAU,GACV,YAAY,GACZ,cAAc,GACd,qBAAqB,GACrB,mBAAmB,GACnB,kBAAkB,CAAA;AAEtB,YAAY,EACV,WAAW,EACX,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CallConstructor, ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, ChannelCardConstructor, ConsultCardConstructor, PremiumOnlineAppointmentCardConstructor, MomentConstructor, CallRecordConstructor, ChatHistoryConstructor, WecomConstructor, DouyinOneClickPhoneCollectionConstructor, ImSpecificConstructor, WxxdProductConstructor, WxxdOrderConstructor } from '../user-modules/mod.js';
|
|
1
|
+
import { CallConstructor, ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, VoiceConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, ChannelCardConstructor, ConsultCardConstructor, PremiumOnlineAppointmentCardConstructor, MomentConstructor, CallRecordConstructor, ChatHistoryConstructor, WecomConstructor, DouyinOneClickPhoneCollectionConstructor, ImSpecificConstructor, WxxdProductConstructor, WxxdOrderConstructor } from '../user-modules/mod.js';
|
|
2
2
|
import type { WechatySkeleton } from '../wechaty/mod.js';
|
|
3
3
|
declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleton>(mixinBase: MixinBase) => ((abstract new (...args: any[]) => {
|
|
4
4
|
__wechatifiedCall?: CallConstructor | undefined;
|
|
@@ -7,6 +7,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
7
7
|
__wechatifiedDelay?: DelayConstructor | undefined;
|
|
8
8
|
__wechatifiedFriendship?: FriendshipConstructor | undefined;
|
|
9
9
|
__wechatifiedImage?: ImageConstructor | undefined;
|
|
10
|
+
__wechatifiedVoice?: VoiceConstructor | undefined;
|
|
10
11
|
__wechatifiedLocation?: LocationConstructor | undefined;
|
|
11
12
|
__wechatifiedMessage?: MessageConstructor | undefined;
|
|
12
13
|
__wechatifiedMiniProgram?: MiniProgramConstructor | undefined;
|
|
@@ -34,6 +35,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
34
35
|
readonly Delay: DelayConstructor;
|
|
35
36
|
readonly Friendship: FriendshipConstructor;
|
|
36
37
|
readonly Image: ImageConstructor;
|
|
38
|
+
readonly Voice: VoiceConstructor;
|
|
37
39
|
readonly Location: LocationConstructor;
|
|
38
40
|
readonly Message: MessageConstructor;
|
|
39
41
|
readonly MiniProgram: MiniProgramConstructor;
|
|
@@ -83,7 +85,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
83
85
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
84
86
|
}) & MixinBase;
|
|
85
87
|
declare type WechatifyUserModuleMixin = ReturnType<typeof wechatifyUserModuleMixin>;
|
|
86
|
-
declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedCall' | '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedChannelCard' | '__wechatifiedConsultCard' | '__wechatifiedPremiumOnlineAppointmentCard' | '__wechatifiedMoment' | '__wechatifiedCallRecord' | '__wechatifiedChatHistory' | '__wechatifiedWecom' | '__wechatifiedDouyinOneClickPhoneCollection' | '__wechatifiedImSpecific' | '__wechatifiedWxxdProduct' | '__wechatifiedWxxdOrder';
|
|
88
|
+
declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedCall' | '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedVoice' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedChannelCard' | '__wechatifiedConsultCard' | '__wechatifiedPremiumOnlineAppointmentCard' | '__wechatifiedMoment' | '__wechatifiedCallRecord' | '__wechatifiedChatHistory' | '__wechatifiedWecom' | '__wechatifiedDouyinOneClickPhoneCollection' | '__wechatifiedImSpecific' | '__wechatifiedWxxdProduct' | '__wechatifiedWxxdOrder';
|
|
87
89
|
export type { WechatifyUserModuleMixin, ProtectedPropertyWechatifyUserModuleMixin, };
|
|
88
90
|
export { wechatifyUserModuleMixin, };
|
|
89
91
|
//# sourceMappingURL=wechatify-user-module-mixin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wechatify-user-module-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"wechatify-user-module-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,EA8BL,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,EACtB,uCAAuC,EACvC,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,wCAAwC,EACxC,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EAErB,MAA4B,wBAAwB,CAAA;AAErD,OAAO,KAAK,EACV,eAAe,EAChB,MAAkC,mBAAmB,CAAA;AAEtD,QAAA,MAAM,wBAAwB,+FAKJ,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+DH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cAuDxC,CAAA;AAYD,aAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE3E,aAAK,yCAAyC,GAC1C,mBAAmB,GACnB,sBAAsB,GACtB,0BAA0B,GAC1B,oBAAoB,GACpB,yBAAyB,GACzB,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,0BAA0B,GAC1B,mBAAmB,GACnB,6BAA6B,GAC7B,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,sBAAsB,GACtB,0BAA0B,GAC1B,0BAA0B,GAC1B,2CAA2C,GAC3C,qBAAqB,GACrB,yBAAyB,GACzB,0BAA0B,GAC1B,oBAAoB,GACpB,4CAA4C,GAC5C,yBAAyB,GACzB,0BAA0B,GAC1B,wBAAwB,CAAA;AAE5B,YAAY,EACV,wBAAwB,EACxB,yCAAyC,GAC1C,CAAA;AACD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { log } from '@juzi/wechaty-puppet';
|
|
2
|
-
import { CallImpl, ContactImpl, ContactSelfImpl, DelayImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, PostImpl, RoomImpl, RoomInvitationImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, ChannelCardImpl, ConsultCardImpl, PremiumOnlineAppointmentCardImpl, MomentImpl, CallRecordImpl, ChatHistoryImpl, WecomImpl, DouyinOneClickPhoneCollectionImpl, ImSpecificImpl, WxxdProductImpl, WxxdOrderImpl, wechatifyUserModule, } from '../user-modules/mod.js';
|
|
2
|
+
import { CallImpl, ContactImpl, ContactSelfImpl, DelayImpl, FriendshipImpl, ImageImpl, VoiceImpl, LocationImpl, MessageImpl, MiniProgramImpl, PostImpl, RoomImpl, RoomInvitationImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, ChannelCardImpl, ConsultCardImpl, PremiumOnlineAppointmentCardImpl, MomentImpl, CallRecordImpl, ChatHistoryImpl, WecomImpl, DouyinOneClickPhoneCollectionImpl, ImSpecificImpl, WxxdProductImpl, WxxdOrderImpl, wechatifyUserModule, } from '../user-modules/mod.js';
|
|
3
3
|
const wechatifyUserModuleMixin = (mixinBase) => {
|
|
4
4
|
log.verbose('WechatifyUserModuleMixin', 'wechatifyUserModuleMixin(%s)', mixinBase.name);
|
|
5
5
|
class WechatifyUserModuleMixin extends mixinBase {
|
|
@@ -13,6 +13,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
13
13
|
__wechatifiedDelay;
|
|
14
14
|
__wechatifiedFriendship;
|
|
15
15
|
__wechatifiedImage;
|
|
16
|
+
__wechatifiedVoice;
|
|
16
17
|
__wechatifiedLocation;
|
|
17
18
|
__wechatifiedMessage;
|
|
18
19
|
__wechatifiedMiniProgram;
|
|
@@ -40,6 +41,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
40
41
|
get Delay() { return guardWechatify(this.__wechatifiedDelay); }
|
|
41
42
|
get Friendship() { return guardWechatify(this.__wechatifiedFriendship); }
|
|
42
43
|
get Image() { return guardWechatify(this.__wechatifiedImage); }
|
|
44
|
+
get Voice() { return guardWechatify(this.__wechatifiedVoice); }
|
|
43
45
|
get Location() { return guardWechatify(this.__wechatifiedLocation); }
|
|
44
46
|
get Message() { return guardWechatify(this.__wechatifiedMessage); }
|
|
45
47
|
get MiniProgram() { return guardWechatify(this.__wechatifiedMiniProgram); }
|
|
@@ -84,6 +86,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
84
86
|
this.__wechatifiedDelay = wechatifyUserModule(DelayImpl)(this);
|
|
85
87
|
this.__wechatifiedFriendship = wechatifyUserModule(FriendshipImpl)(this);
|
|
86
88
|
this.__wechatifiedImage = wechatifyUserModule(ImageImpl)(this);
|
|
89
|
+
this.__wechatifiedVoice = wechatifyUserModule(VoiceImpl)(this);
|
|
87
90
|
this.__wechatifiedLocation = wechatifyUserModule(LocationImpl)(this);
|
|
88
91
|
this.__wechatifiedMessage = wechatifyUserModule(MessageImpl)(this);
|
|
89
92
|
this.__wechatifiedMiniProgram = wechatifyUserModule(MiniProgramImpl)(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wechatify-user-module-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAe,sBAAsB,CAAA;AAEnD,OAAO,EACL,QAAQ,EACR,WAAW,EACX,eAAe,EACf,SAAS,EACT,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,OAAO,EACP,YAAY,EACZ,WAAW,EACX,WAAW,EACX,eAAe,EACf,eAAe,EACf,gCAAgC,EAChC,UAAU,EACV,cAAc,EACd,eAAe,EACf,SAAS,EACT,iCAAiC,EACjC,cAAc,EACd,eAAe,EACf,aAAa,
|
|
1
|
+
{"version":3,"file":"wechatify-user-module-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAe,sBAAsB,CAAA;AAEnD,OAAO,EACL,QAAQ,EACR,WAAW,EACX,eAAe,EACf,SAAS,EACT,cAAc,EACd,SAAS,EACT,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,OAAO,EACP,YAAY,EACZ,WAAW,EACX,WAAW,EACX,eAAe,EACf,eAAe,EACf,gCAAgC,EAChC,UAAU,EACV,cAAc,EACd,eAAe,EACf,SAAS,EACT,iCAAiC,EACjC,cAAc,EACd,eAAe,EACf,aAAa,EA8Bb,mBAAmB,GACpB,MAA4B,wBAAwB,CAAA;AAMrD,MAAM,wBAAwB,GAAG,CAA4C,SAAoB,EAAE,EAAE;IACnG,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,8BAA8B,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAEvF,MAAe,wBAAyB,SAAQ,SAAS;QAEvD,YAAa,GAAG,IAAW;YACzB,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,eAAe,CAAC,CAAA;YACxD,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;QAChB,CAAC;QAED,iBAAiB,CAA4C;QAC7D,oBAAoB,CAA4C;QAChE,wBAAwB,CAA4C;QACpE,kBAAkB,CAA4C;QAC9D,uBAAuB,CAA4C;QACnE,kBAAkB,CAA4C;QAC9D,kBAAkB,CAA4C;QAC9D,qBAAqB,CAA4C;QACjE,oBAAoB,CAA4C;QAChE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5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
},
|
|
110
110
|
"homepage": "https://github.com/wechaty/",
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@juzi/wechaty-puppet-service": "1.0.
|
|
112
|
+
"@juzi/wechaty-puppet-service": "1.0.118",
|
|
113
113
|
"clone-class": "^1.1.1",
|
|
114
114
|
"cmd-ts": "^0.10.0",
|
|
115
115
|
"cockatiel": "^2.0.2",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"@chatie/eslint-config": "^1.0.4",
|
|
133
133
|
"@chatie/semver": "^0.4.7",
|
|
134
134
|
"@chatie/tsconfig": "^4.6.3",
|
|
135
|
-
"@juzi/wechaty-puppet": "^1.0.
|
|
135
|
+
"@juzi/wechaty-puppet": "^1.0.142",
|
|
136
136
|
"@juzi/wechaty-puppet-mock": "^1.0.1",
|
|
137
137
|
"@swc/core": "1.3.44",
|
|
138
138
|
"@swc/helpers": "^0.3.6",
|
package/src/mods/impls.ts
CHANGED
|
@@ -37,6 +37,7 @@ export {
|
|
|
37
37
|
FavoriteImpl,
|
|
38
38
|
FriendshipImpl,
|
|
39
39
|
ImageImpl,
|
|
40
|
+
VoiceImpl,
|
|
40
41
|
LocationImpl,
|
|
41
42
|
MessageImpl,
|
|
42
43
|
MiniProgramImpl,
|
|
@@ -88,6 +89,7 @@ export type {
|
|
|
88
89
|
FavoriteInterface,
|
|
89
90
|
FriendshipInterface,
|
|
90
91
|
ImageInterface,
|
|
92
|
+
VoiceInterface,
|
|
91
93
|
LocationInterface,
|
|
92
94
|
MessageInterface,
|
|
93
95
|
MiniProgramInterface,
|
|
@@ -118,6 +120,7 @@ export type {
|
|
|
118
120
|
FavoriteConstructor,
|
|
119
121
|
FriendshipConstructor,
|
|
120
122
|
ImageConstructor,
|
|
123
|
+
VoiceConstructor,
|
|
121
124
|
LocationConstructor,
|
|
122
125
|
MessageConstructor,
|
|
123
126
|
MiniProgramConstructor,
|
package/src/mods/users.ts
CHANGED
package/src/package-json.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { PackageJsonWechaty } from './config'
|
|
6
6
|
|
|
7
|
-
export const GIT_COMMIT_HASH: string = '
|
|
7
|
+
export const GIT_COMMIT_HASH: string = 'e4d722bd21b4291abeec2865fb70f4b9b6406561'
|
|
8
8
|
export const packageJson: PackageJsonWechaty = {
|
|
9
9
|
"name": "@juzi/wechaty",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.150",
|
|
11
11
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
@@ -116,7 +116,7 @@ export const packageJson: PackageJsonWechaty = {
|
|
|
116
116
|
},
|
|
117
117
|
"homepage": "https://github.com/wechaty/",
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@juzi/wechaty-puppet-service": "1.0.
|
|
119
|
+
"@juzi/wechaty-puppet-service": "1.0.118",
|
|
120
120
|
"clone-class": "^1.1.1",
|
|
121
121
|
"cmd-ts": "^0.10.0",
|
|
122
122
|
"cockatiel": "^2.0.2",
|
|
@@ -139,7 +139,7 @@ export const packageJson: PackageJsonWechaty = {
|
|
|
139
139
|
"@chatie/eslint-config": "^1.0.4",
|
|
140
140
|
"@chatie/semver": "^0.4.7",
|
|
141
141
|
"@chatie/tsconfig": "^4.6.3",
|
|
142
|
-
"@juzi/wechaty-puppet": "^1.0.
|
|
142
|
+
"@juzi/wechaty-puppet": "^1.0.142",
|
|
143
143
|
"@juzi/wechaty-puppet-mock": "^1.0.1",
|
|
144
144
|
"@swc/core": "1.3.44",
|
|
145
145
|
"@swc/helpers": "^0.3.6",
|
|
@@ -62,6 +62,9 @@ import type {
|
|
|
62
62
|
import type {
|
|
63
63
|
ImageInterface,
|
|
64
64
|
} from './image.js'
|
|
65
|
+
import type {
|
|
66
|
+
VoiceInterface,
|
|
67
|
+
} from './voice.js'
|
|
65
68
|
import type {
|
|
66
69
|
PostInterface,
|
|
67
70
|
} from './post.js'
|
|
@@ -1419,6 +1422,27 @@ class MessageMixin extends MixinBase implements SayableSayer {
|
|
|
1419
1422
|
return this.wechaty.Image.create(this.id)
|
|
1420
1423
|
}
|
|
1421
1424
|
|
|
1425
|
+
/**
|
|
1426
|
+
* Extract the Voice from the Message, so that we can asynchronously fetch the
|
|
1427
|
+
* voice file and the voice-to-text (ASR) result via second requests.
|
|
1428
|
+
* > Tips:
|
|
1429
|
+
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
|
|
1430
|
+
*
|
|
1431
|
+
* @returns {VoiceInterface}
|
|
1432
|
+
*
|
|
1433
|
+
* @example <caption>Get voice file and text from a voice message</caption>
|
|
1434
|
+
* const voice = message.toVoice()
|
|
1435
|
+
* const fileBox = await voice.file()
|
|
1436
|
+
* const { text, noSpeech } = await voice.text()
|
|
1437
|
+
*/
|
|
1438
|
+
toVoice (): VoiceInterface {
|
|
1439
|
+
log.verbose('Message', 'toVoice() for message id: %s', this.id)
|
|
1440
|
+
if (this.type() !== PUPPET.types.Message.Audio) {
|
|
1441
|
+
throw new Error(`not a voice type message. type: ${this.type()}`)
|
|
1442
|
+
}
|
|
1443
|
+
return this.wechaty.Voice.create(this.id)
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1422
1446
|
async toPreview (): Promise<FileBoxInterface | undefined> {
|
|
1423
1447
|
log.verbose('Message', 'toPreview() for message id: %s', this.id)
|
|
1424
1448
|
if (!ALLOW_PREVIEW_TYPES.some(e => e === this.type())) {
|
package/src/user-modules/mod.ts
CHANGED
|
@@ -42,6 +42,11 @@ import {
|
|
|
42
42
|
ImageInterface,
|
|
43
43
|
ImageConstructor,
|
|
44
44
|
} from './image.js'
|
|
45
|
+
import {
|
|
46
|
+
VoiceImpl,
|
|
47
|
+
VoiceInterface,
|
|
48
|
+
VoiceConstructor,
|
|
49
|
+
} from './voice.js'
|
|
45
50
|
import {
|
|
46
51
|
LocationImpl,
|
|
47
52
|
LocationInterface,
|
|
@@ -175,6 +180,7 @@ export type {
|
|
|
175
180
|
FavoriteInterface,
|
|
176
181
|
FriendshipInterface,
|
|
177
182
|
ImageInterface,
|
|
183
|
+
VoiceInterface,
|
|
178
184
|
LocationInterface,
|
|
179
185
|
MessageInterface,
|
|
180
186
|
MiniProgramInterface,
|
|
@@ -207,6 +213,7 @@ export type {
|
|
|
207
213
|
FavoriteConstructor,
|
|
208
214
|
FriendshipConstructor,
|
|
209
215
|
ImageConstructor,
|
|
216
|
+
VoiceConstructor,
|
|
210
217
|
LocationConstructor,
|
|
211
218
|
MessageConstructor,
|
|
212
219
|
MiniProgramConstructor,
|
|
@@ -241,6 +248,7 @@ export {
|
|
|
241
248
|
FavoriteImpl,
|
|
242
249
|
FriendshipImpl,
|
|
243
250
|
ImageImpl,
|
|
251
|
+
VoiceImpl,
|
|
244
252
|
LocationImpl,
|
|
245
253
|
MessageImpl,
|
|
246
254
|
MiniProgramImpl,
|