@juzi/wechaty 1.0.114 → 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.
Files changed (135) hide show
  1. package/dist/cjs/src/mods/impls.d.ts +3 -3
  2. package/dist/cjs/src/mods/impls.d.ts.map +1 -1
  3. package/dist/cjs/src/mods/impls.js +3 -1
  4. package/dist/cjs/src/mods/impls.js.map +1 -1
  5. package/dist/cjs/src/mods/users.d.ts +1 -1
  6. package/dist/cjs/src/mods/users.d.ts.map +1 -1
  7. package/dist/cjs/src/package-json.js +4 -4
  8. package/dist/cjs/src/sayable/deliver-sayable.d.ts.map +1 -1
  9. package/dist/cjs/src/sayable/deliver-sayable.js +6 -0
  10. package/dist/cjs/src/sayable/deliver-sayable.js.map +1 -1
  11. package/dist/cjs/src/sayable/message-to-sayable.d.ts.map +1 -1
  12. package/dist/cjs/src/sayable/message-to-sayable.js +4 -0
  13. package/dist/cjs/src/sayable/message-to-sayable.js.map +1 -1
  14. package/dist/cjs/src/sayable/payload-to-sayable.d.ts.map +1 -1
  15. package/dist/cjs/src/sayable/payload-to-sayable.js +4 -0
  16. package/dist/cjs/src/sayable/payload-to-sayable.js.map +1 -1
  17. package/dist/cjs/src/sayable/sayable-to-payload.d.ts.map +1 -1
  18. package/dist/cjs/src/sayable/sayable-to-payload.js +6 -0
  19. package/dist/cjs/src/sayable/sayable-to-payload.js.map +1 -1
  20. package/dist/cjs/src/sayable/types.d.ts +2 -2
  21. package/dist/cjs/src/sayable/types.d.ts.map +1 -1
  22. package/dist/cjs/src/sayable/types.js.map +1 -1
  23. package/dist/cjs/src/user-modules/channel-card.d.ts +39 -0
  24. package/dist/cjs/src/user-modules/channel-card.d.ts.map +1 -0
  25. package/dist/cjs/src/user-modules/channel-card.js +57 -0
  26. package/dist/cjs/src/user-modules/channel-card.js.map +1 -0
  27. package/dist/cjs/src/user-modules/channel.d.ts +0 -2
  28. package/dist/cjs/src/user-modules/channel.d.ts.map +1 -1
  29. package/dist/cjs/src/user-modules/channel.js +0 -6
  30. package/dist/cjs/src/user-modules/channel.js.map +1 -1
  31. package/dist/cjs/src/user-modules/consult-card.d.ts +42 -0
  32. package/dist/cjs/src/user-modules/consult-card.d.ts.map +1 -0
  33. package/dist/cjs/src/user-modules/consult-card.js +63 -0
  34. package/dist/cjs/src/user-modules/consult-card.js.map +1 -0
  35. package/dist/cjs/src/user-modules/message.d.ts +4 -0
  36. package/dist/cjs/src/user-modules/message.d.ts.map +1 -1
  37. package/dist/cjs/src/user-modules/message.js +23 -0
  38. package/dist/cjs/src/user-modules/message.js.map +1 -1
  39. package/dist/cjs/src/user-modules/mod.d.ts +5 -3
  40. package/dist/cjs/src/user-modules/mod.d.ts.map +1 -1
  41. package/dist/cjs/src/user-modules/mod.js +5 -1
  42. package/dist/cjs/src/user-modules/mod.js.map +1 -1
  43. package/dist/cjs/src/wechaty/wechaty-base.d.ts +21 -116
  44. package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
  45. package/dist/cjs/src/wechaty/wechaty-base.js +1 -1
  46. package/dist/cjs/src/wechaty/wechaty-impl.spec.js +9 -5
  47. package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
  48. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +18 -30
  49. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  50. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +12 -0
  51. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  52. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +16 -12
  53. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  54. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +28 -2
  55. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  56. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +6 -2
  57. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  58. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +6 -0
  59. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  60. package/dist/esm/src/mods/impls.d.ts +3 -3
  61. package/dist/esm/src/mods/impls.d.ts.map +1 -1
  62. package/dist/esm/src/mods/impls.js +1 -1
  63. package/dist/esm/src/mods/impls.js.map +1 -1
  64. package/dist/esm/src/mods/users.d.ts +1 -1
  65. package/dist/esm/src/mods/users.d.ts.map +1 -1
  66. package/dist/esm/src/package-json.js +4 -4
  67. package/dist/esm/src/sayable/deliver-sayable.d.ts.map +1 -1
  68. package/dist/esm/src/sayable/deliver-sayable.js +7 -1
  69. package/dist/esm/src/sayable/deliver-sayable.js.map +1 -1
  70. package/dist/esm/src/sayable/message-to-sayable.d.ts.map +1 -1
  71. package/dist/esm/src/sayable/message-to-sayable.js +4 -0
  72. package/dist/esm/src/sayable/message-to-sayable.js.map +1 -1
  73. package/dist/esm/src/sayable/payload-to-sayable.d.ts.map +1 -1
  74. package/dist/esm/src/sayable/payload-to-sayable.js +4 -0
  75. package/dist/esm/src/sayable/payload-to-sayable.js.map +1 -1
  76. package/dist/esm/src/sayable/sayable-to-payload.d.ts.map +1 -1
  77. package/dist/esm/src/sayable/sayable-to-payload.js +7 -1
  78. package/dist/esm/src/sayable/sayable-to-payload.js.map +1 -1
  79. package/dist/esm/src/sayable/types.d.ts +2 -2
  80. package/dist/esm/src/sayable/types.d.ts.map +1 -1
  81. package/dist/esm/src/sayable/types.js.map +1 -1
  82. package/dist/esm/src/user-modules/channel-card.d.ts +39 -0
  83. package/dist/esm/src/user-modules/channel-card.d.ts.map +1 -0
  84. package/dist/esm/src/user-modules/channel-card.js +54 -0
  85. package/dist/esm/src/user-modules/channel-card.js.map +1 -0
  86. package/dist/esm/src/user-modules/channel.d.ts +0 -2
  87. package/dist/esm/src/user-modules/channel.d.ts.map +1 -1
  88. package/dist/esm/src/user-modules/channel.js +0 -6
  89. package/dist/esm/src/user-modules/channel.js.map +1 -1
  90. package/dist/esm/src/user-modules/consult-card.d.ts +42 -0
  91. package/dist/esm/src/user-modules/consult-card.d.ts.map +1 -0
  92. package/dist/esm/src/user-modules/consult-card.js +60 -0
  93. package/dist/esm/src/user-modules/consult-card.js.map +1 -0
  94. package/dist/esm/src/user-modules/message.d.ts +4 -0
  95. package/dist/esm/src/user-modules/message.d.ts.map +1 -1
  96. package/dist/esm/src/user-modules/message.js +23 -0
  97. package/dist/esm/src/user-modules/message.js.map +1 -1
  98. package/dist/esm/src/user-modules/mod.d.ts +5 -3
  99. package/dist/esm/src/user-modules/mod.d.ts.map +1 -1
  100. package/dist/esm/src/user-modules/mod.js +3 -1
  101. package/dist/esm/src/user-modules/mod.js.map +1 -1
  102. package/dist/esm/src/wechaty/wechaty-base.d.ts +21 -116
  103. package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
  104. package/dist/esm/src/wechaty/wechaty-base.js +1 -1
  105. package/dist/esm/src/wechaty/wechaty-impl.spec.js +9 -5
  106. package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
  107. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +18 -30
  108. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  109. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +12 -0
  110. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  111. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +16 -12
  112. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  113. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +28 -2
  114. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  115. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +6 -2
  116. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  117. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +7 -1
  118. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  119. package/package.json +3 -3
  120. package/src/mods/impls.ts +6 -0
  121. package/src/mods/users.ts +2 -0
  122. package/src/package-json.ts +4 -4
  123. package/src/sayable/deliver-sayable.ts +12 -0
  124. package/src/sayable/message-to-sayable.ts +6 -0
  125. package/src/sayable/payload-to-sayable.ts +6 -0
  126. package/src/sayable/sayable-to-payload.ts +6 -0
  127. package/src/sayable/types.ts +4 -0
  128. package/src/user-modules/channel-card.ts +85 -0
  129. package/src/user-modules/channel.ts +0 -8
  130. package/src/user-modules/consult-card.ts +94 -0
  131. package/src/user-modules/message.ts +37 -0
  132. package/src/user-modules/mod.ts +16 -0
  133. package/src/wechaty/wechaty-base.ts +1 -1
  134. package/src/wechaty/wechaty-impl.spec.ts +6 -0
  135. package/src/wechaty-mixins/wechatify-user-module-mixin.ts +12 -0
