Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@juzi/wechaty",
"version": "1.0.165",
"version": "1.0.166",
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
"type": "module",
"exports": {
Expand Down Expand Up @@ -109,8 +109,8 @@
},
"homepage": "https://github.com/wechaty/",
"dependencies": {
"@juzi/wechaty-puppet": "^1.0.155",
"@juzi/wechaty-puppet-service": "1.0.128",
"@juzi/wechaty-puppet": "^1.0.156",
"@juzi/wechaty-puppet-service": "1.0.129",
"clone-class": "^1.1.1",
"cmd-ts": "^0.10.0",
"cockatiel": "^2.0.2",
Expand All @@ -133,7 +133,7 @@
"@chatie/eslint-config": "^1.0.4",
"@chatie/semver": "^0.4.7",
"@chatie/tsconfig": "^4.6.3",
"@juzi/wechaty-puppet": "^1.0.155",
"@juzi/wechaty-puppet": "^1.0.156",
"@juzi/wechaty-puppet-mock": "^1.0.1",
"@swc/core": "1.3.44",
"@swc/helpers": "^0.3.6",
Expand Down
3 changes: 3 additions & 0 deletions src/schemas/wechaty-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ type WechatyEventListenerPostComment = (comment: PostInterface, post: Pos
type WechatyEventListenerPostTap = (post: PostInterface, contact: ContactInterface, type: PUPPET.types.Tap, tap: boolean, date?: Date) => void | Promise<void>
type WechatyEventListenerVerifyCode = (id: string, message: string, scene: PUPPET.types.VerifyCodeScene, status: PUPPET.types.VerifyCodeStatus) => void | Promise<void>
type WechatyEventListenerVerifySlide = (scene: PUPPET.types.VerifySlideScene, status: PUPPET.types.VerifySlideStatus, sliderExeUrl: string, sliderVerifyEncrypt: string) => void | Promise<void>
type WechatyEventListenerSameNetVerify = (id: string, scene: PUPPET.types.SameNetVerifyScene, status: PUPPET.types.SameNetVerifyStatus, apkQrcodeUrl: string, apkUrl: string, verifyQrcodeUrl: string, expireTimestamp: number) => void | Promise<void>
type WechatyEventListenerDirty = (id: string, type: PUPPET.types.Dirty) => void | Promise<void>
type WechatyEventListenerLoginUrl = (url: string) => void | Promise<void>
type WechatyEventListenerIntentComment = (payload: PUPPET.payloads.IntentComment) => void | Promise<void>
Expand Down Expand Up @@ -260,6 +261,7 @@ interface WechatyEventListeners {
'login-url' : WechatyEventListenerLoginUrl
'intent-comment' : WechatyEventListenerIntentComment
'verify-slide' : WechatyEventListenerVerifySlide
'same-net-verify' : WechatyEventListenerSameNetVerify
'contact-enter-conversation' : WechatyEventListenerContactEnterConversation
'contact-lead-filled' : WechatyEventListenerContactLeadFilled
'wxxd-shop' : WechatyEventListenerWxxdShop
Expand Down Expand Up @@ -305,6 +307,7 @@ export type {
WechatyEventListenerPostTap,
WechatyEventListenerVerifyCode,
WechatyEventListenerVerifySlide,
WechatyEventListenerSameNetVerify,
WechatyEventListenerDirty,
WechatyEventListenerLoginUrl,
WechatyEventListenerIntentComment,
Expand Down
6 changes: 6 additions & 0 deletions src/wechaty-mixins/puppet-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,12 @@ const puppetMixin = <MixinBase extends WechatifyUserModuleMixin & GErrorMixin &
})
break

case 'same-net-verify':
puppet.on('same-net-verify', (payload) => {
this.emit('same-net-verify', payload.id || '', payload.scene || PUPPET.types.SameNetVerifyScene.UNKNOWN, payload.status || PUPPET.types.SameNetVerifyStatus.UNKNOWN, payload.apkQrcodeUrl || '', payload.apkUrl || '', payload.verifyQrcodeUrl || '', payload.expireTimestamp || 0)
})
break

case 'contact-enter-conversation':
puppet.on('contact-enter-conversation', async (payload) => {
const contact = await this.Contact.find({ id: payload.contactId })
Expand Down
Loading