@juzi/wechaty 1.0.35 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/cjs/src/package-json.js +2 -2
  2. package/dist/cjs/src/wechaty/wechaty-base.d.ts +10 -115
  3. package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
  4. package/dist/cjs/src/wechaty/wechaty-impl.spec.js +3 -1
  5. package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
  6. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +6 -0
  7. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  8. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +15 -3
  9. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  10. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +8 -0
  11. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  12. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +6 -20
  13. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  14. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -2
  15. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  16. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +3 -0
  17. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  18. package/dist/esm/src/package-json.js +2 -2
  19. package/dist/esm/src/wechaty/wechaty-base.d.ts +10 -115
  20. package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
  21. package/dist/esm/src/wechaty/wechaty-impl.spec.js +3 -1
  22. package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
  23. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +6 -0
  24. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  25. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +15 -3
  26. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  27. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +8 -0
  28. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  29. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +6 -20
  30. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  31. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +4 -2
  32. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  33. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +4 -1
  34. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/package-json.ts +2 -2
  37. package/src/wechaty/wechaty-impl.spec.ts +3 -0
  38. package/src/wechaty-mixins/wechatify-user-module-mixin.ts +6 -0
@@ -1,4 +1,4 @@
1
- import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor } from '../user-modules/mod.js';
1
+ import { ContactConstructor, ContactSelfConstructor, DelayConstructor, FriendshipConstructor, ImageConstructor, LocationConstructor, MessageConstructor, MiniProgramConstructor, PostConstructor, RoomConstructor, RoomInvitationConstructor, TagConstructor, TagGroupConstructor, UrlLinkConstructor, ChannelConstructor, MomentConstructor } from '../user-modules/mod.js';
2
2
  import type { WechatySkeleton } from '../wechaty/mod.js';