@@ -103,13 +103,12 @@ 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;
107
+ __wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
106
108
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
107
109
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
108
110
  __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
109
111
  __wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
110
- /**
111
- * Return the function to uninstall all plugins
112
- */
113
112
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
114
113
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
115
114
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -125,6 +124,8 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
125
124
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
126
125
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
127
126
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
127
+ readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
128
+ readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
128
129
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
129
130
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
130
131
  readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
@@ -162,13 +163,12 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
162
163
  __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
163
164
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
164
165
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
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;
168
171
  __wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
169
- /**
170
- * Return the function to uninstall all plugins
171
- */
172
172
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
173
173
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
174
174
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -184,6 +184,8 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
184
184
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
185
185
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
186
186
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
187
+ readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
188
+ readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
187
189
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
188
190
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
189
191
  readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
@@ -232,13 +234,12 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
232
234
  __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
233
235
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
234
236
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
237
+ __wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
238
+ __wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
235
239
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
236
240
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
237
241
  __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
238
242
  __wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
239
- /**
240
- * Return the function to uninstall all plugins
241
- */
242
243
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
243
244
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
244
245
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -254,6 +255,8 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
254
255
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
255
256
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
256
257
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
258
+ readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
259
+ readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
257
260
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
258
261
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
259
262
  readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
