@juzi/wechaty 1.0.115 → 1.0.116
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 +3 -3
- 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/consult-card.d.ts +42 -0
- package/dist/cjs/src/user-modules/consult-card.d.ts.map +1 -0
- package/dist/cjs/src/user-modules/consult-card.js +63 -0
- package/dist/cjs/src/user-modules/consult-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 +11 -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 +11 -346
- 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 +6 -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 -0
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +24 -2
- 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 +3 -3
- 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/consult-card.d.ts +42 -0
- package/dist/esm/src/user-modules/consult-card.d.ts.map +1 -0
- package/dist/esm/src/user-modules/consult-card.js +60 -0
- package/dist/esm/src/user-modules/consult-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 +11 -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 +11 -346
- 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 +6 -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 -0
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +24 -2
- 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 +2 -2
- package/src/mods/impls.ts +3 -0
- package/src/mods/users.ts +1 -0
- package/src/package-json.ts +3 -3
- 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/consult-card.ts +94 -0
- package/src/user-modules/message.ts +18 -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
|
@@ -26,6 +26,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
26
26
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
27
27
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
28
28
|
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
29
|
+
__wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
|
|
29
30
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
30
31
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
31
32
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -46,6 +47,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
46
47
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
47
48
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
48
49
|
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
50
|
+
readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
|
|
49
51
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
50
52
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
51
53
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -97,6 +99,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
97
99
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
98
100
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
99
101
|
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
102
|
+
__wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
|
|
100
103
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
101
104
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
102
105
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -117,6 +120,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
117
120
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
118
121
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
119
122
|
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
123
|
+
readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
|
|
120
124
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
121
125
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
122
126
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -291,6 +295,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
291
295
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
292
296
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
293
297
|
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
298
|
+
__wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
|
|
294
299
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
295
300
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
296
301
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -311,6 +316,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
311
316
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
312
317
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
313
318
|
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
319
|
+
readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
|
|
314
320
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
315
321
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
316
322
|
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"}
|
|
@@ -104,6 +104,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
104
104
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
105
105
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
106
106
|
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
107
|
+
__wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
|
|
107
108
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
108
109
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
109
110
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -124,6 +125,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
124
125
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
125
126
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
126
127
|
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
128
|
+
readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
|
|
127
129
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
128
130
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
129
131
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -162,6 +164,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
162
164
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
163
165
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
164
166
|
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
167
|
+
__wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
|
|
165
168
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
166
169
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
167
170
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -182,6 +185,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
182
185
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
183
186
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
184
187
|
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
188
|
+
readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
|
|
185
189
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
186
190
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
187
191
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -231,6 +235,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
231
235
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
232
236
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
233
237
|
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
238
|
+
__wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
|
|
234
239
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
235
240
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
236
241
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -251,6 +256,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
251
256
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
252
257
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
253
258
|
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
259
|
+
readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
|
|
254
260
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
255
261
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
256
262
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -407,6 +413,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
407
413
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
408
414
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
409
415
|
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
416
|
+
__wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
|
|
410
417
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
411
418
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
412
419
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -427,6 +434,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
427
434
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
428
435
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
429
436
|
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
437
|
+
readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
|
|
430
438
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
431
439
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
432
440
|
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"}
|
|
@@ -25,6 +25,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
25
25
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
26
26
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
27
27
|
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
28
|
+
__wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | 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;
|
|
@@ -33,7 +34,16 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
33
34
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
34
35
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
35
36
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
36
|
-
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
37
|
+
readonly Image: import("../user-modules/image.js").ImageConstructor; /**
|
|
38
|
+
* Huan(202111):
|
|
39
|
+
*
|
|
40
|
+
* We should throw the Timeout error when the puppet.start() can not be finished in time.
|
|
41
|
+
* However, we need to compatible with some buggy puppet implementations which will not resolve the promise.
|
|
42
|
+
*
|
|
43
|
+
* TODO: throw the Timeout error when the puppet.start() can not be finished in time.
|
|
44
|
+
*
|
|
45
|
+
* e.g. after resolve @issue https://github.com/padlocal/wechaty-puppet-padlocal/issues/116
|
|
46
|
+
*/
|
|
37
47
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
38
48
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
39
49
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -45,6 +55,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
45
55
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
46
56
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
47
57
|
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
58
|
+
readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
|
|
48
59
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
49
60
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
50
61
|
readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
|
|
@@ -163,6 +174,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
163
174
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
164
175
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
165
176
|
__wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
|
|
177
|
+
__wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
|
|
166
178
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
167
179
|
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
168
180
|
__wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
|
|
@@ -171,7 +183,16 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
171
183
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
172
184
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
173
185
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
174
|
-
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
186
|
+
readonly Image: import("../user-modules/image.js").ImageConstructor; /**
|
|
187
|
+
* Huan(202111):
|
|
188
|
+
*
|
|
189
|
+
* We should throw the Timeout error when the puppet.start() can not be finished in time.
|
|
190
|
+
* However, we need to compatible with some buggy puppet implementations which will not resolve the promise.
|
|
191
|
+
*
|
|
192
|
+
* TODO: throw the Timeout error when the puppet.start() can not be finished in time.
|
|
193
|
+
*
|
|
194
|
+
* e.g. after resolve @issue https://github.com/padlocal/wechaty-puppet-padlocal/issues/116
|
|
195
|
+
*/
|
|
175
196
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
176
197
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
177
198
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
@@ -183,6 +204,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
183
204
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
184
205
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
185
206
|
readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
|
|
207
|
+
readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
|
|
186
208
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
187
209
|
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
188
210
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;yEA6DL;;;;;;;;;OASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAjDW,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;;;;;;;;;;;;;;;;;;;;;;;;;;yEAjGxD;;;;;;;;;OASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAumBd,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, ChannelCardConstructor, 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, ConsultCardConstructor, 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;
|
|
@@ -17,6 +17,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
17
17
|
__wechatifiedUrlLink?: UrlLinkConstructor | undefined;
|
|
18
18
|
__wechatifiedChannel?: ChannelConstructor | undefined;
|
|
19
19
|
__wechatifiedChannelCard?: ChannelCardConstructor | undefined;
|
|
20
|
+
__wechatifiedConsultCard?: ConsultCardConstructor | undefined;
|
|
20
21
|
__wechatifiedMoment?: MomentConstructor | undefined;
|
|
21
22
|
__wechatifiedCallRecord?: CallRecordConstructor | undefined;
|
|
22
23
|
__wechatifiedChatHistory?: ChatHistoryConstructor | undefined;
|
|
@@ -37,6 +38,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
37
38
|
readonly UrlLink: UrlLinkConstructor;
|
|
38
39
|
readonly Channel: ChannelConstructor;
|
|
39
40
|
readonly ChannelCard: ChannelCardConstructor;
|
|
41
|
+
readonly ConsultCard: ConsultCardConstructor;
|
|
40
42
|
readonly Moment: MomentConstructor;
|
|
41
43
|
readonly CallRecord: CallRecordConstructor;
|
|
42
44
|
readonly ChatHistory: ChatHistoryConstructor;
|
|
@@ -69,7 +71,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
69
71
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
70
72
|
}) & MixinBase;
|
|
71
73
|
declare type WechatifyUserModuleMixin = ReturnType<typeof wechatifyUserModuleMixin>;
|
|
72
|
-
declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedChannelCard' | '__wechatifiedMoment' | '__wechatifiedCallRecord' | '__wechatifiedChatHistory' | '__wechatifiedWecom';
|
|
74
|
+
declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedChannelCard' | '__wechatifiedConsultCard' | '__wechatifiedMoment' | '__wechatifiedCallRecord' | '__wechatifiedChatHistory' | '__wechatifiedWecom';
|
|
73
75
|
export type { WechatifyUserModuleMixin, ProtectedPropertyWechatifyUserModuleMixin, };
|
|
74
76
|
export { wechatifyUserModuleMixin, };
|
|
75
77
|
//# 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,EAuBL,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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAiDH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cAgDxC,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,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, ChannelCardImpl, 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, ConsultCardImpl, 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 {
|
|
@@ -23,6 +23,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
23
23
|
__wechatifiedUrlLink;
|
|
24
24
|
__wechatifiedChannel;
|
|
25
25
|
__wechatifiedChannelCard;
|
|
26
|
+
__wechatifiedConsultCard;
|
|
26
27
|
__wechatifiedMoment;
|
|
27
28
|
__wechatifiedCallRecord;
|
|
28
29
|
__wechatifiedChatHistory;
|
|
@@ -43,6 +44,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
43
44
|
get UrlLink() { return guardWechatify(this.__wechatifiedUrlLink); }
|
|
44
45
|
get Channel() { return guardWechatify(this.__wechatifiedChannel); }
|
|
45
46
|
get ChannelCard() { return guardWechatify(this.__wechatifiedChannelCard); }
|
|
47
|
+
get ConsultCard() { return guardWechatify(this.__wechatifiedConsultCard); }
|
|
46
48
|
get Moment() { return guardWechatify(this.__wechatifiedMoment); }
|
|
47
49
|
get CallRecord() { return guardWechatify(this.__wechatifiedCallRecord); }
|
|
48
50
|
get ChatHistory() { return guardWechatify(this.__wechatifiedChatHistory); }
|
|
@@ -80,6 +82,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
80
82
|
this.__wechatifiedUrlLink = wechatifyUserModule(UrlLinkImpl)(this);
|
|
81
83
|
this.__wechatifiedChannel = wechatifyUserModule(ChannelImpl)(this);
|
|
82
84
|
this.__wechatifiedChannelCard = wechatifyUserModule(ChannelCardImpl)(this);
|
|
85
|
+
this.__wechatifiedConsultCard = wechatifyUserModule(ConsultCardImpl)(this);
|
|
83
86
|
this.__wechatifiedMoment = wechatifyUserModule(MomentImpl)(this);
|
|
84
87
|
this.__wechatifiedCallRecord = wechatifyUserModule(CallRecordImpl)(this);
|
|
85
88
|
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,eAAe,EACf,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":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juzi/wechaty",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.116",
|
|
4
4
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -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.109",
|
|
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
|
@@ -52,6 +52,7 @@ export {
|
|
|
52
52
|
CallRecordImpl,
|
|
53
53
|
WecomImpl,
|
|
54
54
|
ChannelCardImpl,
|
|
55
|
+
ConsultCardImpl,
|
|
55
56
|
} from '../user-modules/mod.js'
|
|
56
57
|
|
|
57
58
|
// export {
|
|
@@ -95,6 +96,7 @@ export type {
|
|
|
95
96
|
CallRecordInterface,
|
|
96
97
|
WecomInterface,
|
|
97
98
|
ChannelCardInterface,
|
|
99
|
+
ConsultCardInterface,
|
|
98
100
|
} from '../user-modules/mod.js'
|
|
99
101
|
|
|
100
102
|
export type {
|
|
@@ -118,6 +120,7 @@ export type {
|
|
|
118
120
|
ChannelConstructor,
|
|
119
121
|
WecomConstructor,
|
|
120
122
|
ChannelCardConstructor,
|
|
123
|
+
ConsultCardConstructor,
|
|
121
124
|
} from '../user-modules/mod.js'
|
|
122
125
|
|
|
123
126
|
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 = '1cda49d5f4bef45d943a8ece64926bc9cdf47697'
|
|
8
8
|
export const packageJson: PackageJsonWechaty = {
|
|
9
9
|
"name": "@juzi/wechaty",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.116",
|
|
11
11
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
@@ -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.109",
|
|
143
143
|
"@juzi/wechaty-puppet-mock": "^1.0.1",
|
|
144
144
|
"@swc/core": "1.3.44",
|
|
145
145
|
"@swc/helpers": "^0.3.6",
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
LocationImpl,
|
|
12
12
|
ChannelImpl,
|
|
13
13
|
ChannelCardImpl,
|
|
14
|
+
ConsultCardImpl,
|
|
14
15
|
} from '../user-modules/mod.js'
|
|
15
16
|
|
|
16
17
|
import type { Sayable, SayOptionsObject } from './types.js'
|
|
@@ -111,6 +112,11 @@ const deliverSayableConversationPuppet = (puppet: PUPPET.impls.PuppetInterface)
|
|
|
111
112
|
conversationId,
|
|
112
113
|
sayable.payload,
|
|
113
114
|
)
|
|
115
|
+
} else if (ConsultCardImpl.validInstance(sayable)) {
|
|
116
|
+
msgId = await puppet.messageSendConsultCard(
|
|
117
|
+
conversationId,
|
|
118
|
+
sayable.payload,
|
|
119
|
+
)
|
|
114
120
|
} else {
|
|
115
121
|
throw new Error('unsupported arg: ' + sayable)
|
|
116
122
|
}
|
|
@@ -46,6 +46,9 @@ async function messageToSayable (
|
|
|
46
46
|
case PUPPET.types.Message.ChannelCard:
|
|
47
47
|
return message.toChannelCard()
|
|
48
48
|
|
|
49
|
+
case PUPPET.types.Message.ConsultCard:
|
|
50
|
+
return message.toConsultCard()
|
|
51
|
+
|
|
49
52
|
default:
|
|
50
53
|
log.warn('Wechaty',
|
|
51
54
|
'toSayable() can not convert not re-sayable type: %s(%s) for %s\n%s',
|
|
@@ -47,6 +47,9 @@ const payloadToSayableWechaty: (w: WechatyInterface) => (p: PUPPET.payloads.Saya
|
|
|
47
47
|
case PUPPET.types.Sayable.ChannelCard:
|
|
48
48
|
return new wechaty.ChannelCard(sayable.payload)
|
|
49
49
|
|
|
50
|
+
case PUPPET.types.Sayable.ConsultCard:
|
|
51
|
+
return new wechaty.ConsultCard(sayable.payload)
|
|
52
|
+
|
|
50
53
|
default:
|
|
51
54
|
throw new Error('payloadToSayable() not support payload: ' + JSON.stringify(sayable))
|
|
52
55
|
}
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
PostImpl,
|
|
13
13
|
ChannelImpl,
|
|
14
14
|
ChannelCardImpl,
|
|
15
|
+
ConsultCardImpl,
|
|
15
16
|
} from '../user-modules/mod.js'
|
|
16
17
|
|
|
17
18
|
import type {
|
|
@@ -49,6 +50,8 @@ async function sayableToPayload (sayable: Sayable): Promise<undefined | PUPPET.p
|
|
|
49
50
|
return PUPPET.payloads.sayable.channel(sayable.payload)
|
|
50
51
|
} else if (ChannelCardImpl.validInstance(sayable)) {
|
|
51
52
|
return PUPPET.payloads.sayable.channelCard(sayable.payload)
|
|
53
|
+
} else if (ConsultCardImpl.validInstance(sayable)) {
|
|
54
|
+
return PUPPET.payloads.sayable.consultCard(sayable.payload)
|
|
52
55
|
} else {
|
|
53
56
|
log.error('Wechaty', 'sayableToPayload() unsupported sayable: %s', sayable)
|
|
54
57
|
return undefined
|
package/src/sayable/types.ts
CHANGED
|
@@ -33,6 +33,7 @@ import {
|
|
|
33
33
|
ContactImpl,
|
|
34
34
|
MessageImpl,
|
|
35
35
|
ChannelCardInterface,
|
|
36
|
+
ConsultCardInterface,
|
|
36
37
|
} from '../user-modules/mod.js'
|
|
37
38
|
|
|
38
39
|
import type {
|
|
@@ -52,6 +53,7 @@ type Sayable =
|
|
|
52
53
|
| UrlLinkInterface
|
|
53
54
|
| ChannelInterface
|
|
54
55
|
| ChannelCardInterface
|
|
56
|
+
| ConsultCardInterface
|
|
55
57
|
|
|
56
58
|
interface SayableSayer {
|
|
57
59
|
id : string,
|
|
@@ -0,0 +1,94 @@
|
|
|
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 ConsultCardMixin extends wechatifyMixinBase() {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* Create
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
static async create (msgType: number, componentType: number, componentId: number): Promise<ConsultCardInterface> {
|
|
20
|
+
log.verbose('ConsultCard', 'create()')
|
|
21
|
+
|
|
22
|
+
const payload: PUPPET.payloads.ConsultCard = {
|
|
23
|
+
msgType,
|
|
24
|
+
componentType,
|
|
25
|
+
componentId,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return new this(payload)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* @hideconstructor
|
|
33
|
+
*/
|
|
34
|
+
constructor (
|
|
35
|
+
public readonly payload: PUPPET.payloads.ConsultCard,
|
|
36
|
+
) {
|
|
37
|
+
super()
|
|
38
|
+
log.verbose('ConsultCard', 'constructor()')
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
msgType (): number {
|
|
42
|
+
return this.payload.msgType
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
componentType (): number {
|
|
46
|
+
return this.payload.componentType
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
componentId (): number {
|
|
50
|
+
return this.payload.componentId
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// 接收/查询时的详细字段
|
|
54
|
+
id (): number | undefined {
|
|
55
|
+
return this.payload.id
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
cardType (): number | undefined {
|
|
59
|
+
return this.payload.cardType
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
name (): string | undefined {
|
|
63
|
+
return this.payload.name
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
content (): string | undefined {
|
|
67
|
+
return this.payload.content
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
status (): number | undefined {
|
|
71
|
+
return this.payload.status
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
statusMsg (): number | undefined {
|
|
75
|
+
return this.payload.statusMsg
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
class ConsultCardImpl extends validationMixin(ConsultCardMixin)<ConsultCardInterface>() { }
|
|
81
|
+
interface ConsultCardInterface extends ConsultCardImpl { }
|
|
82
|
+
|
|
83
|
+
type ConsultCardConstructor = Constructor<
|
|
84
|
+
ConsultCardInterface,
|
|
85
|
+
typeof ConsultCardImpl
|
|
86
|
+
>
|
|
87
|
+
|
|
88
|
+
export type {
|
|
89
|
+
ConsultCardConstructor,
|
|
90
|
+
ConsultCardInterface,
|
|
91
|
+
}
|
|
92
|
+
export {
|
|
93
|
+
ConsultCardImpl,
|
|
94
|
+
}
|
|
@@ -74,6 +74,9 @@ import type {
|
|
|
74
74
|
import type {
|
|
75
75
|
ChannelCardInterface,
|
|
76
76
|
} from './channel-card.js'
|
|
77
|
+
import type {
|
|
78
|
+
ConsultCardInterface,
|
|
79
|
+
} from './consult-card.js'
|
|
77
80
|
|
|
78
81
|
import { validationMixin } from '../user-mixins/validation.js'
|
|
79
82
|
import type { ContactSelfImpl } from './contact-self.js'
|
|
@@ -1406,6 +1409,21 @@ class MessageMixin extends MixinBase implements SayableSayer {
|
|
|
1406
1409
|
return new this.wechaty.ChannelCard(channelCardPayload)
|
|
1407
1410
|
}
|
|
1408
1411
|
|
|
1412
|
+
public async toConsultCard (): Promise<ConsultCardInterface> {
|
|
1413
|
+
log.verbose('Message', 'toConsultCard()')
|
|
1414
|
+
|
|
1415
|
+
if (!this.payload) {
|
|
1416
|
+
throw new Error('no payload')
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
if (this.type() !== PUPPET.types.Message.ConsultCard) {
|
|
1420
|
+
throw new Error('message not a ConsultCard')
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
const consultCardPayload = await this.wechaty.puppet.messageConsultCard(this.id)
|
|
1424
|
+
return new this.wechaty.ConsultCard(consultCardPayload)
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1409
1427
|
public async toCallRecord (): Promise<CallRecordInterface> {
|
|
1410
1428
|
log.verbose('Message', 'toCallRecord()')
|
|
1411
1429
|
|
package/src/user-modules/mod.ts
CHANGED
|
@@ -112,6 +112,11 @@ import {
|
|
|
112
112
|
ChannelCardInterface,
|
|
113
113
|
ChannelCardConstructor,
|
|
114
114
|
} from './channel-card.js'
|
|
115
|
+
import {
|
|
116
|
+
ConsultCardImpl,
|
|
117
|
+
ConsultCardInterface,
|
|
118
|
+
ConsultCardConstructor,
|
|
119
|
+
} from './consult-card.js'
|
|
115
120
|
import {
|
|
116
121
|
CallRecordImpl,
|
|
117
122
|
CallRecordInterface,
|
|
@@ -150,6 +155,7 @@ export type {
|
|
|
150
155
|
UrlLinkInterface,
|
|
151
156
|
ChannelInterface,
|
|
152
157
|
ChannelCardInterface,
|
|
158
|
+
ConsultCardInterface,
|
|
153
159
|
CallRecordInterface,
|
|
154
160
|
ChatHistoryInterface,
|
|
155
161
|
WecomInterface,
|
|
@@ -175,6 +181,7 @@ export type {
|
|
|
175
181
|
UrlLinkConstructor,
|
|
176
182
|
ChannelConstructor,
|
|
177
183
|
ChannelCardConstructor,
|
|
184
|
+
ConsultCardConstructor,
|
|
178
185
|
CallRecordConstructor,
|
|
179
186
|
ChatHistoryConstructor,
|
|
180
187
|
WecomConstructor,
|
|
@@ -202,6 +209,7 @@ export {
|
|
|
202
209
|
UrlLinkImpl,
|
|
203
210
|
ChannelImpl,
|
|
204
211
|
ChannelCardImpl,
|
|
212
|
+
ConsultCardImpl,
|
|
205
213
|
CallRecordImpl,
|
|
206
214
|
ChatHistoryImpl,
|
|
207
215
|
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 | ChannelCard)} sayable
|
|
222
|
+
* @param {(string | Contact | FileBox | UrlLink | MiniProgram | Location | Channel | ChannelCard | ConsultCard)} 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
|
*
|