@juzi/wechaty 1.0.34 → 1.0.36

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.
Files changed (47) hide show
  1. package/dist/cjs/src/package-json.js +2 -2
  2. package/dist/cjs/src/user-modules/post.d.ts +1 -1
  3. package/dist/cjs/src/user-modules/post.d.ts.map +1 -1
  4. package/dist/cjs/src/user-modules/post.js +9 -2
  5. package/dist/cjs/src/user-modules/post.js.map +1 -1
  6. package/dist/cjs/src/wechaty/wechaty-base.d.ts +10 -115
  7. package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
  8. package/dist/cjs/src/wechaty/wechaty-impl.spec.js +3 -1
  9. package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
  10. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +6 -0
  11. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  12. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +15 -3
  13. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  14. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +8 -0
  15. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  16. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +6 -20
  17. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  18. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -2
  19. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  20. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +3 -0
  21. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  22. package/dist/esm/src/package-json.js +2 -2
  23. package/dist/esm/src/user-modules/post.d.ts +1 -1
  24. package/dist/esm/src/user-modules/post.d.ts.map +1 -1
  25. package/dist/esm/src/user-modules/post.js +9 -2
  26. package/dist/esm/src/user-modules/post.js.map +1 -1
  27. package/dist/esm/src/wechaty/wechaty-base.d.ts +10 -115
  28. package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
  29. package/dist/esm/src/wechaty/wechaty-impl.spec.js +3 -1
  30. package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
  31. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +6 -0
  32. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  33. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +15 -3
  34. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  35. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +8 -0
  36. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  37. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +6 -20
  38. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  39. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -2
  40. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  41. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +4 -1
  42. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/package-json.ts +2 -2
  45. package/src/user-modules/post.ts +9 -2
  46. package/src/wechaty/wechaty-impl.spec.ts +3 -0
  47. package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
@@ -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,6 +42,7 @@ 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;
@@ -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;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;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"}
@@ -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,6 +167,7 @@ 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;
@@ -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;
@@ -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,OA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ED,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;
@@ -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,22 +170,14 @@ 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;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;sEAmDL;;;;;;;;;OASG;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuenE,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"}
@@ -1,4 +1,4 @@
1
- import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor } from '../user-modules/mod.js';
1
+ import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, MomentConstructor } 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;
@@ -16,6 +16,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
16
16
  __wechatifiedTagGroup?: TagGroupConstructor | undefined;
17
17
  __wechatifiedUrlLink?: UrlLinkConstructor | undefined;
18
18
  __wechatifiedChannel?: ChannelConstructor | undefined;
19
+ __wechatifiedMoment?: MomentConstructor | undefined;
19
20
  readonly Contact: ContactConstructor;
20
21
  readonly ContactSelf: ContactSelfConstructor;
21
22
  readonly Delay: DelayConstructor;
@@ -31,6 +32,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
31
32
  readonly TagGroup: TagGroupConstructor;
32
33
  readonly UrlLink: UrlLinkConstructor;
33
34
  readonly Channel: ChannelConstructor;
35
+ readonly Moment: MomentConstructor;
34
36
  init(): Promise<void>;
35
37
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
36
38
  readonly id: string;
@@ -59,7 +61,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
59
61
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
60
62
  }) & MixinBase;
61
63
  declare type WechatifyUserModuleMixin = ReturnType<typeof wechatifyUserModuleMixin>;
62
- declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel';
64
+ declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedMoment';
63
65
  export type { WechatifyUserModuleMixin, ProtectedPropertyWechatifyUserModuleMixin, };
64
66
  export { wechatifyUserModuleMixin, };
65
67
  //# 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,EAiBL,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,EAGnB,MAA4B,wBAAwB,CAAA;AAErD,OAAO,KAAK,EACV,eAAe,EAChB,MAAkC,mBAAmB,CAAA;AAEtD,QAAA,MAAM,wBAAwB,+FAKJ,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqCH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CxC,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,CAAA;AAE1B,YAAY,EACV,wBAAwB,EACxB,yCAAyC,GAC1C,CAAA;AACD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
