@juzi/wechaty 1.0.132 → 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.
Files changed (113) hide show
  1. package/dist/cjs/src/package-json.js +3 -3
  2. package/dist/cjs/src/sayable/deliver-sayable.d.ts.map +1 -1
  3. package/dist/cjs/src/sayable/deliver-sayable.js +6 -0
  4. package/dist/cjs/src/sayable/deliver-sayable.js.map +1 -1
  5. package/dist/cjs/src/sayable/types.d.ts +2 -2
  6. package/dist/cjs/src/sayable/types.d.ts.map +1 -1
  7. package/dist/cjs/src/sayable/types.js.map +1 -1
  8. package/dist/cjs/src/schemas/wechaty-events.d.ts +9 -0
  9. package/dist/cjs/src/schemas/wechaty-events.d.ts.map +1 -1
  10. package/dist/cjs/src/schemas/wechaty-events.js.map +1 -1
  11. package/dist/cjs/src/user-modules/im-specific.d.ts +1 -0
  12. package/dist/cjs/src/user-modules/im-specific.d.ts.map +1 -1
  13. package/dist/cjs/src/user-modules/im-specific.js +4 -0
  14. package/dist/cjs/src/user-modules/im-specific.js.map +1 -1
  15. package/dist/cjs/src/user-modules/message.d.ts +1 -1
  16. package/dist/cjs/src/user-modules/message.d.ts.map +1 -1
  17. package/dist/cjs/src/user-modules/message.js +1 -2
  18. package/dist/cjs/src/user-modules/message.js.map +1 -1
  19. package/dist/cjs/src/user-modules/mod.d.ts +5 -3
  20. package/dist/cjs/src/user-modules/mod.d.ts.map +1 -1
  21. package/dist/cjs/src/user-modules/mod.js +5 -1
  22. package/dist/cjs/src/user-modules/mod.js.map +1 -1
  23. package/dist/cjs/src/user-modules/wxxd-order.d.ts +91 -0
  24. package/dist/cjs/src/user-modules/wxxd-order.d.ts.map +1 -0
  25. package/dist/cjs/src/user-modules/wxxd-order.js +140 -0
  26. package/dist/cjs/src/user-modules/wxxd-order.js.map +1 -0
  27. package/dist/cjs/src/user-modules/wxxd-product.d.ts +87 -0
  28. package/dist/cjs/src/user-modules/wxxd-product.d.ts.map +1 -0
  29. package/dist/cjs/src/user-modules/wxxd-product.js +134 -0
  30. package/dist/cjs/src/user-modules/wxxd-product.js.map +1 -0
  31. package/dist/cjs/src/wechaty/wechaty-base.d.ts +27 -7
  32. package/dist/cjs/src/wechaty/wechaty-base.d.ts.map +1 -1
  33. package/dist/cjs/src/wechaty/wechaty-impl.spec.js +5 -1
  34. package/dist/cjs/src/wechaty/wechaty-impl.spec.js.map +1 -1
  35. package/dist/cjs/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
  36. package/dist/cjs/src/wechaty-mixins/io-mixin.d.ts +2 -2
  37. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts +17 -5
  38. package/dist/cjs/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  39. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts +17 -5
  40. package/dist/cjs/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  41. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts +22 -6
  42. package/dist/cjs/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  43. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts +14 -10
  44. package/dist/cjs/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  45. package/dist/cjs/src/wechaty-mixins/puppet-mixin.js +18 -0
  46. package/dist/cjs/src/wechaty-mixins/puppet-mixin.js.map +1 -1
  47. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +7 -3
  48. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  49. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js +6 -0
  50. package/dist/cjs/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  51. package/dist/esm/src/package-json.js +3 -3
  52. package/dist/esm/src/sayable/deliver-sayable.d.ts.map +1 -1
  53. package/dist/esm/src/sayable/deliver-sayable.js +7 -1
  54. package/dist/esm/src/sayable/deliver-sayable.js.map +1 -1
  55. package/dist/esm/src/sayable/types.d.ts +2 -2
  56. package/dist/esm/src/sayable/types.d.ts.map +1 -1
  57. package/dist/esm/src/sayable/types.js.map +1 -1
  58. package/dist/esm/src/schemas/wechaty-events.d.ts +9 -0
  59. package/dist/esm/src/schemas/wechaty-events.d.ts.map +1 -1
  60. package/dist/esm/src/schemas/wechaty-events.js.map +1 -1
  61. package/dist/esm/src/user-modules/im-specific.d.ts +1 -0
  62. package/dist/esm/src/user-modules/im-specific.d.ts.map +1 -1
  63. package/dist/esm/src/user-modules/im-specific.js +4 -0
  64. package/dist/esm/src/user-modules/im-specific.js.map +1 -1
  65. package/dist/esm/src/user-modules/message.d.ts +1 -1
  66. package/dist/esm/src/user-modules/message.d.ts.map +1 -1
  67. package/dist/esm/src/user-modules/message.js +1 -2
  68. package/dist/esm/src/user-modules/message.js.map +1 -1
  69. package/dist/esm/src/user-modules/mod.d.ts +5 -3
  70. package/dist/esm/src/user-modules/mod.d.ts.map +1 -1
  71. package/dist/esm/src/user-modules/mod.js +3 -1
  72. package/dist/esm/src/user-modules/mod.js.map +1 -1
  73. package/dist/esm/src/user-modules/wxxd-order.d.ts +91 -0
  74. package/dist/esm/src/user-modules/wxxd-order.d.ts.map +1 -0
  75. package/dist/esm/src/user-modules/wxxd-order.js +114 -0
  76. package/dist/esm/src/user-modules/wxxd-order.js.map +1 -0
  77. package/dist/esm/src/user-modules/wxxd-product.d.ts +87 -0
  78. package/dist/esm/src/user-modules/wxxd-product.d.ts.map +1 -0
  79. package/dist/esm/src/user-modules/wxxd-product.js +108 -0
  80. package/dist/esm/src/user-modules/wxxd-product.js.map +1 -0
  81. package/dist/esm/src/wechaty/wechaty-base.d.ts +27 -7
  82. package/dist/esm/src/wechaty/wechaty-base.d.ts.map +1 -1
  83. package/dist/esm/src/wechaty/wechaty-impl.spec.js +5 -1
  84. package/dist/esm/src/wechaty/wechaty-impl.spec.js.map +1 -1
  85. package/dist/esm/src/wechaty-mixins/gerror-mixin.d.ts +1 -1
  86. package/dist/esm/src/wechaty-mixins/io-mixin.d.ts +2 -2
  87. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts +17 -5
  88. package/dist/esm/src/wechaty-mixins/login-mixin.d.ts.map +1 -1
  89. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts +17 -5
  90. package/dist/esm/src/wechaty-mixins/misc-mixin.d.ts.map +1 -1
  91. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts +22 -6
  92. package/dist/esm/src/wechaty-mixins/plugin-mixin.d.ts.map +1 -1
  93. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts +14 -10
  94. package/dist/esm/src/wechaty-mixins/puppet-mixin.d.ts.map +1 -1
  95. package/dist/esm/src/wechaty-mixins/puppet-mixin.js +18 -0
  96. package/dist/esm/src/wechaty-mixins/puppet-mixin.js.map +1 -1
  97. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts +7 -3
  98. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.d.ts.map +1 -1
  99. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js +7 -1
  100. package/dist/esm/src/wechaty-mixins/wechatify-user-module-mixin.js.map +1 -1
  101. package/package.json +2 -2
  102. package/src/package-json.ts +3 -3
  103. package/src/sayable/deliver-sayable.ts +12 -0
  104. package/src/sayable/types.ts +4 -0
  105. package/src/schemas/wechaty-events.ts +6 -0
  106. package/src/user-modules/im-specific.ts +5 -0
  107. package/src/user-modules/message.ts +2 -3
  108. package/src/user-modules/mod.ts +16 -0
  109. package/src/user-modules/wxxd-order.ts +161 -0
  110. package/src/user-modules/wxxd-product.ts +154 -0
  111. package/src/wechaty/wechaty-impl.spec.ts +6 -0
  112. package/src/wechaty-mixins/puppet-mixin.ts +21 -0
  113. package/src/wechaty-mixins/wechatify-user-module-mixin.ts +12 -0
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.WxxdOrderImpl = void 0;
27
+ const PUPPET = __importStar(require("@juzi/wechaty-puppet"));
28
+ const config_js_1 = require("../config.js");
29
+ const poolify_js_1 = require("../user-mixins/poolify.js");
30
+ const validation_js_1 = require("../user-mixins/validation.js");
31
+ const wechatify_js_1 = require("../user-mixins/wechatify.js");
32
+ const MixinBase = (0, wechatify_js_1.wechatifyMixin)((0, poolify_js_1.poolifyMixin)(Object)());
33
+ class WxxdOrderMixin extends MixinBase {
34
+ id;
35
+ /**
36
+ * Instance properties
37
+ * @ignore
38
+ */
39
+ payload;
40
+ /**
41
+ * @hideconstructor
42
+ */
43
+ constructor(id) {
44
+ super();
45
+ this.id = id;
46
+ config_js_1.log.silly('WxxdOrder', 'constructor(%s)', id);
47
+ }
48
+ /**
49
+ * List all orders
50
+ */
51
+ static async list(query) {
52
+ config_js_1.log.verbose('WxxdOrder', 'list(%s)', JSON.stringify(query));
53
+ return await this.wechaty.puppet.listWxxdOrders(query);
54
+ }
55
+ /**
56
+ * Find order by id or filter
57
+ */
58
+ static async find(query) {
59
+ config_js_1.log.verbose('WxxdOrder', 'find(%s)', JSON.stringify(query));
60
+ const id = typeof query === 'string' ? query : query.id;
61
+ if (!id) {
62
+ return undefined;
63
+ }
64
+ const order = this.wechaty.WxxdOrder.load(id);
65
+ try {
66
+ await order.ready();
67
+ }
68
+ catch (e) {
69
+ this.wechaty.emitError(e);
70
+ return undefined;
71
+ }
72
+ return order;
73
+ }
74
+ isReady() {
75
+ return !!(this.payload && this.payload.orderId);
76
+ }
77
+ async ready(forceSync = false) {
78
+ config_js_1.log.silly('WxxdOrder', 'ready() @ %s with id="%s"', this.wechaty.puppet, this.id);
79
+ if (!forceSync && this.isReady()) {
80
+ config_js_1.log.silly('WxxdOrder', 'ready() isReady() true');
81
+ return;
82
+ }
83
+ try {
84
+ this.payload = await this.wechaty.puppet.wxxdOrderPayload(this.id);
85
+ }
86
+ catch (e) {
87
+ this.wechaty.emitError(e);
88
+ config_js_1.log.verbose('WxxdOrder', 'ready() this.wechaty.puppet.wxxdOrderPayload(%s) exception: %s', this.id, e.message);
89
+ throw e;
90
+ }
91
+ }
92
+ /**
93
+ * Get order ID
94
+ */
95
+ orderId() {
96
+ return this.payload?.orderId || this.id;
97
+ }
98
+ /**
99
+ * Get order open ID
100
+ */
101
+ openId() {
102
+ return this.payload?.openId || '';
103
+ }
104
+ /**
105
+ * Get order status
106
+ */
107
+ status() {
108
+ return this.payload?.status || PUPPET.types.WxxdOrderStatus.Unpaid;
109
+ }
110
+ /**
111
+ * Get order create time
112
+ */
113
+ createTime() {
114
+ return this.payload?.createTime || 0;
115
+ }
116
+ /**
117
+ * Get order update time
118
+ */
119
+ updateTime() {
120
+ return this.payload?.updateTime || 0;
121
+ }
122
+ /**
123
+ * Get order products
124
+ */
125
+ products() {
126
+ return this.payload?.products || [];
127
+ }
128
+ /**
129
+ * Get order ext info
130
+ */
131
+ extInfo() {
132
+ return this.payload?.extInfo;
133
+ }
134
+ }
135
+ class WxxdOrderImplBase extends (0, validation_js_1.validationMixin)(WxxdOrderMixin)() {
136
+ }
137
+ class WxxdOrderImpl extends (0, validation_js_1.validationMixin)(WxxdOrderImplBase)() {
138
+ }
139
+ exports.WxxdOrderImpl = WxxdOrderImpl;
140
+ //# sourceMappingURL=wxxd-order.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wxxd-order.js","sourceRoot":"","sources":["../../../../src/user-modules/wxxd-order.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,6DAA8C;AAE9C,4CAAkC;AAClC,0DAAwD;AACxD,gEAA8D;AAC9D,8DAA4D;AAE5D,MAAM,SAAS,GAAG,IAAA,6BAAc,EAC9B,IAAA,yBAAY,EAAC,MAAM,CAAC,EAA0B,CAC/C,CAAA;AAED,MAAM,cAAe,SAAQ,SAAS;IAYlB;IAVlB;;;OAGG;IACH,OAAO,CAA4B;IAEnC;;OAEG;IACH,YACkB,EAAU;QAE1B,KAAK,EAAE,CAAA;QAFS,OAAE,GAAF,EAAE,CAAQ;QAG1B,eAAG,CAAC,KAAK,CAAC,WAAW,EAAE,iBAAiB,EAAE,EAAE,CAAC,CAAA;IAC/C,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,IAAI,CAAE,KAAwB;QACzC,eAAG,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAA;QAE3D,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAA;IACxD,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,IAAI,CACf,KAA8B;QAE9B,eAAG,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAA;QAE3D,MAAM,EAAE,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,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OAAO,EAAE,OAAO,IAAI,IAAI,CAAC,EAAE,CAAA;IACzC,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,CAAA;IACnC,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAA;IACpE,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,EAAE,UAAU,IAAI,CAAC,CAAA;IACtC,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,OAAO,EAAE,UAAU,IAAI,CAAC,CAAA;IACtC,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,OAAO,EAAE,QAAQ,IAAI,EAAE,CAAA;IACrC,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,OAAO,EAAE,OAAO,CAAA;IAC9B,CAAC;CAEF;AAED,MAAM,iBAAkB,SAAQ,IAAA,+BAAe,EAAC,cAAc,CAAC,EAA0B;CAAI;AAK7F,MAAM,aAAc,SAAQ,IAAA,+BAAe,EAAC,iBAAiB,CAAC,EAAsB;CAAI;AAatF,sCAAa"}
@@ -0,0 +1,87 @@
1
+ import type { Constructor } from 'clone-class';
2
+ import type { PaginationRequest } from '@juzi/wechaty-puppet/filters';
3
+ import * as PUPPET from '@juzi/wechaty-puppet';
4
+ declare const MixinBase: ((abstract new (...args: any[]) => {
5
+ readonly wechaty: import("../wechaty/wechaty-impl.js").WechatyInterface;
6
+ }) & {
7
+ readonly wechaty: import("../wechaty/wechaty-impl.js").WechatyInterface;
8
+ }) & ((abstract new (...args: any[]) => {}) & {
9
+ _pool?: Map<string, WxxdProductImplInterface> | undefined;
10
+ readonly pool: Map<string, WxxdProductImplInterface>;
11
+ load<L extends import("clone-class/dist/esm/src/constructor.js").ClassInterface<{}> & {
12
+ new (...args: any[]): WxxdProductImplInterface;
13
+ prototype: WxxdProductImplInterface;
14
+ } & import("../user-mixins/poolify.js").PoolifyMixin<WxxdProductImplInterface>>(this: L, id: string): WxxdProductImplInterface;
15
+ }) & ObjectConstructor;
16
+ declare class WxxdProductMixin extends MixinBase {
17
+ readonly id: string;
18
+ /**
19
+ * Instance properties
20
+ * @ignore
21
+ */
22
+ payload?: PUPPET.payloads.WxxdProduct;
23
+ /**
24
+ * @hideconstructor
25
+ */
26
+ constructor(id: string);
27
+ /**
28
+ * List all products
29
+ */
30
+ static list(query: PaginationRequest): Promise<PUPPET.filters.PaginationResponse<PUPPET.payloads.WxxdProduct[]>>;
31
+ /**
32
+ * Find product by id or filter
33
+ */
34
+ static find(query: string | {
35
+ id: string;
36
+ }): Promise<WxxdProductInterface | undefined>;
37
+ isReady(): boolean;
38
+ ready(forceSync?: boolean): Promise<void>;
39
+ /**
40
+ * Get product title
41
+ */
42
+ title(): string;
43
+ /**
44
+ * Get product short title
45
+ */
46
+ shortTitle(): string;
47
+ /**
48
+ * Get product status
49
+ */
50
+ status(): PUPPET.types.WxxdProductStatus;
51
+ /**
52
+ * Get product min price
53
+ */
54
+ minPrice(): number;
55
+ /**
56
+ * Get product total sold number
57
+ */
58
+ totalSoldNum(): number;
59
+ /**
60
+ * Get product SKUs
61
+ */
62
+ skus(): PUPPET.payloads.WxxdProductSku[];
63
+ }
64
+ declare const WxxdProductImplBase_base: {
65
+ new (...args: any[]): {};
66
+ valid: (o: any) => o is WxxdProductImplInterface;
67
+ validInstance: (target: any) => target is WxxdProductMixin;
68
+ validInterface: (target: any) => target is WxxdProductImplInterface;
69
+ } & typeof WxxdProductMixin;
70
+ declare class WxxdProductImplBase extends WxxdProductImplBase_base {
71
+ }
72
+ interface WxxdProductImplInterface extends WxxdProductImplBase {
73
+ }
74
+ declare type WxxdProductProtectedProperty = 'ready';
75
+ declare type WxxdProductInterface = Omit<WxxdProductImplInterface, WxxdProductProtectedProperty>;
76
+ declare const WxxdProductImpl_base: {
77
+ new (...args: any[]): {};
78
+ valid: (o: any) => o is WxxdProductInterface;
79
+ validInstance: (target: any) => target is WxxdProductImplBase;
80
+ validInterface: (target: any) => target is WxxdProductInterface;
81
+ } & typeof WxxdProductImplBase;
82
+ declare class WxxdProductImpl extends WxxdProductImpl_base {
83
+ }
84
+ declare type WxxdProductConstructor = Constructor<WxxdProductImplInterface, typeof WxxdProductImpl>;
85
+ export type { WxxdProductConstructor, WxxdProductProtectedProperty, WxxdProductInterface, };
86
+ export { WxxdProductImpl, };
87
+ //# sourceMappingURL=wxxd-product.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wxxd-product.d.ts","sourceRoot":"","sources":["../../../../src/user-modules/wxxd-product.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAA;AAO9C,QAAA,MAAM,SAAS;;;;;;;;;;;sBAEd,CAAA;AAED,cAAM,gBAAiB,SAAQ,SAAS;aAYpB,EAAE,EAAE,MAAM;IAV5B;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAA;IAErC;;OAEG;gBAEe,EAAE,EAAE,MAAM;IAM5B;;OAEG;WACU,IAAI,CAAE,KAAK,EAAE,iBAAiB;IAM3C;;OAEG;WACU,IAAI,CACf,KAAK,EAAE,MAAM,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAC7B,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC;IAqB5C,OAAO,IAAK,OAAO;IAIb,KAAK,CAAE,SAAS,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAoB9C;;OAEG;IACH,KAAK,IAAK,MAAM;IAIhB;;OAEG;IACH,UAAU,IAAK,MAAM;IAIrB;;OAEG;IACH,MAAM,IAAK,MAAM,CAAC,KAAK,CAAC,iBAAiB;IAIzC;;OAEG;IACH,QAAQ,IAAK,MAAM;IAInB;;OAEG;IACH,YAAY,IAAK,MAAM;IAIvB;;OAEG;IACH,IAAI,IAAK,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE;CAI1C;;;;;;;AAED,cAAM,mBAAoB,SAAQ,wBAA6D;CAAI;AACnG,UAAU,wBAAyB,SAAQ,mBAAmB;CAAI;AAElE,aAAK,4BAA4B,GAAG,OAAO,CAAA;AAC3C,aAAK,oBAAoB,GAAG,IAAI,CAAC,wBAAwB,EAAE,4BAA4B,CAAC,CAAA;;;;;;;AACxF,cAAM,eAAgB,SAAQ,oBAA4D;CAAI;AAE9F,aAAK,sBAAsB,GAAG,WAAW,CACvC,wBAAwB,EACxB,OAAO,eAAe,CACvB,CAAA;AAED,YAAY,EACV,sBAAsB,EACtB,4BAA4B,EAC5B,oBAAoB,GACrB,CAAA;AACD,OAAO,EACL,eAAe,GAChB,CAAA"}
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.WxxdProductImpl = void 0;
27
+ const PUPPET = __importStar(require("@juzi/wechaty-puppet"));
28
+ const config_js_1 = require("../config.js");
29
+ const poolify_js_1 = require("../user-mixins/poolify.js");
30
+ const validation_js_1 = require("../user-mixins/validation.js");
31
+ const wechatify_js_1 = require("../user-mixins/wechatify.js");
32
+ const MixinBase = (0, wechatify_js_1.wechatifyMixin)((0, poolify_js_1.poolifyMixin)(Object)());
33
+ class WxxdProductMixin extends MixinBase {
34
+ id;
35
+ /**
36
+ * Instance properties
37
+ * @ignore
38
+ */
39
+ payload;
40
+ /**
41
+ * @hideconstructor
42
+ */
43
+ constructor(id) {
44
+ super();
45
+ this.id = id;
46
+ config_js_1.log.silly('WxxdProduct', 'constructor(%s)', id);
47
+ }
48
+ /**
49
+ * List all products
50
+ */
51
+ static async list(query) {
52
+ config_js_1.log.verbose('WxxdProduct', 'list(%s)', JSON.stringify(query));
53
+ return await this.wechaty.puppet.listWxxdProducts(query);
54
+ }
55
+ /**
56
+ * Find product by id or filter
57
+ */
58
+ static async find(query) {
59
+ config_js_1.log.verbose('WxxdProduct', 'find(%s)', JSON.stringify(query));
60
+ const id = typeof query === 'string' ? query : query.id;
61
+ if (!id) {
62
+ return undefined;
63
+ }
64
+ const product = this.wechaty.WxxdProduct.load(id);
65
+ try {
66
+ await product.ready();
67
+ }
68
+ catch (e) {
69
+ this.wechaty.emitError(e);
70
+ return undefined;
71
+ }
72
+ return product;
73
+ }
74
+ isReady() {
75
+ return !!(this.payload && this.payload.productId);
76
+ }
77
+ async ready(forceSync = false) {
78
+ config_js_1.log.silly('WxxdProduct', 'ready() @ %s with id="%s"', this.wechaty.puppet, this.id);
79
+ if (!forceSync && this.isReady()) {
80
+ config_js_1.log.silly('WxxdProduct', 'ready() isReady() true');
81
+ return;
82
+ }
83
+ try {
84
+ this.payload = await this.wechaty.puppet.wxxdProductPayload(this.id);
85
+ }
86
+ catch (e) {
87
+ this.wechaty.emitError(e);
88
+ config_js_1.log.verbose('WxxdProduct', 'ready() this.wechaty.puppet.wxxdProductPayload(%s) exception: %s', this.id, e.message);
89
+ throw e;
90
+ }
91
+ }
92
+ /**
93
+ * Get product title
94
+ */
95
+ title() {
96
+ return this.payload?.title || '';
97
+ }
98
+ /**
99
+ * Get product short title
100
+ */
101
+ shortTitle() {
102
+ return this.payload?.shortTitle || '';
103
+ }
104
+ /**
105
+ * Get product status
106
+ */
107
+ status() {
108
+ return this.payload?.status || PUPPET.types.WxxdProductStatus.NotExist;
109
+ }
110
+ /**
111
+ * Get product min price
112
+ */
113
+ minPrice() {
114
+ return this.payload?.minPrice || 0;
115
+ }
116
+ /**
117
+ * Get product total sold number
118
+ */
119
+ totalSoldNum() {
120
+ return this.payload?.totalSoldNum || 0;
121
+ }
122
+ /**
123
+ * Get product SKUs
124
+ */
125
+ skus() {
126
+ return this.payload?.skus || [];
127
+ }
128
+ }
129
+ class WxxdProductImplBase extends (0, validation_js_1.validationMixin)(WxxdProductMixin)() {
130
+ }
131
+ class WxxdProductImpl extends (0, validation_js_1.validationMixin)(WxxdProductImplBase)() {
132
+ }
133
+ exports.WxxdProductImpl = WxxdProductImpl;
134
+ //# 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,6DAA8C;AAE9C,4CAAkC;AAClC,0DAAwD;AACxD,gEAA8D;AAC9D,8DAA4D;AAE5D,MAAM,SAAS,GAAG,IAAA,6BAAc,EAC9B,IAAA,yBAAY,EAAC,MAAM,CAAC,EAA4B,CACjD,CAAA;AAED,MAAM,gBAAiB,SAAQ,SAAS;IAYpB;IAVlB;;;OAGG;IACH,OAAO,CAA8B;IAErC;;OAEG;I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EF;AAED,MAAM,mBAAoB,SAAQ,IAAA,+BAAe,EAAC,gBAAgB,CAAC,EAA4B;CAAI;AAKnG,MAAM,eAAgB,SAAQ,IAAA,+BAAe,EAAC,mBAAmB,CAAC,EAAwB;CAAI;AAa5F,0CAAe"}
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MV,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"}
@@ -34,6 +34,8 @@ const wechaty_impl_js_1 = require("./wechaty-impl.js");
34
34
  Wecom;
