@pisell/pisellos 2.3.121 → 2.3.123

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.
@@ -567,7 +567,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
567
567
  generateIdempotencyToken(): string;
568
568
  syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
569
569
  createOrder(params: CommitOrderParams['query']): {
570
- type: "appointment_booking" | "virtual";
570
+ type: "virtual" | "appointment_booking";
571
571
  platform: string;
572
572
  sales_channel: string;
573
573
  order_sales_channel: string;
@@ -199,6 +199,7 @@ export interface PointCardSnapshotItem {
199
199
  id: number | string;
200
200
  tag: 'point_card';
201
201
  product_id?: number | string;
202
+ code?: string;
202
203
  product_name: string;
203
204
  par_value: string;
204
205
  used_par_value: string;
@@ -58,6 +58,10 @@ export function normalizePointCardSnapshotItem(value) {
58
58
  if (productId !== undefined) {
59
59
  snapshot.product_id = productId;
60
60
  }
61
+ var code = normalizeSnapshotScalar(value.code);
62
+ if (code !== undefined) {
63
+ snapshot.code = String(code).trim();
64
+ }
61
65
  return snapshot;
62
66
  }
63
67
  export function buildPointCardSnapshotFromWalletPassList(value) {
@@ -24,6 +24,7 @@ export declare class OrderModule extends BaseModule implements Module {
24
24
  private lastRecentSqliteWriteCleanupAtMs;
25
25
  /** 最近一次 SSE 全量拉取完成时间 */
26
26
  private lastServerFullFetchAtMs;
27
+ private businessDayRefreshPromise;
27
28
  constructor(name?: string, version?: string);
28
29
  /**
29
30
  * 广播订单变更事件,兼容全量列表订阅并额外携带本次变更订单。
@@ -130,6 +131,13 @@ export declare class OrderModule extends BaseModule implements Module {
130
131
  loadOrdersByServer(options?: {
131
132
  trigger?: string;
132
133
  }): Promise<OrderData[]>;
134
+ /**
135
+ * 供展示屏按需补齐当前营业日的订单快照;成功标记复用全量拉取落库逻辑。
136
+ * 拉取或落库失败时不记录已刷新,下一次调用仍可重试。
137
+ */
138
+ refreshOrdersForCurrentBusinessDay(options?: {
139
+ trigger?: string;
140
+ }): Promise<void>;
133
141
  /**
134
142
  * 静默全量刷新:后台重新拉取全量 SSE 订单数据并更新本地
135
143
  * 拿到完整数据后一次性替换 store,触发订单变更与同步完成事件