@juzi/wechaty 1.0.113 → 1.0.115
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/sayable/deliver-sayable.d.ts.map +1 -1
- package/dist/cjs/src/sayable/deliver-sayable.js +3 -0
- package/dist/cjs/src/sayable/deliver-sayable.js.map +1 -1
- package/dist/cjs/src/sayable/message-to-sayable.d.ts.map +1 -1
- package/dist/cjs/src/sayable/message-to-sayable.js +2 -0
- package/dist/cjs/src/sayable/message-to-sayable.js.map +1 -1
- package/dist/cjs/src/sayable/payload-to-sayable.d.ts.map +1 -1
- package/dist/cjs/src/sayable/payload-to-sayable.js +2 -0
- package/dist/cjs/src/sayable/payload-to-sayable.js.map +1 -1
- package/dist/cjs/src/sayable/sayable-to-payload.d.ts.map +1 -1
- package/dist/cjs/src/sayable/sayable-to-payload.js +3 -0
- package/dist/cjs/src/sayable/sayable-to-payload.js.map +1 -1
- package/dist/cjs/src/sayable/types.d.ts +2 -2
- package/dist/cjs/src/sayable/types.d.ts.map +1 -1
- package/dist/cjs/src/sayable/types.js.map +1 -1
- package/dist/cjs/src/user-modules/channel-card.d.ts +39 -0
- package/dist/cjs/src/user-modules/channel-card.d.ts.map +1 -0
- package/dist/cjs/src/user-modules/channel-card.js +57 -0
- package/dist/cjs/src/user-modules/channel-card.js.map +1 -0
- package/dist/cjs/src/user-modules/message.d.ts +2 -0
- package/dist/cjs/src/user-modules/message.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/message.js +12 -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/wechaty/wechaty-base.d.ts +276 -36
- package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-base.js +1 -1
- package/dist/cjs/src/wechaty/wechaty-impl.spec.js +7 -5
- package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +12 -30
- 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/sayable/deliver-sayable.d.ts.map +1 -1
- package/dist/esm/src/sayable/deliver-sayable.js +4 -1
- package/dist/esm/src/sayable/deliver-sayable.js.map +1 -1
- package/dist/esm/src/sayable/message-to-sayable.d.ts.map +1 -1
- package/dist/esm/src/sayable/message-to-sayable.js +2 -0
- package/dist/esm/src/sayable/message-to-sayable.js.map +1 -1
- package/dist/esm/src/sayable/payload-to-sayable.d.ts.map +1 -1
- package/dist/esm/src/sayable/payload-to-sayable.js +2 -0
- package/dist/esm/src/sayable/payload-to-sayable.js.map +1 -1
- package/dist/esm/src/sayable/sayable-to-payload.d.ts.map +1 -1
- package/dist/esm/src/sayable/sayable-to-payload.js +4 -1
- package/dist/esm/src/sayable/sayable-to-payload.js.map +1 -1
- package/dist/esm/src/sayable/types.d.ts +2 -2
- package/dist/esm/src/sayable/types.d.ts.map +1 -1
- package/dist/esm/src/sayable/types.js.map +1 -1
- package/dist/esm/src/user-modules/channel-card.d.ts +39 -0
- package/dist/esm/src/user-modules/channel-card.d.ts.map +1 -0
- package/dist/esm/src/user-modules/channel-card.js +54 -0
- package/dist/esm/src/user-modules/channel-card.js.map +1 -0
- package/dist/esm/src/user-modules/message.d.ts +2 -0
- package/dist/esm/src/user-modules/message.d.ts.map +1 -1
- package/dist/esm/src/user-modules/message.js +12 -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/wechaty/wechaty-base.d.ts +276 -36
- package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/esm/src/wechaty/wechaty-base.js +1 -1
- package/dist/esm/src/wechaty/wechaty-impl.spec.js +7 -5
- package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +12 -30
- 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/sayable/deliver-sayable.ts +6 -0
- package/src/sayable/message-to-sayable.ts +3 -0
- package/src/sayable/payload-to-sayable.ts +3 -0
- package/src/sayable/sayable-to-payload.ts +3 -0
- package/src/sayable/types.ts +2 -0
- package/src/user-modules/channel-card.ts +85 -0
- package/src/user-modules/message.ts +19 -0
- package/src/user-modules/mod.ts +8 -0
- package/src/wechaty/wechaty-base.ts +1 -1
- package/src/wechaty/wechaty-impl.spec.ts +3 -0
- package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
|
@@ -25,6 +25,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
25
25
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
26
26
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
27
27
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
28
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
28
29
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
29
30
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
30
31
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -44,6 +45,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
44
45
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
45
46
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
46
47
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
48
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
47
49
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
48
50
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
49
51
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -94,6 +96,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
94
96
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
95
97
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
96
98
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
99
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
97
100
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
98
101
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
99
102
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -113,6 +116,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
113
116
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
114
117
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
115
118
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
119
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
116
120
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
117
121
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
118
122
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -286,6 +290,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
286
290
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
287
291
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
288
292
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
293
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
289
294
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
290
295
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
291
296
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -305,6 +310,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
305
310
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
306
311
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
307
312
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
313
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
308
314
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
309
315
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
310
316
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -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"}
|
|
@@ -103,13 +103,11 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
103
103
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
104
104
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
105
105
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
106
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
106
107
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
107
108
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
108
109
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
109
110
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
110
|
-
/**
|
|
111
|
-
* Return the function to uninstall all plugins
|
|
112
|
-
*/
|
|
113
111
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
114
112
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
115
113
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -125,6 +123,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
125
123
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
126
124
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
127
125
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
126
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
128
127
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
129
128
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
130
129
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -162,13 +161,11 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
162
161
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
163
162
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
164
163
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
164
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
165
165
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
166
166
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
167
167
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
168
168
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
169
|
-
/**
|
|
170
|
-
* Return the function to uninstall all plugins
|
|
171
|
-
*/
|
|
172
169
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
173
170
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
174
171
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -184,6 +181,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
184
181
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
185
182
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
186
183
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
184
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
187
185
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
188
186
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
189
187
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -232,13 +230,11 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
232
230
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
233
231
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
234
232
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
233
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
235
234
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
236
235
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
237
236
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
238
237
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
239
|
-
/**
|
|
240
|
-
* Return the function to uninstall all plugins
|
|
241
|
-
*/
|
|
242
238
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
243
239
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
244
240
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -254,6 +250,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
254
250
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
255
251
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
256
252
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
253
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
257
254
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
258
255
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
259
256
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -409,13 +406,11 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
409
406
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
410
407
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
411
408
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
409
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
412
410
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
413
411
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
414
412
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
415
413
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
416
|
-
/**
|
|
417
|
-
* Return the function to uninstall all plugins
|
|
418
|
-
*/
|
|
419
414
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
420
415
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
421
416
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -431,6 +426,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
431
426
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
432
427
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
433
428
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
429
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
434
430
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
435
431
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
436
432
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -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"}
|
|
@@ -24,6 +24,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
24
24
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
25
25
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
26
26
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
27
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
27
28
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
28
29
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
29
30
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -43,6 +44,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
43
44
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
44
45
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
45
46
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
47
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
46
48
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
47
49
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
48
50
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -160,6 +162,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
160
162
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
161
163
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
162
164
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
165
|
+
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
163
166
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
164
167
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
165
168
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -179,6 +182,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
179
182
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
180
183
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
181
184
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
185
|
+
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
182
186
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
183
187
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
184
188
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -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;AAwBtB;;;;;;;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;AAwBtB;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAqBS,GAAG,EAAE;;;2BANH,oBAAoB;sBAE1B,gBAAgB;;aAmBT,QAAQ,IAAI,CAAC;YA+Cd,QAAQ,IAAI,CAAC;aAuBrB,QAAQ,IAAI,CAAC;YAML,QAAQ,IAAI,CAAC;gCA8CR,OAAO,KAAK,CAAC,eAAe,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+gBnE,CAAA;AAED,aAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAEjD,aAAK,4BAA4B,GAC7B,UAAU,GACV,cAAc,GACd,qBAAqB,GACrB,kBAAkB,CAAA;AAEtB,YAAY,EACV,WAAW,EACX,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, MomentConstructor, CallRecordConstructor, ChatHistoryConstructor, WecomConstructor } from '../user-modules/mod.js';
|
|
1
|
+
import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, ChannelCardConstructor, MomentConstructor, CallRecordConstructor, ChatHistoryConstructor, WecomConstructor } 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
|
__wechatifiedContact?: ContactConstructor | undefined;
|
|
@@ -16,6 +16,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
16
16
|
__wechatifiedTagGroup?: TagGroupConstructor | undefined;
|
|
17
17
|
__wechatifiedUrlLink?: UrlLinkConstructor | undefined;
|
|
18
18
|
__wechatifiedChannel?: ChannelConstructor | undefined;
|
|
19
|
+
__wechatifiedChannelCard?: ChannelCardConstructor | undefined;
|
|
19
20
|
__wechatifiedMoment?: MomentConstructor | undefined;
|
|
20
21
|
__wechatifiedCallRecord?: CallRecordConstructor | undefined;
|
|
21
22
|
__wechatifiedChatHistory?: ChatHistoryConstructor | undefined;
|
|
@@ -35,6 +36,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
35
36
|
readonly TagGroup: TagGroupConstructor;
|
|
36
37
|
readonly UrlLink: UrlLinkConstructor;
|
|
37
38
|
readonly Channel: ChannelConstructor;
|
|
39
|
+
readonly ChannelCard: ChannelCardConstructor;
|
|
38
40
|
readonly Moment: MomentConstructor;
|
|
39
41
|
readonly CallRecord: CallRecordConstructor;
|
|
40
42
|
readonly ChatHistory: ChatHistoryConstructor;
|
|
@@ -67,7 +69,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
67
69
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
68
70
|
}) & MixinBase;
|
|
69
71
|
declare type WechatifyUserModuleMixin = ReturnType<typeof wechatifyUserModuleMixin>;
|
|
70
|
-
declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedMoment' | '__wechatifiedCallRecord' | '__wechatifiedChatHistory' | '__wechatifiedWecom';
|
|
72
|
+
declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedChannelCard' | '__wechatifiedMoment' | '__wechatifiedCallRecord' | '__wechatifiedChatHistory' | '__wechatifiedWecom';
|
|
71
73
|
export type { WechatifyUserModuleMixin, ProtectedPropertyWechatifyUserModuleMixin, };
|
|
72
74
|
export { wechatifyUserModuleMixin, };
|
|
73
75
|
//# 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,EAsBL,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAGjB,MAA4B,wBAAwB,CAAA;AAErD,OAAO,KAAK,EACV,eAAe,EAChB,MAAkC,mBAAmB,CAAA;AAEtD,QAAA,MAAM,wBAAwB,+FAKJ,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA+CH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cA+CxC,CAAA;AAYD,aAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE3E,aAAK,yCAAyC,GAC1C,sBAAsB,GACtB,0BAA0B,GAC1B,oBAAoB,GACpB,yBAAyB,GACzB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,0BAA0B,GAC1B,mBAAmB,GACnB,6BAA6B,GAC7B,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,sBAAsB,GACtB,0BAA0B,GAC1B,qBAAqB,GACrB,yBAAyB,GACzB,0BAA0B,GAC1B,oBAAoB,CAAA;AAExB,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 { ContactImpl, ContactSelfImpl, DelayImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, PostImpl, RoomImpl, RoomInvitationImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, MomentImpl, CallRecordImpl, ChatHistoryImpl, WecomImpl, wechatifyUserModule, } from '../user-modules/mod.js';
|
|
2
|
+
import { ContactImpl, ContactSelfImpl, DelayImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, PostImpl, RoomImpl, RoomInvitationImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, ChannelCardImpl, MomentImpl, CallRecordImpl, ChatHistoryImpl, WecomImpl, 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 {
|
|
@@ -22,6 +22,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
22
22
|
__wechatifiedTagGroup;
|
|
23
23
|
__wechatifiedUrlLink;
|
|
24
24
|
__wechatifiedChannel;
|
|
25
|
+
__wechatifiedChannelCard;
|
|
25
26
|
__wechatifiedMoment;
|
|
26
27
|
__wechatifiedCallRecord;
|
|
27
28
|
__wechatifiedChatHistory;
|
|
@@ -41,6 +42,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
41
42
|
get TagGroup() { return guardWechatify(this.__wechatifiedTagGroup); }
|
|
42
43
|
get UrlLink() { return guardWechatify(this.__wechatifiedUrlLink); }
|
|
43
44
|
get Channel() { return guardWechatify(this.__wechatifiedChannel); }
|
|
45
|
+
get ChannelCard() { return guardWechatify(this.__wechatifiedChannelCard); }
|
|
44
46
|
get Moment() { return guardWechatify(this.__wechatifiedMoment); }
|
|
45
47
|
get CallRecord() { return guardWechatify(this.__wechatifiedCallRecord); }
|
|
46
48
|
get ChatHistory() { return guardWechatify(this.__wechatifiedChatHistory); }
|
|
@@ -77,6 +79,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
77
79
|
this.__wechatifiedTagGroup = wechatifyUserModule(TagGroupImpl)(this);
|
|
78
80
|
this.__wechatifiedUrlLink = wechatifyUserModule(UrlLinkImpl)(this);
|
|
79
81
|
this.__wechatifiedChannel = wechatifyUserModule(ChannelImpl)(this);
|
|
82
|
+
this.__wechatifiedChannelCard = wechatifyUserModule(ChannelCardImpl)(this);
|
|
80
83
|
this.__wechatifiedMoment = wechatifyUserModule(MomentImpl)(this);
|
|
81
84
|
this.__wechatifiedCallRecord = wechatifyUserModule(CallRecordImpl)(this);
|
|
82
85
|
this.__wechatifiedChatHistory = wechatifyUserModule(ChatHistoryImpl)(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,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,UAAU,EACV,cAAc,EACd,eAAe,EACf,SAAS,
|
|
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,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,UAAU,EACV,cAAc,EACd,eAAe,EACf,SAAS,EAuBT,mBAAmB,GACpB,MAA4B,wBAAwB,CAAA;AAMrD,M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
1
1
|
{
|
|
2
2
|
"name": "@juzi/wechaty",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.115",
|
|
4
4
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
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.110",
|
|
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.107",
|
|
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
|
@@ -51,6 +51,7 @@ export {
|
|
|
51
51
|
ChannelImpl,
|
|
52
52
|
CallRecordImpl,
|
|
53
53
|
WecomImpl,
|
|
54
|
+
ChannelCardImpl,
|
|
54
55
|
} from '../user-modules/mod.js'
|
|
55
56
|
|
|
56
57
|
// export {
|
|
@@ -93,6 +94,7 @@ export type {
|
|
|
93
94
|
ChannelInterface,
|
|
94
95
|
CallRecordInterface,
|
|
95
96
|
WecomInterface,
|
|
97
|
+
ChannelCardInterface,
|
|
96
98
|
} from '../user-modules/mod.js'
|
|
97
99
|
|
|
98
100
|
export type {
|
|
@@ -115,6 +117,7 @@ export type {
|
|
|
115
117
|
UrlLinkConstructor,
|
|
116
118
|
ChannelConstructor,
|
|
117
119
|
WecomConstructor,
|
|
120
|
+
ChannelCardConstructor,
|
|
118
121
|
} from '../user-modules/mod.js'
|
|
119
122
|
|
|
120
123
|
export {
|
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 = 'd34c301c388a44510f0afd080f8e21dd1a204849'
|
|
8
8
|
export const packageJson: PackageJsonWechaty = {
|
|
9
9
|
"name": "@juzi/wechaty",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.115",
|
|
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.110",
|
|
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.107",
|
|
143
143
|
"@juzi/wechaty-puppet-mock": "^1.0.1",
|
|
144
144
|
"@swc/core": "1.3.44",
|
|
145
145
|
"@swc/helpers": "^0.3.6",
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
PostImpl,
|
|
11
11
|
LocationImpl,
|
|
12
12
|
ChannelImpl,
|
|
13
|
+
ChannelCardImpl,
|
|
13
14
|
} from '../user-modules/mod.js'
|
|
14
15
|
|
|
15
16
|
import type { Sayable, SayOptionsObject } from './types.js'
|
|
@@ -105,6 +106,11 @@ const deliverSayableConversationPuppet = (puppet: PUPPET.impls.PuppetInterface)
|
|
|
105
106
|
conversationId,
|
|
106
107
|
sayable.payload,
|
|
107
108
|
)
|
|
109
|
+
} else if (ChannelCardImpl.validInstance(sayable)) {
|
|
110
|
+
msgId = await puppet.messageSendChannelCard(
|
|
111
|
+
conversationId,
|
|
112
|
+
sayable.payload,
|
|
113
|
+
)
|
|
108
114
|
} else {
|
|
109
115
|
throw new Error('unsupported arg: ' + sayable)
|
|
110
116
|
}
|
|
@@ -43,6 +43,9 @@ async function messageToSayable (
|
|
|
43
43
|
case PUPPET.types.Message.Channel:
|
|
44
44
|
return message.toChannel()
|
|
45
45
|
|
|
46
|
+
case PUPPET.types.Message.ChannelCard:
|
|
47
|
+
return message.toChannelCard()
|
|
48
|
+
|
|
46
49
|
default:
|
|
47
50
|
log.warn('Wechaty',
|
|
48
51
|
'toSayable() can not convert not re-sayable type: %s(%s) for %s\n%s',
|
|
@@ -44,6 +44,9 @@ const payloadToSayableWechaty: (w: WechatyInterface) => (p: PUPPET.payloads.Saya
|
|
|
44
44
|
case PUPPET.types.Sayable.Channel:
|
|
45
45
|
return new wechaty.Channel(sayable.payload)
|
|
46
46
|
|
|
47
|
+
case PUPPET.types.Sayable.ChannelCard:
|
|
48
|
+
return new wechaty.ChannelCard(sayable.payload)
|
|
49
|
+
|
|
47
50
|
default:
|
|
48
51
|
throw new Error('payloadToSayable() not support payload: ' + JSON.stringify(sayable))
|
|
49
52
|
}
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
ContactImpl,
|
|
12
12
|
PostImpl,
|
|
13
13
|
ChannelImpl,
|
|
14
|
+
ChannelCardImpl,
|
|
14
15
|
} from '../user-modules/mod.js'
|
|
15
16
|
|
|
16
17
|
import type {
|
|
@@ -46,6 +47,8 @@ async function sayableToPayload (sayable: Sayable): Promise<undefined | PUPPET.p
|
|
|
46
47
|
return PUPPET.payloads.sayable.url(sayable.payload)
|
|
47
48
|
} else if (ChannelImpl.validInstance(sayable)) {
|
|
48
49
|
return PUPPET.payloads.sayable.channel(sayable.payload)
|
|
50
|
+
} else if (ChannelCardImpl.validInstance(sayable)) {
|
|
51
|
+
return PUPPET.payloads.sayable.channelCard(sayable.payload)
|
|
49
52
|
} else {
|
|
50
53
|
log.error('Wechaty', 'sayableToPayload() unsupported sayable: %s', sayable)
|
|
51
54
|
return undefined
|
package/src/sayable/types.ts
CHANGED
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
ChannelInterface,
|
|
33
33
|
ContactImpl,
|
|
34
34
|
MessageImpl,
|
|
35
|
+
ChannelCardInterface,
|
|
35
36
|
} from '../user-modules/mod.js'
|
|
36
37
|
|
|
37
38
|
import type {
|
|
@@ -50,6 +51,7 @@ type Sayable =
|
|
|
50
51
|
| string
|
|
51
52
|
| UrlLinkInterface
|
|
52
53
|
| ChannelInterface
|
|
54
|
+
| ChannelCardInterface
|
|
53
55
|
|
|
54
56
|
interface SayableSayer {
|
|
55
57
|
id : string,
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type * as PUPPET from '@juzi/wechaty-puppet'
|
|
2
|
+
|
|
3
|
+
import type { Constructor } from 'clone-class'
|
|
4
|
+
import { log } from '../config.js'
|
|
5
|
+
|
|
6
|
+
import { validationMixin } from '../user-mixins/validation.js'
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
wechatifyMixinBase,
|
|
10
|
+
} from '../user-mixins/wechatify.js'
|
|
11
|
+
|
|
12
|
+
class ChannelCardMixin extends wechatifyMixinBase() {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* Create
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
static async create (): Promise<ChannelCardInterface> {
|
|
20
|
+
log.verbose('ChannelCard', 'create()')
|
|
21
|
+
|
|
22
|
+
// TODO: get appid and username from wechat
|
|
23
|
+
const payload: PUPPET.payloads.ChannelCard = {
|
|
24
|
+
avatar: 'todo',
|
|
25
|
+
extras: 'todo',
|
|
26
|
+
nickname: 'todo',
|
|
27
|
+
url: 'todo',
|
|
28
|
+
authIconUrl: 'todo',
|
|
29
|
+
authJob: 'todo',
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return new this(payload)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* @hideconstructor
|
|
37
|
+
*/
|
|
38
|
+
constructor (
|
|
39
|
+
public readonly payload: PUPPET.payloads.ChannelCard,
|
|
40
|
+
) {
|
|
41
|
+
super()
|
|
42
|
+
log.verbose('ChannelCard', 'constructor()')
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
avatar (): undefined | string {
|
|
46
|
+
return this.payload.avatar
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
extras (): undefined | string {
|
|
50
|
+
return this.payload.extras
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
nickname (): undefined | string {
|
|
54
|
+
return this.payload.nickname
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
url (): undefined | string {
|
|
58
|
+
return this.payload.url
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
authIconUrl (): undefined | string {
|
|
62
|
+
return this.payload.authIconUrl
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
authJob (): undefined | string {
|
|
66
|
+
return this.payload.authJob
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
class ChannelCardImpl extends validationMixin(ChannelCardMixin)<ChannelCardInterface>() { }
|
|
72
|
+
interface ChannelCardInterface extends ChannelCardImpl { }
|
|
73
|
+
|
|
74
|
+
type ChannelCardConstructor = Constructor<
|
|
75
|
+
ChannelCardInterface,
|
|
76
|
+
typeof ChannelCardImpl
|
|
77
|
+
>
|
|
78
|
+
|
|
79
|
+
export type {
|
|
80
|
+
ChannelCardConstructor,
|
|
81
|
+
ChannelCardInterface,
|
|
82
|
+
}
|
|
83
|
+
export {
|
|
84
|
+
ChannelCardImpl,
|
|
85
|
+
}
|
|
@@ -71,6 +71,9 @@ import type {
|
|
|
71
71
|
import type {
|
|
72
72
|
ChannelInterface,
|
|
73
73
|
} from './channel.js'
|
|
74
|
+
import type {
|
|
75
|
+
ChannelCardInterface,
|
|
76
|
+
} from './channel-card.js'
|
|
74
77
|
|
|
75
78
|
import { validationMixin } from '../user-mixins/validation.js'
|
|
76
79
|
import type { ContactSelfImpl } from './contact-self.js'
|
|
@@ -88,6 +91,7 @@ const ALLOW_PREVIEW_TYPES = [
|
|
|
88
91
|
PUPPET.types.Message.Video,
|
|
89
92
|
PUPPET.types.Message.Url,
|
|
90
93
|
PUPPET.types.Message.Channel,
|
|
94
|
+
PUPPET.types.Message.ChannelCard,
|
|
91
95
|
PUPPET.types.Message.Post,
|
|
92
96
|
]
|
|
93
97
|
|
|
@@ -1387,6 +1391,21 @@ class MessageMixin extends MixinBase implements SayableSayer {
|
|
|
1387
1391
|
return new this.wechaty.Channel(channelPayload)
|
|
1388
1392
|
}
|
|
1389
1393
|
|
|
1394
|
+
public async toChannelCard (): Promise<ChannelCardInterface> {
|
|
1395
|
+
log.verbose('Message', 'toChannelCard()')
|
|
1396
|
+
|
|
1397
|
+
if (!this.payload) {
|
|
1398
|
+
throw new Error('no payload')
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
if (this.type() !== PUPPET.types.Message.ChannelCard) {
|
|
1402
|
+
throw new Error('message not a ChannelCard')
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
const channelCardPayload = await this.wechaty.puppet.messageChannelCard(this.id)
|
|
1406
|
+
return new this.wechaty.ChannelCard(channelCardPayload)
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1390
1409
|
public async toCallRecord (): Promise<CallRecordInterface> {
|
|
1391
1410
|
log.verbose('Message', 'toCallRecord()')
|
|
1392
1411
|
|
package/src/user-modules/mod.ts
CHANGED
|
@@ -107,6 +107,11 @@ import {
|
|
|
107
107
|
ChannelInterface,
|
|
108
108
|
ChannelConstructor,
|
|
109
109
|
} from './channel.js'
|
|
110
|
+
import {
|
|
111
|
+
ChannelCardImpl,
|
|
112
|
+
ChannelCardInterface,
|
|
113
|
+
ChannelCardConstructor,
|
|
114
|
+
} from './channel-card.js'
|
|
110
115
|
import {
|
|
111
116
|
CallRecordImpl,
|
|
112
117
|
CallRecordInterface,
|
|
@@ -144,6 +149,7 @@ export type {
|
|
|
144
149
|
DelayInterface,
|
|
145
150
|
UrlLinkInterface,
|
|
146
151
|
ChannelInterface,
|
|
152
|
+
ChannelCardInterface,
|
|
147
153
|
CallRecordInterface,
|
|
148
154
|
ChatHistoryInterface,
|
|
149
155
|
WecomInterface,
|
|
@@ -168,6 +174,7 @@ export type {
|
|
|
168
174
|
TagGroupConstructor,
|
|
169
175
|
UrlLinkConstructor,
|
|
170
176
|
ChannelConstructor,
|
|
177
|
+
ChannelCardConstructor,
|
|
171
178
|
CallRecordConstructor,
|
|
172
179
|
ChatHistoryConstructor,
|
|
173
180
|
WecomConstructor,
|
|
@@ -194,6 +201,7 @@ export {
|
|
|
194
201
|
TagGroupImpl,
|
|
195
202
|
UrlLinkImpl,
|
|
196
203
|
ChannelImpl,
|
|
204
|
+
ChannelCardImpl,
|
|
197
205
|
CallRecordImpl,
|
|
198
206
|
ChatHistoryImpl,
|
|
199
207
|
WecomImpl,
|
|
@@ -219,7 +219,7 @@ class WechatyBase extends mixinBase implements SayableSayer {
|
|
|
219
219
|
* > Tips:
|
|
220
220
|
* This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/wechaty/wechaty/wiki/Puppet#3-puppet-compatible-table)
|
|
221
221
|
*
|
|
222
|
-
* @param {(string | Contact | FileBox | UrlLink | MiniProgram | Location | Channel)} sayable
|
|
222
|
+
* @param {(string | Contact | FileBox | UrlLink | MiniProgram | Location | Channel | ChannelCard)} sayable
|
|
223
223
|
* send text, Contact, or file to bot. </br>
|
|
224
224
|
* You can use {@link https://www.npmjs.com/package/file-box|FileBox} to send file
|
|
225
225
|
*
|