35
35
  DouyinOneClickPhoneCollection;
36
36
  ImSpecific;
37
+ WxxdProduct;
38
+ WxxdOrder;
37
39
  constructor() {
38
40
  super();
39
41
  // this.puppet
@@ -61,7 +63,9 @@ const wechaty_impl_js_1 = require("./wechaty-impl.js");
61
63
  = this.Wecom
62
64
  = this.DouyinOneClickPhoneCollection
63
65
  = this.ImSpecific
64
- = {};
66
+ = this.WxxdProduct
67
+ = this.WxxdOrder
68
+ = {};
65
69
  }
66
70
  }
67
71
  const WechatyTest = WechatyImplementation;
@@ -1 +1 @@
1
- {"version":3,"file":"wechaty-impl.spec.js","sourceRoot":"","sources":["../../../../src/wechaty/wechaty-impl.spec.ts"],"names":[],"mappings":";;;;;;AACA,mCAA6B;AAC7B,oFAAkD;AAElD,oEAAkE;AA8BlE,uDAMgD;AAEhD,IAAA,aAAI,EAAC,mBAAmB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAClC,MAAe,qBAAsB,SAAQ,uCAAmB;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,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wB,CAAC,CAAA;AAC9D,CAAC,CAAC,CAAA;AAEF,2CAA2C;AAC3C,gCAAgC;AAChC,wCAAwC;AAExC,2FAA2F;AAC3F,qEAAqE;AAErE,uCAAuC;AACvC,kFAAkF;AAClF,KAAK;AAEL,IAAA,aAAI,EAAC,+BAA+B,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAC9C,MAAM,MAAM,GAAI,IAAI,6BAAU,EAAS,CAAA;IACvC,MAAM,OAAO,GAAG,IAAI,6BAAW,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;