@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.
Files changed (54) hide show
  1. package/dist/cjs/src/package-json.js +3 -3
  2. package/dist/cjs/src/schemas/wechaty-events.d.ts +7 -1
  3. package/dist/cjs/src/schemas/wechaty-events.d.ts.map +1 -1
  4. package/dist/cjs/src/schemas/wechaty-events.js.map +1 -1
  5. package/dist/cjs/src/wechaty/wechaty-base.d.ts +17 -122
  6. package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
  7. package/dist/cjs/src/wechaty/wechaty-impl.spec.js +3 -1
  8. package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
  9. package/dist/cjs/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
  10. package/dist/cjs/src/wechaty-mixins/io-mixin.d.ts +2 -2
  11. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +11 -5
  12. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  13. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +20 -8
  14. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  15. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +14 -6
  16. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  17. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +10 -24
  18. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  19. package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +41 -0
  20. package/dist/cjs/src/wechaty-mixins/puppet-mixin.js.map +1 -1
  21. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +5 -3
  22. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  23. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +3 -0
  24. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  25. package/dist/esm/src/package-json.js +3 -3
  26. package/dist/esm/src/schemas/wechaty-events.d.ts +7 -1
  27. package/dist/esm/src/schemas/wechaty-events.d.ts.map +1 -1
  28. package/dist/esm/src/schemas/wechaty-events.js.map +1 -1
  29. package/dist/esm/src/wechaty/wechaty-base.d.ts +17 -122
  30. package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
  31. package/dist/esm/src/wechaty/wechaty-impl.spec.js +3 -1
  32. package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
  33. package/dist/esm/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
  34. package/dist/esm/src/wechaty-mixins/io-mixin.d.ts +2 -2
  35. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +11 -5
  36. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  37. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +20 -8
  38. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  39. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +14 -6
  40. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  41. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +10 -24
  42. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  43. package/dist/esm/src/wechaty-mixins/puppet-mixin.js +41 -0
  44. package/dist/esm/src/wechaty-mixins/puppet-mixin.js.map +1 -1
  45. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +5 -3
  46. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  47. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +4 -1
  48. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  49. package/package.json +2 -2
  50. package/src/package-json.ts +3 -3
  51. package/src/schemas/wechaty-events.ts +6 -0
  52. package/src/wechaty/wechaty-impl.spec.ts +3 -0
  53. package/src/wechaty-mixins/puppet-mixin.ts +41 -0
  54. package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageJson = exports.GIT_COMMIT_HASH = void 0;
