@juzi/wechaty 1.0.125 → 1.0.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/mods/impls.d.ts +3 -3
- package/dist/cjs/src/mods/impls.d.ts.map +1 -1
- package/dist/cjs/src/mods/impls.js +2 -1
- package/dist/cjs/src/mods/impls.js.map +1 -1
- package/dist/cjs/src/mods/users.d.ts +1 -1
- package/dist/cjs/src/mods/users.d.ts.map +1 -1
- package/dist/cjs/src/package-json.js +3 -3
- package/dist/cjs/src/schemas/wechaty-events.d.ts +4 -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/user-modules/premium-online-appointment-card.d.ts +1 -1
- 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 +1 -1
- package/dist/cjs/src/user-modules/premium-online-appointment-card.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 +6 -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 +3 -3
- package/dist/esm/src/schemas/wechaty-events.d.ts +4 -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/user-modules/premium-online-appointment-card.d.ts +1 -1
- 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 +1 -1
- package/dist/esm/src/user-modules/premium-online-appointment-card.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 +6 -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 +2 -2
- package/src/mods/impls.ts +3 -0
- package/src/mods/users.ts +1 -0
- package/src/package-json.ts +3 -3
- package/src/schemas/wechaty-events.ts +3 -0
- package/src/user-modules/im-specific.ts +48 -0
- package/src/user-modules/mod.ts +8 -0
- package/src/user-modules/premium-online-appointment-card.ts +2 -2
- package/src/wechaty/wechaty-impl.spec.ts +3 -0
- package/src/wechaty-mixins/puppet-mixin.ts +7 -0
- package/src/wechaty-mixins/wechatify-user-module-mixin.ts +7 -0
|
@@ -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,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,EACjC,cAAc,EA0Bd,mBAAmB,GACpB,MAA4B,wBAAwB,CAAA;AAMrD,MAAM,wBAAwB,GAAG,CAA4C,SAAoB,EAAE,EAAE;IACnG,GAAG,CAAC,OAAO,CAAC,0B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AAc,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.127",
|
|
4
4
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"@chatie/eslint-config": "^1.0.4",
|
|
133
133
|
"@chatie/semver": "^0.4.7",
|
|
134
134
|
"@chatie/tsconfig": "^4.6.3",
|
|
135
|
-
"@juzi/wechaty-puppet": "^1.0.
|
|
135
|
+
"@juzi/wechaty-puppet": "^1.0.122",
|
|
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 = 'c79090ac18e413b433e2ed9f569805c3a65debae'
|
|
8
8
|
export const packageJson: PackageJsonWechaty = {
|
|
9
9
|
"name": "@juzi/wechaty",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.127",
|
|
11
11
|
"description": "Wechaty is a RPA SDK for Chatbot Makers.",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"exports": {
|
|
@@ -139,7 +139,7 @@ export const packageJson: PackageJsonWechaty = {
|
|
|
139
139
|
"@chatie/eslint-config": "^1.0.4",
|
|
140
140
|
"@chatie/semver": "^0.4.7",
|
|
141
141
|
"@chatie/tsconfig": "^4.6.3",
|
|
142
|
-
"@juzi/wechaty-puppet": "^1.0.
|
|
142
|
+
"@juzi/wechaty-puppet": "^1.0.122",
|
|
143
143
|
"@juzi/wechaty-puppet-mock": "^1.0.1",
|
|
144
144
|
"@swc/core": "1.3.44",
|
|
145
145
|
"@swc/helpers": "^0.3.6",
|
|
@@ -72,6 +72,7 @@ type WechatyEventListenerPostTap = (post: PostInterface, contact: Con
|
|
|
72
72
|
type WechatyEventListenerVerifyCode = (id: string, message: string, scene: PUPPET.types.VerifyCodeScene, status: PUPPET.types.VerifyCodeStatus) => void | Promise<void>
|
|
73
73
|
type WechatyEventListenerDirty = (id: string, type: PUPPET.types.Dirty) => void | Promise<void>
|
|
74
74
|
type WechatyEventListenerLoginUrl = (url: string) => void | Promise<void>
|
|
75
|
+
type WechatyEventListenerIntentComment = (payload: PUPPET.payloads.IntentComment) => void | Promise<void>
|
|
75
76
|
|
|
76
77
|
/**
|
|
77
78
|
* @desc Wechaty Class Event Type
|
|
@@ -261,6 +262,7 @@ interface WechatyEventListeners {
|
|
|
261
262
|
'verify-code' : WechatyEventListenerVerifyCode
|
|
262
263
|
'dirty' : WechatyEventListenerDirty
|
|
263
264
|
'login-url' : WechatyEventListenerLoginUrl
|
|
265
|
+
'intent-comment' : WechatyEventListenerIntentComment
|
|
264
266
|
}
|
|
265
267
|
|
|
266
268
|
const WechatyEventEmitter = EventEmitter as any as new () => TypedEventEmitter<
|
|
@@ -303,6 +305,7 @@ export type {
|
|
|
303
305
|
WechatyEventListenerVerifyCode,
|
|
304
306
|
WechatyEventListenerDirty,
|
|
305
307
|
WechatyEventListenerLoginUrl,
|
|
308
|
+
WechatyEventListenerIntentComment,
|
|
306
309
|
}
|
|
307
310
|
export {
|
|
308
311
|
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
|
}
|
|
@@ -18,14 +18,14 @@ class PremiumOnlineAppointmentCardMixin extends wechatifyMixinBase() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
static async findAll (query: {
|
|
21
|
-
|
|
21
|
+
cardType?: string,
|
|
22
22
|
page?: number,
|
|
23
23
|
pageSize?: number
|
|
24
24
|
}): Promise<PremiumOnlineAppointmentCardInterface[]> {
|
|
25
25
|
log.verbose('PremiumOnlineAppointmentCard', 'findAll(%s)', JSON.stringify(query))
|
|
26
26
|
|
|
27
27
|
const params = {
|
|
28
|
-
|
|
28
|
+
cardType: query.cardType || 'card',
|
|
29
29
|
page: query.page || 1,
|
|
30
30
|
pageSize: query.pageSize || 50,
|
|
31
31
|
}
|
|
@@ -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
|
|
|
@@ -712,6 +712,13 @@ const puppetMixin = <MixinBase extends WechatifyUserModuleMixin & GErrorMixin &
|
|
|
712
712
|
})
|
|
713
713
|
break
|
|
714
714
|
|
|
715
|
+
case 'intent-comment':
|
|
716
|
+
puppet.on('intent-comment', async ({ intentCommentId: id }) => {
|
|
717
|
+
const payload = await this.puppet.intentCommentPayload(id)
|
|
718
|
+
this.emit('intent-comment', payload)
|
|
719
|
+
})
|
|
720
|
+
break
|
|
721
|
+
|
|
715
722
|
default:
|
|
716
723
|
/**
|
|
717
724
|
* 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,
|