@juzi/wechaty 1.0.17 → 1.0.21

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 (149) hide show
  1. package/dist/cjs/src/mods/impls.d.ts +3 -3
  2. package/dist/cjs/src/mods/impls.d.ts.map +1 -1
  3. package/dist/cjs/src/mods/impls.js +2 -1
  4. package/dist/cjs/src/mods/impls.js.map +1 -1
  5. package/dist/cjs/src/mods/users.d.ts +1 -1
  6. package/dist/cjs/src/mods/users.d.ts.map +1 -1
  7. package/dist/cjs/src/package-json.js +4 -4
  8. package/dist/cjs/src/pure-functions/update.d.ts +9 -0
  9. package/dist/cjs/src/pure-functions/update.d.ts.map +1 -0
  10. package/dist/cjs/src/pure-functions/update.js +73 -0
  11. package/dist/cjs/src/pure-functions/update.js.map +1 -0
  12. package/dist/cjs/src/schemas/contact-events.d.ts +4 -1
  13. package/dist/cjs/src/schemas/contact-events.d.ts.map +1 -1
  14. package/dist/cjs/src/schemas/contact-events.js.map +1 -1
  15. package/dist/cjs/src/schemas/room-events.d.ts +5 -1
  16. package/dist/cjs/src/schemas/room-events.d.ts.map +1 -1
  17. package/dist/cjs/src/schemas/room-events.js +1 -0
  18. package/dist/cjs/src/schemas/room-events.js.map +1 -1
  19. package/dist/cjs/src/schemas/update.d.ts +12 -0
  20. package/dist/cjs/src/schemas/update.d.ts.map +1 -0
  21. package/dist/cjs/src/schemas/update.js +3 -0
  22. package/dist/cjs/src/schemas/update.js.map +1 -0
  23. package/dist/cjs/src/schemas/wechaty-events.d.ts +5 -1
  24. package/dist/cjs/src/schemas/wechaty-events.d.ts.map +1 -1
  25. package/dist/cjs/src/schemas/wechaty-events.js +1 -0
  26. package/dist/cjs/src/schemas/wechaty-events.js.map +1 -1
  27. package/dist/cjs/src/user-modules/contact.d.ts +8 -9
  28. package/dist/cjs/src/user-modules/contact.d.ts.map +1 -1
  29. package/dist/cjs/src/user-modules/contact.js +46 -33
  30. package/dist/cjs/src/user-modules/contact.js.map +1 -1
  31. package/dist/cjs/src/user-modules/mod.d.ts +4 -3
  32. package/dist/cjs/src/user-modules/mod.d.ts.map +1 -1
  33. package/dist/cjs/src/user-modules/mod.js +3 -1
  34. package/dist/cjs/src/user-modules/mod.js.map +1 -1
  35. package/dist/cjs/src/user-modules/room.d.ts +2 -2
  36. package/dist/cjs/src/user-modules/room.d.ts.map +1 -1
  37. package/dist/cjs/src/user-modules/room.js +10 -3
  38. package/dist/cjs/src/user-modules/room.js.map +1 -1
  39. package/dist/cjs/src/user-modules/tag-group.d.ts +66 -0
  40. package/dist/cjs/src/user-modules/tag-group.d.ts.map +1 -0
  41. package/dist/cjs/src/user-modules/tag-group.js +98 -0
  42. package/dist/cjs/src/user-modules/tag-group.js.map +1 -0
  43. package/dist/cjs/src/user-modules/tag.d.ts +47 -11
  44. package/dist/cjs/src/user-modules/tag.d.ts.map +1 -1
  45. package/dist/cjs/src/user-modules/tag.js +109 -27
  46. package/dist/cjs/src/user-modules/tag.js.map +1 -1
  47. package/dist/cjs/src/wechaty/wechaty-base.d.ts +22 -12
  48. package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
  49. package/dist/cjs/src/wechaty/wechaty-impl.spec.js +5 -3
  50. package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
  51. package/dist/cjs/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
  52. package/dist/cjs/src/wechaty-mixins/io-mixin.d.ts +2 -2
  53. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +11 -5
  54. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  55. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +14 -14
  56. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  57. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +14 -6
  58. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  59. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +10 -24
  60. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  61. package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +23 -0
  62. package/dist/cjs/src/wechaty-mixins/puppet-mixin.js.map +1 -1
  63. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +5 -3
  64. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  65. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +3 -0
  66. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  67. package/dist/esm/src/mods/impls.d.ts +3 -3
  68. package/dist/esm/src/mods/impls.d.ts.map +1 -1
  69. package/dist/esm/src/mods/impls.js +1 -1
  70. package/dist/esm/src/mods/impls.js.map +1 -1
  71. package/dist/esm/src/mods/users.d.ts +1 -1
  72. package/dist/esm/src/mods/users.d.ts.map +1 -1
  73. package/dist/esm/src/package-json.js +4 -4
  74. package/dist/esm/src/pure-functions/update.d.ts +9 -0
  75. package/dist/esm/src/pure-functions/update.d.ts.map +1 -0
  76. package/dist/esm/src/pure-functions/update.js +69 -0
  77. package/dist/esm/src/pure-functions/update.js.map +1 -0
  78. package/dist/esm/src/schemas/contact-events.d.ts +4 -1
  79. package/dist/esm/src/schemas/contact-events.d.ts.map +1 -1
  80. package/dist/esm/src/schemas/contact-events.js.map +1 -1
  81. package/dist/esm/src/schemas/room-events.d.ts +5 -1
  82. package/dist/esm/src/schemas/room-events.d.ts.map +1 -1
  83. package/dist/esm/src/schemas/room-events.js +1 -0
  84. package/dist/esm/src/schemas/room-events.js.map +1 -1
  85. package/dist/esm/src/schemas/update.d.ts +12 -0
  86. package/dist/esm/src/schemas/update.d.ts.map +1 -0
  87. package/dist/esm/src/schemas/update.js +2 -0
  88. package/dist/esm/src/schemas/update.js.map +1 -0
  89. package/dist/esm/src/schemas/wechaty-events.d.ts +5 -1
  90. package/dist/esm/src/schemas/wechaty-events.d.ts.map +1 -1
  91. package/dist/esm/src/schemas/wechaty-events.js +1 -0
  92. package/dist/esm/src/schemas/wechaty-events.js.map +1 -1
  93. package/dist/esm/src/user-modules/contact.d.ts +8 -9
  94. package/dist/esm/src/user-modules/contact.d.ts.map +1 -1
  95. package/dist/esm/src/user-modules/contact.js +46 -33
  96. package/dist/esm/src/user-modules/contact.js.map +1 -1
  97. package/dist/esm/src/user-modules/mod.d.ts +4 -3
  98. package/dist/esm/src/user-modules/mod.d.ts.map +1 -1
  99. package/dist/esm/src/user-modules/mod.js +2 -1
  100. package/dist/esm/src/user-modules/mod.js.map +1 -1
  101. package/dist/esm/src/user-modules/room.d.ts +2 -2
  102. package/dist/esm/src/user-modules/room.d.ts.map +1 -1
  103. package/dist/esm/src/user-modules/room.js +10 -3
  104. package/dist/esm/src/user-modules/room.js.map +1 -1
  105. package/dist/esm/src/user-modules/tag-group.d.ts +66 -0
  106. package/dist/esm/src/user-modules/tag-group.d.ts.map +1 -0
  107. package/dist/esm/src/user-modules/tag-group.js +95 -0
  108. package/dist/esm/src/user-modules/tag-group.js.map +1 -0
  109. package/dist/esm/src/user-modules/tag.d.ts +47 -11
  110. package/dist/esm/src/user-modules/tag.d.ts.map +1 -1
  111. package/dist/esm/src/user-modules/tag.js +109 -27
  112. package/dist/esm/src/user-modules/tag.js.map +1 -1
  113. package/dist/esm/src/wechaty/wechaty-base.d.ts +22 -12
  114. package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
  115. package/dist/esm/src/wechaty/wechaty-impl.spec.js +5 -3
  116. package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
  117. package/dist/esm/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
  118. package/dist/esm/src/wechaty-mixins/io-mixin.d.ts +2 -2
  119. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +11 -5
  120. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  121. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +14 -14
  122. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  123. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +14 -6
  124. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  125. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +10 -24
  126. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  127. package/dist/esm/src/wechaty-mixins/puppet-mixin.js +23 -0
  128. package/dist/esm/src/wechaty-mixins/puppet-mixin.js.map +1 -1
  129. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +5 -3
  130. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  131. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +4 -1
  132. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  133. package/package.json +3 -3
  134. package/src/mods/impls.ts +3 -0
  135. package/src/mods/users.ts +1 -0
  136. package/src/package-json.ts +4 -4
  137. package/src/pure-functions/update.ts +68 -0
  138. package/src/schemas/contact-events.ts +4 -0
  139. package/src/schemas/room-events.ts +5 -0
  140. package/src/schemas/update.ts +14 -0
  141. package/src/schemas/wechaty-events.ts +5 -1
  142. package/src/user-modules/contact.ts +57 -35
  143. package/src/user-modules/mod.ts +8 -0
  144. package/src/user-modules/room.ts +11 -4
  145. package/src/user-modules/tag-group.ts +151 -0
  146. package/src/user-modules/tag.ts +131 -14
  147. package/src/wechaty/wechaty-impl.spec.ts +3 -0
  148. package/src/wechaty-mixins/puppet-mixin.ts +24 -0
  149. package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
