@be-link/vitality-cli-nodejs 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/index.d.ts +13 -1
  2. package/index.js +26 -1
  3. package/index.js.map +1 -1
  4. package/package.json +1 -1
  5. package/vs/modules/biz/index.d.ts +121 -0
  6. package/vs/modules/biz/index.js +8 -0
  7. package/vs/modules/biz/index.js.map +1 -1
  8. package/vs/modules/biz/member/index.d.ts +49 -0
  9. package/vs/modules/biz/member/index.js +18 -0
  10. package/vs/modules/biz/member/index.js.map +1 -0
  11. package/vs/modules/biz/member/job/service.d.ts +14 -0
  12. package/vs/modules/biz/member/job/service.js +37 -0
  13. package/vs/modules/biz/member/job/service.js.map +1 -0
  14. package/vs/modules/biz/member/main/service.d.ts +27 -0
  15. package/vs/modules/biz/member/main/service.js +70 -0
  16. package/vs/modules/biz/member/main/service.js.map +1 -0
  17. package/vs/modules/biz/member/manifest.d.ts +12 -0
  18. package/vs/modules/biz/member/manifest.js +43 -0
  19. package/vs/modules/biz/member/manifest.js.map +1 -0
  20. package/vs/modules/biz/member/type.d.ts +154 -0
  21. package/vs/modules/biz/member/type.js +3 -0
  22. package/vs/modules/biz/member/type.js.map +1 -0
  23. package/vs/modules/biz/promotion/index.d.ts +55 -0
  24. package/vs/modules/biz/promotion/index.js +25 -0
  25. package/vs/modules/biz/promotion/index.js.map +1 -0
  26. package/vs/modules/biz/promotion/job/service.d.ts +10 -0
  27. package/vs/modules/biz/promotion/job/service.js +25 -0
  28. package/vs/modules/biz/promotion/job/service.js.map +1 -0
  29. package/vs/modules/biz/promotion/main/service.d.ts +16 -0
  30. package/vs/modules/biz/promotion/main/service.js +43 -0
  31. package/vs/modules/biz/promotion/main/service.js.map +1 -0
  32. package/vs/modules/biz/promotion/manifest.d.ts +13 -0
  33. package/vs/modules/biz/promotion/manifest.js +31 -0
  34. package/vs/modules/biz/promotion/manifest.js.map +1 -0
  35. package/vs/modules/biz/promotion/restructure/calculation/service.d.ts +9 -0
  36. package/vs/modules/biz/promotion/restructure/calculation/service.js +22 -0
  37. package/vs/modules/biz/promotion/restructure/calculation/service.js.map +1 -0
  38. package/vs/modules/biz/promotion/type.d.ts +237 -0
  39. package/vs/modules/biz/promotion/type.js +3 -0
  40. package/vs/modules/biz/promotion/type.js.map +1 -0
  41. package/vs/modules/biz/subscribeNotification/index.d.ts +23 -0
  42. package/vs/modules/biz/subscribeNotification/index.js +15 -0
  43. package/vs/modules/biz/subscribeNotification/index.js.map +1 -0
  44. package/vs/modules/biz/subscribeNotification/main/service.d.ts +16 -0
  45. package/vs/modules/biz/subscribeNotification/main/service.js +43 -0
  46. package/vs/modules/biz/subscribeNotification/main/service.js.map +1 -0
  47. package/vs/modules/biz/subscribeNotification/manifest.d.ts +6 -0
  48. package/vs/modules/biz/subscribeNotification/manifest.js +20 -0
  49. package/vs/modules/biz/subscribeNotification/manifest.js.map +1 -0
  50. package/vs/modules/biz/subscribeNotification/type.d.ts +54 -0
  51. package/vs/modules/biz/subscribeNotification/type.js +3 -0
  52. package/vs/modules/biz/subscribeNotification/type.js.map +1 -0
  53. package/vs/modules/biz/userAction/index.d.ts +27 -0
  54. package/vs/modules/biz/userAction/index.js +18 -0
  55. package/vs/modules/biz/userAction/index.js.map +1 -0
  56. package/vs/modules/biz/userAction/job/service.d.ts +11 -0
  57. package/vs/modules/biz/userAction/job/service.js +28 -0
  58. package/vs/modules/biz/userAction/job/service.js.map +1 -0
  59. package/vs/modules/biz/userAction/main/service.d.ts +8 -0
  60. package/vs/modules/biz/userAction/main/service.js +19 -0
  61. package/vs/modules/biz/userAction/main/service.js.map +1 -0
  62. package/vs/modules/biz/userAction/manifest.d.ts +7 -0
  63. package/vs/modules/biz/userAction/manifest.js +16 -0
  64. package/vs/modules/biz/userAction/manifest.js.map +1 -0
  65. package/vs/modules/biz/userAction/type.d.ts +58 -0
  66. package/vs/modules/biz/userAction/type.js +3 -0
  67. package/vs/modules/biz/userAction/type.js.map +1 -0