1
+ {"version":3,"file":"wechatify-user-module-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,EAkBL,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,EAGlB,MAA4B,wBAAwB,CAAA;AAErD,OAAO,KAAK,EACV,eAAe,EAChB,MAAkC,mBAAmB,CAAA;AAEtD,QAAA,MAAM,wBAAwB,+FAKJ,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuCH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cA2CxC,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,CAAA;AAEzB,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, wechatifyUserModule, } from '../user-modules/mod.js';
2
+ import { ContactImpl, ContactSelfImpl, DelayImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, PostImpl, RoomImpl, RoomInvitationImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, MomentImpl, 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 {
@@ -22,6 +22,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
22
22
  __wechatifiedTagGroup;
23
23
  __wechatifiedUrlLink;
24
24
  __wechatifiedChannel;
25
+ __wechatifiedMoment;
25
26
  get Contact() { return guardWechatify(this.__wechatifiedContact); }
26
27
  get ContactSelf() { return guardWechatify(this.__wechatifiedContactSelf); }
27
28
  get Delay() { return guardWechatify(this.__wechatifiedDelay); }
@@ -37,6 +38,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
37
38
  get TagGroup() { return guardWechatify(this.__wechatifiedTagGroup); }
38
39
  get UrlLink() { return guardWechatify(this.__wechatifiedUrlLink); }
39
40
  get Channel() { return guardWechatify(this.__wechatifiedChannel); }
41
+ get Moment() { return guardWechatify(this.__wechatifiedMoment); }
40
42
  async init() {
41
43
  log.verbose('WechatifyUserModuleMixin', 'init()');
42
44
  await super.init();
@@ -69,6 +71,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
69
71
  this.__wechatifiedTagGroup = wechatifyUserModule(TagGroupImpl)(this);
70
72
  this.__wechatifiedUrlLink = wechatifyUserModule(UrlLinkImpl)(this);
71
73
  this.__wechatifiedChannel = wechatifyUserModule(ChannelImpl)(this);
74
+ this.__wechatifiedMoment = wechatifyUserModule(MomentImpl)(this);
72
75
  log.verbose('WechatifyUserModuleMixin', 'init() initializing Wechaty User Module (WUM) ... done');
73
76
  }
74
77
  }
@@ -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,EAkBX,mBAAmB,GACpB,MAA4B,wBAAwB,CAAA;AAMrD,MAAM,wBAAwB,GAAG,CAA4C,SAAoB,EAAE,EAAE;IACnG,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,8BAA8B,EA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U,CAAA;KAClB;IACD,MAAM,IAAI,KAAK,CAAC,8FAA8F,CAAC,CAAA;AACjH,CAAC;AAwBD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
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,EAmBV,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;QAEhD,IAAI,OAAO,KAAyC,OAAO,cAAc,CAAC,IAAI,CA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W,CAAC,CAAA;YAC7E,IAAI,CAAC,iBAAiB,GAAa,mBAAmB,CAAC,QAAQ,CAAC,CAAC,IAAW,CAAC,CAAA;YAC7E,IAAI,CAAC,2BAA2B,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,IAAW,CAAC,CAAA;YACvF,IAAI,CAAC,gBAAgB,GAAc,mBAAmB,CAAC,OAAO,CAAC,CAAC,IAAW,CAAC,CAAA;YAC5E,IAAI,CAAC,qBAAqB,GAAS,mBAAmB,CAAC,YAAY,CAAC,CAAC,IAAW,CAAC,CAAA;YACjF,IAAI,CAAC,oBAAoB,GAAU,mBAAmB,CAAC,WAAW,CAAC,CAAC,IAAW,CAAC,CAAA;YAChF,IAAI,CAAC,oBAAoB,GAAU,mBAAmB,CAAC,WAAW,CAAC,CAAC,IAAW,CAAC,CAAA;YAChF,IAAI,CAAC,mBAAmB,GAAW,mBAAmB,CAAC,UAAU,CAAC,CAAC,IAAW,CAAC,CAAA;YAE/E,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,wDAAwD,CAAC,CAAA;QACnG,CAAC;KAEF;IAED,OAAO,wBAAwB,CAAA;AACjC,CAAC,CAAA;AAED;;GAEG;AACH,SAAS,cAAc,CAAsB,UAAc;IACzD,IAAI,UAAU,EAAE;QACd,OAAO,UAAU,CAAA;KAClB;IACD,MAAM,IAAI,KAAK,CAAC,8FAA8F,CAAC,CAAA;AACjH,CAAC;AAyBD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,10 +4,10 @@
4
4
  */
5
5
  import type { PackageJsonWechaty } from './config'
6
6
 
7
- export const GIT_COMMIT_HASH: string = '9f1015aa1dbaa3c066332c682da40b6e5bab9840'
7
+ export const GIT_COMMIT_HASH: string = 'd38fc9edcd6912f0eb6e97dafbb3784003e41a7a'
8
8
  export const packageJson: PackageJsonWechaty = {
9
9
  "name": "@juzi/wechaty",
10
- "version": "1.0.34",
10
+ "version": "1.0.36",
11
11
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
12
12
  "type": "module",
13
13
  "exports": {
@@ -326,13 +326,20 @@ class PostMixin extends wechatifyMixinBase() {
326
326
  async getSayableWithIndex (sayableIndex: number) {
327
327
  log.verbose('Post', 'getSayableWithIndex(%s)', sayableIndex)
328
328
 
329
+ const payloadToSayable = payloadToSayableWechaty(this.wechaty)
330
+
329
331
  if (PUPPET.payloads.isPostServer(this.payload)) {
330
- const payloadToSayable = payloadToSayableWechaty(this.wechaty)
331
332
  const sayablePayload = await this.wechaty.puppet.postPayloadSayable(this.id!, this.payload.sayableList[sayableIndex]!)
332
333
  const sayable = await payloadToSayable(sayablePayload)
333
334
  return sayable
334
335
  } else {
335
- return this.payload.sayableList[sayableIndex]
336
+ const sayablePayload = this.payload.sayableList[sayableIndex]
337
+ if (sayablePayload) {
338
+ const sayable = await payloadToSayable(sayablePayload)
339
+ return sayable
340
+ } else {
341
+ throw new Error(`post has no sayable with index ${sayableIndex}`)
342
+ }
336
343
  }
337
344
  }
338
345
 
@@ -21,6 +21,7 @@ import type {
21
21
  UrlLinkConstructor,
22
22
  MessageInterface,
23
23
  ChannelConstructor,
24
+ MomentConstructor,
24
25
  } from '../user-modules/mod.js'
25
26
 
26
27
  import {
@@ -49,6 +50,7 @@ test('Wechaty interface', async t => {
49
50
  TagGroup : TagGroupConstructor
50
51
  UrlLink : UrlLinkConstructor
51
52
  Channel : ChannelConstructor
53
+ Moment : MomentConstructor
52
54
 
53
55
  constructor () {
54
56
  super()
@@ -68,6 +70,7 @@ test('Wechaty interface', async t => {
68
70
  = this.TagGroup
69
71
  = this.UrlLink
70
72
  = this.Channel
73
+ = this.Moment
71
74
  = {} as any
72
75
  }
73
76
 
@@ -16,6 +16,7 @@ import {
16
16
  TagGroupImpl,
17
17
  UrlLinkImpl,
18
18
  ChannelImpl,
19
+ MomentImpl,
19
20
 
20
21
  ContactConstructor,
21
22
  ContactSelfConstructor,
@@ -32,6 +33,7 @@ import {
32
33
  TagGroupConstructor,
33
34
  UrlLinkConstructor,
34
35
  ChannelConstructor,
36
+ MomentConstructor,
35
37
 
36
38
  wechatifyUserModule,
37
39
  } from '../user-modules/mod.js'
@@ -65,6 +67,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
65
67
  __wechatifiedTagGroup? : TagGroupConstructor
66
68
  __wechatifiedUrlLink? : UrlLinkConstructor
67
69
  __wechatifiedChannel? : ChannelConstructor
70
+ __wechatifiedMoment? : MomentConstructor
68
71
 
69
72
  get Contact () : ContactConstructor { return guardWechatify(this.__wechatifiedContact) }
70
73
  get ContactSelf () : ContactSelfConstructor { return guardWechatify(this.__wechatifiedContactSelf) }
@@ -81,6 +84,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
81
84
  get TagGroup () : TagGroupConstructor { return guardWechatify(this.__wechatifiedTagGroup) }
82
85
  get UrlLink () : UrlLinkConstructor { return guardWechatify(this.__wechatifiedUrlLink) }
83
86
  get Channel () : ChannelConstructor { return guardWechatify(this.__wechatifiedChannel) }
87
+ get Moment () : MomentConstructor { return guardWechatify(this.__wechatifiedMoment) }
84
88
 
85
89
  override async init (): Promise<void> {
86
90
  log.verbose('WechatifyUserModuleMixin', 'init()')
@@ -117,6 +121,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
117
121
  this.__wechatifiedTagGroup = wechatifyUserModule(TagGroupImpl)(this as any)
118
122
  this.__wechatifiedUrlLink = wechatifyUserModule(UrlLinkImpl)(this as any)
119
123
  this.__wechatifiedChannel = wechatifyUserModule(ChannelImpl)(this as any)
124
+ this.__wechatifiedMoment = wechatifyUserModule(MomentImpl)(this as any)
120
125
 
121
126
  log.verbose('WechatifyUserModuleMixin', 'init() initializing Wechaty User Module (WUM) ... done')
122
127
  }
@@ -153,6 +158,7 @@ type ProtectedPropertyWechatifyUserModuleMixin =
153
158
  | '__wechatifiedTagGroup'
154
159
  | '__wechatifiedUrlLink'
155
160
  | '__wechatifiedChannel'
161
+ | '__wechatifiedMoment'
156
162
 
157
163
  export type {
158
164
  WechatifyUserModuleMixin,