@juzi/wechaty 1.0.69 → 1.0.70
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 +2 -2
- 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/user-modules/call.d.ts +34 -0
- package/dist/cjs/src/user-modules/call.d.ts.map +1 -0
- package/dist/cjs/src/user-modules/call.js +77 -0
- package/dist/cjs/src/user-modules/call.js.map +1 -0
- 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 +11 -0
- package/dist/cjs/src/user-modules/message.js.map +1 -1
- 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 +125 -0
- 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/login-mixin.d.ts +18 -0
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +9 -9
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +8 -0
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +4 -0
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -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 +3 -0
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/dist/esm/src/mods/impls.d.ts +2 -2
- 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/user-modules/call.d.ts +34 -0
- package/dist/esm/src/user-modules/call.d.ts.map +1 -0
- package/dist/esm/src/user-modules/call.js +51 -0
- package/dist/esm/src/user-modules/call.js.map +1 -0
- 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 +11 -0
- package/dist/esm/src/user-modules/message.js.map +1 -1
- 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 +125 -0
- 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/login-mixin.d.ts +18 -0
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +9 -9
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +8 -0
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +4 -0
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -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 -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 +2 -0
- package/src/mods/users.ts +1 -0
- package/src/package-json.ts +4 -4
- package/src/user-modules/call.ts +82 -0
- package/src/user-modules/message.ts +16 -0
- package/src/user-modules/mod.ts +8 -0
- package/src/wechaty/wechaty-impl.spec.ts +3 -0
- package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
package/src/user-modules/mod.ts
CHANGED
|
@@ -107,6 +107,11 @@ import {
|
|
|
107
107
|
ChannelInterface,
|
|
108
108
|
ChannelConstructor,
|
|
109
109
|
} from './channel.js'
|
|
110
|
+
import {
|
|
111
|
+
CallRecordImpl,
|
|
112
|
+
CallRecordInterface,
|
|
113
|
+
CallRecordConstructor,
|
|
114
|
+
} from './call.js'
|
|
110
115
|
|
|
111
116
|
import { wechatifyUserModule } from '../user-mixins/wechatify.js'
|
|
112
117
|
|
|
@@ -129,6 +134,7 @@ export type {
|
|
|
129
134
|
DelayInterface,
|
|
130
135
|
UrlLinkInterface,
|
|
131
136
|
ChannelInterface,
|
|
137
|
+
CallRecordInterface,
|
|
132
138
|
}
|
|
133
139
|
|
|
134
140
|
export type {
|
|
@@ -150,6 +156,7 @@ export type {
|
|
|
150
156
|
TagGroupConstructor,
|
|
151
157
|
UrlLinkConstructor,
|
|
152
158
|
ChannelConstructor,
|
|
159
|
+
CallRecordConstructor,
|
|
153
160
|
}
|
|
154
161
|
|
|
155
162
|
export {
|
|
@@ -173,4 +180,5 @@ export {
|
|
|
173
180
|
TagGroupImpl,
|
|
174
181
|
UrlLinkImpl,
|
|
175
182
|
ChannelImpl,
|
|
183
|
+
CallRecordImpl,
|
|
176
184
|
}
|
|
@@ -22,6 +22,7 @@ import type {
|
|
|
22
22
|
MessageInterface,
|
|
23
23
|
ChannelConstructor,
|
|
24
24
|
MomentConstructor,
|
|
25
|
+
CallRecordConstructor,
|
|
25
26
|
} from '../user-modules/mod.js'
|
|
26
27
|
|
|
27
28
|
import {
|
|
@@ -51,6 +52,7 @@ test('Wechaty interface', async t => {
|
|
|
51
52
|
UrlLink : UrlLinkConstructor
|
|
52
53
|
Channel : ChannelConstructor
|
|
53
54
|
Moment : MomentConstructor
|
|
55
|
+
CallRecord : CallRecordConstructor
|
|
54
56
|
|
|
55
57
|
constructor () {
|
|
56
58
|
super()
|
|
@@ -71,6 +73,7 @@ test('Wechaty interface', async t => {
|
|
|
71
73
|
= this.UrlLink
|
|
72
74
|
= this.Channel
|
|
73
75
|
= this.Moment
|
|
76
|
+
= this.CallRecord
|
|
74
77
|
= {} as any
|
|
75
78
|
}
|
|
76
79
|
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
UrlLinkImpl,
|
|
18
18
|
ChannelImpl,
|
|
19
19
|
MomentImpl,
|
|
20
|
+
CallRecordImpl,
|
|
20
21
|
|
|
21
22
|
ContactConstructor,
|
|
22
23
|
ContactSelfConstructor,
|
|
@@ -34,6 +35,7 @@ import {
|
|
|
34
35
|
UrlLinkConstructor,
|
|
35
36
|
ChannelConstructor,
|
|
36
37
|
MomentConstructor,
|
|
38
|
+
CallRecordConstructor,
|
|
37
39
|
|
|
38
40
|
wechatifyUserModule,
|
|
39
41
|
} from '../user-modules/mod.js'
|
|
@@ -68,6 +70,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
|
|
|
68
70
|
__wechatifiedUrlLink? : UrlLinkConstructor
|
|
69
71
|
__wechatifiedChannel? : ChannelConstructor
|
|
70
72
|
__wechatifiedMoment? : MomentConstructor
|
|
73
|
+
__wechatifiedCallRecord? : CallRecordConstructor
|
|
71
74
|
|
|
72
75
|
get Contact () : ContactConstructor { return guardWechatify(this.__wechatifiedContact) }
|
|
73
76
|
get ContactSelf () : ContactSelfConstructor { return guardWechatify(this.__wechatifiedContactSelf) }
|
|
@@ -85,6 +88,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
|
|
|
85
88
|
get UrlLink () : UrlLinkConstructor { return guardWechatify(this.__wechatifiedUrlLink) }
|
|
86
89
|
get Channel () : ChannelConstructor { return guardWechatify(this.__wechatifiedChannel) }
|
|
87
90
|
get Moment () : MomentConstructor { return guardWechatify(this.__wechatifiedMoment) }
|
|
91
|
+
get CallRecord () : CallRecordConstructor { return guardWechatify(this.__wechatifiedCallRecord) }
|
|
88
92
|
|
|
89
93
|
override async init (): Promise<void> {
|
|
90
94
|
log.verbose('WechatifyUserModuleMixin', 'init()')
|
|
@@ -122,6 +126,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
|
|
|
122
126
|
this.__wechatifiedUrlLink = wechatifyUserModule(UrlLinkImpl)(this as any)
|
|
123
127
|
this.__wechatifiedChannel = wechatifyUserModule(ChannelImpl)(this as any)
|
|
124
128
|
this.__wechatifiedMoment = wechatifyUserModule(MomentImpl)(this as any)
|
|
129
|
+
this.__wechatifiedCallRecord = wechatifyUserModule(CallRecordImpl)(this as any)
|
|
125
130
|
|
|
126
131
|
log.verbose('WechatifyUserModuleMixin', 'init() initializing Wechaty User Module (WUM) ... done')
|
|
127
132
|
}
|
|
@@ -159,6 +164,7 @@ type ProtectedPropertyWechatifyUserModuleMixin =
|
|
|
159
164
|
| '__wechatifiedUrlLink'
|
|
160
165
|
| '__wechatifiedChannel'
|
|
161
166
|
| '__wechatifiedMoment'
|
|
167
|
+
| '__wechatifiedCallRecord'
|
|
162
168
|
|
|
163
169
|
export type {
|
|
164
170
|
WechatifyUserModuleMixin,
|