@@ -15,7 +15,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
15
15
  init(): Promise<void>;
16
16
  start(): Promise<void>;
17
17
  stop(): Promise<void>;
18
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
18
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
19
19
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
20
20
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
21
21
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -65,7 +65,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
65
65
  init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
66
66
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
67
67
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
68
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
68
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
69
69
  addListener<E_10 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_10, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_10]): any;
70
70
  once<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
71
71
  prependListener<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
@@ -99,6 +99,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
99
99
  __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
100
100
  __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
101
101
  __wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
102
+ __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
102
103
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
103
104
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
104
105
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
@@ -113,6 +114,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
113
114
  readonly Room: import("../user-modules/room.js").RoomConstructor;
114
115
  readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
115
116
  readonly Tag: import("../user-modules/tag.js").TagConstructor;
117
+ readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
116
118
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
117
119
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
118
120
  wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
@@ -144,6 +146,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
144
146
  __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
145
147
  __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
146
148
  __wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
149
+ __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
147
150
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
148
151
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
149
152
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
@@ -158,6 +161,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
158
161
  readonly Room: import("../user-modules/room.js").RoomConstructor;
159
162
  readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
160
163
  readonly Tag: import("../user-modules/tag.js").TagConstructor;
164
+ readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
161
165
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
162
166
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
163
167
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
@@ -165,7 +169,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
165
169
  __memory?: import("memory-card").MemoryCard | undefined;
