@juzi/wechaty 1.0.35 → 1.0.37
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/package-json.js +3 -3
- 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/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 +20 -8
- 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 +10 -24
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +41 -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/package-json.js +3 -3
- 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/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 +20 -8
- 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 +10 -24
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.js +41 -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/package-json.ts +3 -3
- package/src/schemas/wechaty-events.ts +6 -0
- package/src/wechaty/wechaty-impl.spec.ts +3 -0
- package/src/wechaty-mixins/puppet-mixin.ts +41 -0
- package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
|
@@ -25,6 +25,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
25
25
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
26
26
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
27
27
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
28
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | 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;
|
|
@@ -40,12 +41,13 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
40
41
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
41
42
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
42
43
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
44
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
43
45
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
44
46
|
readonly id: string;
|
|
45
47
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
46
48
|
readonly memory: import("memory-card").MemoryCard;
|
|
47
49
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
48
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
50
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
49
51
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
50
52
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
51
53
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -84,6 +86,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
84
86
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
85
87
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
86
88
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
89
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
87
90
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
88
91
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
89
92
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -99,6 +102,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
99
102
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
100
103
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
101
104
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
105
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
102
106
|
init(): Promise<void>;
|
|
103
107
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
104
108
|
readonly id: string;
|
|
@@ -107,7 +111,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
107
111
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
108
112
|
start(): Promise<void>;
|
|
109
113
|
stop(): Promise<void>;
|
|
110
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
114
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
111
115
|
addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
112
116
|
once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
113
117
|
prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
|
|
@@ -137,7 +141,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
137
141
|
init(): Promise<void>;
|
|
138
142
|
start(): Promise<void>;
|
|
139
143
|
stop(): Promise<void>;
|
|
140
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
144
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
141
145
|
addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
|
|
142
146
|
once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
|
|
143
147
|
prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
|
|
@@ -166,7 +170,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
166
170
|
readonly memory: import("memory-card").MemoryCard;
|
|
167
171
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
168
172
|
init(): Promise<void>;
|
|
169
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
173
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
170
174
|
addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
|
|
171
175
|
once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
|
|
172
176
|
prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
|
|
@@ -235,7 +239,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
235
239
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
236
240
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
237
241
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
238
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
242
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
239
243
|
addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
|
|
240
244
|
once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
|
|
241
245
|
prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
|
|
@@ -272,6 +276,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
272
276
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
273
277
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
274
278
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
279
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
275
280
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
276
281
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
277
282
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -287,6 +292,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
287
292
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
288
293
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
289
294
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
295
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
290
296
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
291
297
|
emitError(e: any): void;
|
|
292
298
|
__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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAgDU,GAAG,EAAE;;IAvC3B;;;;;;;OAOG;;IAMH;;;;;;;;;;OAUG;;;YAqBqB,QAAQ,IAAI,CAAC;IAUrC;;;;;;OAMG;cACc,QAAQ,IAAI,CAAC;IAK9B;;OAEG;gBACU,OAAO;IAKpB;;;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"}
|
|
@@ -15,7 +15,9 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
15
15
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
16
16
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
17
17
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
18
|
-
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
18
|
+
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined; /**
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
19
21
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
20
22
|
__wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
|
|
21
23
|
__wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
|
|
@@ -24,6 +26,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
24
26
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
25
27
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
26
28
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
29
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
27
30
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
28
31
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
29
32
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -39,12 +42,13 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
39
42
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
40
43
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
41
44
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
45
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
42
46
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
43
47
|
readonly id: string;
|
|
44
48
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
45
49
|
readonly memory: import("memory-card").MemoryCard;
|
|
46
50
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
47
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
51
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
48
52
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
49
53
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
50
54
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -76,7 +80,9 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
76
80
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
77
81
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
78
82
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
79
|
-
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
83
|
+
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined; /**
|
|
84
|
+
* @private
|
|
85
|
+
*/
|
|
80
86
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
81
87
|
__wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
|
|
82
88
|
__wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
|
|
@@ -85,6 +91,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
85
91
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
86
92
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
87
93
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
94
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
88
95
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
89
96
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
90
97
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -100,6 +107,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
100
107
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
101
108
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
102
109
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
110
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
103
111
|
init(): Promise<void>;
|
|
104
112
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
105
113
|
readonly id: string;
|
|
@@ -108,7 +116,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
108
116
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
109
117
|
start(): Promise<void>;
|
|
110
118
|
stop(): Promise<void>;
|
|
111
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
119
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
112
120
|
addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
113
121
|
once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
114
122
|
prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
|
|
@@ -140,7 +148,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
140
148
|
init(): Promise<void>;
|
|
141
149
|
start(): Promise<void>;
|
|
142
150
|
stop(): Promise<void>;
|
|
143
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
151
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
144
152
|
addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
|
|
145
153
|
once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
|
|
146
154
|
prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
|
|
@@ -171,7 +179,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
171
179
|
readonly memory: import("memory-card").MemoryCard;
|
|
172
180
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
173
181
|
init(): Promise<void>;
|
|
174
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
182
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
175
183
|
addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
|
|
176
184
|
once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
|
|
177
185
|
prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
|
|
@@ -229,7 +237,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
229
237
|
init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
230
238
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
231
239
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
232
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
240
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
233
241
|
addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
|
|
234
242
|
once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
|
|
235
243
|
prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
|
|
@@ -259,7 +267,9 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
259
267
|
__wechatifiedFriendship?: import("../user-modules/friendship.js").FriendshipConstructor | undefined;
|
|
260
268
|
__wechatifiedImage?: import("../user-modules/image.js").ImageConstructor | undefined;
|
|
261
269
|
__wechatifiedLocation?: import("../user-modules/location.js").LocationConstructor | undefined;
|
|
262
|
-
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined;
|
|
270
|
+
__wechatifiedMessage?: import("../user-modules/message.js").MessageConstructor | undefined; /**
|
|
271
|
+
* @private
|
|
272
|
+
*/
|
|
263
273
|
__wechatifiedMiniProgram?: import("../user-modules/mini-program.js").MiniProgramConstructor | undefined;
|
|
264
274
|
__wechatifiedPost?: import("../user-modules/post.js").PostConstructor | undefined;
|
|
265
275
|
__wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
|
|
@@ -268,6 +278,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
268
278
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
269
279
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
270
280
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
281
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
271
282
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
272
283
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
273
284
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -283,6 +294,7 @@ declare const miscMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
283
294
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
284
295
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
285
296
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
297
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
286
298
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
287
299
|
emitError(e: any): void;
|
|
288
300
|
__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;;;;;;;;;;;;;;;;gGAuDX;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAFH;;OAEG;;;;;;;;;;;;;;;;gGAFH;;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;;;;;;;;;;;;;;gGAFH;;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"}
|
|
@@ -15,7 +15,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
15
15
|
init(): Promise<void>;
|
|
16
16
|
start(): Promise<void>;
|
|
17
17
|
stop(): Promise<void>;
|
|
18
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
18
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
19
19
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
20
20
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
21
21
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -65,7 +65,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
65
65
|
init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
66
66
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
67
67
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
68
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
68
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
69
69
|
addListener<E_10 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_10, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_10]): any;
|
|
70
70
|
once<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
71
71
|
prependListener<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
@@ -102,6 +102,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
102
102
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
103
103
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
104
104
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
105
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
105
106
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
106
107
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
107
108
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -117,6 +118,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
117
118
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
118
119
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
119
120
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
121
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
120
122
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
121
123
|
emitError(e: any): void;
|
|
122
124
|
__io?: import("../io.js").Io | undefined;
|
|
@@ -149,6 +151,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
149
151
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
150
152
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
151
153
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
154
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
152
155
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
153
156
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
154
157
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -164,12 +167,13 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
164
167
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
165
168
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
166
169
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
170
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
167
171
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
168
172
|
readonly id: string;
|
|
169
173
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
170
174
|
readonly memory: import("memory-card").MemoryCard;
|
|
171
175
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
172
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
176
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
173
177
|
addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
|
|
174
178
|
once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
|
|
175
179
|
prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
|
|
@@ -208,6 +212,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
208
212
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
209
213
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
210
214
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
215
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
211
216
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
212
217
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
213
218
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -223,6 +228,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
223
228
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
224
229
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
225
230
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
231
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
226
232
|
init(): Promise<void>;
|
|
227
233
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
228
234
|
readonly id: string;
|
|
@@ -231,7 +237,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
231
237
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
232
238
|
start(): Promise<void>;
|
|
233
239
|
stop(): Promise<void>;
|
|
234
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
240
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
235
241
|
addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
|
|
236
242
|
once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
|
|
237
243
|
prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
|
|
@@ -261,7 +267,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
261
267
|
readonly memory: import("memory-card").MemoryCard;
|
|
262
268
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
263
269
|
init(): Promise<void>;
|
|
264
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
270
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
265
271
|
addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
|
|
266
272
|
once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
|
|
267
273
|
prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
|
|
@@ -310,7 +316,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
310
316
|
init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
311
317
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
312
318
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
313
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
319
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
314
320
|
addListener<E_39 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_39, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_39]): any;
|
|
315
321
|
once<E_40 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_40, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_40]): any;
|
|
316
322
|
prependListener<E_41 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_41, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_41]): any;
|
|
@@ -373,6 +379,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
373
379
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
374
380
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
375
381
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
382
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
376
383
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
377
384
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
378
385
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -388,6 +395,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
|
|
|
388
395
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
389
396
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
390
397
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
398
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
391
399
|
__io?: import("../io.js").Io | undefined;
|
|
392
400
|
readonly io: import("../io.js").Io;
|
|
393
401
|
__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"}
|
|
@@ -24,6 +24,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
24
24
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
25
25
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
26
26
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
27
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
27
28
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
28
29
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
29
30
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -32,22 +33,14 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
32
33
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
33
34
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
34
35
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
35
|
-
readonly Post: import("../user-modules/post.js").PostConstructor;
|
|
36
|
-
* Huan(202111):
|
|
37
|
-
*
|
|
38
|
-
* We should throw the Timeout error when the puppet.start() can not be finished in time.
|
|
39
|
-
* However, we need to compatible with some buggy puppet implementations which will not resolve the promise.
|
|
40
|
-
*
|
|
41
|
-
* TODO: throw the Timeout error when the puppet.start() can not be finished in time.
|
|
42
|
-
*
|
|
43
|
-
* e.g. after resolve @issue https://github.com/padlocal/wechaty-puppet-padlocal/issues/116
|
|
44
|
-
*/
|
|
36
|
+
readonly Post: import("../user-modules/post.js").PostConstructor;
|
|
45
37
|
readonly Room: import("../user-modules/room.js").RoomConstructor;
|
|
46
38
|
readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
|
|
47
39
|
readonly Tag: import("../user-modules/tag.js").TagConstructor;
|
|
48
40
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
49
41
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
50
42
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
43
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
51
44
|
init(): Promise<void>;
|
|
52
45
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
53
46
|
readonly id: string;
|
|
@@ -56,7 +49,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
56
49
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
57
50
|
start(): Promise<void>;
|
|
58
51
|
stop(): Promise<void>;
|
|
59
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
52
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
60
53
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
61
54
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
62
55
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -94,7 +87,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
94
87
|
init(): Promise<void>;
|
|
95
88
|
start(): Promise<void>;
|
|
96
89
|
stop(): Promise<void>;
|
|
97
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
90
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
98
91
|
addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
99
92
|
once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
100
93
|
prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
|
|
@@ -123,7 +116,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
123
116
|
readonly memory: import("memory-card").MemoryCard;
|
|
124
117
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
125
118
|
init(): Promise<void>;
|
|
126
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
119
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
127
120
|
addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
|
|
128
121
|
once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
|
|
129
122
|
prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
|
|
@@ -168,6 +161,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
168
161
|
__wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
|
|
169
162
|
__wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
|
|
170
163
|
__wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
|
|
164
|
+
__wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
|
|
171
165
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
172
166
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
173
167
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -176,28 +170,20 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
|
|
|
176
170
|
readonly Location: import("../user-modules/location.js").LocationConstructor;
|
|
177
171
|
readonly Message: import("../user-modules/message.js").MessageConstructor;
|
|
178
172
|
readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
|
|
179
|
-
readonly Post: import("../user-modules/post.js").PostConstructor;
|
|
180
|
-
* Huan(202111):
|
|
181
|
-
*
|
|
182
|
-
* We should throw the Timeout error when the puppet.start() can not be finished in time.
|
|
183
|
-
* However, we need to compatible with some buggy puppet implementations which will not resolve the promise.
|
|
184
|
-
*
|
|
185
|
-
* TODO: throw the Timeout error when the puppet.start() can not be finished in time.
|
|
186
|
-
*
|
|
187
|
-
* e.g. after resolve @issue https://github.com/padlocal/wechaty-puppet-padlocal/issues/116
|
|
188
|
-
*/
|
|
173
|
+
readonly Post: import("../user-modules/post.js").PostConstructor;
|
|
189
174
|
readonly Room: import("../user-modules/room.js").RoomConstructor;
|
|
190
175
|
readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
|
|
191
176
|
readonly Tag: import("../user-modules/tag.js").TagConstructor;
|
|
192
177
|
readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
|
|
193
178
|
readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
|
|
194
179
|
readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
|
|
180
|
+
readonly Moment: import("../user-modules/moment.js").MomentConstructor;
|
|
195
181
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
196
182
|
readonly id: string;
|
|
197
183
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
198
184
|
readonly memory: import("memory-card").MemoryCard;
|
|
199
185
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
200
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group", listener: (...args: any[]) => any): any;
|
|
186
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update" | "contact-tag-add" | "contact-tag-remove" | "contact-name" | "contact-alias" | "contact-phone" | "contact-description" | "contact-corporation" | "room-owner" | "tag-group" | "post-comment" | "post-tap", listener: (...args: any[]) => any): any;
|
|
201
187
|
addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
|
|
202
188
|
once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
|
|
203
189
|
prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
|
|
@@ -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;AASnD,OAAO,KAAK,EACV,oBAAoB,EACrB,MAA4B,cAAc,CAAA;AAuB3C;;;;;;;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;AASnD,OAAO,KAAK,EACV,oBAAoB,EACrB,MAA4B,cAAc,CAAA;AAuB3C;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IARjB;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAoBuB,GAAG,EAAE;;;2BAJH,oBAAoB;;aAWnB,QAAQ,IAAI,CAAC;YA+Cd,QAAQ,IAAI,CAAC;aAuBrB,QAAQ,IAAI,CAAC;YAML,QAAQ,IAAI,CAAC;gCA8CR,OAAO,KAAK,CAAC,eAAe,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAghBnE,CAAA;AAED,aAAK,WAAW,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAA;AAEjD,aAAK,4BAA4B,GAC7B,UAAU,GACV,cAAc,GACd,qBAAqB,CAAA;AAEzB,YAAY,EACV,WAAW,EACX,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
|
|
@@ -251,6 +251,47 @@ const puppetMixin = (mixinBase) => {
|
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
253
|
break;
|
|
254
|
+
case 'post-comment':
|
|
255
|
+
puppet.on('post-comment', async (payload) => {
|
|
256
|
+
try {
|
|
257
|
+
const comment = await this.Post.find({ id: payload.commentId });
|
|
258
|
+
const post = await this.Post.find({ id: payload.postId });
|
|
259
|
+
if (!post) {
|
|
260
|
+
this.emit('error', GError.from('post not found for id: ' + payload.postId));
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
if (!comment) {
|
|
264
|
+
this.emit('error', GError.from('comment not found for id: ' + payload.commentId));
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
this.emit('post-comment', comment, post);
|
|
268
|
+
}
|
|
269
|
+
catch (e) {
|
|
270
|
+
this.emit('error', GError.from(e));
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
break;
|
|
274
|
+
case 'post-tap':
|
|
275
|
+
puppet.on('post-tap', async (payload) => {
|
|
276
|
+
try {
|
|
277
|
+
const post = await this.Post.find({ id: payload.postId });
|
|
278
|
+
const contact = await this.Contact.find({ id: payload.contactId });
|
|
279
|
+
const date = timestampToDate(payload.timestamp);
|
|
280
|
+
if (!post) {
|
|
281
|
+
this.emit('error', GError.from('post not found for id: ' + payload.postId));
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
if (!contact) {
|
|
285
|
+
this.emit('error', GError.from('contact not found for id: ' + payload.contactId));
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
this.emit('post-tap', post, contact, payload.tapType, payload.tap, date);
|
|
289
|
+
}
|
|
290
|
+
catch (e) {
|
|
291
|
+
this.emit('error', GError.from(e));
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
break;
|
|
254
295
|
case 'ready':
|
|
255
296
|
puppet.on('ready', () => {
|
|
256
297
|
log.silly('WechatyPuppetMixin', '__setupPuppetEvents() puppet.on(ready)');
|