@@ -409,13 +412,12 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
409
412
  __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
410
413
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
411
414
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
415
+ __wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
416
+ __wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
412
417
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
413
418
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
414
419
  __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
415
420
  __wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
416
- /**
417
- * Return the function to uninstall all plugins
418
- */
419
421
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
420
422
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
421
423
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
@@ -431,6 +433,8 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
431
433
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
432
434
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
433
435
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
436
+ readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
437
+ readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
434
438
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
435
439
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
436
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqBD;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDA7CiB,GAAG,EAAE;IAI3B;;;;;;;;;;;;;;;;;;OAkBG;oBAEW,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a,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,8 @@ 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;
28
+ __wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
27
29
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
28
30
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
29
31
  __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
@@ -32,7 +34,16 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
32
34
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
33
35
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
34
36
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
35
- 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
+ */
36
47
  readonly Location: import("../user-modules/location.js").LocationConstructor;
37
48
  readonly Message: import("../user-modules/message.js").MessageConstructor;
38
49
  readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
@@ -43,6 +54,8 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
43
54
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
44
55
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
45
56
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
57
+ readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
58
+ readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
46
59
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
47
60
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
48
61
  readonly ChatHistory: import("../user-modules/chat-history.js").ChatHistoryConstructor;
@@ -160,6 +173,8 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
160
173
  __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
161
174
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
162
175
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
176
+ __wechatifiedChannelCard?: import("../user-modules/channel-card.js").ChannelCardConstructor | undefined;
177
+ __wechatifiedConsultCard?: import("../user-modules/consult-card.js").ConsultCardConstructor | undefined;
163
178
  __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
164
179
  __wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
165
180
  __wechatifiedChatHistory?: import("../user-modules/chat-history.js").ChatHistoryConstructor | undefined;
@@ -168,7 +183,16 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
168
183
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
169
184
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
170
185
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
171
- 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
+ */
172
196
  readonly Location: import("../user-modules/location.js").LocationConstructor;
173
197
  readonly Message: import("../user-modules/message.js").MessageConstructor;
174
198
  readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
@@ -179,6 +203,8 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
179
203
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
180
204
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
181
205
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
206
+ readonly ChannelCard: import("../user-modules/channel-card.js").ChannelCardConstructor;
207
+ readonly ConsultCard: import("../user-modules/consult-card.js").ConsultCardConstructor;
182
208
  readonly Moment: import("../user-modules/moment.js").MomentConstructor;
183
209
  readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
