@juzi/wechaty 1.0.133 → 1.0.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/package-json.js +3 -3
- package/dist/cjs/src/sayable/deliver-sayable.d.ts.map +1 -1
- package/dist/cjs/src/sayable/deliver-sayable.js +6 -0
- package/dist/cjs/src/sayable/deliver-sayable.js.map +1 -1
- package/dist/cjs/src/sayable/types.d.ts +2 -2
- package/dist/cjs/src/sayable/types.d.ts.map +1 -1
- package/dist/cjs/src/sayable/types.js.map +1 -1
- package/dist/cjs/src/schemas/wechaty-events.d.ts +9 -0
- package/dist/cjs/src/schemas/wechaty-events.d.ts.map +1 -1
- package/dist/cjs/src/schemas/wechaty-events.js.map +1 -1
- package/dist/cjs/src/user-modules/im-specific.d.ts +1 -0
- package/dist/cjs/src/user-modules/im-specific.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/im-specific.js +4 -0
- package/dist/cjs/src/user-modules/im-specific.js.map +1 -1
- package/dist/cjs/src/user-modules/mod.d.ts +5 -3
- package/dist/cjs/src/user-modules/mod.d.ts.map +1 -1
- package/dist/cjs/src/user-modules/mod.js +5 -1
- package/dist/cjs/src/user-modules/mod.js.map +1 -1
- package/dist/cjs/src/user-modules/wxxd-order.d.ts +91 -0
- package/dist/cjs/src/user-modules/wxxd-order.d.ts.map +1 -0
- package/dist/cjs/src/user-modules/wxxd-order.js +140 -0
- package/dist/cjs/src/user-modules/wxxd-order.js.map +1 -0
- package/dist/cjs/src/user-modules/wxxd-product.d.ts +87 -0
- package/dist/cjs/src/user-modules/wxxd-product.d.ts.map +1 -0
- package/dist/cjs/src/user-modules/wxxd-product.js +134 -0
- package/dist/cjs/src/user-modules/wxxd-product.js.map +1 -0
- package/dist/cjs/src/wechaty/wechaty-base.d.ts +27 -7
- package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/cjs/src/wechaty/wechaty-impl.spec.js +5 -1
- package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
- package/dist/cjs/src/wechaty-mixins/io-mixin.d.ts +2 -2
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +17 -5
- package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +17 -5
- package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +22 -6
- package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +14 -10
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +18 -0
- package/dist/cjs/src/wechaty-mixins/puppet-mixin.js.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +7 -3
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +6 -0
- package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/dist/esm/src/package-json.js +3 -3
- package/dist/esm/src/sayable/deliver-sayable.d.ts.map +1 -1
- package/dist/esm/src/sayable/deliver-sayable.js +7 -1
- package/dist/esm/src/sayable/deliver-sayable.js.map +1 -1
- package/dist/esm/src/sayable/types.d.ts +2 -2
- package/dist/esm/src/sayable/types.d.ts.map +1 -1
- package/dist/esm/src/sayable/types.js.map +1 -1
- package/dist/esm/src/schemas/wechaty-events.d.ts +9 -0
- package/dist/esm/src/schemas/wechaty-events.d.ts.map +1 -1
- package/dist/esm/src/schemas/wechaty-events.js.map +1 -1
- package/dist/esm/src/user-modules/im-specific.d.ts +1 -0
- package/dist/esm/src/user-modules/im-specific.d.ts.map +1 -1
- package/dist/esm/src/user-modules/im-specific.js +4 -0
- package/dist/esm/src/user-modules/im-specific.js.map +1 -1
- package/dist/esm/src/user-modules/mod.d.ts +5 -3
- package/dist/esm/src/user-modules/mod.d.ts.map +1 -1
- package/dist/esm/src/user-modules/mod.js +3 -1
- package/dist/esm/src/user-modules/mod.js.map +1 -1
- package/dist/esm/src/user-modules/wxxd-order.d.ts +91 -0
- package/dist/esm/src/user-modules/wxxd-order.d.ts.map +1 -0
- package/dist/esm/src/user-modules/wxxd-order.js +114 -0
- package/dist/esm/src/user-modules/wxxd-order.js.map +1 -0
- package/dist/esm/src/user-modules/wxxd-product.d.ts +87 -0
- package/dist/esm/src/user-modules/wxxd-product.d.ts.map +1 -0
- package/dist/esm/src/user-modules/wxxd-product.js +108 -0
- package/dist/esm/src/user-modules/wxxd-product.js.map +1 -0
- package/dist/esm/src/wechaty/wechaty-base.d.ts +27 -7
- package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
- package/dist/esm/src/wechaty/wechaty-impl.spec.js +5 -1
- package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
- package/dist/esm/src/wechaty-mixins/io-mixin.d.ts +2 -2
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +17 -5
- package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +17 -5
- package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +22 -6
- package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +14 -10
- package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/puppet-mixin.js +18 -0
- package/dist/esm/src/wechaty-mixins/puppet-mixin.js.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +7 -3
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +7 -1
- package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
- package/package.json +2 -2
- package/src/package-json.ts +3 -3
- package/src/sayable/deliver-sayable.ts +12 -0
- package/src/sayable/types.ts +4 -0
- package/src/schemas/wechaty-events.ts +6 -0
- package/src/user-modules/im-specific.ts +5 -0
- package/src/user-modules/mod.ts +16 -0
- package/src/user-modules/wxxd-order.ts +161 -0
- package/src/user-modules/wxxd-product.ts +154 -0
- package/src/wechaty/wechaty-impl.spec.ts +6 -0
- package/src/wechaty-mixins/puppet-mixin.ts +21 -0
- package/src/wechaty-mixins/wechatify-user-module-mixin.ts +12 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as PUPPET from '@juzi/wechaty-puppet';
|
|
2
|
+
import { log } from '../config.js';
|
|
3
|
+
import { poolifyMixin } from '../user-mixins/poolify.js';
|
|
4
|
+
import { validationMixin } from '../user-mixins/validation.js';
|
|
5
|
+
import { wechatifyMixin } from '../user-mixins/wechatify.js';
|
|
6
|
+
const MixinBase = wechatifyMixin(poolifyMixin(Object)());
|
|
7
|
+
class WxxdProductMixin extends MixinBase {
|
|
8
|
+
id;
|
|
9
|
+
/**
|
|
10
|
+
* Instance properties
|
|
11
|
+
* @ignore
|
|
12
|
+
*/
|
|
13
|
+
payload;
|
|
14
|
+
/**
|
|
15
|
+
* @hideconstructor
|
|
16
|
+
*/
|
|
17
|
+
constructor(id) {
|
|
18
|
+
super();
|
|
19
|
+
this.id = id;
|
|
20
|
+
log.silly('WxxdProduct', 'constructor(%s)', id);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List all products
|
|
24
|
+
*/
|
|
25
|
+
static async list(query) {
|
|
26
|
+
log.verbose('WxxdProduct', 'list(%s)', JSON.stringify(query));
|
|
27
|
+
return await this.wechaty.puppet.listWxxdProducts(query);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Find product by id or filter
|
|
31
|
+
*/
|
|
32
|
+
static async find(query) {
|
|
33
|
+
log.verbose('WxxdProduct', 'find(%s)', JSON.stringify(query));
|
|
34
|
+
const id = typeof query === 'string' ? query : query.id;
|
|
35
|
+
if (!id) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
const product = this.wechaty.WxxdProduct.load(id);
|
|
39
|
+
try {
|
|
40
|
+
await product.ready();
|
|
41
|
+
}
|
|
42
|
+
catch (e) {
|
|
43
|
+
this.wechaty.emitError(e);
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
return product;
|
|
47
|
+
}
|
|
48
|
+
isReady() {
|
|
49
|
+
return !!(this.payload && this.payload.productId);
|
|
50
|
+
}
|
|
51
|
+
async ready(forceSync = false) {
|
|
52
|
+
log.silly('WxxdProduct', 'ready() @ %s with id="%s"', this.wechaty.puppet, this.id);
|
|
53
|
+
if (!forceSync && this.isReady()) {
|
|
54
|
+
log.silly('WxxdProduct', 'ready() isReady() true');
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
try {
|
|
58
|
+
this.payload = await this.wechaty.puppet.wxxdProductPayload(this.id);
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
this.wechaty.emitError(e);
|
|
62
|
+
log.verbose('WxxdProduct', 'ready() this.wechaty.puppet.wxxdProductPayload(%s) exception: %s', this.id, e.message);
|
|
63
|
+
throw e;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get product title
|
|
68
|
+
*/
|
|
69
|
+
title() {
|
|
70
|
+
return this.payload?.title || '';
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Get product short title
|
|
74
|
+
*/
|
|
75
|
+
shortTitle() {
|
|
76
|
+
return this.payload?.shortTitle || '';
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Get product status
|
|
80
|
+
*/
|
|
81
|
+
status() {
|
|
82
|
+
return this.payload?.status || PUPPET.types.WxxdProductStatus.NotExist;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Get product min price
|
|
86
|
+
*/
|
|
87
|
+
minPrice() {
|
|
88
|
+
return this.payload?.minPrice || 0;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get product total sold number
|
|
92
|
+
*/
|
|
93
|
+
totalSoldNum() {
|
|
94
|
+
return this.payload?.totalSoldNum || 0;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Get product SKUs
|
|
98
|
+
*/
|
|
99
|
+
skus() {
|
|
100
|
+
return this.payload?.skus || [];
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
class WxxdProductImplBase extends validationMixin(WxxdProductMixin)() {
|
|
104
|
+
}
|
|
105
|
+
class WxxdProductImpl extends validationMixin(WxxdProductImplBase)() {
|
|
106
|
+
}
|
|
107
|
+
export { WxxdProductImpl, };
|
|
108
|
+
//# sourceMappingURL=wxxd-product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wxxd-product.js","sourceRoot":"","sources":["../../../../src/user-modules/wxxd-product.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAE9C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAE5D,MAAM,SAAS,GAAG,cAAc,CAC9B,YAAY,CAAC,MAAM,CAAC,EAA4B,CACjD,CAAA;AAED,MAAM,gBAAiB,SAAQ,SAAS;IAYpB;IAVlB;;;OAGG;IACH,OA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AAE,CAAA;IACjC,CAAC;CAEF;AAED,MAAM,mBAAoB,SAAQ,eAAe,CAAC,gBAAgB,CAAC,EAA4B;CAAI;AAKnG,MAAM,eAAgB,SAAQ,eAAe,CAAC,mBAAmB,CAAC,EAAwB;CAAI;AAY9F,OAAO,EACL,eAAe,GAChB,CAAA"}
|
|
@@ -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" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
29
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", 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;
|
|
@@ -80,6 +80,8 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
80
80
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
81
81
|
__wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined;
|
|
82
82
|
__wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
|
|
83
|
+
__wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
|
|
84
|
+
__wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
|
|
83
85
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
84
86
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
85
87
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -104,6 +106,8 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
104
106
|
readonly Wecom: import("../user-modules/wecom.js").WecomConstructor;
|
|
105
107
|
readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor;
|
|
106
108
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
109
|
+
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
110
|
+
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
107
111
|
__io?: import("../io.js").Io | undefined;
|
|
108
112
|
readonly io: import("../io.js").Io;
|
|
109
113
|
__ioToken?: string | undefined;
|
|
@@ -123,7 +127,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
123
127
|
init: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
124
128
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
125
129
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
126
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
130
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
127
131
|
addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
128
132
|
once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
129
133
|
prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
|
|
@@ -170,6 +174,8 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
170
174
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
171
175
|
__wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined;
|
|
172
176
|
__wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
|
|
177
|
+
__wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
|
|
178
|
+
__wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
|
|
173
179
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
174
180
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
175
181
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -194,6 +200,8 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
194
200
|
readonly Wecom: import("../user-modules/wecom.js").WecomConstructor;
|
|
195
201
|
readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor;
|
|
196
202
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
203
|
+
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
204
|
+
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
197
205
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
198
206
|
emitError(e: any): void;
|
|
199
207
|
__io?: import("../io.js").Io | undefined;
|
|
@@ -217,7 +225,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
217
225
|
__options: WechatyOptions;
|
|
218
226
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
219
227
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
220
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
228
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
221
229
|
addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
|
|
222
230
|
once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
|
|
223
231
|
prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
|
|
@@ -264,6 +272,8 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
264
272
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
265
273
|
__wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined;
|
|
266
274
|
__wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
|
|
275
|
+
__wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
|
|
276
|
+
__wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
|
|
267
277
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
268
278
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
269
279
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -288,6 +298,8 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
288
298
|
readonly Wecom: import("../user-modules/wecom.js").WecomConstructor;
|
|
289
299
|
readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor;
|
|
290
300
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
301
|
+
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
302
|
+
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
291
303
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
292
304
|
emitError(e: any): void;
|
|
293
305
|
__io?: import("../io.js").Io | undefined;
|
|
@@ -330,6 +342,8 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
330
342
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
331
343
|
__wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined;
|
|
332
344
|
__wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
|
|
345
|
+
__wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
|
|
346
|
+
__wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
|
|
333
347
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
334
348
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
335
349
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -354,12 +368,14 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
354
368
|
readonly Wecom: import("../user-modules/wecom.js").WecomConstructor;
|
|
355
369
|
readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor;
|
|
356
370
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
371
|
+
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
372
|
+
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
357
373
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
358
374
|
readonly id: string;
|
|
359
375
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
360
376
|
readonly memory: import("memory-card").MemoryCard;
|
|
361
377
|
__options: WechatyOptions;
|
|
362
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
378
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
363
379
|
addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
|
|
364
380
|
once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
|
|
365
381
|
prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
|
|
@@ -394,7 +410,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
394
410
|
readonly memory: import("memory-card").MemoryCard;
|
|
395
411
|
__options: WechatyOptions;
|
|
396
412
|
init(): Promise<void>;
|
|
397
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
413
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
398
414
|
addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
|
|
399
415
|
once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
|
|
400
416
|
prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
|
|
@@ -439,6 +455,8 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
439
455
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
440
456
|
__wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined;
|
|
441
457
|
__wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
|
|
458
|
+
__wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
|
|
459
|
+
__wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
|
|
442
460
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
443
461
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
444
462
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -463,6 +481,8 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
463
481
|
readonly Wecom: import("../user-modules/wecom.js").WecomConstructor;
|
|
464
482
|
readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor;
|
|
465
483
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
484
|
+
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
485
|
+
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
466
486
|
init(): Promise<void>;
|
|
467
487
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
468
488
|
readonly id: string;
|
|
@@ -471,7 +491,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
471
491
|
__options: WechatyOptions;
|
|
472
492
|
start(): Promise<void>;
|
|
473
493
|
stop(): Promise<void>;
|
|
474
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
494
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
475
495
|
addListener<E_39 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_39, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_39]): any;
|
|
476
496
|
once<E_40 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_40, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_40]): any;
|
|
477
497
|
prependListener<E_41 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_41, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_41]): any;
|
|
@@ -501,7 +521,7 @@ declare const mixinBase: (abstract new (...args: any[]) => {
|
|
|
501
521
|
init(): Promise<void>;
|
|
502
522
|
start(): Promise<void>;
|
|
503
523
|
stop(): Promise<void>;
|
|
504
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
524
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
505
525
|
addListener<E_46 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_46, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_46]): any;
|
|
506
526
|
once<E_47 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_47, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_47]): any;
|
|
507
527
|
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,MAAM,MAAM,sBAAsB,CAAA;AAQ9C,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
|
|
1
|
+
{"version":3,"file":"wechaty-base.d.ts","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-base.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAQ9C,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACR,MAAkC,mBAAmB,CAAA;AAWtD,OAAO,EACL,eAAe,EAChB,MAAkC,uBAAuB,CAAA;AAC1D,OAAO,KAAK,EACV,gBAAgB,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I,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;IAY1B,SAAS,CACb,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,CAAC;IAYV,eAAe,CACnB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IAMV,gBAAgB,CACpB,EAAE,EAAE,MAAM,GACT,OAAO,CAAC,IAAI,CAAC;IAMV,aAAa,IAChB,OAAO,CAAC,IAAI,CAAC;CAUjB;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"}
|
|
@@ -33,6 +33,8 @@ test('Wechaty interface', async (t) => {
|
|
|
33
33
|
Wecom;
|
|
34
34
|
DouyinOneClickPhoneCollection;
|
|
35
35
|
ImSpecific;
|
|
36
|
+
WxxdProduct;
|
|
37
|
+
WxxdOrder;
|
|
36
38
|
constructor() {
|
|
37
39
|
super();
|
|
38
40
|
// this.puppet
|
|
@@ -60,7 +62,9 @@ test('Wechaty interface', async (t) => {
|
|
|
60
62
|
= this.Wecom
|
|
61
63
|
= this.DouyinOneClickPhoneCollection
|
|
62
64
|
= this.ImSpecific
|
|
63
|
-
=
|
|
65
|
+
= this.WxxdProduct
|
|
66
|
+
= this.WxxdOrder
|
|
67
|
+
= {};
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
const WechatyTest = WechatyImplementation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,UAAU,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,UAAU,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AAgClE,OAAO;AAGL,6BAA6B;AAC7B,WAAW;AACX,sBAAsB;EACvB,MAA4B,mBAAmB,CAAA;AAEhD,IAAI,CAAC,mBAAmB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAClC,MAAe,qBAAsB,SAAQ,mBAAmB;QAE9D,OAAO,CAA2C;QAClD,WAAW,CAA2C;QACtD,KAAK,CAA2C;QAChD,UAAU,CAA2C;QACrD,KAAK,CAA2C;QAChD,QAAQ,CAA2C;QACnD,OAAO,CAA2C;QAClD,WAAW,CAA2C;QACtD,IAAI,CAA2C;QAC/C,IAAI,CAA2C;QAC/C,cAAc,CAA2C;QACzD,GAAG,CAA2C;QAC9C,QAAQ,CAA2C;QACnD,OAAO,CAA2C;QAClD,OAAO,CAA2C;QAClD,WAAW,CAA2C;QACtD,WAAW,CAA2C;QACtD,4BAA4B,CAA2C;QACvE,MAAM,CAA2C;QACjD,UAAU,CAA2C;QACrD,WAAW,CAA2C;QACtD,KAAK,CAA2C;QAChD,6BAA6B,CAA2C;QACxE,UAAU,CAA2C;QACrD,WAAW,CAA2C;QACtD,SAAS,CAA2C;QAEpD;YACE,KAAK,EAA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C,EAAC,EAAE;IAC9C,MAAM,MAAM,GAAI,IAAI,UAAU,EAAS,CAAA;IACvC,MAAM,OAAO,GAAG,IAAI,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;IAC3C,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,sDAAsD,CAAC,CAAA;IAEtF,MAAM,OAAO,CAAC,IAAI,EAAE,CAAA;IACpB,CAAC,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" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
30
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", 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" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
21
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", 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" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
50
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", 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;
|
|
@@ -35,6 +35,8 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
35
35
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
36
36
|
__wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined;
|
|
37
37
|
__wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
|
|
38
|
+
__wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
|
|
39
|
+
__wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
|
|
38
40
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
39
41
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
40
42
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -59,12 +61,14 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
59
61
|
readonly Wecom: import("../user-modules/wecom.js").WecomConstructor;
|
|
60
62
|
readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor;
|
|
61
63
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
64
|
+
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
65
|
+
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
62
66
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
63
67
|
readonly id: string;
|
|
64
68
|
__memory?: import("memory-card").MemoryCard | undefined;
|
|
65
69
|
readonly memory: import("memory-card").MemoryCard;
|
|
66
70
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
67
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
71
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
68
72
|
addListener<E extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E]): any;
|
|
69
73
|
once<E_1 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_1, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_1]): any;
|
|
70
74
|
prependListener<E_2 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_2, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_2]): any;
|
|
@@ -112,6 +116,8 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
112
116
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
113
117
|
__wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined;
|
|
114
118
|
__wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
|
|
119
|
+
__wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
|
|
120
|
+
__wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
|
|
115
121
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
116
122
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
117
123
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -136,6 +142,8 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
136
142
|
readonly Wecom: import("../user-modules/wecom.js").WecomConstructor;
|
|
137
143
|
readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor;
|
|
138
144
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
145
|
+
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
146
|
+
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
139
147
|
init(): Promise<void>;
|
|
140
148
|
readonly log: import("brolog/dist/esm/src/logger.js").Loggable;
|
|
141
149
|
readonly id: string;
|
|
@@ -144,7 +152,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
144
152
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
145
153
|
start(): Promise<void>;
|
|
146
154
|
stop(): Promise<void>;
|
|
147
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
155
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
148
156
|
addListener<E_11 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_11, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_11]): any;
|
|
149
157
|
once<E_12 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_12, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_12]): any;
|
|
150
158
|
prependListener<E_13 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_13, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_13]): any;
|
|
@@ -174,7 +182,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
174
182
|
init(): Promise<void>;
|
|
175
183
|
start(): Promise<void>;
|
|
176
184
|
stop(): Promise<void>;
|
|
177
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
185
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
178
186
|
addListener<E_18 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_18, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_18]): any;
|
|
179
187
|
once<E_19 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_19, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_19]): any;
|
|
180
188
|
prependListener<E_20 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_20, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_20]): any;
|
|
@@ -203,7 +211,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
203
211
|
readonly memory: import("memory-card").MemoryCard;
|
|
204
212
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
205
213
|
init(): Promise<void>;
|
|
206
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
214
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
207
215
|
addListener<E_25 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_25, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_25]): any;
|
|
208
216
|
once<E_26 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_26, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_26]): any;
|
|
209
217
|
prependListener<E_27 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_27, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_27]): any;
|
|
@@ -272,7 +280,7 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
272
280
|
__options: import("../schemas/wechaty-options.js").WechatyOptions;
|
|
273
281
|
start: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
274
282
|
stop: (() => Promise<void>) & (() => Promise<void>) & (() => Promise<void>);
|
|
275
|
-
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled", listener: (...args: any[]) => any): any;
|
|
283
|
+
on(event: "error" | "ready" | "tag" | "login" | "start" | "stop" | "logout" | "room-invite" | "room-join" | "room-leave" | "room-topic" | "room-announce" | "dong" | "friendship" | "heartbeat" | "message" | "post" | "puppet" | "scan" | "tag-group" | "post-comment" | "post-tap" | "verify-code" | "dirty" | "login-url" | "intent-comment" | "verify-slide" | "contact-enter-conversation" | "contact-lead-filled" | "wxxd-shop" | "wxxd-product" | "wxxd-order", listener: (...args: any[]) => any): any;
|
|
276
284
|
addListener<E_32 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_32, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_32]): any;
|
|
277
285
|
once<E_33 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_33, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_33]): any;
|
|
278
286
|
prependListener<E_34 extends keyof import("../schemas/wechaty-events.js").WechatyEventListeners>(event: E_34, listener: import("../schemas/wechaty-events.js").WechatyEventListeners[E_34]): any;
|
|
@@ -319,6 +327,8 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
319
327
|
__wechatifiedWecom?: import("../user-modules/wecom.js").WecomConstructor | undefined;
|
|
320
328
|
__wechatifiedDouyinOneClickPhoneCollection?: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor | undefined;
|
|
321
329
|
__wechatifiedImSpecific?: import("../user-modules/im-specific.js").ImSpecificConstructor | undefined;
|
|
330
|
+
__wechatifiedWxxdProduct?: import("../user-modules/wxxd-product.js").WxxdProductConstructor | undefined;
|
|
331
|
+
__wechatifiedWxxdOrder?: import("../user-modules/wxxd-order.js").WxxdOrderConstructor | undefined;
|
|
322
332
|
readonly Contact: import("../user-modules/contact.js").ContactConstructor;
|
|
323
333
|
readonly ContactSelf: import("../user-modules/contact-self.js").ContactSelfConstructor;
|
|
324
334
|
readonly Delay: import("../user-modules/delay.js").DelayConstructor;
|
|
@@ -343,6 +353,8 @@ declare const loginMixin: <MixinBase extends typeof WechatySkeleton & ((abstract
|
|
|
343
353
|
readonly Wecom: import("../user-modules/wecom.js").WecomConstructor;
|
|
344
354
|
readonly DouyinOneClickPhoneCollection: import("../user-modules/douyin-one-click-phone-collection.js").DouyinOneClickPhoneCollectionConstructor;
|
|
345
355
|
readonly ImSpecific: import("../user-modules/im-specific.js").ImSpecificConstructor;
|
|
356
|
+
readonly WxxdProduct: import("../user-modules/wxxd-product.js").WxxdProductConstructor;
|
|
357
|
+
readonly WxxdOrder: import("../user-modules/wxxd-order.js").WxxdOrderConstructor;
|
|
346
358
|
wrapAsync: import("gerror/dist/esm/src/wrap-async-error/wrap-async-error.js").WrapAsync;
|
|
347
359
|
emitError(e: any): void;
|
|
348
360
|
__io?: import("../io.js").Io | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"login-mixin.d.ts","sourceRoot":"","sources":["../../../../src/wechaty-mixins/login-mixin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,oBAAoB,EACrB,MAAoC,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxD,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDAgDU,GAAG,EAAE;;IAvC3B;;;;;;;OAOG;;IAMH;;;;;;;;;;OAUG;;;YAqBqB,QAAQ,IAAI,CAAC;IAUrC;;;;;;OAMG;oBACoB,MAAM,GAAG,QAAQ,IAAI,CAAC;IAK7C;;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"}
|