@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wechaty-base.d.ts","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-base.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAQ9C,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACR,MAAkC,mBAAmB,CAAA;AAWtD,OAAO,EACL,eAAe,EAChB,MAAkC,uBAAuB,CAAA;AAC1D,OAAO,KAAK,EACV,gBAAgB,EACjB,MAAkC,mBAAmB,CAAA;AACtD,OAAO,KAAK,EACV,cAAc,EACf,MAAkC,+BAA+B,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"wechaty-base.d.ts","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-base.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MA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,SAAU;IAC5C,QAAQ,CAAC,OAAO,EAAG,gBAAgB,CAAA;IAEnC,QAAQ,CAAC,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,EAAE,CAAK;IAE/C;;;;;;;;;;;;;;;;;;;OAmBG;IAEH;;;;;;;;;;;;;;;OAeG;IAEH;;;;OAIG;gBAEQ,SAAS,GAAE,cAAmB;IAS1B,KAAK,IAAK,OAAO,CAAC,IAAI,CAAC;IAMvB,OAAO,IAAK,OAAO,CAAC,IAAI,CAAC;IAmBzB,MAAM,IAAK,OAAO,CAAC,IAAI,CAAC;IAgBvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IAEG,GAAG,CACP,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IAKV,OAAO,CACX,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,GAAG,aAAa,CAAC;IAY1B,SAAS,CACb,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,CAAC;IAYV,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IAMV,gBAAgB,CACpB,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,IAAI,CAAC;IAMV,aAAa,IAChB,OAAO,CAAC,IAAI,CAAC;CAUjB;AAED,aAAK,4BAA4B,GAE7B,oBAAoB,GACpB,gCAAgC,GAChC,SAAS,GACT,SAAS,GACT,QAAQ,CAAA;AAEZ,YAAY,EACV,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
|
|
@@ -23,6 +23,7 @@ test('Wechaty interface', async (t) => {
|
|
|
23
23
|
UrlLink;
|
|
24
24
|
Channel;
|
|
25
25
|
Moment;
|
|
26
|
+
CallRecord;
|
|
26
27
|
constructor() {
|
|
27
28
|
super();
|
|
28
29
|
// this.puppet
|
|
@@ -42,7 +43,8 @@ test('Wechaty interface', async (t) => {
|
|
|
42
43
|
= this.UrlLink
|
|
43
44
|
= this.Channel
|
|
44
45
|
= this.Moment
|
|
45
|
-
=
|
|
46
|
+
= this.CallRecord
|
|
47
|
+
= {};
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
const WechatyTest = WechatyImplementation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,UAAU,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,UAAU,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAuBlE,OAAO,EAIL,WAAW;AACX,sBAAsB;EACvB,MAA4B,mBAAmB,CAAA;AAEhD,IAAI,CAAC,mBAAmB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAClC,MAAe,qBAAsB,SAAQ,mBAAmB;QAE9D,OAAO,CAA4B;QACnC,WAAW,CAA4B;QACvC,KAAK,CAA4B;QACjC,UAAU,CAA4B;QACtC,KAAK,CAA4B;QACjC,QAAQ,CAA4B;QACpC,OAAO,CAA4B;QACnC,WAAW,CAA4B;QACvC,IAAI,CAA4B;QAChC,IAAI,CAA4B;QAChC,cAAc,CAA4B;QAC1C,GAAG,CAA4B;QAC/B,QAAQ,CAA4B;QACpC,OAAO,CAA4B;QACnC,OAAO,CAA4B;QACnC,MAAM,CAA4B;QAClC,UAAU,CAA4B;QAEtC;YACE,KAAK,EAAE,CAAA;YACP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AAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,sDAAsD,CAAC,CAAA;IAEtF,MAAM,OAAO,CAAC,IAAI,EAAE,CAAA;IACpB,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,yDAAyD,CAAC,CAAA;IAC/F,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,4DAA4D,CAAC,CAAA;AACpF,CAAC,CAAC,CAAA"}
|
|
@@ -27,9 +27,14 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
27
27
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
28
28
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
29
29
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
30
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
30
31
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
31
32
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
32
33
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
34
|
+
/**
|
|
35
|
+
* Will be removed after Dec 31, 2022
|
|
36
|
+
* @deprecated use {@link Wechaty#currentUser} instead
|
|
37
|
+
*/
|
|
33
38
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
34
39
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
35
40
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
@@ -43,6 +48,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
43
48
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
44
49
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
45
50
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
51
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
46
52
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
47
53
|
readonly id: string;
|
|
48
54
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
@@ -88,9 +94,14 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
88
94
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
89
95
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
90
96
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
97
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
91
98
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
92
99
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
93
100
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
101
|
+
/**
|
|
102
|
+
* Will be removed after Dec 31, 2022
|
|
103
|
+
* @deprecated use {@link Wechaty#currentUser} instead
|
|
104
|
+
*/
|
|
94
105
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
95
106
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
96
107
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
@@ -104,6 +115,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
104
115
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
105
116
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
106
117
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
118
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
107
119
|
init(): Promise<void>;
|
|
108
120
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
109
121
|
readonly id: string;
|
|
@@ -279,9 +291,14 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
279
291
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
280
292
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
281
293
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
294
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
282
295
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
283
296
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
284
297
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
298
|
+
/**
|
|
299
|
+
* Will be removed after Dec 31, 2022
|
|
300
|
+
* @deprecated use {@link Wechaty#currentUser} instead
|
|
301
|
+
*/
|
|
285
302
|
readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
|
|
286
303
|
readonly Image: import("../user-modules/image.js").ImageConstructor;
|
|
287
304
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
@@ -295,6 +312,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
295
312
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
296
313
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
297
314
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
315
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
298
316
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
299
317
|
emitError(e: any): void;
|
|
300
318
|
__io?: import("../io.js").Io | undefined;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmFZ;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAHH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAtCmB,GAAG,EAAE;;IAvC3B;;;;;;;OAOG;;IAMH;;;;;;;;;;OAUG;;;YAqBqB,QAAQ,IAAI,CAAC;IAUrC;;;;;;OAMG;cACc,QAAQ,IAAI,CAAC;IAK9B;;OAEG;gBACU,OAAO;IAKpB;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAHH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;cAWN,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"}
|
|
@@ -16,9 +16,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
16
16
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
17
17
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
18
18
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
19
|
-
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
19
|
+
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
22
20
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
23
21
|
__wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
|
|
24
22
|
__wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
|
|
@@ -28,6 +26,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
28
26
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
29
27
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
30
28
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
29
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
31
30
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
32
31
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
33
32
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -44,6 +43,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
44
43
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
45
44
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
46
45
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
46
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
47
47
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
48
48
|
readonly id: string;
|
|
49
49
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
@@ -81,9 +81,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
81
81
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
82
82
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
83
83
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
84
|
-
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
85
|
-
* @private
|
|
86
|
-
*/
|
|
84
|
+
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
87
85
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
88
86
|
__wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
|
|
89
87
|
__wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
|
|
@@ -93,6 +91,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
93
91
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
94
92
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
95
93
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
94
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
96
95
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
97
96
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
98
97
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -109,6 +108,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
109
108
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
110
109
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
111
110
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
111
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
112
112
|
init(): Promise<void>;
|
|
113
113
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
114
114
|
readonly id: string;
|
|
@@ -269,9 +269,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
269
269
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
270
270
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
271
271
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
272
|
-
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
273
|
-
* @private
|
|
274
|
-
*/
|
|
272
|
+
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
275
273
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
276
274
|
__wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
|
|
277
275
|
__wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
|
|
@@ -281,6 +279,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
281
279
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
282
280
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
283
281
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
282
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
284
283
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
285
284
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
286
285
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -297,6 +296,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
297
296
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
298
297
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
299
298
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
299
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
300
300
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
301
301
|
emitError(e: any): void;
|
|
302
302
|
__io?: import("../io.js").Io | undefined;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAuDX;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;sDApDmB,GAAG,EAAE;IAI3B;;OAEG;;IAcH;;;OAGG;;IAKH;;;;;;;;OAQG;eACS,MAAM;IAIlB;;OAEG;wBACwB,MAAM,GAAG,QAAQ,IAAI,CAAC;IAMjD;;OAEG;gBACU,MAAM,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;gDAH1B;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcN,CAAA;AAED,aAAK,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAA;AAE7C,aAAK,0BAA0B,GAAG,KAAK,CAAA;AAEvC,YAAY,EACV,SAAS,EACT,0BAA0B,GAC3B,CAAA;AACD,OAAO,EACL,SAAS,GACV,CAAA"}
|
|
@@ -104,6 +104,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
104
104
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
105
105
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
106
106
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
107
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
107
108
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
108
109
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
109
110
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -120,6 +121,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
120
121
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
121
122
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
122
123
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
124
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
123
125
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
124
126
|
emitError(e: any): void;
|
|
125
127
|
__io?: import("../io.js").Io | undefined;
|
|
@@ -154,6 +156,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
154
156
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
155
157
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
156
158
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
159
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
157
160
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
158
161
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
159
162
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -170,6 +173,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
170
173
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
171
174
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
172
175
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
176
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
173
177
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
174
178
|
readonly id: string;
|
|
175
179
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
@@ -215,6 +219,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
215
219
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
216
220
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
217
221
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
222
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
218
223
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
219
224
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
220
225
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -231,6 +236,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
231
236
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
232
237
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
233
238
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
239
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
234
240
|
init(): Promise<void>;
|
|
235
241
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
236
242
|
readonly id: string;
|
|
@@ -383,6 +389,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
383
389
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
384
390
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
385
391
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
392
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
386
393
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
387
394
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
388
395
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -399,6 +406,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
399
406
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
400
407
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
401
408
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
409
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
402
410
|
__io?: import("../io.js").Io | undefined;
|
|
403
411
|
readonly io: import("../io.js").Io;
|
|
404
412
|
__ioToken?: string | undefined;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASb;;;;;;;;;;;;;;;;;;OAkBG
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAtBmB,GAAG,EAAE;IAI3B;;;;;;;;;;;;;;;;;;OAkBG;oBAEW,CACV,aAAa,GAAG,aAAa,EAAE,CAChC,EAAE,GACF,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAvB3B;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCN,CAAA;AAED,aAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAEjD,aAAK,4BAA4B,GAAG,KAAK,CAAA;AAEzC,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,WAAW,GACZ,CAAA"}
|
|
@@ -25,6 +25,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
25
25
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
26
26
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
27
27
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
28
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
28
29
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
29
30
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
30
31
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -41,6 +42,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
41
42
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
42
43
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
43
44
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
45
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
44
46
|
init(): Promise<void>;
|
|
45
47
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
46
48
|
readonly id: string;
|
|
@@ -155,6 +157,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
155
157
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
156
158
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
157
159
|
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
160
|
+
__wechatifiedCallRecord?: import("../user-modules/call.js").CallRecordConstructor | undefined;
|
|
158
161
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
159
162
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
160
163
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -171,6 +174,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
171
174
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
172
175
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
173
176
|
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
177
|
+
readonly CallRecord: import("../user-modules/call.js").CallRecordConstructor;
|
|
174
178
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
175
179
|
readonly id: string;
|
|
176
180
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"puppet-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/puppet-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAW,sBAAsB,CAAA;AAQnD,OAAO,EAEL,gBAAgB,EAChB,oBAAoB,EACrB,MAAO,cAAc,CAAA;AAuBtB;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"puppet-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/puppet-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAW,sBAAsB,CAAA;AAQnD,OAAO,EAEL,gBAAgB,EAChB,oBAAoB,EACrB,MAAO,cAAc,CAAA;AAuBtB;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAqBS,GAAG,EAAE;;;2BANH,oBAAoB;sBAE1B,gBAAgB;;aAmBT,QAAQ,IAAI,CAAC;YA+Cd,QAAQ,IAAI,CAAC;aAuBrB,QAAQ,IAAI,CAAC;YAML,QAAQ,IAAI,CAAC;gCA8CR,OAAO,KAAK,CAAC,eAAe,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwlBnE,CAAA;AAED,aAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAEjD,aAAK,4BAA4B,GAC7B,UAAU,GACV,cAAc,GACd,qBAAqB,GACrB,kBAAkB,CAAA;AAEtB,YAAY,EACV,WAAW,EACX,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, MomentConstructor } from '../user-modules/mod.js';
|
|
1
|
+
import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, MomentConstructor, CallRecordConstructor } from '../user-modules/mod.js';
|
|
2
2
|
import type { WechatySkeleton } from '../wechaty/mod.js';
|
|
3
3
|
declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleton>(mixinBase: MixinBase) => ((abstract new (...args: any[]) => {
|
|
4
4
|
__wechatifiedContact?: ContactConstructor | undefined;
|
|
@@ -17,6 +17,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
17
17
|
__wechatifiedUrlLink?: UrlLinkConstructor | undefined;
|
|
18
18
|
__wechatifiedChannel?: ChannelConstructor | undefined;
|
|
19
19
|
__wechatifiedMoment?: MomentConstructor | undefined;
|
|
20
|
+
__wechatifiedCallRecord?: CallRecordConstructor | undefined;
|
|
20
21
|
readonly Contact: ContactConstructor;
|
|
21
22
|
readonly ContactSelf: ContactSelfConstructor;
|
|
22
23
|
readonly Delay: DelayConstructor;
|
|
@@ -33,6 +34,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
33
34
|
readonly UrlLink: UrlLinkConstructor;
|
|
34
35
|
readonly Channel: ChannelConstructor;
|
|
35
36
|
readonly Moment: MomentConstructor;
|
|
37
|
+
readonly CallRecord: CallRecordConstructor;
|
|
36
38
|
init(): Promise<void>;
|
|
37
39
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
38
40
|
readonly id: string;
|
|
@@ -61,7 +63,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
|
|
|
61
63
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
62
64
|
}) & MixinBase;
|
|
63
65
|
declare type WechatifyUserModuleMixin = ReturnType<typeof wechatifyUserModuleMixin>;
|
|
64
|
-
declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedMoment';
|
|
66
|
+
declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedMoment' | '__wechatifiedCallRecord';
|
|
65
67
|
export type { WechatifyUserModuleMixin, ProtectedPropertyWechatifyUserModuleMixin, };
|
|
66
68
|
export { wechatifyUserModuleMixin, };
|
|
67
69
|
//# sourceMappingURL=wechatify-user-module-mixin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wechatify-user-module-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"wechatify-user-module-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,EAmBL,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EAGtB,MAA4B,wBAAwB,CAAA;AAErD,OAAO,KAAK,EACV,eAAe,EAChB,MAAkC,mBAAmB,CAAA;AAEtD,QAAA,MAAM,wBAAwB,+FAKJ,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAyCH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cA4CxC,CAAA;AAYD,aAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE3E,aAAK,yCAAyC,GAC1C,sBAAsB,GACtB,0BAA0B,GAC1B,oBAAoB,GACpB,yBAAyB,GACzB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,0BAA0B,GAC1B,mBAAmB,GACnB,6BAA6B,GAC7B,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,sBAAsB,GACtB,qBAAqB,GACrB,yBAAyB,CAAA;AAE7B,YAAY,EACV,wBAAwB,EACxB,yCAAyC,GAC1C,CAAA;AACD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
|
|
@@ -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, MomentImpl, wechatifyUserModule, } from '../user-modules/mod.js';
|
|
2
|
+
import { ContactImpl, ContactSelfImpl, DelayImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, PostImpl, RoomImpl, RoomInvitationImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, MomentImpl, CallRecordImpl, 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 {
|
|
@@ -23,6 +23,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
23
23
|
__wechatifiedUrlLink;
|
|
24
24
|
__wechatifiedChannel;
|
|
25
25
|
__wechatifiedMoment;
|
|
26
|
+
__wechatifiedCallRecord;
|
|
26
27
|
get Contact() { return guardWechatify(this.__wechatifiedContact); }
|
|
27
28
|
get ContactSelf() { return guardWechatify(this.__wechatifiedContactSelf); }
|
|
28
29
|
get Delay() { return guardWechatify(this.__wechatifiedDelay); }
|
|
@@ -39,6 +40,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
39
40
|
get UrlLink() { return guardWechatify(this.__wechatifiedUrlLink); }
|
|
40
41
|
get Channel() { return guardWechatify(this.__wechatifiedChannel); }
|
|
41
42
|
get Moment() { return guardWechatify(this.__wechatifiedMoment); }
|
|
43
|
+
get CallRecord() { return guardWechatify(this.__wechatifiedCallRecord); }
|
|
42
44
|
async init() {
|
|
43
45
|
log.verbose('WechatifyUserModuleMixin', 'init()');
|
|
44
46
|
await super.init();
|
|
@@ -72,6 +74,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
|
|
|
72
74
|
this.__wechatifiedUrlLink = wechatifyUserModule(UrlLinkImpl)(this);
|
|
73
75
|
this.__wechatifiedChannel = wechatifyUserModule(ChannelImpl)(this);
|
|
74
76
|
this.__wechatifiedMoment = wechatifyUserModule(MomentImpl)(this);
|
|
77
|
+
this.__wechatifiedCallRecord = wechatifyUserModule(CallRecordImpl)(this);
|
|
75
78
|
log.verbose('WechatifyUserModuleMixin', 'init() initializing Wechaty User Module (WUM) ... done');
|
|
76
79
|
}
|
|
77
80
|
}
|
|
@@ -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,UAAU,
|
|
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,UAAU,EACV,cAAc,EAoBd,mBAAmB,GACpB,MAA4B,wBAAwB,CAAA;AAMrD,MAAM,wBAAwB,GAAG,CAA4C,SAAoB,EAAE,EAAE;IACnG,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,8BAA8B,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAEvF,MAAe,wBAAyB,SAAQ,SAAS;QAEvD,YAAa,GAAG,IAAW;YACzB,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,eAAe,CAAC,CAAA;YACxD,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;QAChB,CAAC;QAED,oBAAoB,CAA6B;QACjD,wBAAwB,CAA6B;QACrD,kBAAkB,CAA6B;QAC/C,uBAAuB,CAA6B;QACpD,kBAAkB,CAA6B;QAC/C,qBAAqB,CAA6B;QAClD,oBAAoB,CAA6B;QACjD,wBAAwB,CAA6B;QACrD,iBAAiB,CAA6B;QAC9C,iBAAiB,CAA6B;QAC9C,2BAA2B,CAA6B;QACxD,gBAAgB,CAA6B;QAC7C,qBAAqB,CAA6B;QAClD,oBAAoB,CAA6B;QACjD,oBAAoB,CAA6B;QACjD,mBAAmB,CAA6B;QAChD,uBAAuB,CAA6B;QAEpD,IAAI,OAAO,KA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": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
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.73",
|
|
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.63",
|
|
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
|
@@ -49,6 +49,7 @@ export {
|
|
|
49
49
|
TagGroupImpl,
|
|
50
50
|
UrlLinkImpl,
|
|
51
51
|
ChannelImpl,
|
|
52
|
+
CallRecordImpl,
|
|
52
53
|
} from '../user-modules/mod.js'
|
|
53
54
|
|
|
54
55
|
// export {
|
|
@@ -89,6 +90,7 @@ export type {
|
|
|
89
90
|
TagGroupInterface,
|
|
90
91
|
UrlLinkInterface,
|
|
91
92
|
ChannelInterface,
|
|
93
|
+
CallRecordInterface,
|
|
92
94
|
} from '../user-modules/mod.js'
|
|
93
95
|
|
|
94
96
|
export type {
|
package/src/mods/users.ts
CHANGED
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 = '79be2c6076f9017e4c4073517fe81e54f3a56a15'
|
|
8
8
|
export const packageJson: PackageJsonWechaty = {
|
|
9
9
|
"name": "@juzi/wechaty",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.70",
|
|
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.73",
|
|
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.63",
|
|
143
143
|
"@juzi/wechaty-puppet-mock": "^1.0.1",
|
|
144
144
|
"@swc/core": "1.3.44",
|
|
145
145
|
"@swc/helpers": "^0.3.6",
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as PUPPET from '@juzi/wechaty-puppet'
|
|
2
|
+
|
|
3
|
+
import type { Constructor } from 'clone-class'
|
|
4
|
+
import { log } from '../config.js'
|
|
5
|
+
|
|
6
|
+
import { validationMixin } from '../user-mixins/validation.js'
|
|
7
|
+
|
|
8
|
+
import {
|
|
9
|
+
wechatifyMixinBase,
|
|
10
|
+
} from '../user-mixins/wechatify.js'
|
|
11
|
+
import type { ContactImpl, ContactInterface } from './contact.js'
|
|
12
|
+
|
|
13
|
+
class CallRecordMixin extends wechatifyMixinBase() {
|
|
14
|
+
|
|
15
|
+
static async create (): Promise<CallRecordInterface> {
|
|
16
|
+
log.verbose('CallRecord', 'create()')
|
|
17
|
+
|
|
18
|
+
const payload: PUPPET.payloads.CallRecord = {
|
|
19
|
+
starter: 'todo',
|
|
20
|
+
participants: [ 'todo' ],
|
|
21
|
+
length: 0,
|
|
22
|
+
type: 0,
|
|
23
|
+
status: 0,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return new this(payload)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/*
|
|
30
|
+
* @hideconstructor
|
|
31
|
+
*/
|
|
32
|
+
constructor (
|
|
33
|
+
public readonly payload: PUPPET.payloads.CallRecord,
|
|
34
|
+
) {
|
|
35
|
+
super()
|
|
36
|
+
log.verbose('CallRecord', 'constructor()')
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
starter (): undefined | ContactInterface {
|
|
40
|
+
const starterId = this.payload.starter
|
|
41
|
+
if (!starterId) {
|
|
42
|
+
return undefined
|
|
43
|
+
}
|
|
44
|
+
const starter = (this.wechaty.Contact as typeof ContactImpl).load(starterId)
|
|
45
|
+
return starter
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
participants (): ContactInterface[] {
|
|
49
|
+
const participantIds = this.payload.participants
|
|
50
|
+
|
|
51
|
+
return participantIds.map((this.wechaty.Contact as typeof ContactImpl).load)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
length (): number {
|
|
55
|
+
return this.payload.length
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type (): PUPPET.types.Call {
|
|
59
|
+
return this.payload.type || PUPPET.types.Call.UNKNOWN
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
status (): PUPPET.types.CallStatus {
|
|
63
|
+
return this.payload.status || PUPPET.types.CallStatus.UNKNOWN
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
class CallRecordImpl extends validationMixin(CallRecordMixin)<CallRecordInterface>() { }
|
|
69
|
+
interface CallRecordInterface extends CallRecordImpl { }
|
|
70
|
+
|
|
71
|
+
type CallRecordConstructor = Constructor<
|
|
72
|
+
CallRecordInterface,
|
|
73
|
+
typeof CallRecordImpl
|
|
74
|
+
>
|
|
75
|
+
|
|
76
|
+
export type {
|
|
77
|
+
CallRecordConstructor,
|
|
78
|
+
CallRecordInterface,
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
CallRecordImpl,
|
|
82
|
+
}
|
|
@@ -75,6 +75,7 @@ import type {
|
|
|
75
75
|
import { validationMixin } from '../user-mixins/validation.js'
|
|
76
76
|
import type { ContactSelfImpl } from './contact-self.js'
|
|
77
77
|
import { concurrencyExecuter } from 'rx-queue'
|
|
78
|
+
import type { CallRecordInterface } from './call.js'
|
|
78
79
|
|
|
79
80
|
const MixinBase = wechatifyMixin(
|
|
80
81
|
EventEmitter,
|
|
@@ -1329,6 +1330,21 @@ class MessageMixin extends MixinBase implements SayableSayer {
|
|
|
1329
1330
|
return new this.wechaty.Channel(channelPayload)
|
|
1330
1331
|
}
|
|
1331
1332
|
|
|
1333
|
+
public async toCallRecord (): Promise<CallRecordInterface> {
|
|
1334
|
+
log.verbose('Message', 'toCallRecord()')
|
|
1335
|
+
|
|
1336
|
+
if (!this.payload) {
|
|
1337
|
+
throw new Error('no payload')
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
if (this.type() !== PUPPET.types.Message.CallRecord) {
|
|
1341
|
+
throw new Error('message not a CallRecord')
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
const callRecordPayload = await this.wechaty.puppet.messageCallRecord(this.id)
|
|
1345
|
+
return new this.wechaty.CallRecord(callRecordPayload)
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1332
1348
|
async toSayable (): Promise<undefined | Sayable> {
|
|
1333
1349
|
log.verbose('Message', 'toSayable()')
|
|
1334
1350
|
return messageToSayable(this)
|