@juzi/wechaty 1.0.158 → 1.0.160
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/io.js +40 -40
- package/dist/cjs/src/io.js.map +1 -1
- package/dist/cjs/src/package-json.js +4 -4
- package/dist/cjs/src/schemas/logger.d.ts +2 -0
- package/dist/cjs/src/schemas/logger.d.ts.map +1 -0
- package/dist/cjs/src/schemas/logger.js +3 -0
- package/dist/cjs/src/schemas/logger.js.map +1 -0
- package/dist/cjs/src/schemas/mod.d.ts +2 -1
- package/dist/cjs/src/schemas/mod.d.ts.map +1 -1
- package/dist/cjs/src/schemas/mod.js.map +1 -1
- package/dist/cjs/src/schemas/wechaty-options.d.ts +19 -0
- package/dist/cjs/src/schemas/wechaty-options.d.ts.map +1 -1
- package/dist/cjs/src/user-mixins/wechatify.d.ts +23 -0
- package/dist/cjs/src/user-mixins/wechatify.d.ts.map +1 -1
- package/dist/cjs/src/user-mixins/wechatify.js +25 -0
- package/dist/cjs/src/user-mixins/wechatify.js.map +1 -1
- package/dist/cjs/src/user-modules/call.d.ts +4 -0
- package/dist/cjs/src/user-modules/call.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/call.js +6 -7
- package/dist/cjs/src/user-modules/call.js.map +1 -1
- package/dist/cjs/src/user-modules/channel-card.d.ts +2 -0
- package/dist/cjs/src/user-modules/channel-card.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/channel-card.js +2 -3
- package/dist/cjs/src/user-modules/channel-card.js.map +1 -1
- package/dist/cjs/src/user-modules/channel.d.ts +2 -0
- package/dist/cjs/src/user-modules/channel.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/channel.js +2 -3
- package/dist/cjs/src/user-modules/channel.js.map +1 -1
- package/dist/cjs/src/user-modules/chat-history.d.ts +2 -0
- package/dist/cjs/src/user-modules/chat-history.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/chat-history.js +2 -3
- package/dist/cjs/src/user-modules/chat-history.js.map +1 -1
- package/dist/cjs/src/user-modules/consult-card.d.ts +2 -0
- package/dist/cjs/src/user-modules/consult-card.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/consult-card.js +3 -4
- package/dist/cjs/src/user-modules/consult-card.js.map +1 -1
- package/dist/cjs/src/user-modules/contact-self.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/contact-self.js +8 -9
- package/dist/cjs/src/user-modules/contact-self.js.map +1 -1
- package/dist/cjs/src/user-modules/contact.d.ts +2 -0
- package/dist/cjs/src/user-modules/contact.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/contact.js +36 -37
- package/dist/cjs/src/user-modules/contact.js.map +1 -1
- package/dist/cjs/src/user-modules/delay.d.ts +2 -0
- package/dist/cjs/src/user-modules/delay.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/douyin-one-click-phone-collection.d.ts +2 -0
- package/dist/cjs/src/user-modules/douyin-one-click-phone-collection.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/douyin-one-click-phone-collection.js +2 -3
- package/dist/cjs/src/user-modules/douyin-one-click-phone-collection.js.map +1 -1
- package/dist/cjs/src/user-modules/favorite.d.ts +21 -0
- package/dist/cjs/src/user-modules/favorite.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/favorite.js +1 -21
- package/dist/cjs/src/user-modules/favorite.js.map +1 -1
- package/dist/cjs/src/user-modules/friendship.d.ts +2 -0
- package/dist/cjs/src/user-modules/friendship.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/friendship.js +11 -12
- package/dist/cjs/src/user-modules/friendship.js.map +1 -1
- package/dist/cjs/src/user-modules/im-specific.d.ts +2 -0
- package/dist/cjs/src/user-modules/im-specific.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/im-specific.js +1 -2
- package/dist/cjs/src/user-modules/im-specific.js.map +1 -1
- package/dist/cjs/src/user-modules/image.d.ts +22 -0
- package/dist/cjs/src/user-modules/image.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/image.js +5 -6
- package/dist/cjs/src/user-modules/image.js.map +1 -1
- package/dist/cjs/src/user-modules/location.d.ts +2 -0
- package/dist/cjs/src/user-modules/location.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/location.js +2 -3
- package/dist/cjs/src/user-modules/location.js.map +1 -1
- 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 +55 -55
- package/dist/cjs/src/user-modules/message.js.map +1 -1
- package/dist/cjs/src/user-modules/mini-program.d.ts +2 -0
- package/dist/cjs/src/user-modules/mini-program.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/mini-program.js +2 -3
- package/dist/cjs/src/user-modules/mini-program.js.map +1 -1
- package/dist/cjs/src/user-modules/moment.d.ts +21 -0
- package/dist/cjs/src/user-modules/moment.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/moment.js +5 -25
- package/dist/cjs/src/user-modules/moment.js.map +1 -1
- package/dist/cjs/src/user-modules/money.d.ts +2 -0
- package/dist/cjs/src/user-modules/money.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/post.d.ts +2 -0
- package/dist/cjs/src/user-modules/post.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/post.js +25 -25
- package/dist/cjs/src/user-modules/post.js.map +1 -1
- package/dist/cjs/src/user-modules/premium-online-appointment-card.d.ts +2 -0
- package/dist/cjs/src/user-modules/premium-online-appointment-card.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/premium-online-appointment-card.js +2 -3
- package/dist/cjs/src/user-modules/premium-online-appointment-card.js.map +1 -1
- package/dist/cjs/src/user-modules/room-invitation.d.ts +2 -0
- package/dist/cjs/src/user-modules/room-invitation.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/room-invitation.js +10 -11
- package/dist/cjs/src/user-modules/room-invitation.js.map +1 -1
- package/dist/cjs/src/user-modules/room.d.ts +2 -0
- package/dist/cjs/src/user-modules/room.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/room.js +43 -43
- package/dist/cjs/src/user-modules/room.js.map +1 -1
- package/dist/cjs/src/user-modules/tag-group.d.ts +2 -0
- package/dist/cjs/src/user-modules/tag-group.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/tag-group.js +13 -14
- package/dist/cjs/src/user-modules/tag-group.js.map +1 -1
- package/dist/cjs/src/user-modules/tag.d.ts +2 -0
- package/dist/cjs/src/user-modules/tag.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/tag.js +21 -22
- package/dist/cjs/src/user-modules/tag.js.map +1 -1
- package/dist/cjs/src/user-modules/url-link.d.ts +2 -0
- package/dist/cjs/src/user-modules/url-link.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/url-link.js +2 -3
- package/dist/cjs/src/user-modules/url-link.js.map +1 -1
- package/dist/cjs/src/user-modules/voice.d.ts +2 -0
- package/dist/cjs/src/user-modules/voice.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/voice.js +8 -9
- package/dist/cjs/src/user-modules/voice.js.map +1 -1
- package/dist/cjs/src/user-modules/wecom.d.ts +3 -1
- package/dist/cjs/src/user-modules/wecom.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/wecom.js +2 -3
- package/dist/cjs/src/user-modules/wecom.js.map +1 -1
- package/dist/cjs/src/user-modules/wxxd-order.d.ts +2 -0
- package/dist/cjs/src/user-modules/wxxd-order.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/wxxd-order.js +9 -10
- package/dist/cjs/src/user-modules/wxxd-order.js.map +1 -1
- package/dist/cjs/src/user-modules/wxxd-product.d.ts +2 -0
- package/dist/cjs/src/user-modules/wxxd-product.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/wxxd-product.js +6 -7
- package/dist/cjs/src/user-modules/wxxd-product.js.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-base.d.ts +21 -37
- package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-base.js +17 -17
- package/dist/cjs/src/wechaty/wechaty-base.js.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-skeleton.d.ts +15 -4
- package/dist/cjs/src/wechaty/wechaty-skeleton.d.ts.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-skeleton.js +17 -6
- package/dist/cjs/src/wechaty/wechaty-skeleton.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/gerror-mixin.d.ts +3 -2
- package/dist/cjs/src/wechaty-mixins/gerror-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/io-mixin.d.ts +12 -6
- package/dist/cjs/src/wechaty-mixins/io-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/io-mixin.js +8 -8
- package/dist/cjs/src/wechaty-mixins/io-mixin.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +53 -19
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/login-mixin.js +5 -5
- package/dist/cjs/src/wechaty-mixins/login-mixin.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +21 -10
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/misc-mixin.js +1 -1
- package/dist/cjs/src/wechaty-mixins/misc-mixin.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +18 -12
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.js +5 -5
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin-dirty-pool.spec.d.ts +3 -0
- package/dist/cjs/src/wechaty-mixins/puppet-mixin-dirty-pool.spec.d.ts.map +1 -0
- package/dist/cjs/src/wechaty-mixins/puppet-mixin-dirty-pool.spec.js +121 -0
- package/dist/cjs/src/wechaty-mixins/puppet-mixin-dirty-pool.spec.js.map +1 -0
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +16 -12
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +116 -64
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +3 -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 +4 -4
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/dist/esm/src/io.js +40 -40
- package/dist/esm/src/io.js.map +1 -1
- package/dist/esm/src/package-json.js +4 -4
- package/dist/esm/src/schemas/logger.d.ts +2 -0
- package/dist/esm/src/schemas/logger.d.ts.map +1 -0
- package/dist/esm/src/schemas/logger.js +2 -0
- package/dist/esm/src/schemas/logger.js.map +1 -0
- package/dist/esm/src/schemas/mod.d.ts +2 -1
- package/dist/esm/src/schemas/mod.d.ts.map +1 -1
- package/dist/esm/src/schemas/mod.js.map +1 -1
- package/dist/esm/src/schemas/wechaty-options.d.ts +19 -0
- package/dist/esm/src/schemas/wechaty-options.d.ts.map +1 -1
- package/dist/esm/src/user-mixins/wechatify.d.ts +23 -0
- package/dist/esm/src/user-mixins/wechatify.d.ts.map +1 -1
- package/dist/esm/src/user-mixins/wechatify.js +25 -0
- package/dist/esm/src/user-mixins/wechatify.js.map +1 -1
- package/dist/esm/src/user-modules/call.d.ts +4 -0
- package/dist/esm/src/user-modules/call.d.ts.map +1 -1
- package/dist/esm/src/user-modules/call.js +6 -7
- package/dist/esm/src/user-modules/call.js.map +1 -1
- package/dist/esm/src/user-modules/channel-card.d.ts +2 -0
- package/dist/esm/src/user-modules/channel-card.d.ts.map +1 -1
- package/dist/esm/src/user-modules/channel-card.js +2 -3
- package/dist/esm/src/user-modules/channel-card.js.map +1 -1
- package/dist/esm/src/user-modules/channel.d.ts +2 -0
- package/dist/esm/src/user-modules/channel.d.ts.map +1 -1
- package/dist/esm/src/user-modules/channel.js +2 -3
- package/dist/esm/src/user-modules/channel.js.map +1 -1
- package/dist/esm/src/user-modules/chat-history.d.ts +2 -0
- package/dist/esm/src/user-modules/chat-history.d.ts.map +1 -1
- package/dist/esm/src/user-modules/chat-history.js +2 -3
- package/dist/esm/src/user-modules/chat-history.js.map +1 -1
- package/dist/esm/src/user-modules/consult-card.d.ts +2 -0
- package/dist/esm/src/user-modules/consult-card.d.ts.map +1 -1
- package/dist/esm/src/user-modules/consult-card.js +3 -4
- package/dist/esm/src/user-modules/consult-card.js.map +1 -1
- package/dist/esm/src/user-modules/contact-self.d.ts.map +1 -1
- package/dist/esm/src/user-modules/contact-self.js +8 -9
- package/dist/esm/src/user-modules/contact-self.js.map +1 -1
- package/dist/esm/src/user-modules/contact.d.ts +2 -0
- package/dist/esm/src/user-modules/contact.d.ts.map +1 -1
- package/dist/esm/src/user-modules/contact.js +36 -37
- package/dist/esm/src/user-modules/contact.js.map +1 -1
- package/dist/esm/src/user-modules/delay.d.ts +2 -0
- package/dist/esm/src/user-modules/delay.d.ts.map +1 -1
- package/dist/esm/src/user-modules/douyin-one-click-phone-collection.d.ts +2 -0
- package/dist/esm/src/user-modules/douyin-one-click-phone-collection.d.ts.map +1 -1
- package/dist/esm/src/user-modules/douyin-one-click-phone-collection.js +2 -3
- package/dist/esm/src/user-modules/douyin-one-click-phone-collection.js.map +1 -1
- package/dist/esm/src/user-modules/favorite.d.ts +21 -0
- package/dist/esm/src/user-modules/favorite.d.ts.map +1 -1
- package/dist/esm/src/user-modules/favorite.js +1 -21
- package/dist/esm/src/user-modules/favorite.js.map +1 -1
- package/dist/esm/src/user-modules/friendship.d.ts +2 -0
- package/dist/esm/src/user-modules/friendship.d.ts.map +1 -1
- package/dist/esm/src/user-modules/friendship.js +11 -12
- package/dist/esm/src/user-modules/friendship.js.map +1 -1
- package/dist/esm/src/user-modules/im-specific.d.ts +2 -0
- package/dist/esm/src/user-modules/im-specific.d.ts.map +1 -1
- package/dist/esm/src/user-modules/im-specific.js +1 -2
- package/dist/esm/src/user-modules/im-specific.js.map +1 -1
- package/dist/esm/src/user-modules/image.d.ts +22 -0
- package/dist/esm/src/user-modules/image.d.ts.map +1 -1
- package/dist/esm/src/user-modules/image.js +5 -6
- package/dist/esm/src/user-modules/image.js.map +1 -1
- package/dist/esm/src/user-modules/location.d.ts +2 -0
- package/dist/esm/src/user-modules/location.d.ts.map +1 -1
- package/dist/esm/src/user-modules/location.js +2 -3
- package/dist/esm/src/user-modules/location.js.map +1 -1
- 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 +56 -56
- package/dist/esm/src/user-modules/message.js.map +1 -1
- package/dist/esm/src/user-modules/mini-program.d.ts +2 -0
- package/dist/esm/src/user-modules/mini-program.d.ts.map +1 -1
- package/dist/esm/src/user-modules/mini-program.js +2 -3
- package/dist/esm/src/user-modules/mini-program.js.map +1 -1
- package/dist/esm/src/user-modules/moment.d.ts +21 -0
- package/dist/esm/src/user-modules/moment.d.ts.map +1 -1
- package/dist/esm/src/user-modules/moment.js +5 -25
- package/dist/esm/src/user-modules/moment.js.map +1 -1
- package/dist/esm/src/user-modules/money.d.ts +2 -0
- package/dist/esm/src/user-modules/money.d.ts.map +1 -1
- package/dist/esm/src/user-modules/post.d.ts +2 -0
- package/dist/esm/src/user-modules/post.d.ts.map +1 -1
- package/dist/esm/src/user-modules/post.js +25 -25
- package/dist/esm/src/user-modules/post.js.map +1 -1
- package/dist/esm/src/user-modules/premium-online-appointment-card.d.ts +2 -0
- package/dist/esm/src/user-modules/premium-online-appointment-card.d.ts.map +1 -1
- package/dist/esm/src/user-modules/premium-online-appointment-card.js +2 -3
- package/dist/esm/src/user-modules/premium-online-appointment-card.js.map +1 -1
- package/dist/esm/src/user-modules/room-invitation.d.ts +2 -0
- package/dist/esm/src/user-modules/room-invitation.d.ts.map +1 -1
- package/dist/esm/src/user-modules/room-invitation.js +10 -11
- package/dist/esm/src/user-modules/room-invitation.js.map +1 -1
- package/dist/esm/src/user-modules/room.d.ts +2 -0
- package/dist/esm/src/user-modules/room.d.ts.map +1 -1
- package/dist/esm/src/user-modules/room.js +44 -44
- package/dist/esm/src/user-modules/room.js.map +1 -1
- package/dist/esm/src/user-modules/tag-group.d.ts +2 -0
- package/dist/esm/src/user-modules/tag-group.d.ts.map +1 -1
- package/dist/esm/src/user-modules/tag-group.js +13 -14
- package/dist/esm/src/user-modules/tag-group.js.map +1 -1
- package/dist/esm/src/user-modules/tag.d.ts +2 -0
- package/dist/esm/src/user-modules/tag.d.ts.map +1 -1
- package/dist/esm/src/user-modules/tag.js +21 -22
- package/dist/esm/src/user-modules/tag.js.map +1 -1
- package/dist/esm/src/user-modules/url-link.d.ts +2 -0
- package/dist/esm/src/user-modules/url-link.d.ts.map +1 -1
- package/dist/esm/src/user-modules/url-link.js +2 -3
- package/dist/esm/src/user-modules/url-link.js.map +1 -1
- package/dist/esm/src/user-modules/voice.d.ts +2 -0
- package/dist/esm/src/user-modules/voice.d.ts.map +1 -1
- package/dist/esm/src/user-modules/voice.js +8 -9
- package/dist/esm/src/user-modules/voice.js.map +1 -1
- package/dist/esm/src/user-modules/wecom.d.ts +3 -1
- package/dist/esm/src/user-modules/wecom.d.ts.map +1 -1
- package/dist/esm/src/user-modules/wecom.js +2 -3
- package/dist/esm/src/user-modules/wecom.js.map +1 -1
- package/dist/esm/src/user-modules/wxxd-order.d.ts +2 -0
- package/dist/esm/src/user-modules/wxxd-order.d.ts.map +1 -1
- package/dist/esm/src/user-modules/wxxd-order.js +9 -10
- package/dist/esm/src/user-modules/wxxd-order.js.map +1 -1
- package/dist/esm/src/user-modules/wxxd-product.d.ts +2 -0
- package/dist/esm/src/user-modules/wxxd-product.d.ts.map +1 -1
- package/dist/esm/src/user-modules/wxxd-product.js +6 -7
- package/dist/esm/src/user-modules/wxxd-product.js.map +1 -1
- package/dist/esm/src/wechaty/wechaty-base.d.ts +21 -37
- package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/esm/src/wechaty/wechaty-base.js +17 -17
- package/dist/esm/src/wechaty/wechaty-base.js.map +1 -1
- package/dist/esm/src/wechaty/wechaty-skeleton.d.ts +15 -4
- package/dist/esm/src/wechaty/wechaty-skeleton.d.ts.map +1 -1
- package/dist/esm/src/wechaty/wechaty-skeleton.js +17 -6
- package/dist/esm/src/wechaty/wechaty-skeleton.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/gerror-mixin.d.ts +3 -2
- package/dist/esm/src/wechaty-mixins/gerror-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/io-mixin.d.ts +12 -6
- package/dist/esm/src/wechaty-mixins/io-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/io-mixin.js +8 -8
- package/dist/esm/src/wechaty-mixins/io-mixin.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +53 -19
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/login-mixin.js +5 -5
- package/dist/esm/src/wechaty-mixins/login-mixin.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +21 -10
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/misc-mixin.js +1 -1
- package/dist/esm/src/wechaty-mixins/misc-mixin.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +18 -12
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/plugin-mixin.js +5 -5
- package/dist/esm/src/wechaty-mixins/plugin-mixin.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin-dirty-pool.spec.d.ts +3 -0
- package/dist/esm/src/wechaty-mixins/puppet-mixin-dirty-pool.spec.d.ts.map +1 -0
- package/dist/esm/src/wechaty-mixins/puppet-mixin-dirty-pool.spec.js +96 -0
- package/dist/esm/src/wechaty-mixins/puppet-mixin-dirty-pool.spec.js.map +1 -0
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +16 -12
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.js +116 -64
- package/dist/esm/src/wechaty-mixins/puppet-mixin.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +3 -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 -4
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/package.json +3 -3
- package/src/io.ts +40 -40
- package/src/package-json.ts +4 -4
- package/src/schemas/logger.ts +1 -0
- package/src/schemas/mod.ts +4 -0
- package/src/schemas/wechaty-options.ts +21 -0
- package/src/user-mixins/wechatify.ts +26 -0
- package/src/user-modules/call.ts +6 -7
- package/src/user-modules/channel-card.ts +2 -3
- package/src/user-modules/channel.ts +2 -3
- package/src/user-modules/chat-history.ts +2 -3
- package/src/user-modules/consult-card.ts +3 -5
- package/src/user-modules/contact-self.ts +8 -11
- package/src/user-modules/contact.ts +36 -40
- package/src/user-modules/douyin-one-click-phone-collection.ts +2 -3
- package/src/user-modules/favorite.ts +1 -2
- package/src/user-modules/friendship.ts +11 -12
- package/src/user-modules/im-specific.ts +1 -2
- package/src/user-modules/image.ts +5 -6
- package/src/user-modules/location.ts +2 -3
- package/src/user-modules/message.ts +55 -56
- package/src/user-modules/mini-program.ts +2 -3
- package/src/user-modules/moment.ts +5 -6
- package/src/user-modules/post.ts +25 -25
- package/src/user-modules/premium-online-appointment-card.ts +2 -3
- package/src/user-modules/room-invitation.ts +10 -11
- package/src/user-modules/room.ts +43 -44
- package/src/user-modules/tag-group.ts +13 -14
- package/src/user-modules/tag.ts +21 -22
- package/src/user-modules/url-link.ts +2 -3
- package/src/user-modules/voice.ts +8 -9
- package/src/user-modules/wecom.ts +3 -3
- package/src/user-modules/wxxd-order.ts +9 -10
- package/src/user-modules/wxxd-product.ts +6 -7
- package/src/wechaty/wechaty-base.ts +17 -17
- package/src/wechaty/wechaty-skeleton.ts +21 -8
- package/src/wechaty-mixins/io-mixin.ts +8 -8
- package/src/wechaty-mixins/login-mixin.ts +5 -5
- package/src/wechaty-mixins/misc-mixin.ts +1 -1
- package/src/wechaty-mixins/plugin-mixin.ts +5 -5
- package/src/wechaty-mixins/puppet-mixin-dirty-pool.spec.ts +144 -0
- package/src/wechaty-mixins/puppet-mixin.ts +114 -69
- package/src/wechaty-mixins/wechatify-user-module-mixin.ts +4 -4
|
@@ -10,7 +10,8 @@ declare const ioMixin: <MixinBase extends typeof WechatySkeleton & ((abstract ne
|
|
|
10
10
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
11
11
|
emitError(e: any): void;
|
|
12
12
|
emit(event: any, ...args: any): boolean;
|
|
13
|
-
|
|
13
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
14
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
14
15
|
readonly id: string;
|
|
15
16
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
16
17
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -31,17 +32,20 @@ declare const ioMixin: <MixinBase extends typeof WechatySkeleton & ((abstract ne
|
|
|
31
32
|
listeners<E_8 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_8): Function[];
|
|
32
33
|
listenerCount<E_9 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_9): number;
|
|
33
34
|
getMaxListeners(): number;
|
|
34
|
-
setMaxListeners(maxListeners: number): any;
|
|
35
|
+
setMaxListeners(maxListeners: number): any; /**
|
|
36
|
+
* Initialize IO instance
|
|
37
|
+
*/
|
|
35
38
|
__events: import("../schemas/wechaty-events.js").WechatyEventListeners;
|
|
36
39
|
}) & {
|
|
37
|
-
readonly log: import("
|
|
40
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
38
41
|
})>(mixinBase: MixinBase) => ((abstract new (...args: any[]) => {
|
|
39
42
|
__io?: Io | undefined;
|
|
40
43
|
readonly io: Io;
|
|
41
44
|
__ioToken?: string | undefined;
|
|
42
45
|
start(): Promise<void>;
|
|
43
46
|
stop(): Promise<void>;
|
|
44
|
-
|
|
47
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
48
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
45
49
|
readonly id: string;
|
|
46
50
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
47
51
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -61,12 +65,14 @@ declare const ioMixin: <MixinBase extends typeof WechatySkeleton & ((abstract ne
|
|
|
61
65
|
listeners<E_8 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_8): Function[];
|
|
62
66
|
listenerCount<E_9 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_9): number;
|
|
63
67
|
getMaxListeners(): number;
|
|
64
|
-
setMaxListeners(maxListeners: number): any;
|
|
68
|
+
setMaxListeners(maxListeners: number): any; /**
|
|
69
|
+
* Initialize IO instance
|
|
70
|
+
*/
|
|
65
71
|
__events: import("../schemas/wechaty-events.js").WechatyEventListeners;
|
|
66
72
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
67
73
|
emitError(e: any): void;
|
|
68
74
|
}) & {
|
|
69
|
-
readonly log: import("
|
|
75
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
70
76
|
}) & MixinBase;
|
|
71
77
|
declare type IoMixin = ReturnType<typeof ioMixin>;
|
|
72
78
|
declare type ProtectedPropertyIoMixin = '__io' | '__ioToken' | 'io';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/io-mixin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAA;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAW,mBAAmB,CAAA;AAG7D;;;;GAIG;AACH,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"io-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/io-mixin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAA;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAW,mBAAmB,CAAA;AAG7D;;;;GAIG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;gDAgDP;;OAEG;;;;sDAnCiB,GAAG,EAAE;;;;aAUF,QAAQ,IAAI,CAAC;YAoCd,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;gDAbnC;;OAEG;;;;;;cAuCR,CAAA;AAED,aAAK,OAAO,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AAEzC,aAAK,wBAAwB,GACzB,MAAM,GACN,WAAW,GACX,IAAI,CAAA;AAER,YAAY,EACV,OAAO,EACP,wBAAwB,GACzB,CAAA;AACD,OAAO,EACL,OAAO,GACR,CAAA"}
|
|
@@ -28,7 +28,7 @@ const ioMixin = (mixinBase) => {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
async start() {
|
|
31
|
-
|
|
31
|
+
this.log.verbose('WechatyIoMixin', 'start()');
|
|
32
32
|
await super.start();
|
|
33
33
|
if (!this.__ioToken) {
|
|
34
34
|
return;
|
|
@@ -37,14 +37,14 @@ const ioMixin = (mixinBase) => {
|
|
|
37
37
|
* Clean the memory leak-ed io (?)
|
|
38
38
|
*/
|
|
39
39
|
if (this.__io) {
|
|
40
|
-
|
|
40
|
+
this.log.error('WechatyIoMixin', 'start() found existing io instance: stopping...');
|
|
41
41
|
try {
|
|
42
42
|
await this.__io.stop();
|
|
43
43
|
}
|
|
44
44
|
catch (e) {
|
|
45
45
|
this.emitError(e);
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
this.log.error('WechatyIoMixin', 'start() found existing io instance: stopping... done');
|
|
48
48
|
this.__io = undefined;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
@@ -54,12 +54,12 @@ const ioMixin = (mixinBase) => {
|
|
|
54
54
|
token: this.__ioToken,
|
|
55
55
|
wechaty: this, // <- FIXME: remove any, Huan(202111)
|
|
56
56
|
});
|
|
57
|
-
|
|
57
|
+
this.log.verbose('WechatyIoMixin', 'start() starting io ...');
|
|
58
58
|
await this.__io.start();
|
|
59
|
-
|
|
59
|
+
this.log.verbose('WechatyIoMixin', 'start() starting io ... done');
|
|
60
60
|
}
|
|
61
61
|
async stop() {
|
|
62
|
-
|
|
62
|
+
this.log.verbose('WechatyIoMixin', 'stop()');
|
|
63
63
|
try {
|
|
64
64
|
if (!this.__io) {
|
|
65
65
|
return;
|
|
@@ -67,9 +67,9 @@ const ioMixin = (mixinBase) => {
|
|
|
67
67
|
const io = this.__io;
|
|
68
68
|
this.__io = undefined;
|
|
69
69
|
try {
|
|
70
|
-
|
|
70
|
+
this.log.verbose('WechatyIoMixin', 'stop() starting io ...');
|
|
71
71
|
await io.stop();
|
|
72
|
-
|
|
72
|
+
this.log.verbose('WechatyIoMixin', 'stop() starting io ... done');
|
|
73
73
|
}
|
|
74
74
|
catch (e) {
|
|
75
75
|
this.emitError(e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"io-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/io-mixin.ts"],"names":[],"mappings":";;;AAAA,yDAAiD;AACjD,oCAA6B;AAM7B;;;;GAIG;AACH,MAAM,OAAO,GAAG,CAA0D,SAAoB,EAAE,EAAE;IAChG,oBAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,aAAa,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAE5D,MAAe,OAAQ,SAAQ,SAAS;QAEtC,IAAI,CAAK;QACT,IAAI,EAAE;YACJ,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAA;aACzB;YACD,OAAO,IAAI,CAAC,IAAI,CAAA;QAClB,CAAC;QAED,SAAS,CAAS;QAElB,YAAa,GAAG,IAAW;YACzB,oBAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,eAAe,CAAC,CAAA;YAC9C,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;YAEd,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,EAAoB,CAAA;YAC/C,IAAI,OAAO,CAAC,OAAO,EAAE;gBACnB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,OAAO,CAAA;aACjC;QACH,CAAC;QAEQ,KAAK,CAAC,KAAK;YAClB,
|
|
1
|
+
{"version":3,"file":"io-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/io-mixin.ts"],"names":[],"mappings":";;;AAAA,yDAAiD;AACjD,oCAA6B;AAM7B;;;;GAIG;AACH,MAAM,OAAO,GAAG,CAA0D,SAAoB,EAAE,EAAE;IAChG,oBAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,aAAa,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAE5D,MAAe,OAAQ,SAAQ,SAAS;QAEtC,IAAI,CAAK;QACT,IAAI,EAAE;YACJ,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;gBACd,MAAM,IA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,yBAAyB,CAAC,CAAA;YAC7D,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAA;YACvB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,8BAA8B,CAAC,CAAA;QACpE,CAAC;QAEQ,KAAK,CAAC,IAAI;YACjB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;YAE5C,IAAI;gBACF,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;oBACd,OAAM;iBACP;gBAED,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAA;gBACpB,IAAI,CAAC,IAAI,GAAG,SAAS,CAAA;gBAErB,IAAI;oBACF,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,CAAA;oBAC5D,MAAM,EAAE,CAAC,IAAI,EAAE,CAAA;oBACf,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,6BAA6B,CAAC,CAAA;iBAClE;gBAAC,OAAO,CAAC,EAAE;oBACV,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;iBAClB;aAEF;oBAAS;gBACR,MAAM,KAAK,CAAC,IAAI,EAAE,CAAA;aACnB;QAEH,CAAC;KAEF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAcC,0BAAO"}
|
|
@@ -19,9 +19,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
19
19
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
20
20
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
21
21
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
22
|
-
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
23
|
-
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
24
|
-
*/
|
|
22
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
25
23
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
26
24
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
27
25
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -71,10 +69,18 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
71
69
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
72
70
|
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
73
71
|
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
74
|
-
|
|
72
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
73
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
75
74
|
readonly id: string;
|
|
76
75
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
77
76
|
readonly memory: import("memory-card").MemoryCard;
|
|
77
|
+
/**
|
|
78
|
+
* Logout the bot
|
|
79
|
+
*
|
|
80
|
+
* @returns {Promise<void>}
|
|
81
|
+
* @example
|
|
82
|
+
* await bot.logout()
|
|
83
|
+
*/
|
|
78
84
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
79
85
|
on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
|
|
80
86
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
@@ -98,7 +104,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
98
104
|
readonly io: import("../io.js").Io;
|
|
99
105
|
__ioToken?: string | undefined;
|
|
100
106
|
}) & {
|
|
101
|
-
readonly log: import("
|
|
107
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
102
108
|
}) & ((abstract new (...args: any[]) => {
|
|
103
109
|
__wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
|
|
104
110
|
__wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
|
|
@@ -106,9 +112,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
106
112
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
107
113
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
108
114
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
109
|
-
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
110
|
-
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
111
|
-
*/
|
|
115
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
112
116
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
113
117
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
114
118
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -159,10 +163,18 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
159
163
|
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
160
164
|
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
161
165
|
init(): Promise<void>;
|
|
162
|
-
|
|
166
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
167
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
163
168
|
readonly id: string;
|
|
164
169
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
165
170
|
readonly memory: import("memory-card").MemoryCard;
|
|
171
|
+
/**
|
|
172
|
+
* Logout the bot
|
|
173
|
+
*
|
|
174
|
+
* @returns {Promise<void>}
|
|
175
|
+
* @example
|
|
176
|
+
* await bot.logout()
|
|
177
|
+
*/
|
|
166
178
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
167
179
|
start(): Promise<void>;
|
|
168
180
|
stop(): Promise<void>;
|
|
@@ -183,15 +195,23 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
183
195
|
setMaxListeners(maxListeners: number): any;
|
|
184
196
|
__events: import("../schemas/wechaty-events.js").WechatyEventListeners;
|
|
185
197
|
}) & {
|
|
186
|
-
readonly log: import("
|
|
198
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
187
199
|
}) & ((abstract new (...args: any[]) => {
|
|
188
200
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
189
201
|
emitError(e: any): void;
|
|
190
202
|
emit(event: any, ...args: any): boolean;
|
|
191
|
-
|
|
203
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
204
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
192
205
|
readonly id: string;
|
|
193
206
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
194
207
|
readonly memory: import("memory-card").MemoryCard;
|
|
208
|
+
/**
|
|
209
|
+
* Logout the bot
|
|
210
|
+
*
|
|
211
|
+
* @returns {Promise<void>}
|
|
212
|
+
* @example
|
|
213
|
+
* await bot.logout()
|
|
214
|
+
*/
|
|
195
215
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
196
216
|
init(): Promise<void>;
|
|
197
217
|
start(): Promise<void>;
|
|
@@ -212,17 +232,25 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
212
232
|
setMaxListeners(maxListeners: number): any;
|
|
213
233
|
__events: import("../schemas/wechaty-events.js").WechatyEventListeners;
|
|
214
234
|
}) & {
|
|
215
|
-
readonly log: import("
|
|
235
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
216
236
|
}) & ((abstract new (...args: any[]) => {
|
|
217
237
|
__io?: import("../io.js").Io | undefined;
|
|
218
238
|
readonly io: import("../io.js").Io;
|
|
219
239
|
__ioToken?: string | undefined;
|
|
220
240
|
start(): Promise<void>;
|
|
221
241
|
stop(): Promise<void>;
|
|
222
|
-
|
|
242
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
243
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
223
244
|
readonly id: string;
|
|
224
245
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
225
246
|
readonly memory: import("memory-card").MemoryCard;
|
|
247
|
+
/**
|
|
248
|
+
* Logout the bot
|
|
249
|
+
*
|
|
250
|
+
* @returns {Promise<void>}
|
|
251
|
+
* @example
|
|
252
|
+
* await bot.logout()
|
|
253
|
+
*/
|
|
226
254
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
227
255
|
init(): Promise<void>;
|
|
228
256
|
on(event: "error" | "ready" | "call" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order" | "call-ringing" | "call-accept" | "call-reject" | "call-cancel" | "call-hangup" | "call-ended", listener: (...args: any[]) => any): any;
|
|
@@ -244,7 +272,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
244
272
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
245
273
|
emitError(e: any): void;
|
|
246
274
|
}) & {
|
|
247
|
-
readonly log: import("
|
|
275
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
248
276
|
})>(mixinBase: MixinBase) => ((abstract new (...args: any[]) => {
|
|
249
277
|
readonly authQrCode: string | undefined;
|
|
250
278
|
/**
|
|
@@ -287,10 +315,18 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
287
315
|
* @deprecated use {@link Wechaty#currentUser} instead
|
|
288
316
|
*/
|
|
289
317
|
userSelf(): ContactSelfInterface;
|
|
290
|
-
|
|
318
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
319
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
291
320
|
readonly id: string;
|
|
292
321
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
293
322
|
readonly memory: import("memory-card").MemoryCard;
|
|
323
|
+
/**
|
|
324
|
+
* Logout the bot
|
|
325
|
+
*
|
|
326
|
+
* @returns {Promise<void>}
|
|
327
|
+
* @example
|
|
328
|
+
* await bot.logout()
|
|
329
|
+
*/
|
|
294
330
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
295
331
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
296
332
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
@@ -325,9 +361,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
325
361
|
__wechatifiedDelay?: import("../user-modules/delay.js").DelayConstructor | undefined;
|
|
326
362
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
327
363
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
328
|
-
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
329
|
-
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
330
|
-
*/
|
|
364
|
+
__wechatifiedVoice?: import("../user-modules/voice.js").VoiceConstructor | undefined;
|
|
331
365
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
332
366
|
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
333
367
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
@@ -383,7 +417,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
383
417
|
readonly io: import("../io.js").Io;
|
|
384
418
|
__ioToken?: string | undefined;
|
|
385
419
|
}) & {
|
|
386
|
-
readonly log: import("
|
|
420
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
387
421
|
}) & MixinBase;
|
|
388
422
|
declare type LoginMixin = ReturnType<typeof loginMixin>;
|
|
389
423
|
declare type ProtectedPropertyLoginMixin = 'userSelf' | 'logonoff' | '__loginMixinInited';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+DZ;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IANH;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IANH;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IANH;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;sDArBmB,GAAG,EAAE;;IAvC3B;;;;;;;OAOG;;IAMH;;;;;;;;;;OAUG;;;YAqBqB,QAAQ,IAAI,CAAC;IAUrC;;;;;;OAMG;oBACoB,MAAM,GAAG,QAAQ,IAAI,CAAC;IAK7C;;OAEG;gBACU,OAAO;IAKpB;;;OAGG;;;;;;;IAvBH;;;;;;OAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BN,CAAA;AAED,aAAK,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAA;AAE/C,aAAK,2BAA2B,GAC5B,UAAU,GACV,UAAU,GACV,oBAAoB,CAAA;AAExB,YAAY,EACV,UAAU,EACV,2BAA2B,GAC5B,CAAA;AACD,OAAO,EACL,UAAU,GACX,CAAA"}
|
|
@@ -38,7 +38,7 @@ const loginMixin = (mixinBase) => {
|
|
|
38
38
|
}
|
|
39
39
|
catch (e) {
|
|
40
40
|
this.emit('error', e);
|
|
41
|
-
|
|
41
|
+
this.log.warn('WechatyLoginMixin', 'get isLoggedIn puppet instance is not ready yet');
|
|
42
42
|
// https://github.com/wechaty/wechaty/issues/1878
|
|
43
43
|
return false;
|
|
44
44
|
}
|
|
@@ -49,7 +49,7 @@ const loginMixin = (mixinBase) => {
|
|
|
49
49
|
super(...args);
|
|
50
50
|
}
|
|
51
51
|
async init() {
|
|
52
|
-
|
|
52
|
+
this.log.verbose('WechatyLoginMixin', 'init()');
|
|
53
53
|
await super.init();
|
|
54
54
|
if (this.__loginMixinInited) {
|
|
55
55
|
return;
|
|
@@ -64,14 +64,14 @@ const loginMixin = (mixinBase) => {
|
|
|
64
64
|
* await bot.logout()
|
|
65
65
|
*/
|
|
66
66
|
async logout(reason) {
|
|
67
|
-
|
|
67
|
+
this.log.verbose('WechatyLoginMixin', 'logout()');
|
|
68
68
|
await this.puppet.logout(reason);
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* @deprecated: use `isLoggedIn` property instead. will be removed after Dec 31, 2022
|
|
72
72
|
*/
|
|
73
73
|
logonoff() {
|
|
74
|
-
|
|
74
|
+
this.log.warn('WechatyLoginMixin', 'logonoff() is deprecated: use `isLoggedIn` property instead.\n%s', new Error().stack);
|
|
75
75
|
return this.isLoggedIn;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
@@ -79,7 +79,7 @@ const loginMixin = (mixinBase) => {
|
|
|
79
79
|
* @deprecated use {@link Wechaty#currentUser} instead
|
|
80
80
|
*/
|
|
81
81
|
userSelf() {
|
|
82
|
-
|
|
82
|
+
this.log.warn('WechatyLoginMixin', 'userSelf() deprecated: use currentUser instead.\n%s', new Error().stack);
|
|
83
83
|
return this.currentUser;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":";;;AAAA,yDAA+C;AAW/C,MAAM,UAAU,GAAG,CAAwE,SAAoB,EAAE,EAAE;IACjH,oBAAG,CAAC,OAAO,CAAC,mBAAmB,EAAE,gBAAgB,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAElE,MAAe,UAAW,SAAQ,SAAS;Q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abstract new (...args: any[]) => {
|
|
3
3
|
__puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
*/
|
|
4
7
|
__callPool: Map<string, import("../user-modules/call.js").CallImpl>;
|
|
5
8
|
readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface;
|
|
6
9
|
readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
|
|
@@ -68,7 +71,8 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
68
71
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
69
72
|
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
70
73
|
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
71
|
-
|
|
74
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
75
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
72
76
|
readonly id: string;
|
|
73
77
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
74
78
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -97,7 +101,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
97
101
|
readonly io: import("../io.js").Io;
|
|
98
102
|
__ioToken?: string | undefined;
|
|
99
103
|
}) & {
|
|
100
|
-
readonly log: import("
|
|
104
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
101
105
|
}) & ((abstract new (...args: any[]) => {
|
|
102
106
|
__wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
|
|
103
107
|
__wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
|
|
@@ -156,7 +160,8 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
156
160
|
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
157
161
|
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
158
162
|
init(): Promise<void>;
|
|
159
|
-
|
|
163
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
164
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
160
165
|
readonly id: string;
|
|
161
166
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
162
167
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -182,12 +187,13 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
182
187
|
*/
|
|
183
188
|
__events: import("../schemas/wechaty-events.js").WechatyEventListeners;
|
|
184
189
|
}) & {
|
|
185
|
-
readonly log: import("
|
|
190
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
186
191
|
}) & ((abstract new (...args: any[]) => {
|
|
187
192
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
188
193
|
emitError(e: any): void;
|
|
189
194
|
emit(event: any, ...args: any): boolean;
|
|
190
|
-
|
|
195
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
196
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
191
197
|
readonly id: string;
|
|
192
198
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
193
199
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -213,14 +219,15 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
213
219
|
*/
|
|
214
220
|
__events: import("../schemas/wechaty-events.js").WechatyEventListeners;
|
|
215
221
|
}) & {
|
|
216
|
-
readonly log: import("
|
|
222
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
217
223
|
}) & ((abstract new (...args: any[]) => {
|
|
218
224
|
__io?: import("../io.js").Io | undefined;
|
|
219
225
|
readonly io: import("../io.js").Io;
|
|
220
226
|
__ioToken?: string | undefined;
|
|
221
227
|
start(): Promise<void>;
|
|
222
228
|
stop(): Promise<void>;
|
|
223
|
-
|
|
229
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
230
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
224
231
|
readonly id: string;
|
|
225
232
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
226
233
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -247,7 +254,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
247
254
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
248
255
|
emitError(e: any): void;
|
|
249
256
|
}) & {
|
|
250
|
-
readonly log: import("
|
|
257
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
251
258
|
})>(mixinBase: MixinBase) => ((abstract new (...args: any[]) => {
|
|
252
259
|
/**
|
|
253
260
|
* @ignore
|
|
@@ -276,7 +283,8 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
276
283
|
* @private
|
|
277
284
|
*/
|
|
278
285
|
ding(data?: string): void;
|
|
279
|
-
|
|
286
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
287
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
280
288
|
readonly id: string;
|
|
281
289
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
282
290
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -303,6 +311,9 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
303
311
|
*/
|
|
304
312
|
__events: import("../schemas/wechaty-events.js").WechatyEventListeners;
|
|
305
313
|
__puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined;
|
|
314
|
+
/**
|
|
315
|
+
* @private
|
|
316
|
+
*/
|
|
306
317
|
__callPool: Map<string, import("../user-modules/call.js").CallImpl>;
|
|
307
318
|
readonly puppet: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface;
|
|
308
319
|
readonly __readyState: import("state-switch/dist/esm/src/interfaces.js").StateSwitchInterface;
|
|
@@ -373,7 +384,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
373
384
|
readonly io: import("../io.js").Io;
|
|
374
385
|
__ioToken?: string | undefined;
|
|
375
386
|
}) & {
|
|
376
|
-
readonly log: import("
|
|
387
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
377
388
|
}) & MixinBase;
|
|
378
389
|
declare type MiscMixin = ReturnType<typeof miscMixin>;
|
|
379
390
|
declare type ProtectedPropertyMiscMixin = never;
|
|
@@ -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;;IAuDX;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;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,IAAI,CAAC,IAAI,EAAE,GAAG;aACnD,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACZ,CAAC;QAED;;;WAGG;QACH,IAAI;YACF,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,SAAS,CAAA;QACzC,CAAC;QAED;;;;;;;;WAQG;QACH,OAAO;YACL,OAAO,mBAAO,CAAA;QAChB,CAAC;QAED;;WAEG;QACH,KAAK,CAAC,KAAK,CAAE,YAAoB;YAC/B,MAAM,IAAI,OAAO,CAAO,OAAO,CAAC,EAAE,CAChC,UAAU,CAAC,OAAO,EAAE,YAAY,CAAC,CAClC,CAAA;QACH,CAAC;QAED;;WAEG;QACH,IAAI,CAAE,IAAa;YACjB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kBAAkB,EAAE,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,CAAA;YAE1D,IAAI;gBACF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;aACvB;YAAC,OAAO,CAAC,EAAE;gBACV,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;aAClB;QACH,CAAC;KAEF;IAED,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA;AAWC,8BAAS"}
|
|
@@ -7,7 +7,8 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
7
7
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
8
8
|
emitError(e: any): void;
|
|
9
9
|
emit(event: any, ...args: any): boolean;
|
|
10
|
-
|
|
10
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
11
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
11
12
|
readonly id: string;
|
|
12
13
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
13
14
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -31,7 +32,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
31
32
|
setMaxListeners(maxListeners: number): any;
|
|
32
33
|
__events: import("../schemas/wechaty-events.js").WechatyEventListeners;
|
|
33
34
|
}) & {
|
|
34
|
-
readonly log: import("
|
|
35
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
35
36
|
}) & ((abstract new (...args: any[]) => {
|
|
36
37
|
toString(): string;
|
|
37
38
|
/**
|
|
@@ -57,7 +58,8 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
57
58
|
version(): string;
|
|
58
59
|
sleep(milliseconds: number): Promise<void>;
|
|
59
60
|
ding(data?: string | undefined): void;
|
|
60
|
-
|
|
61
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
62
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
61
63
|
readonly id: string;
|
|
62
64
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
63
65
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -152,7 +154,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
152
154
|
readonly io: import("../io.js").Io;
|
|
153
155
|
__ioToken?: string | undefined;
|
|
154
156
|
}) & {
|
|
155
|
-
readonly log: import("
|
|
157
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
156
158
|
}) & ((abstract new (...args: any[]) => {
|
|
157
159
|
__puppet?: import("@juzi/wechaty-puppet/dist/esm/src/puppet/puppet-interface.js").PuppetInterface | undefined;
|
|
158
160
|
__callPool: Map<string, import("../user-modules/call.js").CallImpl>;
|
|
@@ -222,7 +224,8 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
222
224
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
223
225
|
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
224
226
|
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
225
|
-
|
|
227
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
228
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
226
229
|
readonly id: string;
|
|
227
230
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
228
231
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -249,7 +252,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
249
252
|
readonly io: import("../io.js").Io;
|
|
250
253
|
__ioToken?: string | undefined;
|
|
251
254
|
}) & {
|
|
252
|
-
readonly log: import("
|
|
255
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
253
256
|
}) & ((abstract new (...args: any[]) => {
|
|
254
257
|
__wechatifiedCall?: import("../user-modules/call.js").CallConstructor | undefined;
|
|
255
258
|
__wechatifiedContact?: import("../user-modules/contact.js").ContactConstructor | undefined;
|
|
@@ -308,7 +311,8 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
308
311
|
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
309
312
|
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
310
313
|
init(): Promise<void>;
|
|
311
|
-
|
|
314
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
315
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
312
316
|
readonly id: string;
|
|
313
317
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
314
318
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -332,14 +336,15 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
332
336
|
setMaxListeners(maxListeners: number): any;
|
|
333
337
|
__events: import("../schemas/wechaty-events.js").WechatyEventListeners;
|
|
334
338
|
}) & {
|
|
335
|
-
readonly log: import("
|
|
339
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
336
340
|
}) & ((abstract new (...args: any[]) => {
|
|
337
341
|
__io?: import("../io.js").Io | undefined;
|
|
338
342
|
readonly io: import("../io.js").Io;
|
|
339
343
|
__ioToken?: string | undefined;
|
|
340
344
|
start(): Promise<void>;
|
|
341
345
|
stop(): Promise<void>;
|
|
342
|
-
|
|
346
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
347
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
343
348
|
readonly id: string;
|
|
344
349
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
345
350
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -364,7 +369,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
364
369
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
365
370
|
emitError(e: any): void;
|
|
366
371
|
}) & {
|
|
367
|
-
readonly log: import("
|
|
372
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
368
373
|
})>(mixinBase: MixinBase) => ((abstract new (...args: any[]) => {
|
|
369
374
|
/**
|
|
370
375
|
* @param {WechatyPlugin[]} plugins - The plugins you want to use
|
|
@@ -386,7 +391,8 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
386
391
|
* bot.use(WechatyReportPlugin({ url: 'http://somewhere.to.report.your.data.com' })
|
|
387
392
|
*/
|
|
388
393
|
use(...plugins: (WechatyPlugin | WechatyPlugin[])[]): WechatyPluginUninstaller;
|
|
389
|
-
|
|
394
|
+
__log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
395
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
390
396
|
readonly id: string;
|
|
391
397
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
392
398
|
readonly memory: import("memory-card").MemoryCard;
|
|
@@ -505,7 +511,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
505
511
|
readonly io: import("../io.js").Io;
|
|
506
512
|
__ioToken?: string | undefined;
|
|
507
513
|
}) & {
|
|
508
|
-
readonly log: import("
|
|
514
|
+
readonly log: import("@juzi/wechaty-puppet").LoggerLike;
|
|
509
515
|
}) & MixinBase;
|
|
510
516
|
declare type PluginMixin = ReturnType<typeof pluginMixin>;
|
|
511
517
|
declare type ProtectedPropertyPluginMixin = never;
|
|
@@ -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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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