3
3
  declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleton>(mixinBase: MixinBase) => ((abstract new (...args: any[]) => {
4
4
  __wechatifiedContact?: ContactConstructor | undefined;
@@ -16,6 +16,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
16
16
  __wechatifiedTagGroup?: TagGroupConstructor | undefined;
17
17
  __wechatifiedUrlLink?: UrlLinkConstructor | undefined;
18
18
  __wechatifiedChannel?: ChannelConstructor | undefined;
19
+ __wechatifiedMoment?: MomentConstructor | undefined;
19
20
  readonly Contact: ContactConstructor;
20
21
  readonly ContactSelf: ContactSelfConstructor;
21
22
  readonly Delay: DelayConstructor;
@@ -31,6 +32,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
31
32
  readonly TagGroup: TagGroupConstructor;
32
33
  readonly UrlLink: UrlLinkConstructor;
33
34
  readonly Channel: ChannelConstructor;
35
+ readonly Moment: MomentConstructor;
34
36
  init(): Promise<void>;
35
37
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
36
38
  readonly id: string;
@@ -59,7 +61,7 @@ declare const wechatifyUserModuleMixin: <MixinBase extends typeof WechatySkeleto
59
61
  readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
60
62
  }) & MixinBase;
61
63
  declare type WechatifyUserModuleMixin = ReturnType<typeof wechatifyUserModuleMixin>;
62
- declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel';
64
+ declare type ProtectedPropertyWechatifyUserModuleMixin = '__wechatifiedContact' | '__wechatifiedContactSelf' | '__wechatifiedDelay' | '__wechatifiedFriendship' | '__wechatifiedImage' | '__wechatifiedLocation' | '__wechatifiedMessage' | '__wechatifiedMiniProgram' | '__wechatifiedRoom' | '__wechatifiedRoomInvitation' | '__wechatifiedTag' | '__wechatifiedTagGroup' | '__wechatifiedUrlLink' | '__wechatifiedChannel' | '__wechatifiedMoment';
63
65
  export type { WechatifyUserModuleMixin, ProtectedPropertyWechatifyUserModuleMixin, };
64
66
  export { wechatifyUserModuleMixin, };
65
67
  //# sourceMappingURL=wechatify-user-module-mixin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wechatify-user-module-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,EAiBL,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAGnB,MAA4B,wBAAwB,CAAA;AAErD,OAAO,KAAK,EACV,eAAe,EAChB,MAAkC,mBAAmB,CAAA;AAEtD,QAAA,MAAM,wBAAwB,+FAKJ,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqCH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CxC,CAAA;AAYD,aAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE3E,aAAK,yCAAyC,GAC1C,sBAAsB,GACtB,0BAA0B,GAC1B,oBAAoB,GACpB,yBAAyB,GACzB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,0BAA0B,GAC1B,mBAAmB,GACnB,6BAA6B,GAC7B,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,sBAAsB,CAAA;AAE1B,YAAY,EACV,wBAAwB,EACxB,yCAAyC,GAC1C,CAAA;AACD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
1
+ {"version":3,"file":"wechatify-user-module-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,EAkBL,kBAAkB,EAClB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EAGlB,MAA4B,wBAAwB,CAAA;AAErD,OAAO,KAAK,EACV,eAAe,EAChB,MAAkC,mBAAmB,CAAA;AAEtD,QAAA,MAAM,wBAAwB,+FAKJ,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAuCH,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;cA2CxC,CAAA;AAYD,aAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE3E,aAAK,yCAAyC,GAC1C,sBAAsB,GACtB,0BAA0B,GAC1B,oBAAoB,GACpB,yBAAyB,GACzB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,0BAA0B,GAC1B,mBAAmB,GACnB,6BAA6B,GAC7B,kBAAkB,GAClB,uBAAuB,GACvB,sBAAsB,GACtB,sBAAsB,GACtB,qBAAqB,CAAA;AAEzB,YAAY,EACV,wBAAwB,EACxB,yCAAyC,GAC1C,CAAA;AACD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { log } from '@juzi/wechaty-puppet';
2
- import { ContactImpl, ContactSelfImpl, DelayImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, PostImpl, RoomImpl, RoomInvitationImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, wechatifyUserModule, } from '../user-modules/mod.js';
2
+ import { ContactImpl, ContactSelfImpl, DelayImpl, FriendshipImpl, ImageImpl, LocationImpl, MessageImpl, MiniProgramImpl, PostImpl, RoomImpl, RoomInvitationImpl, TagImpl, TagGroupImpl, UrlLinkImpl, ChannelImpl, MomentImpl, wechatifyUserModule, } from '../user-modules/mod.js';
3
3
  const wechatifyUserModuleMixin = (mixinBase) => {
4
4
  log.verbose('WechatifyUserModuleMixin', 'wechatifyUserModuleMixin(%s)', mixinBase.name);
5
5
  class WechatifyUserModuleMixin extends mixinBase {
@@ -22,6 +22,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
22
22
  __wechatifiedTagGroup;
23
23
  __wechatifiedUrlLink;
24
24
  __wechatifiedChannel;
25
+ __wechatifiedMoment;
25
26
  get Contact() { return guardWechatify(this.__wechatifiedContact); }
26
27
  get ContactSelf() { return guardWechatify(this.__wechatifiedContactSelf); }
27
28
  get Delay() { return guardWechatify(this.__wechatifiedDelay); }
@@ -37,6 +38,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
37
38
  get TagGroup() { return guardWechatify(this.__wechatifiedTagGroup); }
38
39
  get UrlLink() { return guardWechatify(this.__wechatifiedUrlLink); }
39
40
  get Channel() { return guardWechatify(this.__wechatifiedChannel); }
41
+ get Moment() { return guardWechatify(this.__wechatifiedMoment); }
40
42
  async init() {
41
43
  log.verbose('WechatifyUserModuleMixin', 'init()');
42
44
  await super.init();
@@ -69,6 +71,7 @@ const wechatifyUserModuleMixin = (mixinBase) => {
69
71
  this.__wechatifiedTagGroup = wechatifyUserModule(TagGroupImpl)(this);
70
72
  this.__wechatifiedUrlLink = wechatifyUserModule(UrlLinkImpl)(this);
71
73
  this.__wechatifiedChannel = wechatifyUserModule(ChannelImpl)(this);
74
+ this.__wechatifiedMoment = wechatifyUserModule(MomentImpl)(this);
72
75
  log.verbose('WechatifyUserModuleMixin', 'init() initializing Wechaty User Module (WUM) ... done');
73
76
  }
74
77
  }
@@ -1 +1 @@
1
- {"version":3,"file":"wechatify-user-module-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,M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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;AAwBD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
1
+ {"version":3,"file":"wechatify-user-module-mixin.js","sourceRoot":"","sources":["../../../../src/wechaty-mixins/wechatify-user-module-mixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAe,sBAAsB,CAAA;AAEnD,OAAO,EACL,WAAW,EACX,eAAe,EACf,SAAS,EACT,cAAc,EACd,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,kBAAkB,EAClB,OAAO,EACP,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EAmBV,mBAAmB,GACpB,MAA4B,wBAAwB,CAAA;AAMrD,MAAM,wBAAwB,GAAG,CAA4C,SAAoB,EAAE,EAAE;IACnG,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,8BAA8B,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAEvF,MAAe,wBAAyB,SAAQ,SAAS;QAEvD,YAAa,GAAG,IAAW;YACzB,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,eAAe,CAAC,CAAA;YACxD,KAAK,CAAC,GAAG,IAAI,CAAC,CAAA;QAChB,CAAC;QAED,oBAAoB,CAA6B;QACjD,wBAAwB,CAA6B;QACrD,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ACjH,CAAC;AAyBD,OAAO,EACL,wBAAwB,GACzB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -4,10 +4,10 @@
4
4
  */
5
5
  import type { PackageJsonWechaty } from './config'
6
6
 
7
- export const GIT_COMMIT_HASH: string = '597df4230be16ea405f928017130d640edf4ba08'
7
+ export const GIT_COMMIT_HASH: string = 'd38fc9edcd6912f0eb6e97dafbb3784003e41a7a'
8
8
  export const packageJson: PackageJsonWechaty = {
9
9
  "name": "@juzi/wechaty",
10
- "version": "1.0.35",
10
+ "version": "1.0.36",
11
11
  "description": "Wechaty is a RPA SDK for Chatbot Makers.",
12
12
  "type": "module",
13
13
  "exports": {
@@ -21,6 +21,7 @@ import type {
21
21
  UrlLinkConstructor,
22
22
  MessageInterface,
23
23
  ChannelConstructor,
24
+ MomentConstructor,
24
25
  } from '../user-modules/mod.js'
25
26
 
26
27
  import {
@@ -49,6 +50,7 @@ test('Wechaty interface', async t => {
49
50
  TagGroup : TagGroupConstructor
50
51
  UrlLink : UrlLinkConstructor
51
52
  Channel : ChannelConstructor
53
+ Moment : MomentConstructor
52
54
 
53
55
  constructor () {
54
56
  super()
@@ -68,6 +70,7 @@ test('Wechaty interface', async t => {
68
70
  = this.TagGroup
69
71
  = this.UrlLink
70
72
  = this.Channel
73
+ = this.Moment
71
74
  = {} as any
72
75
  }
73
76
 
@@ -16,6 +16,7 @@ import {
16
16
  TagGroupImpl,
17
17
  UrlLinkImpl,
18
18
  ChannelImpl,
19
+ MomentImpl,
19
20
 
20
21
  ContactConstructor,
21
22
  ContactSelfConstructor,
@@ -32,6 +33,7 @@ import {
32
33
  TagGroupConstructor,
33
34
  UrlLinkConstructor,
34
35
  ChannelConstructor,
36
+ MomentConstructor,
35
37
 
36
38
  wechatifyUserModule,
37
39
  } from '../user-modules/mod.js'
@@ -65,6 +67,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
65
67
  __wechatifiedTagGroup? : TagGroupConstructor
66
68
  __wechatifiedUrlLink? : UrlLinkConstructor
67
69
  __wechatifiedChannel? : ChannelConstructor
70
+ __wechatifiedMoment? : MomentConstructor
68
71
 
69
72
  get Contact () : ContactConstructor { return guardWechatify(this.__wechatifiedContact) }
70
73
  get ContactSelf () : ContactSelfConstructor { return guardWechatify(this.__wechatifiedContactSelf) }
@@ -81,6 +84,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
81
84
  get TagGroup () : TagGroupConstructor { return guardWechatify(this.__wechatifiedTagGroup) }
82
85
  get UrlLink () : UrlLinkConstructor { return guardWechatify(this.__wechatifiedUrlLink) }
83
86
  get Channel () : ChannelConstructor { return guardWechatify(this.__wechatifiedChannel) }
87
+ get Moment () : MomentConstructor { return guardWechatify(this.__wechatifiedMoment) }
84
88
 
85
89
  override async init (): Promise<void> {
86
90
  log.verbose('WechatifyUserModuleMixin', 'init()')
@@ -117,6 +121,7 @@ const wechatifyUserModuleMixin = <MixinBase extends typeof WechatySkeleton> (mix
117
121
  this.__wechatifiedTagGroup = wechatifyUserModule(TagGroupImpl)(this as any)
118
122
  this.__wechatifiedUrlLink = wechatifyUserModule(UrlLinkImpl)(this as any)
119
123
  this.__wechatifiedChannel = wechatifyUserModule(ChannelImpl)(this as any)
124
+ this.__wechatifiedMoment = wechatifyUserModule(MomentImpl)(this as any)
120
125
 
121
126
  log.verbose('WechatifyUserModuleMixin', 'init() initializing Wechaty User Module (WUM) ... done')
122
127
  }
@@ -153,6 +158,7 @@ type ProtectedPropertyWechatifyUserModuleMixin =
153
158
  | '__wechatifiedTagGroup'
154
159
  | '__wechatifiedUrlLink'
155
160
  | '__wechatifiedChannel'
161
+ | '__wechatifiedMoment'
156
162
 
157
163
  export type {
158
164
  WechatifyUserModuleMixin,