166
170
  readonly memory: import("memory-card").MemoryCard;
167
171
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
168
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
172
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
169
173
  addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
170
174
  once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
171
175
  prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
@@ -201,6 +205,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
201
205
  __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
202
206
  __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
203
207
  __wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
208
+ __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
204
209
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
205
210
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
206
211
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
@@ -215,6 +220,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
215
220
  readonly Room: import("../user-modules/room.js").RoomConstructor;
216
221
  readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
217
222
  readonly Tag: import("../user-modules/tag.js").TagConstructor;
223
+ readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
218
224
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
219
225
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
220
226
  init(): Promise<void>;
@@ -225,7 +231,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
225
231
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
226
232
  start(): Promise<void>;
227
233
  stop(): Promise<void>;
228
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
234
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
229
235
  addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
230
236
  once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
231
237
  prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
@@ -255,7 +261,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
255
261
  readonly memory: import("memory-card").MemoryCard;
256
262
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
257
263
  init(): Promise<void>;
258
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
264
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
259
265
  addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
260
266
  once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
261
267
  prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
@@ -304,7 +310,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
304
310
  init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
305
311
  start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
306
312
  stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
307
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
313
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
308
314
  addListener<E_39 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_39, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_39]): any;
309
315
  once<E_40 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_40, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_40]): any;
310
316
  prependListener<E_41 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_41, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_41]): any;
@@ -364,6 +370,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
364
370
  __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
365
371
  __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
366
372
  __wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