184
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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E;;;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, 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;
@@ -16,6 +16,8 @@ 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;
20
+ __wechatifiedConsultCard?: ConsultCardConstructor | undefined;
19
21
  __wechatifiedMoment?: MomentConstructor | undefined;
20
22
  __wechatifiedCallRecord?: CallRecordConstructor | undefined;
21
23
  __wechatifiedChatHistory?: ChatHistoryConstructor | undefined;
@@ -35,6 +37,8 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
35
37
  readonly TagGroup: TagGroupConstructor;
36
38
  readonly UrlLink: UrlLinkConstructor;
37
39
  readonly Channel: ChannelConstructor;
40
+ readonly ChannelCard: ChannelCardConstructor;
41
+ readonly ConsultCard: ConsultCardConstructor;
38
42
  readonly Moment: MomentConstructor;
39
43
  readonly CallRecord: CallRecordConstructor;
40
44
  readonly ChatHistory: ChatHistoryConstructor;
@@ -67,7 +71,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
67
71
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
68
72
  }) & MixinBase;
69
73
  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';
74
+ declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedChannelCard' | '__wechatifiedConsultCard' | '__wechatifiedMoment' | '__wechatifiedCallRecord' | '__wechatifiedChatHistory' | '__wechatifiedWecom';
71
75
  export type { WechatifyUserModuleMixin, ProtectedPropertyWechatifyUserModuleMixin, };
72
76
  export { wechatifyUserModuleMixin, };
