@juzi/wechaty 1.0.126 → 1.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/mods/impls.d.ts +3 -3
- package/dist/cjs/src/mods/impls.d.ts.map +1 -1
- package/dist/cjs/src/mods/impls.js +2 -1
- package/dist/cjs/src/mods/impls.js.map +1 -1
- package/dist/cjs/src/mods/users.d.ts +1 -1
- package/dist/cjs/src/mods/users.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +4 -4
- package/dist/cjs/src/schemas/wechaty-events.d.ts +7 -1
- package/dist/cjs/src/schemas/wechaty-events.d.ts.map +1 -1
- package/dist/cjs/src/schemas/wechaty-events.js.map +1 -1
- package/dist/cjs/src/user-modules/im-specific.d.ts +28 -0
- package/dist/cjs/src/user-modules/im-specific.d.ts.map +1 -0
- package/dist/cjs/src/user-modules/im-specific.js +26 -0
- package/dist/cjs/src/user-modules/im-specific.js.map +1 -0
- package/dist/cjs/src/user-modules/mod.d.ts +4 -3
- package/dist/cjs/src/user-modules/mod.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/mod.js +3 -1
- package/dist/cjs/src/user-modules/mod.js.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-base.d.ts +17 -122
- package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-impl.spec.js +3 -1
- package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
- package/dist/cjs/src/wechaty-mixins/io-mixin.d.ts +2 -2
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +11 -5
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +11 -5
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +14 -6
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +14 -6
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +11 -0
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +5 -3
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +3 -0
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/dist/esm/src/mods/impls.d.ts +3 -3
- package/dist/esm/src/mods/impls.d.ts.map +1 -1
- package/dist/esm/src/mods/impls.js +1 -1
- package/dist/esm/src/mods/impls.js.map +1 -1
- package/dist/esm/src/mods/users.d.ts +1 -1
- package/dist/esm/src/mods/users.d.ts.map +1 -1
- package/dist/esm/src/package-json.js +4 -4
- package/dist/esm/src/schemas/wechaty-events.d.ts +7 -1
- package/dist/esm/src/schemas/wechaty-events.d.ts.map +1 -1
- package/dist/esm/src/schemas/wechaty-events.js.map +1 -1
- package/dist/esm/src/user-modules/im-specific.d.ts +28 -0
- package/dist/esm/src/user-modules/im-specific.d.ts.map +1 -0
- package/dist/esm/src/user-modules/im-specific.js +23 -0
- package/dist/esm/src/user-modules/im-specific.js.map +1 -0
- package/dist/esm/src/user-modules/mod.d.ts +4 -3
- package/dist/esm/src/user-modules/mod.d.ts.map +1 -1
- package/dist/esm/src/user-modules/mod.js +2 -1
- package/dist/esm/src/user-modules/mod.js.map +1 -1
- package/dist/esm/src/wechaty/wechaty-base.d.ts +17 -122
- package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/esm/src/wechaty/wechaty-impl.spec.js +3 -1
- package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
- package/dist/esm/src/wechaty-mixins/io-mixin.d.ts +2 -2
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +11 -5
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +11 -5
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +14 -6
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +14 -6
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.js +11 -0
- package/dist/esm/src/wechaty-mixins/puppet-mixin.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +5 -3
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +4 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/package.json +3 -3
- package/src/mods/impls.ts +3 -0
- package/src/mods/users.ts +1 -0
- package/src/package-json.ts +4 -4
- package/src/schemas/wechaty-events.ts +6 -0
- package/src/user-modules/im-specific.ts +48 -0
- package/src/user-modules/mod.ts +8 -0
- package/src/wechaty/wechaty-impl.spec.ts +3 -0
- package/src/wechaty-mixins/puppet-mixin.ts +13 -0
- package/src/wechaty-mixins/wechatify-user-module-mixin.ts +7 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { log } from '@juzi/wechaty-puppet';
|
|
2
|
-
import { ContactImpl, ContactSelfImpl, DelayImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, PostImpl, RoomImpl, RoomInvitationImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, ChannelCardImpl, ConsultCardImpl, PremiumOnlineAppointmentCardImpl, MomentImpl, CallRecordImpl, ChatHistoryImpl, WecomImpl, DouyinOneClickPhoneCollectionImpl, 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, PremiumOnlineAppointmentCardImpl, MomentImpl, CallRecordImpl, ChatHistoryImpl, WecomImpl, DouyinOneClickPhoneCollectionImpl, ImSpecificImpl, 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 {
|
|
@@ -30,6 +30,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
30
30
|
__wechatifiedChatHistory;
|
|
31
31
|
__wechatifiedWecom;
|
|
32
32
|
__wechatifiedDouyinOneClickPhoneCollection;
|
|
33
|
+
__wechatifiedImSpecific;
|
|
33
34
|
get Contact() { return guardWechatify(this.__wechatifiedContact); }
|
|
34
35
|
get ContactSelf() { return guardWechatify(this.__wechatifiedContactSelf); }
|
|
35
36
|
get Delay() { return guardWechatify(this.__wechatifiedDelay); }
|
|
@@ -53,6 +54,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
53
54
|
get ChatHistory() { return guardWechatify(this.__wechatifiedChatHistory); }
|
|
54
55
|
get Wecom() { return guardWechatify(this.__wechatifiedWecom); }
|
|
55
56
|
get DouyinOneClickPhoneCollection() { return guardWechatify(this.__wechatifiedDouyinOneClickPhoneCollection); }
|
|
57
|
+
get ImSpecific() { return guardWechatify(this.__wechatifiedImSpecific); }
|
|
56
58
|
async init() {
|
|
57
59
|
log.verbose('WechatifyUserModuleMixin', 'init()');
|
|
58
60
|
await super.init();
|
|
@@ -93,6 +95,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
93
95
|
this.__wechatifiedChatHistory = wechatifyUserModule(ChatHistoryImpl)(this);
|
|
94
96
|
this.__wechatifiedWecom = wechatifyUserModule(WecomImpl)(this);
|
|
95
97
|
this.__wechatifiedDouyinOneClickPhoneCollection = wechatifyUserModule(DouyinOneClickPhoneCollectionImpl)(this);
|
|
98
|
+
this.__wechatifiedImSpecific = wechatifyUserModule(ImSpecificImpl)(this);
|
|
96
99
|
log.verbose('WechatifyUserModuleMixin', 'init() initializing Wechaty User Module (WUM) ... done');
|
|
97
100
|
}
|
|
98
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wechatify-user-module-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAe,sBAAsB,CAAA;AAEnD,OAAO,EACL,WAAW,EACX,eAAe,EACf,SAAS,EACT,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,OAAO,EACP,YAAY,EACZ,WAAW,EACX,WAAW,EACX,eAAe,EACf,eAAe,EACf,gCAAgC,EAChC,UAAU,EACV,cAAc,EACd,eAAe,EACf,SAAS,EACT,iCAAiC,
|
|
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,QAA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CAAA;YAClG,IAAI,CAAC,wBAAwB,GAAoB,mBAAmB,CAAC,eAAe,CAAC,CAAC,IAAW,CAAC,CAAA;YAClG,IAAI,CAAC,yCAAyC,GAAG,mBAAmB,CAAC,gCAAgC,CAAC,CAAC,IAAW,CAAC,CAAA;YACnH,IAAI,CAAC,mBAAmB,GAAyB,mBAAmB,CAAC,UAAU,CAAC,CAAC,IAAW,CAAC,CAAA;YAC7F,IAAI,CAAC,uBAAuB,GAAqB,mBAAmB,CAAC,cAAc,CAAC,CAAC,IAAW,CAAC,CAAA;YACjG,IAAI,CAAC,wBAAwB,GAAoB,mBAAmB,CAAC,eAAe,CAAC,CAAC,IAAW,CAAC,CAAA;YAClG,IAAI,CAAC,kBAAkB,GAA0B,mBAAmB,CAAC,SAAS,CAAC,CAAC,IAAW,CAAC,CAAA;YAC5F,IAAI,CAAC,0CAA0C,GAAG,mBAAmB,CAAC,iCAAiC,CAAC,CAAC,IAAW,CAAC,CAAA;YACrH,IAAI,CAAC,uBAAuB,GAAsB,mBAAmB,CAAC,cAAc,CAAC,CAAC,IAAW,CAAC,CAAA;YAElG,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;AAiCD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juzi/wechaty",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.128",
|
|
4
4
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
},
|
|
110
110
|
"homepage": "https://github.com/wechaty/",
|
|
111
111
|
"dependencies": {
|
|
112
|
-
"@juzi/wechaty-puppet-service": "1.0.
|
|
112
|
+
"@juzi/wechaty-puppet-service": "1.0.113",
|
|
113
113
|
"clone-class": "^1.1.1",
|
|
114
114
|
"cmd-ts": "^0.10.0",
|
|
115
115
|
"cockatiel": "^2.0.2",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"@chatie/eslint-config": "^1.0.4",
|
|
133
133
|
"@chatie/semver": "^0.4.7",
|
|
134
134
|
"@chatie/tsconfig": "^4.6.3",
|
|
135
|
-
"@juzi/wechaty-puppet": "^1.0.
|
|
135
|
+
"@juzi/wechaty-puppet": "^1.0.125",
|
|
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
|
@@ -55,6 +55,7 @@ export {
|
|
|
55
55
|
ConsultCardImpl,
|
|
56
56
|
PremiumOnlineAppointmentCardImpl,
|
|
57
57
|
DouyinOneClickPhoneCollectionImpl,
|
|
58
|
+
ImSpecificImpl,
|
|
58
59
|
} from '../user-modules/mod.js'
|
|
59
60
|
|
|
60
61
|
// export {
|
|
@@ -101,6 +102,7 @@ export type {
|
|
|
101
102
|
ConsultCardInterface,
|
|
102
103
|
PremiumOnlineAppointmentCardInterface,
|
|
103
104
|
DouyinOneClickPhoneCollectionInterface,
|
|
105
|
+
ImSpecificInterface,
|
|
104
106
|
} from '../user-modules/mod.js'
|
|
105
107
|
|
|
106
108
|
export type {
|
|
@@ -127,6 +129,7 @@ export type {
|
|
|
127
129
|
ConsultCardConstructor,
|
|
128
130
|
PremiumOnlineAppointmentCardConstructor,
|
|
129
131
|
DouyinOneClickPhoneCollectionConstructor,
|
|
132
|
+
ImSpecificConstructor,
|
|
130
133
|
} from '../user-modules/mod.js'
|
|
131
134
|
|
|
132
135
|
export {
|
package/src/mods/users.ts
CHANGED
|
@@ -49,4 +49,5 @@ export type {
|
|
|
49
49
|
ConsultCardInterface as ConsultCard,
|
|
50
50
|
PremiumOnlineAppointmentCardInterface as PremiumOnlineAppointmentCard,
|
|
51
51
|
DouyinOneClickPhoneCollectionInterface as DouyinOneClickPhoneCollection,
|
|
52
|
+
ImSpecificInterface as ImSpecific,
|
|
52
53
|
} from '../user-modules/mod.js'
|
package/src/package-json.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { PackageJsonWechaty } from './config'
|
|
6
6
|
|
|
7
|
-
export const GIT_COMMIT_HASH: string = '
|
|
7
|
+
export const GIT_COMMIT_HASH: string = '9f9339f6c488e0dc1cc39d7c5da31bec93a17426'
|
|
8
8
|
export const packageJson: PackageJsonWechaty = {
|
|
9
9
|
"name": "@juzi/wechaty",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.128",
|
|
11
11
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
@@ -116,7 +116,7 @@ export const packageJson: PackageJsonWechaty = {
|
|
|
116
116
|
},
|
|
117
117
|
"homepage": "https://github.com/wechaty/",
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@juzi/wechaty-puppet-service": "1.0.
|
|
119
|
+
"@juzi/wechaty-puppet-service": "1.0.113",
|
|
120
120
|
"clone-class": "^1.1.1",
|
|
121
121
|
"cmd-ts": "^0.10.0",
|
|
122
122
|
"cockatiel": "^2.0.2",
|
|
@@ -139,7 +139,7 @@ export const packageJson: PackageJsonWechaty = {
|
|
|
139
139
|
"@chatie/eslint-config": "^1.0.4",
|
|
140
140
|
"@chatie/semver": "^0.4.7",
|
|
141
141
|
"@chatie/tsconfig": "^4.6.3",
|
|
142
|
-
"@juzi/wechaty-puppet": "^1.0.
|
|
142
|
+
"@juzi/wechaty-puppet": "^1.0.125",
|
|
143
143
|
"@juzi/wechaty-puppet-mock": "^1.0.1",
|
|
144
144
|
"@swc/core": "1.3.44",
|
|
145
145
|
"@swc/helpers": "^0.3.6",
|
|
@@ -70,8 +70,10 @@ type WechatyEventListenerTagGroup = (type: PUPPET.types.TagGroupEvent,
|
|
|
70
70
|
type WechatyEventListenerPostComment = (comment: PostInterface, post: PostInterface) => void | Promise<void>
|
|
71
71
|
type WechatyEventListenerPostTap = (post: PostInterface, contact: ContactInterface, type: PUPPET.types.Tap, tap: boolean, date?: Date) => void | Promise<void>
|
|
72
72
|
type WechatyEventListenerVerifyCode = (id: string, message: string, scene: PUPPET.types.VerifyCodeScene, status: PUPPET.types.VerifyCodeStatus) => void | Promise<void>
|
|
73
|
+
type WechatyEventListenerVerifySlide = (scene: PUPPET.types.VerifySlideScene, status: PUPPET.types.VerifySlideStatus, sliderExeUrl: string, sliderVerifyEncrypt: string) => void | Promise<void>
|
|
73
74
|
type WechatyEventListenerDirty = (id: string, type: PUPPET.types.Dirty) => void | Promise<void>
|
|
74
75
|
type WechatyEventListenerLoginUrl = (url: string) => void | Promise<void>
|
|
76
|
+
type WechatyEventListenerIntentComment = (payload: PUPPET.payloads.IntentComment) => void | Promise<void>
|
|
75
77
|
|
|
76
78
|
/**
|
|
77
79
|
* @desc Wechaty Class Event Type
|
|
@@ -261,6 +263,8 @@ interface WechatyEventListeners {
|
|
|
261
263
|
'verify-code' : WechatyEventListenerVerifyCode
|
|
262
264
|
'dirty' : WechatyEventListenerDirty
|
|
263
265
|
'login-url' : WechatyEventListenerLoginUrl
|
|
266
|
+
'intent-comment' : WechatyEventListenerIntentComment
|
|
267
|
+
'verify-slide' : WechatyEventListenerVerifySlide
|
|
264
268
|
}
|
|
265
269
|
|
|
266
270
|
const WechatyEventEmitter = EventEmitter as any as new () => TypedEventEmitter<
|
|
@@ -301,8 +305,10 @@ export type {
|
|
|
301
305
|
WechatyEventListenerPostComment,
|
|
302
306
|
WechatyEventListenerPostTap,
|
|
303
307
|
WechatyEventListenerVerifyCode,
|
|
308
|
+
WechatyEventListenerVerifySlide,
|
|
304
309
|
WechatyEventListenerDirty,
|
|
305
310
|
WechatyEventListenerLoginUrl,
|
|
311
|
+
WechatyEventListenerIntentComment,
|
|
306
312
|
}
|
|
307
313
|
export {
|
|
308
314
|
WechatyEventEmitter,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { log } from '@juzi/wechaty-puppet'
|
|
2
|
+
import type { Constructor } from 'clone-class'
|
|
3
|
+
|
|
4
|
+
import { validationMixin } from '../user-mixins/validation.js'
|
|
5
|
+
import {
|
|
6
|
+
wechatifyMixinBase,
|
|
7
|
+
} from '../user-mixins/wechatify.js'
|
|
8
|
+
import type { PaginationRequest } from '@juzi/wechaty-puppet/filters'
|
|
9
|
+
|
|
10
|
+
class ImSpecificMixin extends wechatifyMixinBase() {
|
|
11
|
+
|
|
12
|
+
// xiaohongshu
|
|
13
|
+
static async listIntentComment (
|
|
14
|
+
query: PaginationRequest,
|
|
15
|
+
) {
|
|
16
|
+
return this.wechaty.puppet.listIntentComments(query)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
static async getIntentComment (
|
|
20
|
+
id: string,
|
|
21
|
+
) {
|
|
22
|
+
return this.wechaty.puppet.intentCommentPayload(id)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/*
|
|
26
|
+
* @hideconstructor
|
|
27
|
+
*/
|
|
28
|
+
constructor () {
|
|
29
|
+
super()
|
|
30
|
+
log.verbose('ImSpecific', 'constructor()')
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
class ImSpecificImpl extends validationMixin(ImSpecificMixin)<ImSpecificInterface>() {}
|
|
36
|
+
interface ImSpecificInterface extends ImSpecificImpl {}
|
|
37
|
+
type ImSpecificConstructor = Constructor<
|
|
38
|
+
ImSpecificInterface,
|
|
39
|
+
typeof ImSpecificImpl
|
|
40
|
+
>
|
|
41
|
+
|
|
42
|
+
export type {
|
|
43
|
+
ImSpecificConstructor,
|
|
44
|
+
ImSpecificInterface,
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
ImSpecificImpl,
|
|
48
|
+
}
|
package/src/user-modules/mod.ts
CHANGED
|
@@ -142,6 +142,11 @@ import {
|
|
|
142
142
|
DouyinOneClickPhoneCollectionInterface,
|
|
143
143
|
DouyinOneClickPhoneCollectionConstructor,
|
|
144
144
|
} from './douyin-one-click-phone-collection.js'
|
|
145
|
+
import {
|
|
146
|
+
ImSpecificImpl,
|
|
147
|
+
ImSpecificInterface,
|
|
148
|
+
ImSpecificConstructor,
|
|
149
|
+
} from './im-specific.js'
|
|
145
150
|
|
|
146
151
|
import { wechatifyUserModule } from '../user-mixins/wechatify.js'
|
|
147
152
|
|
|
@@ -171,6 +176,7 @@ export type {
|
|
|
171
176
|
ChatHistoryInterface,
|
|
172
177
|
WecomInterface,
|
|
173
178
|
DouyinOneClickPhoneCollectionInterface,
|
|
179
|
+
ImSpecificInterface,
|
|
174
180
|
}
|
|
175
181
|
|
|
176
182
|
export type {
|
|
@@ -199,6 +205,7 @@ export type {
|
|
|
199
205
|
ChatHistoryConstructor,
|
|
200
206
|
WecomConstructor,
|
|
201
207
|
DouyinOneClickPhoneCollectionConstructor,
|
|
208
|
+
ImSpecificConstructor,
|
|
202
209
|
}
|
|
203
210
|
|
|
204
211
|
export {
|
|
@@ -229,4 +236,5 @@ export {
|
|
|
229
236
|
ChatHistoryImpl,
|
|
230
237
|
WecomImpl,
|
|
231
238
|
DouyinOneClickPhoneCollectionImpl,
|
|
239
|
+
ImSpecificImpl,
|
|
232
240
|
}
|
|
@@ -29,6 +29,7 @@ import type {
|
|
|
29
29
|
ChatHistoryConstructor,
|
|
30
30
|
WecomConstructor,
|
|
31
31
|
DouyinOneClickPhoneCollectionConstructor,
|
|
32
|
+
ImSpecificConstructor,
|
|
32
33
|
} from '../user-modules/mod.js'
|
|
33
34
|
|
|
34
35
|
import {
|
|
@@ -65,6 +66,7 @@ test('Wechaty interface', async t => {
|
|
|
65
66
|
ChatHistory : ChatHistoryConstructor
|
|
66
67
|
Wecom : WecomConstructor
|
|
67
68
|
DouyinOneClickPhoneCollection : DouyinOneClickPhoneCollectionConstructor
|
|
69
|
+
ImSpecific : ImSpecificConstructor
|
|
68
70
|
|
|
69
71
|
constructor () {
|
|
70
72
|
super()
|
|
@@ -92,6 +94,7 @@ test('Wechaty interface', async t => {
|
|
|
92
94
|
= this.ChatHistory
|
|
93
95
|
= this.Wecom
|
|
94
96
|
= this.DouyinOneClickPhoneCollection
|
|
97
|
+
= this.ImSpecific
|
|
95
98
|
= {} as any
|
|
96
99
|
}
|
|
97
100
|
|
|
@@ -646,6 +646,12 @@ const puppetMixin = <MixinBase extends WechatifyUserModuleMixin & GErrorMixin &
|
|
|
646
646
|
})
|
|
647
647
|
break
|
|
648
648
|
|
|
649
|
+
case 'verify-slide':
|
|
650
|
+
puppet.on('verify-slide', (payload) => {
|
|
651
|
+
this.emit('verify-slide', payload.scene || PUPPET.types.VerifySlideScene.UNKNOWN, payload.status || PUPPET.types.VerifySlideStatus.UNKNOWN, payload.sliderExeUrl || '', payload.sliderVerifyEncrypt || '')
|
|
652
|
+
})
|
|
653
|
+
break
|
|
654
|
+
|
|
649
655
|
case 'reset':
|
|
650
656
|
// Do not propagation `reset` event from puppet
|
|
651
657
|
break
|
|
@@ -712,6 +718,13 @@ const puppetMixin = <MixinBase extends WechatifyUserModuleMixin & GErrorMixin &
|
|
|
712
718
|
})
|
|
713
719
|
break
|
|
714
720
|
|
|
721
|
+
case 'intent-comment':
|
|
722
|
+
puppet.on('intent-comment', async ({ intentCommentId: id }) => {
|
|
723
|
+
const payload = await this.puppet.intentCommentPayload(id)
|
|
724
|
+
this.emit('intent-comment', payload)
|
|
725
|
+
})
|
|
726
|
+
break
|
|
727
|
+
|
|
715
728
|
default:
|
|
716
729
|
/**
|
|
717
730
|
* Check: The eventName here should have the type `never`
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
ChatHistoryImpl,
|
|
25
25
|
WecomImpl,
|
|
26
26
|
DouyinOneClickPhoneCollectionImpl,
|
|
27
|
+
ImSpecificImpl,
|
|
27
28
|
|
|
28
29
|
ContactConstructor,
|
|
29
30
|
ContactSelfConstructor,
|
|
@@ -48,6 +49,7 @@ import {
|
|
|
48
49
|
ChatHistoryConstructor,
|
|
49
50
|
WecomConstructor,
|
|
50
51
|
DouyinOneClickPhoneCollectionConstructor,
|
|
52
|
+
ImSpecificConstructor,
|
|
51
53
|
wechatifyUserModule,
|
|
52
54
|
} from '../user-modules/mod.js'
|
|
53
55
|
|
|
@@ -88,6 +90,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
|
|
|
88
90
|
__wechatifiedChatHistory? : ChatHistoryConstructor
|
|
89
91
|
__wechatifiedWecom? : WecomConstructor
|
|
90
92
|
__wechatifiedDouyinOneClickPhoneCollection? : DouyinOneClickPhoneCollectionConstructor
|
|
93
|
+
__wechatifiedImSpecific? : ImSpecificConstructor
|
|
91
94
|
|
|
92
95
|
get Contact () : ContactConstructor { return guardWechatify(this.__wechatifiedContact) }
|
|
93
96
|
get ContactSelf () : ContactSelfConstructor { return guardWechatify(this.__wechatifiedContactSelf) }
|
|
@@ -112,6 +115,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
|
|
|
112
115
|
get ChatHistory () : ChatHistoryConstructor { return guardWechatify(this.__wechatifiedChatHistory) }
|
|
113
116
|
get Wecom () : WecomConstructor { return guardWechatify(this.__wechatifiedWecom) }
|
|
114
117
|
get DouyinOneClickPhoneCollection () : DouyinOneClickPhoneCollectionConstructor { return guardWechatify(this.__wechatifiedDouyinOneClickPhoneCollection) }
|
|
118
|
+
get ImSpecific () : ImSpecificConstructor { return guardWechatify(this.__wechatifiedImSpecific) }
|
|
115
119
|
|
|
116
120
|
override async init (): Promise<void> {
|
|
117
121
|
log.verbose('WechatifyUserModuleMixin', 'init()')
|
|
@@ -156,6 +160,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
|
|
|
156
160
|
this.__wechatifiedChatHistory = wechatifyUserModule(ChatHistoryImpl)(this as any)
|
|
157
161
|
this.__wechatifiedWecom = wechatifyUserModule(WecomImpl)(this as any)
|
|
158
162
|
this.__wechatifiedDouyinOneClickPhoneCollection = wechatifyUserModule(DouyinOneClickPhoneCollectionImpl)(this as any)
|
|
163
|
+
this.__wechatifiedImSpecific = wechatifyUserModule(ImSpecificImpl)(this as any)
|
|
159
164
|
|
|
160
165
|
log.verbose('WechatifyUserModuleMixin', 'init() initializing Wechaty User Module (WUM) ... done')
|
|
161
166
|
}
|
|
@@ -199,6 +204,8 @@ type ProtectedPropertyWechatifyUserModuleMixin =
|
|
|
199
204
|
| '__wechatifiedCallRecord'
|
|
200
205
|
| '__wechatifiedChatHistory'
|
|
201
206
|
| '__wechatifiedWecom'
|
|
207
|
+
| '__wechatifiedDouyinOneClickPhoneCollection'
|
|
208
|
+
| '__wechatifiedImSpecific'
|
|
202
209
|
|
|
203
210
|
export type {
|
|
204
211
|
WechatifyUserModuleMixin,
|