4
- exports.GIT_COMMIT_HASH = '597df4230be16ea405f928017130d640edf4ba08';
4
+ exports.GIT_COMMIT_HASH = '081ce37471d2a5b690470cdc258d4f03875072b3';
5
5
  exports.packageJson = {
6
6
  "name": "@juzi/wechaty",
7
- "version": "1.0.35",
7
+ "version": "1.0.37",
8
8
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
9
9
  "type": "module",
10
10
  "exports": {
@@ -136,7 +136,7 @@ exports.packageJson = {
136
136
  "@chatie/eslint-config": "^1.0.4",
137
137
  "@chatie/semver": "^0.4.7",
138
138
  "@chatie/tsconfig": "^4.6.3",
139
- "@juzi/wechaty-puppet": "^1.0.34",
139
+ "@juzi/wechaty-puppet": "^1.0.37",
140
140
  "@juzi/wechaty-puppet-mock": "^1.0.1",
141
141
  "@swc/core": "^1.2.155",
142
142
  "@swc/helpers": "^0.3.6",
@@ -32,6 +32,8 @@ declare const WECHATY_EVENT_DICT: {
32
32
  readonly scan: string;
33
33
  readonly tag: string;
34
34
  readonly 'tag-group': string;
35
+ readonly 'post-comment': string;
36
+ readonly 'post-tap': string;
35
37
  };
36
38
  declare type WechatyEventName = keyof typeof WECHATY_EVENT_DICT;
37
39
  /**
@@ -64,6 +66,8 @@ declare type WechatyEventListenerContactDescription = (contact: ContactInterface
64
66
  declare type WechatyEventListenerContactCorporation = (contact: ContactInterface, newCorporation: string, oldCorporation: string) => void | Promise<void>;
65
67
  declare type WechatyEventListenerTag = (type: PUPPET.types.TagEvent, list: TagInterface[], date?: Date) => void | Promise<void>;
66
68
  declare type WechatyEventListenerTagGroup = (type: PUPPET.types.TagGroupEvent, list: TagGroupInterface[], date?: Date) => void | Promise<void>;
69
+ declare type WechatyEventListenerPostComment = (comment: PostInterface, post: PostInterface) => void | Promise<void>;
70
+ declare type WechatyEventListenerPostTap = (post: PostInterface, contact: ContactInterface, type: PUPPET.types.Tap, tap: boolean, date?: Date) => void | Promise<void>;
67
71
  /**
68
72
  * @desc Wechaty Class Event Type
69
73
  * @typedef WechatyEventName
@@ -245,8 +249,10 @@ interface WechatyEventListeners {
245
249
  'room-owner': WechatyEventListenerRoomOwner;
246
250
  'tag': WechatyEventListenerTag;
247
251
  'tag-group': WechatyEventListenerTagGroup;
252
+ 'post-comment': WechatyEventListenerPostComment;
253
+ 'post-tap': WechatyEventListenerPostTap;
248
254
  }
249
255
  declare const WechatyEventEmitter: new () => TypedEventEmitter<WechatyEventListeners>;
250
- export type { WechatyEventName, WechatyEventListeners, WechatyEventListenerDong, WechatyEventListenerError, WechatyEventListenerFriendship, WechatyEventListenerHeartbeat, WechatyEventListenerLogin, WechatyEventListenerLogout, WechatyEventListenerMessage, WechatyEventListenerPost, WechatyEventListenerPuppet, WechatyEventListenerReady, WechatyEventListenerRoomInvite, WechatyEventListenerRoomJoin, WechatyEventListenerRoomLeave, WechatyEventListenerRoomTopic, WechatyEventListenerRoomOwner, WechatyEventListenerScan, WechatyEventListenerStartStop, WechatyEventListenerUpdate, WechatyEventListenerContactTagAdd, WechatyEventListenerContactTagRemove, WechatyEventListenerContactName, WechatyEventListenerContactAlias, WechatyEventListenerContactPhone, WechatyEventListenerContactDescription, WechatyEventListenerContactCorporation, WechatyEventListenerTag, WechatyEventListenerTagGroup, };
256
+ export type { WechatyEventName, WechatyEventListeners, WechatyEventListenerDong, WechatyEventListenerError, WechatyEventListenerFriendship, WechatyEventListenerHeartbeat, WechatyEventListenerLogin, WechatyEventListenerLogout, WechatyEventListenerMessage, WechatyEventListenerPost, WechatyEventListenerPuppet, WechatyEventListenerReady, WechatyEventListenerRoomInvite, WechatyEventListenerRoomJoin, WechatyEventListenerRoomLeave, WechatyEventListenerRoomTopic, WechatyEventListenerRoomOwner, WechatyEventListenerScan, WechatyEventListenerStartStop, WechatyEventListenerUpdate, WechatyEventListenerContactTagAdd, WechatyEventListenerContactTagRemove, WechatyEventListenerContactName, WechatyEventListenerContactAlias, WechatyEventListenerContactPhone, WechatyEventListenerContactDescription, WechatyEventListenerContactCorporation, WechatyEventListenerTag, WechatyEventListenerTagGroup, WechatyEventListenerPostComment, WechatyEventListenerPostTap, };
251
257
  export { WechatyEventEmitter, };
252
258
  //# sourceMappingURL=wechaty-events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wechaty-events.d.ts","sourceRoot":"","sources":["../../../../src/schemas/wechaty-events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAQ,eAAe,CAAA;AAEpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAO,QAAQ,CAAA;AACrC,OAAO,KAAK,MAAM,MAAW,sBAAsB,CAAA;AAEnD,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,uBAAuB,EACvB,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,iBAAiB,EAClB,MAA4B,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBd,CAAA;AAEV,aAAK,gBAAgB,GAAI,MAAM,OAAO,kBAAkB,CAAA;AAExD;;GAEG;AACH,aAAK,wBAAwB,GAAiB,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AACrF,aAAK,yBAAyB,GAAgB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AACrF,aAAK,8BAA8B,GAAW,CAAC,UAAU,EAAE,mBAAmB,KAAK,IAAI,GAAG,OAAO,CAAC,IA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,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,0BAA0B,EAC1B,yBAAyB,EACzB,8BAA8B,EAC9B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,wBAAwB,EACxB,6BAA6B,EAC7B,0BAA0B,EAC1B,iCAAiC,EACjC,oCAAoC,EACpC,+BAA+B,EAC/B,gCAAgC,EAChC,gCAAgC,EAChC,sCAAsC,EACtC,sCAAsC,EACtC,uBAAuB,EACvB,4BAA4B,EAC5B,+BAA+B,EAC/B,2BAA2B,GAC5B,CAAA;AACD,OAAO,EACL,mBAAmB,GACpB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"wechaty-events.js","sourceRoot":"","sources":["../../../../src/schemas/wechaty-events.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA6C;AAI7C,6DAAmD;AAenD,MAAM,kBAAkB,GAAG;IACzB,GAAG,MAAM,CAAC,KAAK,CAAC,eAAe;IAC/B,IAAI,EAAmB,kDAAkD;IACzE,KAAK,EAAkB,iDAAiD;IACxE,SAAS,EAAc,kGAAkG;IACzH,MAAM,EAAiB,+CAA+C;IACtE,KAAK,EAAkB,+CAA+C;IACtE,KAAK,EAAkB,qDAAqD;IAC5E,IAAI,EAAmB,qDAAqD;IAC5E,MAAM,EAAiB,kDAAkD;IACzE,iBAAiB,EAAM,4CAA4C;IACnE,oBAAoB,EAAG,qDAAqD;IAC5E,cAAc,EAAS,qDAAqD;IAC5E,eAAe,EAAQ,sDAAsD;IAC7E,eAAe,EAAQ,sDAAsD;IAC7E,qBAAqB,EAAE,4DAA4D;IACnF,qBAAqB,EAAE,4DAA4D;IACnF,YAAY,EAAW,mDAAmD;CAClE,CAAA;AA4NV,MAAM,mBAAmB,GAAG,qBAE3B,CAAA;AAmCC,kDAAmB"}
1
+ {"version":3,"file":"wechaty-events.js","sourceRoot":"","sources":["../../../../src/schemas/wechaty-events.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA6C;AAI7C,6DAAmD;AAenD,MAAM,kBAAkB,GAAG;IACzB,GAAG,MAAM,CAAC,KAAK,CAAC,eAAe;IAC/B,IAAI,EAAmB,kDAAkD;IACzE,KAAK,EAAkB,iDAAiD;IACxE,SAAS,EAAc,kGAAkG;IACzH,MAAM,EAAiB,+CAA+C;IACtE,KAAK,EAAkB,+CAA+C;IACtE,KAAK,EAAkB,qDAAqD;IAC5E,IAAI,EAAmB,qDAAqD;IAC5E,MAAM,EAAiB,kDAAkD;IACzE,iBAAiB,EAAM,4CAA4C;IACnE,oBAAoB,EAAG,qDAAqD;IAC5E,cAAc,EAAS,qDAAqD;IAC5E,eAAe,EAAQ,sDAAsD;IAC7E,eAAe,EAAQ,sDAAsD;IAC7E,qBAAqB,EAAE,4DAA4D;IACnF,qBAAqB,EAAE,4DAA4D;IACnF,YAAY,EAAW,mDAAmD;CAClE,CAAA;AAgOV,MAAM,mBAAmB,GAAG,qBAE3B,CAAA;AAqCC,kDAAmB"}
@@ -26,7 +26,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
26
26
  init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
27
27
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
28
28
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
29
- 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;
29
+ 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;
30
30
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
31
31
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
32
32
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -70,32 +70,10 @@ declare const mixinBase: (abstract new (...args: any[]) => {
70
70
  __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
71
71
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
72
72
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
73
+ __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
73
74
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
74
75
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
75
76
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
76
- /**
77
- * Main bot class.
78
- *
79
- * A `Bot` is a WeChat client depends on which puppet you use.
80
- * It may equals
81
- * - web-WeChat, when you use: [puppet-puppeteer](https://github.com/wechaty/wechaty-puppet-puppeteer)/[puppet-wechat4u](https://github.com/wechaty/wechaty-puppet-wechat4u)
82
- * - ipad-WeChat, when you use: [puppet-padchat](https://github.com/wechaty/wechaty-puppet-padchat)
83
- * - ios-WeChat, when you use: puppet-ioscat
84
- *
85
- * See more:
86
- * - [What is a Puppet in Wechaty](https://github.com/wechaty/getting-started/wiki/FAQ#31-what-is-a-puppet-in-wechaty)
87
- *
88
- * > If you want to know how to send message, see [Message](#Message) <br>
89
- * > If you want to know how to get contact, see [Contact](#Contact)
90
- *
91
- * @example <caption>The World's Shortest ChatBot Code: 6 lines of JavaScript</caption>
92
- * import { WechatyBuilder } from 'wechaty'
93
- * const bot = WechatyBuilder.build()
94
- * bot.on('scan', (qrCode, status) => console.log('https://wechaty.js.org/qrcode/' + encodeURIComponent(qrcode)))
95
- * bot.on('login', user => console.log(`User ${user} logged in`))
96
- * bot.on('message', message => console.log(`Message: ${message}`))
97
- * bot.start()
98
- */
99
77
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
100
78
  readonly Image: import("../user-modules/image.js").ImageConstructor;
101
79
  readonly Location: import("../user-modules/location.js").LocationConstructor;
@@ -108,6 +86,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
108
86
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
109
87
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
110
88
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
89
+ readonly Moment: import("../user-modules/moment.js").MomentConstructor;
111
90
  __io?: import("../io.js").Io | undefined;
112
91
  readonly io: import("../io.js").Io;
113
92
  __ioToken?: string | undefined;
@@ -127,7 +106,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
127
106
  init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
128
107
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
129
108
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
130
- 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;
109
+ 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;
131
110
  addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
132
111
  once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
133
112
  prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
@@ -164,32 +143,10 @@ declare const mixinBase: (abstract new (...args: any[]) => {
164
143
  __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
165
144
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
166
145
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
146
+ __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
167
147
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
168
148
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
169
149
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
170
- /**
171
- * Main bot class.
172
- *
173
- * A `Bot` is a WeChat client depends on which puppet you use.
174
- * It may equals
175
- * - web-WeChat, when you use: [puppet-puppeteer](https://github.com/wechaty/wechaty-puppet-puppeteer)/[puppet-wechat4u](https://github.com/wechaty/wechaty-puppet-wechat4u)
176
- * - ipad-WeChat, when you use: [puppet-padchat](https://github.com/wechaty/wechaty-puppet-padchat)
177
- * - ios-WeChat, when you use: puppet-ioscat
178
- *
179
- * See more:
180
- * - [What is a Puppet in Wechaty](https://github.com/wechaty/getting-started/wiki/FAQ#31-what-is-a-puppet-in-wechaty)
181
- *
182
- * > If you want to know how to send message, see [Message](#Message) <br>
183
- * > If you want to know how to get contact, see [Contact](#Contact)
184
- *
185
- * @example <caption>The World's Shortest ChatBot Code: 6 lines of JavaScript</caption>
186
- * import { WechatyBuilder } from 'wechaty'
187
- * const bot = WechatyBuilder.build()
188
- * bot.on('scan', (qrCode, status) => console.log('https://wechaty.js.org/qrcode/' + encodeURIComponent(qrcode)))
189
- * bot.on('login', user => console.log(`User ${user} logged in`))
190
- * bot.on('message', message => console.log(`Message: ${message}`))
191
- * bot.start()
192
- */
193
150
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
194
151
  readonly Image: import("../user-modules/image.js").ImageConstructor;
195
152
  readonly Location: import("../user-modules/location.js").LocationConstructor;
@@ -202,6 +159,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
202
159
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
203
160
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
204
161
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
162
+ readonly Moment: import("../user-modules/moment.js").MomentConstructor;
205
163
  wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
206
164
  emitError(e: any): void;
207
165
  __io?: import("../io.js").Io | undefined;
@@ -225,7 +183,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
225
183
  __options: WechatyOptions;
226
184
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
227
185
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
228
- 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;
229
187
  addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
230
188
  once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
231
189
  prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
@@ -262,32 +220,10 @@ declare const mixinBase: (abstract new (...args: any[]) => {
262
220
  __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
263
221
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
264
222
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
223
+ __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
265
224
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
266
225
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
267
226
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
268
- /**
269
- * Main bot class.
270
- *
271
- * A `Bot` is a WeChat client depends on which puppet you use.
272
- * It may equals
273
- * - web-WeChat, when you use: [puppet-puppeteer](https://github.com/wechaty/wechaty-puppet-puppeteer)/[puppet-wechat4u](https://github.com/wechaty/wechaty-puppet-wechat4u)
274
- * - ipad-WeChat, when you use: [puppet-padchat](https://github.com/wechaty/wechaty-puppet-padchat)
275
- * - ios-WeChat, when you use: puppet-ioscat
276
- *
277
- * See more:
278
- * - [What is a Puppet in Wechaty](https://github.com/wechaty/getting-started/wiki/FAQ#31-what-is-a-puppet-in-wechaty)
279
- *
280
- * > If you want to know how to send message, see [Message](#Message) <br>
281
- * > If you want to know how to get contact, see [Contact](#Contact)
282
- *
283
- * @example <caption>The World's Shortest ChatBot Code: 6 lines of JavaScript</caption>
284
- * import { WechatyBuilder } from 'wechaty'
285
- * const bot = WechatyBuilder.build()
286
- * bot.on('scan', (qrCode, status) => console.log('https://wechaty.js.org/qrcode/' + encodeURIComponent(qrcode)))
287
- * bot.on('login', user => console.log(`User ${user} logged in`))
288
- * bot.on('message', message => console.log(`Message: ${message}`))
289
- * bot.start()
290
- */
291
227
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
292
228
  readonly Image: import("../user-modules/image.js").ImageConstructor;
293
229
  readonly Location: import("../user-modules/location.js").LocationConstructor;
@@ -300,6 +236,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
300
236
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
301
237
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
302
238
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
239
+ readonly Moment: import("../user-modules/moment.js").MomentConstructor;
303
240
  wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
304
241
  emitError(e: any): void;
305
242
  __io?: import("../io.js").Io | undefined;
@@ -332,32 +269,10 @@ declare const mixinBase: (abstract new (...args: any[]) => {
332
269
  __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
333
270
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
334
271
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
272
+ __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
335
273
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
336
274
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
337
275
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
338
- /**
339
- * Main bot class.
340
- *
341
- * A `Bot` is a WeChat client depends on which puppet you use.
342
- * It may equals
343
- * - web-WeChat, when you use: [puppet-puppeteer](https://github.com/wechaty/wechaty-puppet-puppeteer)/[puppet-wechat4u](https://github.com/wechaty/wechaty-puppet-wechat4u)
344
- * - ipad-WeChat, when you use: [puppet-padchat](https://github.com/wechaty/wechaty-puppet-padchat)
345
- * - ios-WeChat, when you use: puppet-ioscat
346
- *
347
- * See more:
348
- * - [What is a Puppet in Wechaty](https://github.com/wechaty/getting-started/wiki/FAQ#31-what-is-a-puppet-in-wechaty)
349
- *
350
- * > If you want to know how to send message, see [Message](#Message) <br>
351
- * > If you want to know how to get contact, see [Contact](#Contact)
352
- *
353
- * @example <caption>The World's Shortest ChatBot Code: 6 lines of JavaScript</caption>
354
- * import { WechatyBuilder } from 'wechaty'
355
- * const bot = WechatyBuilder.build()
356
- * bot.on('scan', (qrCode, status) => console.log('https://wechaty.js.org/qrcode/' + encodeURIComponent(qrcode)))
357
- * bot.on('login', user => console.log(`User ${user} logged in`))
358
- * bot.on('message', message => console.log(`Message: ${message}`))
359
- * bot.start()
360
- */
361
276
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
362
277
  readonly Image: import("../user-modules/image.js").ImageConstructor;
363
278
  readonly Location: import("../user-modules/location.js").LocationConstructor;
@@ -370,12 +285,13 @@ declare const mixinBase: (abstract new (...args: any[]) => {
370
285
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
371
286
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
372
287
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
288
+ readonly Moment: import("../user-modules/moment.js").MomentConstructor;
373
289
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
374
290
  readonly id: string;
375
291
  __memory?: import("memory-card").MemoryCard | undefined;
376
292
  readonly memory: import("memory-card").MemoryCard;
377
293
  __options: WechatyOptions;
378
- 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;
294
+ 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;
379
295
  addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
380
296
  once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
381
297
  prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
@@ -410,7 +326,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
410
326
  readonly memory: import("memory-card").MemoryCard;
411
327
  __options: WechatyOptions;
412
328
  init(): Promise<void>;
413
- 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;
329
+ 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;
414
330
  addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
415
331
  once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
416
332
  prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
@@ -446,32 +362,10 @@ declare const mixinBase: (abstract new (...args: any[]) => {
446
362
  __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
447
363
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
448
364
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
365
+ __wechatifiedMoment?: import("../user-modules/moment.js").MomentConstructor | undefined;
449
366
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
450
367
  readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
451
368
  readonly Delay: import("../user-modules/delay.js").DelayConstructor;
452
- /**
453
- * Main bot class.
454
- *
455
- * A `Bot` is a WeChat client depends on which puppet you use.
456
- * It may equals
457
- * - web-WeChat, when you use: [puppet-puppeteer](https://github.com/wechaty/wechaty-puppet-puppeteer)/[puppet-wechat4u](https://github.com/wechaty/wechaty-puppet-wechat4u)
458
- * - ipad-WeChat, when you use: [puppet-padchat](https://github.com/wechaty/wechaty-puppet-padchat)
459
- * - ios-WeChat, when you use: puppet-ioscat
460
- *
461
- * See more:
462
- * - [What is a Puppet in Wechaty](https://github.com/wechaty/getting-started/wiki/FAQ#31-what-is-a-puppet-in-wechaty)
463
- *
464
- * > If you want to know how to send message, see [Message](#Message) <br>
465
- * > If you want to know how to get contact, see [Contact](#Contact)
466
- *
467
- * @example <caption>The World's Shortest ChatBot Code: 6 lines of JavaScript</caption>
468
- * import { WechatyBuilder } from 'wechaty'
469
- * const bot = WechatyBuilder.build()
470
- * bot.on('scan', (qrCode, status) => console.log('https://wechaty.js.org/qrcode/' + encodeURIComponent(qrcode)))
471
- * bot.on('login', user => console.log(`User ${user} logged in`))
472
- * bot.on('message', message => console.log(`Message: ${message}`))
473
- * bot.start()
474
- */
475
369
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
476
370
  readonly Image: import("../user-modules/image.js").ImageConstructor;
477
371
  readonly Location: import("../user-modules/location.js").LocationConstructor;
@@ -484,6 +378,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
484
378
  readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
485
379
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
486
380
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
381
+ readonly Moment: import("../user-modules/moment.js").MomentConstructor;
487
382
  init(): Promise<void>;
488
383
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
489
384
  readonly id: string;
@@ -492,7 +387,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
492
387
  __options: WechatyOptions;
493
388
  start(): Promise<void>;
494
389
  stop(): Promise<void>;
495
- 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;
390
+ 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;
496
391
  addListener<E_39 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_39, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_39]): any;
497
392
  once<E_40 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_40, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_40]): any;
498
393
  prependListener<E_41 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_41, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_41]): any;
@@ -522,7 +417,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
522
417
  init(): Promise<void>;
523
418
  start(): Promise<void>;
524
419
  stop(): Promise<void>;
525
- 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;
420
+ 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;
526
421
  addListener<E_46 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_46, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_46]): any;
527
422
  once<E_47 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_47, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_47]): any;
528
423
  prependListener<E_48 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_48, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_48]): any;
@@ -1 +1 @@
1
- {"version":3,"file":"wechaty-base.d.ts","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-base.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAQnD,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACR,MAAkC,mBAAmB,CAAA;AAWtD,OAAO,EACL,eAAe,EAChB,MAAkC,uBAAuB,CAAA;AAC1D,OAAO,KAAK,EACV,gBAAgB,EACjB,MAAkC,mBAAmB,CAAA;AACtD,OAAO,KAAK,EACV,cAAc,EACf,MAAkC,+BAA+B,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoCf;;;;;;;;;;;;;;;;;;;;;;OAsBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAtBH;;;;;;;;;;;;;;;;;;;;;;OAsBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAtBH;;;;;;;;;;;;;;;;;;;;;;OAsBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAtBH;;;;;;;;;;;;;;;;;;;;;;OAsBG;;;;;;;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;OAIG;gBAEQ,SAAS,GAAE,cAAmB;IAS1B,KAAK,IAAK,OAAO,CAAC,IAAI,CAAC;IAMvB,OAAO,IAAK,OAAO,CAAC,IAAI,CAAC;IAmBzB,MAAM,IAAK,OAAO,CAAC,IAAI,CAAC;IAgBvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IAEG,GAAG,CACP,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,IAAI,CAAC;IAKV,OAAO,CACX,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,GAAG,aAAa,CAAC;CAYjC;AAED,aAAK,4BAA4B,GAE7B,oBAAoB,GACpB,gCAAgC,GAChC,SAAS,GACT,SAAS,GACT,QAAQ,CAAA;AAEZ,YAAY,EACV,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
@@ -25,6 +25,7 @@ const wechaty_impl_js_1 = require("./wechaty-impl.js");
25
25
  TagGroup;
26
26
  UrlLink;
27
27
  Channel;
28
+ Moment;
28
29
  constructor() {
29
30
  super();
30
31
  // this.puppet
@@ -43,7 +44,8 @@ const wechaty_impl_js_1 = require("./wechaty-impl.js");
43
44
  = this.TagGroup
44
45
  = this.UrlLink
45
46
  = this.Channel
46
- = {};
47
+ = this.Moment
48
+ = {};
47
49
  }
48
50
  }
49
51
  const WechatyTest = WechatyImplementation;
@@ -1 +1 @@
1
- {"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";;;;;;AACA,mCAA6B;AAC7B,oFAAkD;AAElD,oEAAkE;AAqBlE,uDAMgD;AAEhD,IAAA,aAAI,EAAC,mBAAmB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAClC,MAAe,qBAAsB,SAAQ,uCAAmB;QAE9D,OAAO,CAA4B;QACnC,WAAW,CAA4B;QACvC,KAAK,CAA4B;QACjC,UAAU,CAA4B;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C,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,yDAAyD,CAAC,CAAA;IAC/F,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,4DAA4D,CAAC,CAAA;AACpF,CAAC,CAAC,CAAA"}
@@ -27,7 +27,7 @@ declare const gErrorMixin: <MixinBase extends typeof WechatySkeleton>(mixinBase:
27
27
  init(): Promise<void>;
28
28
  start(): Promise<void>;
29
29
  stop(): Promise<void>;
30
- 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;
30
+ 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;
31
31
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
32
32
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
33
33
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -18,7 +18,7 @@ declare const ioMixin: <MixinBase extends typeof WechatySkeleton & ((abstract ne
18
18
  init(): Promise<void>;
19
19
  start(): Promise<void>;
20
20
  stop(): Promise<void>;
21
- 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;
21
+ 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;
22
22
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
23
23
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
24
24
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -47,7 +47,7 @@ declare const ioMixin: <MixinBase extends typeof WechatySkeleton & ((abstract ne
47
47
  readonly memory: import("memory-card").MemoryCard;
48
48
  __options: WechatyOptions;
49
49
  init(): Promise<void>;
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", 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;
51
51
  addListener<E_10 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_10, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_10]): any;
52
52
  once<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
53
53
  prependListener<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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,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