73
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,EAqBL,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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA6CH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cA8CxC,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,qBAAqB,GACrB,yBAAyB,GACzB,0BAA0B,GAC1B,oBAAoB,CAAA;AAExB,YAAY,EACV,wBAAwB,EACxB,yCAAyC,GAC1C,CAAA;AACD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
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, 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 {
@@ -22,6 +22,8 @@ const wechatifyUserModuleMixin = (mixinBase) => {
22
22
  __wechatifiedTagGroup;
23
23
  __wechatifiedUrlLink;
24
24
  __wechatifiedChannel;
25
+ __wechatifiedChannelCard;
26
+ __wechatifiedConsultCard;
25
27
  __wechatifiedMoment;
26
28
  __wechatifiedCallRecord;
27
29
  __wechatifiedChatHistory;
@@ -41,6 +43,8 @@ const wechatifyUserModuleMixin = (mixinBase) => {
41
43
  get TagGroup() { return guardWechatify(this.__wechatifiedTagGroup); }
42
44
  get UrlLink() { return guardWechatify(this.__wechatifiedUrlLink); }
43
45
  get Channel() { return guardWechatify(this.__wechatifiedChannel); }
46
+ get ChannelCard() { return guardWechatify(this.__wechatifiedChannelCard); }
47
+ get ConsultCard() { return guardWechatify(this.__wechatifiedConsultCard); }
44
48
  get Moment() { return guardWechatify(this.__wechatifiedMoment); }
45
49
  get CallRecord() { return guardWechatify(this.__wechatifiedCallRecord); }
46
50
  get ChatHistory() { return guardWechatify(this.__wechatifiedChatHistory); }
@@ -77,6 +81,8 @@ const wechatifyUserModuleMixin = (mixinBase) => {
77
81
  this.__wechatifiedTagGroup = wechatifyUserModule(TagGroupImpl)(this);
78
82
  this.__wechatifiedUrlLink = wechatifyUserModule(UrlLinkImpl)(this);
79
83
  this.__wechatifiedChannel = wechatifyUserModule(ChannelImpl)(this);
84
+ this.__wechatifiedChannelCard = wechatifyUserModule(ChannelCardImpl)(this);
85
+ this.__wechatifiedConsultCard = wechatifyUserModule(ConsultCardImpl)(this);
80
86
  this.__wechatifiedMoment = wechatifyUserModule(MomentImpl)(this);
81
87
  this.__wechatifiedCallRecord = wechatifyUserModule(CallRecordImpl)(this);
82
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,UAAU,EACV,cAAc,EACd,eAAe,EACf,SAAS,EAsBT,mBAAmB,GACpB,MAA4B,wBAAwB,CAAA;AAMrD,MAAM,wBAAwB,GAAG,CAA4C,SAAoB,EAAE,EAAE;IACn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OAAO,CAAC,CAAC,IAAW,CAAC,CAAA;YAC5E,IAAI,CAAC,qBAAqB,GAAS,mBAAmB,CAAC,YAAY,CAAC,CAAC,IAAW,CAAC,CAAA;YACjF,IAAI,CAAC,oBAAoB,GAAU,mBAAmB,CAAC,WAAW,CAAC,CAAC,IAAW,CAAC,CAAA;YAChF,IAAI,CAAC,oBAAoB,GAAU,mBAAmB,CAAC,WAAW,CAAC,CAAC,IAAW,CAAC,CAAA;YAChF,IAAI,CAAC,mBAAmB,GAAW,mBAAmB,CAAC,UAAU,CAAC,CAAC,IAAW,CAAC,CAAA;YAC/E,IAAI,CAAC,uBAAuB,GAAO,mBAAmB,CAAC,cAAc,CAAC,CAAC,IAAW,CAAC,CAAA;YACnF,IAAI,CAAC,wBAAwB,GAAM,mBAAmB,CAAC,eAAe,CAAC,CAAC,IAAW,CAAC,CAAA;YACpF,IAAI,CAAC,kBAAkB,GAAY,mBAAmB,CAAC,SAAS,CAAC,CAAC,IAAW,CAAC,CAAA;YAE9E,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,wDAAwD,CAAC,CAAA;QACnG,CAAC;KAEF;IAED,OAAO,wBAAwB,CAAA;AACjC,CAAC,CAAA;AAED;;GAEG;AACH,SAAS,cAAc,CAAsB,UAAc;IACzD,IAAI,UAAU,EAAE;QACd,OAAO,UAAU,CAAA;KAClB;IACD,MAAM,IAAI,KAAK,CAAC,8FAA8F,CAAC,CAAA;AACjH,CAAC;AA4BD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
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,kBAA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AG,CAAC,OAAO,CAAC,0BAA0B,EAAE,wDAAwD,CAAC,CAAA;QACnG,CAAC;KAEF;IAED,OAAO,wBAAwB,CAAA;AACjC,CAAC,CAAA;AAED;;GAEG;AACH,SAAS,cAAc,CAAsB,UAAc;IACzD,IAAI,UAAU,EAAE;QACd,OAAO,UAAU,CAAA;KAClB;IACD,MAAM,IAAI,KAAK,CAAC,8FAA8F,CAAC,CAAA;AACjH,CAAC;AA8BD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty",
3
- "version": "1.0.114",
3
+ "version": "1.0.116",
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.108",
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.106",
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
@@ -51,6 +51,8 @@ export {
51
51
  ChannelImpl,
52
52
  CallRecordImpl,
53
53
  WecomImpl,
54
+ ChannelCardImpl,
55
+ ConsultCardImpl,
54
56
  } from '../user-modules/mod.js'
55
57
 
56
58
  // export {
@@ -93,6 +95,8 @@ export type {
93
95
  ChannelInterface,
94
96
  CallRecordInterface,
95
97
  WecomInterface,
98
+ ChannelCardInterface,
99
+ ConsultCardInterface,
96
100
  } from '../user-modules/mod.js'
97
101
 
98
102
  export type {
@@ -115,6 +119,8 @@ export type {
115
119
  UrlLinkConstructor,
116
120
  ChannelConstructor,
117
121
  WecomConstructor,
122
+ ChannelCardConstructor,
123
+ ConsultCardConstructor,
118
124
  } from '../user-modules/mod.js'
119
125
 
120
126
  export {
package/src/mods/users.ts CHANGED
@@ -45,4 +45,6 @@ export type {
45
45
  ChannelInterface as Channel,
46
46
  CallRecordInterface as CallRecord,
47
47
  WecomInterface as Wecom,
48
+ ChannelCardInterface as ChannelCard,
49
+ ConsultCardInterface as ConsultCard,
48
50
  } from '../user-modules/mod.js'
@@ -4,10 +4,10 @@
4
4
  */
5
5
  import type { PackageJsonWechaty } from './config'
6
6
 
7
- export const GIT_COMMIT_HASH: string = '20acf2f69d1a4f2a16e6b8530b236cbbafcf6d1c'
7
+ export const GIT_COMMIT_HASH: string = '1cda49d5f4bef45d943a8ece64926bc9cdf47697'
8
8
  export const packageJson: PackageJsonWechaty = {
9
9
  "name": "@juzi/wechaty",
10
- "version": "1.0.114",
10
+ "version": "1.0.116",
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.108",
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.106",
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",
@@ -10,6 +10,8 @@ import {
10
10
  PostImpl,
11
11
  LocationImpl,
12
12
  ChannelImpl,
13
+ ChannelCardImpl,
14
+ ConsultCardImpl,
13
15
  } from '../user-modules/mod.js'
14
16
 
15
17
  import type { Sayable, SayOptionsObject } from './types.js'
@@ -105,6 +107,16 @@ const deliverSayableConversationPuppet = (puppet: PUPPET.impls.PuppetInterface)
105
107
  conversationId,
106
108
  sayable.payload,
107
109
  )
110
+ } else if (ChannelCardImpl.validInstance(sayable)) {
111
+ msgId = await puppet.messageSendChannelCard(
112
+ conversationId,
113
+ sayable.payload,
114
+ )
115
+ } else if (ConsultCardImpl.validInstance(sayable)) {
116
+ msgId = await puppet.messageSendConsultCard(
117
+ conversationId,
118
+ sayable.payload,
119
+ )
108
120
  } else {
109
121
  throw new Error('unsupported arg: ' + sayable)
110
122
  }
@@ -43,6 +43,12 @@ 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
+
49
+ case PUPPET.types.Message.ConsultCard:
50
+ return message.toConsultCard()
51
+
46
52
  default:
47
53
  log.warn('Wechaty',
48
54
  'toSayable() can not convert not re-sayable type: %s(%s) for %s\n%s',
@@ -44,6 +44,12 @@ 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
+
50
+ case PUPPET.types.Sayable.ConsultCard:
51
+ return new wechaty.ConsultCard(sayable.payload)
52
+
47
53
  default:
48
54
  throw new Error('payloadToSayable() not support payload: ' + JSON.stringify(sayable))
49
55
  }
@@ -11,6 +11,8 @@ import {
11
11
  ContactImpl,
12
12
  PostImpl,
13
13
  ChannelImpl,
14
+ ChannelCardImpl,
15
+ ConsultCardImpl,
14
16
  } from '../user-modules/mod.js'
15
17
 
16
18
  import type {
@@ -46,6 +48,10 @@ async function sayableToPayload (sayable: Sayable): Promise<undefined | PUPPET.p
46
48
  return PUPPET.payloads.sayable.url(sayable.payload)
47
49
  } else if (ChannelImpl.validInstance(sayable)) {
48
50
  return PUPPET.payloads.sayable.channel(sayable.payload)
51
+ } else if (ChannelCardImpl.validInstance(sayable)) {
52
+ return PUPPET.payloads.sayable.channelCard(sayable.payload)
53
+ } else if (ConsultCardImpl.validInstance(sayable)) {
54
+ return PUPPET.payloads.sayable.consultCard(sayable.payload)
49
55
  } else {
50
56
  log.error('Wechaty', 'sayableToPayload() unsupported sayable: %s', sayable)
51
57
  return undefined
@@ -32,6 +32,8 @@ import {
32
32
  ChannelInterface,
33
33
  ContactImpl,
34
34
  MessageImpl,
35
+ ChannelCardInterface,
36
+ ConsultCardInterface,
35
37
  } from '../user-modules/mod.js'
36
38
 
37
39
  import type {
@@ -50,6 +52,8 @@ type Sayable =
50
52
  | string
51
53
  | UrlLinkInterface
52
54
  | ChannelInterface
55
+ | ChannelCardInterface
56
+ | ConsultCardInterface
53
57
 
54
58
  interface SayableSayer {
55
59
  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
+ }
@@ -84,14 +84,6 @@ class ChannelMixin extends wechatifyMixinBase() {
84
84
  return this.payload.objectNonceId
85
85
  }
86
86
 
87
- authIconUrl (): undefined | string {
88
- return this.payload.authIconUrl
89
- }
90
-
91
- authJob (): undefined | string {
92
- return this.payload.authJob
93
- }
94
-
95
87
  }
96
88
 
97
89
  class ChannelImpl extends validationMixin(ChannelMixin)<ChannelInterface>() { }