@pisell/pisellos 2.1.169 → 2.1.171
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/model/strategy/adapter/promotion/index.js +0 -9
- package/dist/solution/BookingByStep/index.d.ts +2 -2
- package/dist/solution/VenueBooking/index.d.ts +19 -0
- package/dist/solution/VenueBooking/index.js +406 -67
- package/lib/model/strategy/adapter/promotion/index.js +0 -49
- package/lib/solution/BookingByStep/index.d.ts +2 -2
- package/lib/solution/VenueBooking/index.d.ts +19 -0
- package/lib/solution/VenueBooking/index.js +299 -6
- package/package.json +1 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// 导出评估器
|
|
2
|
-
export { PromotionEvaluator } from "./evaluator";
|
|
3
|
-
|
|
4
|
-
// 导出适配器
|
|
5
|
-
export { PromotionAdapter } from "./adapter";
|
|
6
|
-
export { default } from "./adapter";
|
|
7
|
-
|
|
8
|
-
// 导出策略配置示例常量
|
|
9
|
-
export { X_ITEMS_FOR_Y_PRICE_STRATEGY, BUY_X_GET_Y_FREE_STRATEGY } from "./examples";
|
|
@@ -310,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
310
310
|
date: string;
|
|
311
311
|
status: string;
|
|
312
312
|
week: string;
|
|
313
|
-
weekNum: 0 |
|
|
313
|
+
weekNum: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
314
314
|
}[]>;
|
|
315
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
316
316
|
private getScheduleDataByIds;
|
|
@@ -329,7 +329,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
329
329
|
count: number;
|
|
330
330
|
left: number;
|
|
331
331
|
summaryCount: number;
|
|
332
|
-
status: "
|
|
332
|
+
status: "lots_of_space" | "filling_up_fast" | "sold_out";
|
|
333
333
|
}[];
|
|
334
334
|
/**
|
|
335
335
|
* 找到多个资源的公共可用时间段
|
|
@@ -18,6 +18,7 @@ interface VenueBookingItemRuleRuntimeConfig {
|
|
|
18
18
|
custom?: Record<string, any>;
|
|
19
19
|
}
|
|
20
20
|
export declare class VenueBookingImpl extends BaseModule implements Module {
|
|
21
|
+
private static readonly PRICING_DEBUG_CACHE_ID;
|
|
21
22
|
protected defaultName: string;
|
|
22
23
|
protected defaultVersion: string;
|
|
23
24
|
isSolution: boolean;
|
|
@@ -53,6 +54,16 @@ export declare class VenueBookingImpl extends BaseModule implements Module {
|
|
|
53
54
|
private pickErrorMessage;
|
|
54
55
|
private serializeError;
|
|
55
56
|
private addVenueBookingLog;
|
|
57
|
+
/**
|
|
58
|
+
* 临时线上排查日志:
|
|
59
|
+
* - 仅对指定页面 cacheId 开启,避免影响其他页面
|
|
60
|
+
* - 不 await,且吞掉日志上报异常,保证日志系统不会阻断登录/商品加载主流程
|
|
61
|
+
*/
|
|
62
|
+
private logPricingDiagnostics;
|
|
63
|
+
private isPricingDiagnosticsEnabled;
|
|
64
|
+
private getAvailableWalletIdsForDiagnostics;
|
|
65
|
+
private getOrderPricingSnapshotForDiagnostics;
|
|
66
|
+
private getCatalogPricingSnapshotForDiagnostics;
|
|
56
67
|
private logMethodStart;
|
|
57
68
|
private logMethodSuccess;
|
|
58
69
|
private logMethodError;
|
|
@@ -172,6 +183,14 @@ export declare class VenueBookingImpl extends BaseModule implements Module {
|
|
|
172
183
|
onCustomerLogin(params: {
|
|
173
184
|
customerId: number;
|
|
174
185
|
}): Promise<void>;
|
|
186
|
+
/**
|
|
187
|
+
* 接收 pisell2 VenueBooking 登录链路诊断日志。
|
|
188
|
+
* 实际是否上报仍由 OS 内部 cacheId 白名单统一控制。
|
|
189
|
+
*/
|
|
190
|
+
logPricingDiagnosticsFromClient(params: {
|
|
191
|
+
title: string;
|
|
192
|
+
payload?: Record<string, any>;
|
|
193
|
+
}): void;
|
|
175
194
|
private recalculateOrderPricesFromSmartPricing;
|
|
176
195
|
/**
|
|
177
196
|
* DataVariant 重算价格后,同步刷新订单展示、Rules 与 Summary 共用的价格口径。
|