373
+ __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
367
374
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
368
375
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
369
376
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
@@ -378,6 +385,7 @@ declare const pluginMixin: <MixinBase extends typeof WechatySkeleton & ((abstrac
378
385
  readonly Room: import("../user-modules/room.js").RoomConstructor;
379
386
  readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
380
387
  readonly Tag: import("../user-modules/tag.js").TagConstructor;
388
+ readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
381
389
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
382
390
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
383
391
  __io?: import("../io.js").Io | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/plugin-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACzB,MAAkC,cAAc,CAAA;AAKjD,OAAO,KAAK,EACV,eAAe,EAChB,MAA4B,mBAAmB,CAAA;AAKhD,UAAU,QAAQ;IAChB,GAAG,CACD,GAAG,OAAO,EAAE,CACR,aAAa,GACb,aAAa,EAAE,CAClB,EAAE,GACF,wBAAwB,CAAA;CAC5B;AAED,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASb;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAtBmB,GAAG,EAAE;IAI3B;;;;;;;;;;;;;;;;;;OAkBG;oBAEW,CACV,aAAa,GAAG,aAAa,EAAE,CAChC,EAAE,GACF,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAvB3B;;;;;;;;;;;;;;;;;;OAkBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkCN,CAA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A4B,GAAG,KAAK,CAAA;AAEzC,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,4BAA4B,EACjC,WAAW,GACZ,CAAA"}
@@ -21,6 +21,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
21
21
  __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
22
22
  __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
23
23
  __wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
24
+ __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
24
25
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
25
26
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
26
27
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
@@ -29,21 +30,13 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
29
30
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
30
31
  readonly Image: import("../user-modules/image.js").ImageConstructor;
31
32
  readonly Location: import("../user-modules/location.js").LocationConstructor;
32
- readonly Message: import("../user-modules/message.js").MessageConstructor; /**
33
- * Huan(202111):
34
- *
35
- * We should throw the Timeout error when the puppet.start() can not be finished in time.
36
- * However, we need to compatible with some buggy puppet implementations which will not resolve the promise.
37
- *
38
- * TODO: throw the Timeout error when the puppet.start() can not be finished in time.
39
- *
40
- * e.g. after resolve @issue https://github.com/padlocal/wechaty-puppet-padlocal/issues/116
41
- */
33
+ readonly Message: import("../user-modules/message.js").MessageConstructor;
42
34
  readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
43
35
  readonly Post: import("../user-modules/post.js").PostConstructor;
44
36
  readonly Room: import("../user-modules/room.js").RoomConstructor;
45
37
  readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
46
38
  readonly Tag: import("../user-modules/tag.js").TagConstructor;
39
+ readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
47
40
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
48
41
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
49
42
  init(): Promise<void>;
@@ -54,7 +47,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
54
47
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
55
48
  start(): Promise<void>;
56
49
  stop(): Promise<void>;
57
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
50
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
58
51
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
59
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;
60
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,7 +77,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
84
77
  init(): Promise<void>;
85
78
  start(): Promise<void>;
86
79
  stop(): Promise<void>;
87
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
80
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
88
81
  addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
89
82
  once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
90
83
  prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
@@ -113,7 +106,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
113
106
  readonly memory: import("memory-card").MemoryCard;
114
107
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
115
108
  init(): Promise<void>;
116
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
109
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
117
110
  addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
118
111
  once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
119
112
  prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
@@ -155,6 +148,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
155
148
  __wechatifiedRoom?: import("../user-modules/room.js").RoomConstructor | undefined;
156
149
  __wechatifiedRoomInvitation?: import("../user-modules/room-invitation.js").RoomInvitationConstructor | undefined;
157
150
  __wechatifiedTag?: import("../user-modules/tag.js").TagConstructor | undefined;
151
+ __wechatifiedTagGroup?: import("../user-modules/tag-group.js").TagGroupConstructor | undefined;
158
152
  __wechatifiedUrlLink?: import("../user-modules/url-link.js").UrlLinkConstructor | undefined;
159
153
  __wechatifiedChannel?: import("../user-modules/channel.js").ChannelConstructor | undefined;
160
154
  readonly Contact: import("../user-modules/contact.js").ContactConstructor;
@@ -163,21 +157,13 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
163
157
  readonly Friendship: import("../user-modules/friendship.js").FriendshipConstructor;
164
158
  readonly Image: import("../user-modules/image.js").ImageConstructor;
165
159
  readonly Location: import("../user-modules/location.js").LocationConstructor;
166
- readonly Message: import("../user-modules/message.js").MessageConstructor; /**
167
- * Huan(202111):
168
- *
169
- * We should throw the Timeout error when the puppet.start() can not be finished in time.
170
- * However, we need to compatible with some buggy puppet implementations which will not resolve the promise.
171
- *
172
- * TODO: throw the Timeout error when the puppet.start() can not be finished in time.
173
- *
174
- * e.g. after resolve @issue https://github.com/padlocal/wechaty-puppet-padlocal/issues/116
175
- */
160
+ readonly Message: import("../user-modules/message.js").MessageConstructor;
176
161
  readonly MiniProgram: import("../user-modules/mini-program.js").MiniProgramConstructor;
177
162
  readonly Post: import("../user-modules/post.js").PostConstructor;
178
163
  readonly Room: import("../user-modules/room.js").RoomConstructor;
179
164
  readonly RoomInvitation: import("../user-modules/room-invitation.js").RoomInvitationConstructor;
180
165
  readonly Tag: import("../user-modules/tag.js").TagConstructor;
166
+ readonly TagGroup: import("../user-modules/tag-group.js").TagGroupConstructor;
181
167
  readonly UrlLink: import("../user-modules/url-link.js").UrlLinkConstructor;
182
168
  readonly Channel: import("../user-modules/channel.js").ChannelConstructor;
183
169
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
@@ -185,7 +171,7 @@ declare const puppetMixin: <MixinBase extends ((abstract new (...args: any[]) =>
185
171
  __memory?: import("memory-card").MemoryCard | undefined;
186
172
  readonly memory: import("memory-card").MemoryCard;
187
173
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
188
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
174
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
189
175
  addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
190
176
  once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
191
177
  prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
@@ -1 +1 @@
1
- {"version":3,"file":"puppet-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/puppet-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAW,sBAAsB,CAAA;AASnD,OAAO,KAAK,EACV,oBAAoB,EACrB,MAA4B,cAAc,CAAA;AAmB3C;;;;;;;GAOG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;+EAmDL;;;;;;;;;OASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAzCW,GAAG,EAAE;;;2BAJH,oBAAoB;;aAWnB,QAAQ,IAAI,CAAC;YA+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AW,EACX,4BAA4B,GAC7B,CAAA;AACD,OAAO,EACL,WAAW,GACZ,CAAA"}
@@ -4,6 +4,7 @@ import { GError, timeoutPromise, TimeoutPromiseGError, } from 'gerror';
4
4
  import { StateSwitch } from 'state-switch';
5
5
  import { config } from '../config.js';
6
6
  import { timestampToDate } from '../pure-functions/timestamp-to-date.js';
7
+ import { diffPayload } from '../pure-functions/update.js';
7
8
  const PUPPET_MEMORY_NAME = 'puppet';
8
9
  /**
9
10
  * Huan(202111): `puppetMixin` must extend `pluginMixin`
@@ -355,12 +356,34 @@ const puppetMixin = (mixinBase) => {
355
356
  switch (payloadType) {
356
357
  case PUPPET.types.Payload.Contact: {
357
358
  const contact = await this.Contact.find({ id: payloadId });
359
+ const oldPayload = JSON.parse(JSON.stringify(contact?.payload || {}));
358
360
  await contact?.ready(true);
361
+ const newPayload = JSON.parse(JSON.stringify(contact?.payload || {}));
362
+ const updateEvent = {
363
+ type: payloadType,
364
+ id: payloadId,
365
+ updates: diffPayload(oldPayload, newPayload),
366
+ };
367
+ if (updateEvent.updates.length > 0) {
368
+ this.emit('update', updateEvent);
369
+ contact?.emit('update', updateEvent);
370
+ }
359
371
  break;
360
372
  }
361
373
  case PUPPET.types.Payload.Room: {
362
374
  const room = await this.Room.find({ id: payloadId });
375
+ const oldPayload = JSON.parse(JSON.stringify(room?.payload || {}));
363
376
  await room?.ready(true);
377
+ const newPayload = JSON.parse(JSON.stringify(room?.payload || {}));
378
+ const updateEvent = {
379
+ type: payloadType,
380
+ id: payloadId,
381
+ updates: diffPayload(oldPayload, newPayload),
382
+ };
383
+ if (updateEvent.updates.length > 0) {
384
+ this.emit('update', updateEvent);
385
+ room?.emit('update', updateEvent);
386
+ }
364
387
  break;
365
388
  }
366
389
  case PUPPET.types.Payload.RoomMember: {
@@ -1 +1 @@
1
- {"version":3,"file":"puppet-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/puppet-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,M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AAO,CAAC,UAAU;wCAClC,4BAA4B;wCAC5B,MAAK;oCACP,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO;wCAC/B,qCAAqC;wCACrC,MAAK;oCAEP,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;oCACtC;wCACE,MAAM,IAAI,KAAK,CAAC,wBAAwB,GAAG,WAAW,CAAC,CAAA;iCAC1D;6BACF;4BAAC,OAAO,CAAC,EAAE;gCACV,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;6BACnC;wBACH,CAAC,CAAC,CAAA;wBACF,MAAK;oBAEP;wBACE;;2BAEG;wBACH,MAAM,IAAI,KAAK,CAAC,YAAY,GAAG,SAAS,GAAG,eAAe,CAAC,CAAA;iBAE9D;aACF;YAED,GAAG,CAAC,OAAO,CAAC,oBAAoB,EAAE,gCAAgC,CAAC,CAAA;QACrE,CAAC;KAEF;IAED,OAAO,WAAW,CAAA;AACpB,CAAC,CAAA;AAaD,OAAO,EACL,WAAW,GACZ,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, UrlLinkConstructor, ChannelConstructor } from '../user-modules/mod.js';
1
+ import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor } 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;
@@ -13,6 +13,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
13
13
  __wechatifiedRoom?: RoomConstructor | undefined;
14
14
  __wechatifiedRoomInvitation?: RoomInvitationConstructor | undefined;
15
15
  __wechatifiedTag?: TagConstructor | undefined;
16
+ __wechatifiedTagGroup?: TagGroupConstructor | undefined;
16
17
  __wechatifiedUrlLink?: UrlLinkConstructor | undefined;
17
18
  __wechatifiedChannel?: ChannelConstructor | undefined;
18
19
  readonly Contact: ContactConstructor;
@@ -27,6 +28,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
27
28
  readonly Room: RoomConstructor;
28
29
  readonly RoomInvitation: RoomInvitationConstructor;
29
30
  readonly Tag: TagConstructor;
31
+ readonly TagGroup: TagGroupConstructor;
30
32
  readonly UrlLink: UrlLinkConstructor;
31
33
  readonly Channel: ChannelConstructor;
32
34
  init(): Promise<void>;
@@ -37,7 +39,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
37
39
  __options: import("../schemas/wechaty-options.js").WechatyOptions;
38
40
  start(): Promise<void>;
39
41
  stop(): Promise<void>;
40
- on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan", listener: (...args: any[]) => any): any;
42
+ on(event: "error" | "ready" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "update", listener: (...args: any[]) => any): any;
41
43
  addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
42
44
  once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
43
45
  prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
@@ -57,7 +59,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
57
59
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
58
60
  }) & MixinBase;
59
61
  declare type WechatifyUserModuleMixin = ReturnType<typeof wechatifyUserModuleMixin>;
60
- declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedUrlLink' | '__wechatifiedChannel';
62
+ declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel';
61
63
  export type { WechatifyUserModuleMixin, ProtectedPropertyWechatifyUserModuleMixin, };
62
64
  export { wechatifyUserModuleMixin, };
63
65
  //# 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,EAgBL,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAGnB,MAA4B,wBAAwB,CAAA;AAErD,OAAO,KAAK,EACV,eAAe,EAChB,MAAkC,mBAAmB,CAAA;AAEtD,QAAA,MAAM,wBAAwB,+FAKJ,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAmCH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cAyCxC,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,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,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,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, 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, 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 {
@@ -19,6 +19,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
19
19
  __wechatifiedRoom;
20
20
  __wechatifiedRoomInvitation;
21
21
  __wechatifiedTag;
22
+ __wechatifiedTagGroup;
22
23
  __wechatifiedUrlLink;
23
24
  __wechatifiedChannel;
24
25
  get Contact() { return guardWechatify(this.__wechatifiedContact); }
@@ -33,6 +34,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
33
34
  get Room() { return guardWechatify(this.__wechatifiedRoom); }
34
35
  get RoomInvitation() { return guardWechatify(this.__wechatifiedRoomInvitation); }
35
36
  get Tag() { return guardWechatify(this.__wechatifiedTag); }
37
+ get TagGroup() { return guardWechatify(this.__wechatifiedTagGroup); }
36
38
  get UrlLink() { return guardWechatify(this.__wechatifiedUrlLink); }
37
39
  get Channel() { return guardWechatify(this.__wechatifiedChannel); }
38
40
  async init() {
@@ -64,6 +66,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
64
66
  this.__wechatifiedRoom = wechatifyUserModule(RoomImpl)(this);
65
67
  this.__wechatifiedRoomInvitation = wechatifyUserModule(RoomInvitationImpl)(this);
66
68
  this.__wechatifiedTag = wechatifyUserModule(TagImpl)(this);
69
+ this.__wechatifiedTagGroup = wechatifyUserModule(TagGroupImpl)(this);
67
70
  this.__wechatifiedUrlLink = wechatifyUserModule(UrlLinkImpl)(this);
68
71
  this.__wechatifiedChannel = wechatifyUserModule(ChannelImpl)(this);
69
72
  log.verbose('WechatifyUserModuleMixin', 'init() initializing Wechaty User Module (WUM) ... done');
@@ -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,WAAW,EACX,WAAW,EAiBX,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,EA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AC,IAAW,CAAC,CAAA;YACjF,IAAI,CAAC,oBAAoB,GAAU,mBAAmB,CAAC,WAAW,CAAC,CAAC,IAAW,CAAC,CAAA;YAChF,IAAI,CAAC,wBAAwB,GAAM,mBAAmB,CAAC,eAAe,CAAC,CAAC,IAAW,CAAC,CAAA;YACpF,IAAI,CAAC,iBAAiB,GAAa,mBAAmB,CAAC,QAAQ,CAAC,CAAC,IAAW,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,oBAAoB,GAAU,mBAAmB,CAAC,WAAW,CAAC,CAAC,IAAW,CAAC,CAAA;YAChF,IAAI,CAAC,oBAAoB,GAAU,mBAAmB,CAAC,WAAW,CAAC,CAAC,IAAW,CAAC,CAAA;YAEhF,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;AAuBD,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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AC,oBAAoB,GAAU,mBAAmB,CAAC,WAAW,CAAC,CAAC,IAAW,CAAC,CAAA;YAEhF,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;AAwBD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty",
3
- "version": "1.0.17",
3
+ "version": "1.0.21",
4
4
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -109,8 +109,8 @@
109
109
  },
110
110
  "homepage": "https://github.com/wechaty/",
111
111
  "dependencies": {
112
- "@juzi/wechaty-puppet": "^1.0.12",
113
- "@juzi/wechaty-puppet-service": "^1.0.16",
112
+ "@juzi/wechaty-puppet": "^1.0.15",
113
+ "@juzi/wechaty-puppet-service": "^1.0.18",
114
114
  "clone-class": "^1.1.1",
115
115
  "cmd-ts": "^0.10.0",
116
116
  "cockatiel": "^2.0.2",
package/src/mods/impls.ts CHANGED
@@ -46,6 +46,7 @@ export {
46
46
  RoomInvitationImpl,
47
47
  DelayImpl,
48
48
  TagImpl,
49
+ TagGroupImpl,
49
50
  UrlLinkImpl,
50
51
  ChannelImpl,
51
52
  } from '../user-modules/mod.js'
@@ -85,6 +86,7 @@ export type {
85
86
  RoomInterface,
86
87
  RoomInvitationInterface,
87
88
  TagInterface,
89
+ TagGroupInterface,
88
90
  UrlLinkInterface,
89
91
  ChannelInterface,
90
92
  } from '../user-modules/mod.js'
@@ -105,6 +107,7 @@ export type {
105
107
  RoomConstructor,
106
108
  RoomInvitationConstructor,
107
109
  TagConstructor,
110
+ TagGroupConstructor,
108
111
  UrlLinkConstructor,
109
112
  ChannelConstructor,
110
113
  } from '../user-modules/mod.js'
package/src/mods/users.ts CHANGED
@@ -40,6 +40,7 @@ export type {
40
40
  RoomInterface as Room,
41
41
  RoomInvitationInterface as RoomInvitation,
42
42
  TagInterface as Tag,
43
+ TagGroupInterface as TagGroup,
43
44
  UrlLinkInterface as UrlLink,
44
45
  ChannelInterface as Channel,
45
46
  } from '../user-modules/mod.js'
@@ -4,10 +4,10 @@
4
4
  */
5
5
  import type { PackageJsonWechaty } from './config'
6
6
 
7
- export const GIT_COMMIT_HASH: string = '0bd685a3ccb3fcb75954bdc8405a0cc90cab8db3'
7
+ export const GIT_COMMIT_HASH: string = 'fc0b844832f84f684254ef8a0b1c7431675fdc2f'
8
8
  export const packageJson: PackageJsonWechaty = {
9
9
  "name": "@juzi/wechaty",
10
- "version": "1.0.17",
10
+ "version": "1.0.21",
11
11
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
12
12
  "type": "module",
13
13
  "exports": {
@@ -116,8 +116,8 @@ export const packageJson: PackageJsonWechaty = {
116
116
  },
117
117
  "homepage": "https://github.com/wechaty/",
118
118
  "dependencies": {
119
- "@juzi/wechaty-puppet": "^1.0.12",
120
- "@juzi/wechaty-puppet-service": "^1.0.16",
119
+ "@juzi/wechaty-puppet": "^1.0.15",
120
+ "@juzi/wechaty-puppet-service": "^1.0.18",
121
121
  "clone-class": "^1.1.1",
122
122
  "cmd-ts": "^0.10.0",
123
123
  "cockatiel": "^2.0.2",
@@ -0,0 +1,68 @@
1
+ import type { InfoUpdateValuePair } from '../schemas/update'
2
+
3
+ /**
4
+ *
5
+ * No need to go recursive on payload diff becasue
6
+ * 1. most fields of payloads are primitive values
7
+ * 2. users does not want to compare array items, they just need to know this field has changed. And we don't offer methods to get a subObject value
8
+ */
9
+ export const diffPayload = (objectOld: any, objectNew: any): InfoUpdateValuePair[] => {
10
+ const keys = new Set([...Object.keys(objectOld || {}), ...Object.keys(objectNew || {})])
11
+ const result = []
12
+ for (const key of keys) {
13
+ const subObjectOld = objectOld[key]
14
+ const subObjectNew = objectNew[key]
15
+
16
+ if (typeof subObjectOld !== typeof subObjectNew) {
17
+ result.push({
18
+ key,
19
+ oldValue: typeof subObjectOld !== 'object' ? subObjectOld : JSON.stringify(subObjectOld),
20
+ newValue: typeof subObjectNew !== 'object' ? subObjectNew : JSON.stringify(subObjectNew),
21
+ })
22
+ } else {
23
+ if (typeof subObjectOld !== 'object') {
24
+ if (subObjectOld === subObjectNew) {
25
+ continue
26
+ } else {
27
+ result.push({
28
+ key,
29
+ oldValue: subObjectOld,
30
+ newValue: subObjectNew,
31
+ })
32
+ }
33
+ } else {
34
+ // for objects, we just judge if they were same or not, but do not record every different value
35
+ if (objectDeepDiff(subObjectOld, subObjectNew)) {
36
+ continue
37
+ } else {
38
+ result.push({
39
+ key,
40
+ oldValue: JSON.stringify(subObjectOld),
41
+ newValue: JSON.stringify(subObjectNew),
42
+ })
43
+ }
44
+ }
45
+ }
46
+ }
47
+
48
+ return result
49
+ }
50
+
51
+ const objectDeepDiff = (objectA: any, objectB: any) => {
52
+ const keys = new Set([...Object.keys(objectA), ...Object.keys(objectB)])
53
+ for (const key of keys) {
54
+ if (typeof objectA[key] !== typeof objectB[key]) {
55
+ return false
56
+ }
57
+ if (typeof objectA[key] !== 'object') {
58
+ if (objectA[key] !== objectB[key]) {
59
+ return false
60
+ }
61
+ } else {
62
+ if (!objectDeepDiff(objectA[key], objectB[key])) {
63
+ return false
64
+ }
65
+ }
66
+ }
67
+ return true
68
+ }