@@ -0,0 +1,237 @@
1
+ export declare namespace Promotion {
2
+ interface CouponItem {
3
+ skuId: string;
4
+ price: number;
5
+ reduce: number;
6
+ couponId: string;
7
+ expireAt: number;
8
+ type: string;
9
+ object: unknown;
10
+ }
11
+ interface Coupon {
12
+ _id: string;
13
+ _createTime: number;
14
+ _updateTime: number;
15
+ basicInfo: {
16
+ appId: string;
17
+ desc?: string;
18
+ effectAt: number;
19
+ effectiveDays: number;
20
+ expireAt: number;
21
+ grantType: string[];
22
+ name: string;
23
+ source?: string;
24
+ status: 'AVAILABLE' | 'EXPIRED' | 'ABANDONED';
25
+ templateId: string;
26
+ type: string;
27
+ unionId: string;
28
+ };
29
+ discountRule: {
30
+ level: 'SKU' | 'ORDER';
31
+ type: 'FEE' | 'SPECIFY_AMOUNT' | 'PERCENT';
32
+ value: number | number[];
33
+ generateRule: string;
34
+ };
35
+ extraInfo?: {
36
+ navUrl: string;
37
+ };
38
+ scope: Array<{
39
+ type: 'ITEM' | 'CATEGORY' | 'DYNAMIC_ITEM_LIST' | 'ITEM_TAG';
40
+ value: string | number;
41
+ }>;
42
+ excludeScope?: Array<{
43
+ type: 'ITEM' | 'CATEGORY' | 'DYNAMIC_ITEM_LIST' | 'ITEM_TAG';
44
+ value: string | number;
45
+ }>;
46
+ usageLimit: Array<{
47
+ type: 'FEE' | 'QUANTITY';
48
+ value: number | string;
49
+ effectType: 'CATEGORY' | 'ITEM' | 'SKU';
50
+ bizId: string;
51
+ }>;
52
+ }
53
+ namespace Main {
54
+ namespace Request {
55
+ interface CalculateLowestPriceForDirectPay {
56
+ unionId: string;
57
+ item: Record<string, unknown>;
58
+ quantity: number;
59
+ isItemCouponCanBeUse: boolean;
60
+ isOrderCouponCanBeUse: boolean;
61
+ useCreditCoin: boolean;
62
+ creditDeductRate: number;
63
+ userCreditCoin: number;
64
+ isMemberPriceCanBeUse: boolean;
65
+ isPayingDeposit?: boolean;
66
+ }
67
+ interface PromotionRecord {
68
+ _id?: string;
69
+ tradeOrderId?: string;
70
+ bizId?: string;
71
+ type?: string;
72
+ skuIdList?: string[];
73
+ price?: number;
74
+ reduce: number;
75
+ couponId: string;
76
+ skuId?: string;
77
+ snapShotInfo?: unknown;
78
+ createdAt?: number;
79
+ updatedAt?: number;
80
+ status?: string;
81
+ }
82
+ interface WriteOffCoupon {
83
+ tradeOrderId: string;
84
+ unionId: string;
85
+ couponItems: PromotionRecord[];
86
+ }
87
+ interface RollbackCoupon {
88
+ tradeOrderId: string;
89
+ positiveOrderId: string;
90
+ unionId: string;
91
+ couponItems: PromotionRecord[];
92
+ }
93
+ interface GrantCoupon {
94
+ unionId: string;
95
+ couponTemplateId: string;
96
+ source?: string;
97
+ withLock?: boolean;
98
+ expireAt?: string | number;
99
+ }
100
+ interface QueryCouponByUserAndTemplate {
101
+ unionId: string;
102
+ templateIdList: string[];
103
+ beginTime?: number;
104
+ endTime?: number;
105
+ }
106
+ interface CountCouponByTemplateIdAndStatus {
107
+ templateId: string;
108
+ statusList: string[];
109
+ }
110
+ interface GetItemActivityInfo {
111
+ unionId: string;
112
+ itemId: string;
113
+ source: string;
114
+ }
115
+ /** CommodityService currently sends this object rather than a root string. */
116
+ interface GetItemListInDynamicCoupon {
117
+ couponTemplateId: string;
118
+ }
119
+ }
120
+ namespace Response {
121
+ interface CalculateLowestPriceForDirectPay {
122
+ couponItems: CouponItem[];
123
+ totalReduce: number;
124
+ totalPrice: number;
125
+ hasOrderCoupon: boolean;
126
+ hasItemCoupon: boolean;
127
+ creditCanReduce: number;
128
+ itemCouponItems: CouponGroup;
129
+ orderCouponItems: CouponGroup;
130
+ memberReduceItems: {
131
+ items: Array<Partial<CouponItem>>;
132
+ reduce: number;
133
+ isFromMember?: boolean;
134
+ originalPriceQuantity?: number;
135
+ memberPriceQuantity?: number;
136
+ };
137
+ coinReduce: number;
138
+ returnCoin: number;
139
+ isMemberPriceLimitTimesRunOut: boolean;
140
+ depositFee: number;
141
+ finalPaymentFee: number;
142
+ }
143
+ interface CouponGroup {
144
+ items: CouponItem[];
145
+ reduce: number;
146
+ isFromMember?: boolean;
147
+ }
148
+ }
149
+ interface Controller {
150
+ calculateLowestPriceForDirectPay(request: Request.CalculateLowestPriceForDirectPay): Promise<Response.CalculateLowestPriceForDirectPay>;
151
+ writeOffCoupon(request: Request.WriteOffCoupon): Promise<void>;
152
+ rollbackCoupon(request: Request.RollbackCoupon): Promise<void>;
153
+ grantCoupon(request: Request.GrantCoupon): Promise<string>;
154
+ getCouponById(couponId: string): Promise<Coupon | undefined>;
155
+ queryCouponByUserAndTemplate(request: Request.QueryCouponByUserAndTemplate): Promise<Coupon[]>;
156
+ countCouponByTemplateIdAndStatus(request: Request.CountCouponByTemplateIdAndStatus): Promise<number>;
157
+ getItemActivityInfo(request: Request.GetItemActivityInfo): Promise<Record<string, unknown>>;
158
+ getItemListInDynamicCoupon(request: Request.GetItemListInDynamicCoupon): Promise<string[]>;
159
+ }
160
+ }
161
+ namespace Job {
162
+ interface Controller {
163
+ jobPushCouponNotification(): Promise<void>;
164
+ jobMaskUserForTourismConvert(): Promise<void>;
165
+ jobUpdateExpireCouponStatus(): Promise<void>;
166
+ }
167
+ }
168
+ namespace Restructure {
169
+ namespace Calculation {
170
+ namespace Request {
171
+ interface CalculatePreOrder {
172
+ unionId: string;
173
+ itemInfo: {
174
+ id: string;
175
+ categoryTwo: string;
176
+ combos: Array<{
177
+ id: string;
178
+ skus: string[];
179
+ quantity: number;
180
+ }>;
181
+ };
182
+ roomInfo?: Array<{
183
+ roomId: string;
184
+ quantity: number;
185
+ }>;
186
+ shuttleBusInfo?: {
187
+ relationId: string;
188
+ quantity: number;
189
+ };
190
+ switches: {
191
+ useItemCoupon?: boolean;
192
+ useOrderCoupon?: boolean;
193
+ useCreditCoin?: boolean;
194
+ useMemberPrice?: boolean;
195
+ useStayMoreSaveMoreActivity?: boolean;
196
+ };
197
+ scene?: 'GROUP_BOOKING';
198
+ rootOrderId?: string;
199
+ currentOrderId?: string;
200
+ }
201
+ interface ValidateOrder {
202
+ orderId: string;
203
+ }
204
+ }
205
+ namespace Response {
206
+ interface CalculatePreOrderForPos {
207
+ actuallyPaidFee: number;
208
+ promotionTools: Array<{
209
+ type: string;
210
+ bizId: string;
211
+ skuIdList: string[];
212
+ discountFee: number;
213
+ discountedFee: number;
214
+ snapshot: unknown;
215
+ }>;
216
+ paymentTools: Array<{
217
+ type: string;
218
+ totalFee: number;
219
+ }>;
220
+ feeDetail: Array<{
221
+ itemId: string;
222
+ comboId: string;
223
+ skuId: string;
224
+ value: number;
225
+ quantity: number;
226
+ type: string;
227
+ desc: string;
228
+ }>;
229
+ }
230
+ }
231
+ interface Controller {
232
+ calculatePreOrderForPos(request: Request.CalculatePreOrder): Promise<Response.CalculatePreOrderForPos>;
233
+ validateOrder(request: Request.ValidateOrder): Promise<boolean>;
234
+ }
235
+ }
236
+ }
237
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/vs/modules/biz/promotion/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ import subscribeNotificationMainService from './main/service';
2
+ declare const subscribeNotificationService: {
3
+ main: {
4
+ prefixUrl: string;
5
+ editWxSubscribeMessage(request: import("./type").SubscribeNotification.Main.Request.EditWxSubscribeMessage): Promise<import("./type").SubscribeNotification.Main.UpdateResult | undefined>;
6
+ jobPushWxSubscribeMessage(param: null): Promise<void>;
7
+ pushSubscribeMessageForFriendInvite(request: import("./type").SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<import("./type").SubscribeNotification.Main.UpdateResult | undefined>;
8
+ pushWxSubscribeMessageForCoinArrive(request: import("./type").SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<import("./type").SubscribeNotification.Main.UpdateResult | undefined>;
9
+ pushWxSubscribeMessageForBookingSucceed(request: import("./type").SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<import("./type").SubscribeNotification.Main.UpdateResult | undefined>;
10
+ pushWxSubscribeMessageForNewTourItinerary(request: import("./type").SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<import("./type").SubscribeNotification.Main.UpdateResult | undefined>;
11
+ addWxSubscribeMessageForDateNotification(request: import("./type").SubscribeNotification.Main.Request.AddWxSubscribeMessageForDateNotification): Promise<string>;
12
+ pushWxSubscribeMessageForRefundSuccessful(request: import("./type").SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<import("./type").SubscribeNotification.Main.UpdateResult | undefined>;
13
+ pushWxSubscribeMessageForRefundRefuse(request: import("./type").SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<import("./type").SubscribeNotification.Main.UpdateResult | undefined>;
14
+ readonly publicDevHost: "https://vs-dev.wejourney.top";
15
+ readonly publicProdHost: "https://vs.wejourney.top";
16
+ getHost(): string;
17
+ getApiUrl(func: Function): string;
18
+ };
19
+ };
20
+ export { subscribeNotificationMainService };
21
+ export { subscribeNotificationSdkManifest } from './manifest';
22
+ export { SubscribeNotification } from './type';
23
+ export default subscribeNotificationService;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.subscribeNotificationSdkManifest = exports.subscribeNotificationMainService = void 0;
7
+ const service_1 = __importDefault(require("./main/service"));
8
+ exports.subscribeNotificationMainService = service_1.default;
9
+ const subscribeNotificationService = {
10
+ main: service_1.default,
11
+ };
12
+ var manifest_1 = require("./manifest");
13
+ Object.defineProperty(exports, "subscribeNotificationSdkManifest", { enumerable: true, get: function () { return manifest_1.subscribeNotificationSdkManifest; } });
14
+ exports.default = subscribeNotificationService;
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/vs/modules/biz/subscribeNotification/index.ts"],"names":[],"mappings":";;;;;;AAAA,6DAA6D;AAMpD,2CANF,iBAAgC,CAME;AAJzC,MAAM,4BAA4B,GAAG;IACnC,IAAI,EAAE,iBAAgC;CACvC,CAAA;AAGD,uCAA6D;AAApD,4HAAA,gCAAgC,OAAA;AAEzC,kBAAe,4BAA4B,CAAA"}
@@ -0,0 +1,16 @@
1
+ import BaseService from '../../../baseService';
2
+ import { SubscribeNotification } from '../type';
3
+ declare class SubscribeNotificationMainService extends BaseService implements SubscribeNotification.Main.Controller {
4
+ prefixUrl: string;
5
+ editWxSubscribeMessage(request: SubscribeNotification.Main.Request.EditWxSubscribeMessage): Promise<SubscribeNotification.Main.UpdateResult | undefined>;
6
+ jobPushWxSubscribeMessage(param: null): Promise<void>;
7
+ pushSubscribeMessageForFriendInvite(request: SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<SubscribeNotification.Main.UpdateResult | undefined>;
8
+ pushWxSubscribeMessageForCoinArrive(request: SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<SubscribeNotification.Main.UpdateResult | undefined>;
9
+ pushWxSubscribeMessageForBookingSucceed(request: SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<SubscribeNotification.Main.UpdateResult | undefined>;
10
+ pushWxSubscribeMessageForNewTourItinerary(request: SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<SubscribeNotification.Main.UpdateResult | undefined>;
11
+ addWxSubscribeMessageForDateNotification(request: SubscribeNotification.Main.Request.AddWxSubscribeMessageForDateNotification): Promise<string>;
12
+ pushWxSubscribeMessageForRefundSuccessful(request: SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<SubscribeNotification.Main.UpdateResult | undefined>;
13
+ pushWxSubscribeMessageForRefundRefuse(request: SubscribeNotification.Main.Request.PushWxSubscribeMessage): Promise<SubscribeNotification.Main.UpdateResult | undefined>;
14
+ }
15
+ declare const subscribeNotificationMainService: SubscribeNotificationMainService;
16
+ export default subscribeNotificationMainService;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const http_1 = require("../../../../http");
7
+ const baseService_1 = __importDefault(require("../../../baseService"));
8
+ class SubscribeNotificationMainService extends baseService_1.default {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.prefixUrl = '/biz/subscribeNotification/main';
12
+ }
13
+ editWxSubscribeMessage(request) {
14
+ return (0, http_1.callScfApi)(this.getApiUrl(this.editWxSubscribeMessage), request);
15
+ }
16
+ jobPushWxSubscribeMessage(param) {
17
+ return (0, http_1.callScfApi)(this.getApiUrl(this.jobPushWxSubscribeMessage), param);
18
+ }
19
+ pushSubscribeMessageForFriendInvite(request) {
20
+ return (0, http_1.callScfApi)(this.getApiUrl(this.pushSubscribeMessageForFriendInvite), request);
21
+ }
22
+ pushWxSubscribeMessageForCoinArrive(request) {
23
+ return (0, http_1.callScfApi)(this.getApiUrl(this.pushWxSubscribeMessageForCoinArrive), request);
24
+ }
25
+ pushWxSubscribeMessageForBookingSucceed(request) {
26
+ return (0, http_1.callScfApi)(this.getApiUrl(this.pushWxSubscribeMessageForBookingSucceed), request);
27
+ }
28
+ pushWxSubscribeMessageForNewTourItinerary(request) {
29
+ return (0, http_1.callScfApi)(this.getApiUrl(this.pushWxSubscribeMessageForNewTourItinerary), request);
30
+ }
31
+ addWxSubscribeMessageForDateNotification(request) {
32
+ return (0, http_1.callScfApi)(this.getApiUrl(this.addWxSubscribeMessageForDateNotification), request);
33
+ }
34
+ pushWxSubscribeMessageForRefundSuccessful(request) {
35
+ return (0, http_1.callScfApi)(this.getApiUrl(this.pushWxSubscribeMessageForRefundSuccessful), request);
36
+ }
37
+ pushWxSubscribeMessageForRefundRefuse(request) {
38
+ return (0, http_1.callScfApi)(this.getApiUrl(this.pushWxSubscribeMessageForRefundRefuse), request);
39
+ }
40
+ }
41
+ const subscribeNotificationMainService = new SubscribeNotificationMainService();
42
+ exports.default = subscribeNotificationMainService;
43
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/vs/modules/biz/subscribeNotification/main/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA6C;AAC7C,uEAA8C;AAG9C,MAAM,gCACJ,SAAQ,qBAAW;IADrB;;QAIE,cAAS,GAAG,iCAAiC,CAAA;IA0E/C,CAAC;IAxEC,sBAAsB,CACpB,OAAkE;QAElE,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,sBAAsB,CAAC,EAC3C,OAAO,CACR,CAAA;IACH,CAAC;IAED,yBAAyB,CAAC,KAAW;QACnC,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,yBAAyB,CAAC,EAC9C,KAAK,CACN,CAAA;IACH,CAAC;IAED,mCAAmC,CACjC,OAAkE;QAElE,OAAO,IAAA,iBAAU,EAEf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mCAAmC,CAAC,EAAE,OAAO,CAAC,CAAA;IACtE,CAAC;IAED,mCAAmC,CACjC,OAAkE;QAElE,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,mCAAmC,CAAC,EACxD,OAAO,CACR,CAAA;IACH,CAAC;IAED,uCAAuC,CACrC,OAAkE;QAElE,OAAO,IAAA,iBAAU,EAEf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uCAAuC,CAAC,EAAE,OAAO,CAAC,CAAA;IAC1E,CAAC;IAED,yCAAyC,CACvC,OAAkE;QAElE,OAAO,IAAA,iBAAU,EAEf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,yCAAyC,CAAC,EAAE,OAAO,CAAC,CAAA;IAC5E,CAAC;IAED,wCAAwC,CACtC,OAAoF;QAEpF,OAAO,IAAA,iBAAU,EAEf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,wCAAwC,CAAC,EAAE,OAAO,CAAC,CAAA;IAC3E,CAAC;IAED,yCAAyC,CACvC,OAAkE;QAElE,OAAO,IAAA,iBAAU,EAEf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,yCAAyC,CAAC,EAAE,OAAO,CAAC,CAAA;IAC5E,CAAC;IAED,qCAAqC,CACnC,OAAkE;QAElE,OAAO,IAAA,iBAAU,EAEf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,qCAAqC,CAAC,EAAE,OAAO,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,gCAAgC,GAAG,IAAI,gCAAgC,EAAE,CAAA;AAC/E,kBAAe,gCAAgC,CAAA"}
@@ -0,0 +1,6 @@
1
+ /** 后端调用方复核后冻结的 SubscribeNotification 具名 SDK 清单。 */
2
+ export declare const subscribeNotificationSdkManifest: {
3
+ readonly targets: {
4
+ readonly main: readonly ["editWxSubscribeMessage", "jobPushWxSubscribeMessage", "pushSubscribeMessageForFriendInvite", "pushWxSubscribeMessageForCoinArrive", "pushWxSubscribeMessageForBookingSucceed", "pushWxSubscribeMessageForNewTourItinerary", "addWxSubscribeMessageForDateNotification", "pushWxSubscribeMessageForRefundSuccessful", "pushWxSubscribeMessageForRefundRefuse"];
5
+ };
6
+ };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.subscribeNotificationSdkManifest = void 0;
4
+ /** 后端调用方复核后冻结的 SubscribeNotification 具名 SDK 清单。 */
5
+ exports.subscribeNotificationSdkManifest = {
6
+ targets: {
7
+ main: [
8
+ 'editWxSubscribeMessage',
9
+ 'jobPushWxSubscribeMessage',
10
+ 'pushSubscribeMessageForFriendInvite',
11
+ 'pushWxSubscribeMessageForCoinArrive',
12
+ 'pushWxSubscribeMessageForBookingSucceed',
13
+ 'pushWxSubscribeMessageForNewTourItinerary',
14
+ 'addWxSubscribeMessageForDateNotification',
15
+ 'pushWxSubscribeMessageForRefundSuccessful',
16
+ 'pushWxSubscribeMessageForRefundRefuse',
17
+ ],
18
+ },
19
+ };
20
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../../../src/vs/modules/biz/subscribeNotification/manifest.ts"],"names":[],"mappings":";;;AAAA,mDAAmD;AACtC,QAAA,gCAAgC,GAAG;IAC9C,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,wBAAwB;YACxB,2BAA2B;YAC3B,qCAAqC;YACrC,qCAAqC;YACrC,yCAAyC;YACzC,2CAA2C;YAC3C,0CAA0C;YAC1C,2CAA2C;YAC3C,uCAAuC;SACxC;KACF;CACO,CAAA"}
@@ -0,0 +1,54 @@
1
+ export declare namespace SubscribeNotification {
2
+ interface TemplateValue {
3
+ value: string | number;
4
+ }
5
+ type Message = Record<string, TemplateValue>;
6
+ interface MessageData {
7
+ message?: Message;
8
+ page?: string;
9
+ }
10
+ namespace Main {
11
+ namespace Request {
12
+ interface EditWxSubscribeMessage {
13
+ bizId: string;
14
+ bizType?: string;
15
+ data?: MessageData;
16
+ executeAt?: number;
17
+ status?: string;
18
+ }
19
+ interface PushWxSubscribeMessage {
20
+ bizId: string;
21
+ data: MessageData;
22
+ executeAt?: number;
23
+ unionId?: string;
24
+ openId?: string;
25
+ }
26
+ interface AddWxSubscribeMessageForDateNotification {
27
+ bizId: string;
28
+ message: Message;
29
+ page: string;
30
+ unionId?: string;
31
+ openId?: string;
32
+ appId?: string;
33
+ executeAt?: number;
34
+ }
35
+ }
36
+ interface UpdateResult {
37
+ errMsg: string;
38
+ stats: {
39
+ updated: number;
40
+ };
41
+ }
42
+ interface Controller {
43
+ editWxSubscribeMessage(request: Request.EditWxSubscribeMessage): Promise<UpdateResult | undefined>;
44
+ jobPushWxSubscribeMessage(param: null): Promise<void>;
45
+ pushSubscribeMessageForFriendInvite(request: Request.PushWxSubscribeMessage): Promise<UpdateResult | undefined>;
46
+ pushWxSubscribeMessageForCoinArrive(request: Request.PushWxSubscribeMessage): Promise<UpdateResult | undefined>;
47
+ pushWxSubscribeMessageForBookingSucceed(request: Request.PushWxSubscribeMessage): Promise<UpdateResult | undefined>;
48
+ pushWxSubscribeMessageForNewTourItinerary(request: Request.PushWxSubscribeMessage): Promise<UpdateResult | undefined>;
49
+ addWxSubscribeMessageForDateNotification(request: Request.AddWxSubscribeMessageForDateNotification): Promise<string>;
50
+ pushWxSubscribeMessageForRefundSuccessful(request: Request.PushWxSubscribeMessage): Promise<UpdateResult | undefined>;
51
+ pushWxSubscribeMessageForRefundRefuse(request: Request.PushWxSubscribeMessage): Promise<UpdateResult | undefined>;
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../../../../src/vs/modules/biz/subscribeNotification/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import userActionJobService from './job/service';
2
+ import userActionMainService from './main/service';
3
+ declare const userActionService: {
4
+ main: {
5
+ prefixUrl: string;
6
+ getEmptySubscribeMessageByTypeAndTime(request: import("./type").UserAction.Main.Request.GetEmptySubscribeMessageByTypeAndTime): Promise<import("./type").UserAction.Main.SubscribeNotificationRecord[]>;
7
+ readonly publicDevHost: "https://vs-dev.wejourney.top";
8
+ readonly publicProdHost: "https://vs.wejourney.top";
9
+ getHost(): string;
10
+ getApiUrl(func: Function): string;
11
+ };
12
+ job: {
13
+ prefixUrl: string;
14
+ jobExpireLastMonthCredit(param: null): Promise<string | undefined>;
15
+ jobExpireYesterdayCredit(param: import("./type").UserAction.Job.Request.ExpireYesterdayCredit | null): Promise<string | undefined>;
16
+ jobExpireCreditRecordFlush(request: import("./type").UserAction.Job.Request.ExpireCreditRecordFlush): Promise<string | undefined>;
17
+ jobRemoveUserActionLog(param: null): Promise<import("./type").UserAction.Job.RemoveResult | undefined>;
18
+ readonly publicDevHost: "https://vs-dev.wejourney.top";
19
+ readonly publicProdHost: "https://vs.wejourney.top";
20
+ getHost(): string;
21
+ getApiUrl(func: Function): string;
22
+ };
23
+ };
24
+ export { userActionMainService, userActionJobService };
25
+ export { userActionSdkManifest } from './manifest';
26
+ export { UserAction } from './type';
27
+ export default userActionService;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.userActionSdkManifest = exports.userActionJobService = exports.userActionMainService = void 0;
7
+ const service_1 = __importDefault(require("./job/service"));
8
+ exports.userActionJobService = service_1.default;
9
+ const service_2 = __importDefault(require("./main/service"));
10
+ exports.userActionMainService = service_2.default;
11
+ const userActionService = {
12
+ main: service_2.default,
13
+ job: service_1.default,
14
+ };
15
+ var manifest_1 = require("./manifest");
16
+ Object.defineProperty(exports, "userActionSdkManifest", { enumerable: true, get: function () { return manifest_1.userActionSdkManifest; } });
17
+ exports.default = userActionService;
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/vs/modules/biz/userAction/index.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAgD;AAQhB,+BARzB,iBAAoB,CAQyB;AAPpD,6DAAkD;AAOzC,gCAPF,iBAAqB,CAOE;AAL9B,MAAM,iBAAiB,GAAG;IACxB,IAAI,EAAE,iBAAqB;IAC3B,GAAG,EAAE,iBAAoB;CAC1B,CAAA;AAGD,uCAAkD;AAAzC,iHAAA,qBAAqB,OAAA;AAE9B,kBAAe,iBAAiB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import BaseService from '../../../baseService';
2
+ import { UserAction } from '../type';
3
+ declare class UserActionJobService extends BaseService implements UserAction.Job.Controller {
4
+ prefixUrl: string;
5
+ jobExpireLastMonthCredit(param: null): Promise<string | undefined>;
6
+ jobExpireYesterdayCredit(param: UserAction.Job.Request.ExpireYesterdayCredit | null): Promise<string | undefined>;
7
+ jobExpireCreditRecordFlush(request: UserAction.Job.Request.ExpireCreditRecordFlush): Promise<string | undefined>;
8
+ jobRemoveUserActionLog(param: null): Promise<UserAction.Job.RemoveResult | undefined>;
9
+ }
10
+ declare const userActionJobService: UserActionJobService;
11
+ export default userActionJobService;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const http_1 = require("../../../../http");
7
+ const baseService_1 = __importDefault(require("../../../baseService"));
8
+ class UserActionJobService extends baseService_1.default {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.prefixUrl = '/biz/user-action/job';
12
+ }
13
+ jobExpireLastMonthCredit(param) {
14
+ return (0, http_1.callScfApi)(this.getApiUrl(this.jobExpireLastMonthCredit), param);
15
+ }
16
+ jobExpireYesterdayCredit(param) {
17
+ return (0, http_1.callScfApi)(this.getApiUrl(this.jobExpireYesterdayCredit), param);
18
+ }
19
+ jobExpireCreditRecordFlush(request) {
20
+ return (0, http_1.callScfApi)(this.getApiUrl(this.jobExpireCreditRecordFlush), request);
21
+ }
22
+ jobRemoveUserActionLog(param) {
23
+ return (0, http_1.callScfApi)(this.getApiUrl(this.jobRemoveUserActionLog), param);
24
+ }
25
+ }
26
+ const userActionJobService = new UserActionJobService();
27
+ exports.default = userActionJobService;
28
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/vs/modules/biz/userAction/job/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA6C;AAC7C,uEAA8C;AAG9C,MAAM,oBAAqB,SAAQ,qBAAW;IAA9C;;QACE,cAAS,GAAG,sBAAsB,CAAA;IAiCpC,CAAC;IA/BC,wBAAwB,CAAC,KAAW;QAClC,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAC7C,KAAK,CACN,CAAA;IACH,CAAC;IAED,wBAAwB,CACtB,KAA0D;QAE1D,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,wBAAwB,CAAC,EAC7C,KAAK,CACN,CAAA;IACH,CAAC;IAED,0BAA0B,CACxB,OAAuD;QAEvD,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,0BAA0B,CAAC,EAC/C,OAAO,CACR,CAAA;IACH,CAAC;IAED,sBAAsB,CAAC,KAAW;QAChC,OAAO,IAAA,iBAAU,EACf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,sBAAsB,CAAC,EAC3C,KAAK,CACN,CAAA;IACH,CAAC;CACF;AAED,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,EAAE,CAAA;AACvD,kBAAe,oBAAoB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import BaseService from '../../../baseService';
2
+ import { UserAction } from '../type';
3
+ declare class UserActionMainService extends BaseService implements UserAction.Main.Controller {
4
+ prefixUrl: string;
5
+ getEmptySubscribeMessageByTypeAndTime(request: UserAction.Main.Request.GetEmptySubscribeMessageByTypeAndTime): Promise<UserAction.Main.SubscribeNotificationRecord[]>;
6
+ }
7
+ declare const userActionMainService: UserActionMainService;
8
+ export default userActionMainService;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const http_1 = require("../../../../http");
7
+ const baseService_1 = __importDefault(require("../../../baseService"));
8
+ class UserActionMainService extends baseService_1.default {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.prefixUrl = '/biz/user-action/main';
12
+ }
13
+ getEmptySubscribeMessageByTypeAndTime(request) {
14
+ return (0, http_1.callScfApi)(this.getApiUrl(this.getEmptySubscribeMessageByTypeAndTime), request);
15
+ }
16
+ }
17
+ const userActionMainService = new UserActionMainService();
18
+ exports.default = userActionMainService;
19
+ //# sourceMappingURL=service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/vs/modules/biz/userAction/main/service.ts"],"names":[],"mappings":";;;;;AAAA,2CAA6C;AAC7C,uEAA8C;AAG9C,MAAM,qBAAsB,SAAQ,qBAAW;IAA/C;;QACE,cAAS,GAAG,uBAAuB,CAAA;IASrC,CAAC;IAPC,qCAAqC,CACnC,OAAsE;QAEtE,OAAO,IAAA,iBAAU,EAEf,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,qCAAqC,CAAC,EAAE,OAAO,CAAC,CAAA;IACxE,CAAC;CACF;AAED,MAAM,qBAAqB,GAAG,IAAI,qBAAqB,EAAE,CAAA;AACzD,kBAAe,qBAAqB,CAAA"}
@@ -0,0 +1,7 @@
1
+ /** 后端调用方复核后冻结的 UserAction 具名 SDK 清单。 */
2
+ export declare const userActionSdkManifest: {
3
+ readonly targets: {
4
+ readonly main: readonly ["getEmptySubscribeMessageByTypeAndTime"];
5
+ readonly job: readonly ["jobExpireLastMonthCredit", "jobExpireYesterdayCredit", "jobExpireCreditRecordFlush", "jobRemoveUserActionLog"];
6
+ };
7
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.userActionSdkManifest = void 0;
4
+ /** 后端调用方复核后冻结的 UserAction 具名 SDK 清单。 */
5
+ exports.userActionSdkManifest = {
6
+ targets: {
7
+ main: ['getEmptySubscribeMessageByTypeAndTime'],
8
+ job: [
9
+ 'jobExpireLastMonthCredit',
10
+ 'jobExpireYesterdayCredit',
11
+ 'jobExpireCreditRecordFlush',
12
+ 'jobRemoveUserActionLog',
13
+ ],
14
+ },
15
+ };
16
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../../../src/vs/modules/biz/userAction/manifest.ts"],"names":[],"mappings":";;;AAAA,wCAAwC;AAC3B,QAAA,qBAAqB,GAAG;IACnC,OAAO,EAAE;QACP,IAAI,EAAE,CAAC,uCAAuC,CAAC;QAC/C,GAAG,EAAE;YACH,0BAA0B;YAC1B,0BAA0B;YAC1B,4BAA4B;YAC5B,wBAAwB;SACzB;KACF;CACO,CAAA"}