@pisell/pisellos 0.10.33 → 0.10.35

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.
@@ -0,0 +1,9 @@
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, ITEM_REWARD_STRATEGY } from "./examples";
@@ -39,7 +39,7 @@ var LABELS = {
39
39
  balance: 'Balance',
40
40
  remainingAmount: 'Remaining amount',
41
41
  redeemPoints: 'Redeem points',
42
- remainingPoints: 'Point Balance',
42
+ remainingPoints: 'Points balance',
43
43
  table: 'Table',
44
44
  orderDiscount: 'Order discount',
45
45
  manualDiscount: 'Manual discount',
@@ -1226,6 +1226,7 @@ function buildPointCardSnapshotAssets(params) {
1226
1226
  var _params$order$order_m;
1227
1227
  var snapshots = (_params$order$order_m = params.order.order_meta_list) === null || _params$order$order_m === void 0 ? void 0 : _params$order$order_m.point_cards_snapshot;
1228
1228
  if (!Array.isArray(snapshots)) return [];
1229
+ var snapshotTime = firstPresentValue(params.order.updated_at, params.order.created_at);
1229
1230
  var seenSnapshotIds = new Set();
1230
1231
  return snapshots.flatMap(function (snapshot) {
1231
1232
  if (!snapshot || _typeof(snapshot) !== 'object' || Array.isArray(snapshot)) return [];
@@ -1246,6 +1247,12 @@ function buildPointCardSnapshotAssets(params) {
1246
1247
  value: trimDecimal(remainingPoints)
1247
1248
  });
1248
1249
  }
1250
+ if (isPresentId(snapshotTime)) {
1251
+ rows.push({
1252
+ item: formatDateTime(snapshotTime, params.locale),
1253
+ value: ''
1254
+ });
1255
+ }
1249
1256
  return [rows];
1250
1257
  });
1251
1258
  }
@@ -326,7 +326,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
326
326
  date: string;
327
327
  status: string;
328
328
  week: string;
329
- weekNum: 0 | 1 | 2 | 5 | 4 | 3 | 6;
329
+ weekNum: 0 | 5 | 3 | 1 | 2 | 4 | 6;
330
330
  }[]>;
331
331
  submitTimeSlot(timeSlots: TimeSliceItem): void;
332
332
  private getScheduleDataByIds;
@@ -31,7 +31,7 @@ const LABELS = {
31
31
  balance: 'Balance',
32
32
  remainingAmount: 'Remaining amount',
33
33
  redeemPoints: 'Redeem points',
34
- remainingPoints: 'Point Balance',
34
+ remainingPoints: 'Points balance',
35
35
  table: 'Table',
36
36
  orderDiscount: 'Order discount',
37
37
  manualDiscount: 'Manual discount',
@@ -1178,6 +1178,7 @@ function collectDisplayedWalletPassIds(payments) {
1178
1178
  function buildPointCardSnapshotAssets(params) {
1179
1179
  const snapshots = params.order.order_meta_list?.point_cards_snapshot;
1180
1180
  if (!Array.isArray(snapshots)) return [];
1181
+ const snapshotTime = firstPresentValue(params.order.updated_at, params.order.created_at);
1181
1182
  const seenSnapshotIds = new Set();
1182
1183
  return snapshots.flatMap(snapshot => {
1183
1184
  if (!snapshot || typeof snapshot !== 'object' || Array.isArray(snapshot)) return [];
@@ -1198,6 +1199,12 @@ function buildPointCardSnapshotAssets(params) {
1198
1199
  value: trimDecimal(remainingPoints)
1199
1200
  });
1200
1201
  }
1202
+ if (isPresentId(snapshotTime)) {
1203
+ rows.push({
1204
+ item: formatDateTime(snapshotTime, params.locale),
1205
+ value: ''
1206
+ });
1207
+ }
1201
1208
  return [rows];
1202
1209
  });
1203
1210
  }
@@ -326,7 +326,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
326
326
  date: string;
327
327
  status: string;
328
328
  week: string;
329
- weekNum: 0 | 1 | 2 | 5 | 4 | 3 | 6;
329
+ weekNum: 0 | 5 | 3 | 1 | 2 | 4 | 6;
330
330
  }[]>;
331
331
  submitTimeSlot(timeSlots: TimeSliceItem): void;
332
332
  private getScheduleDataByIds;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.10.33",
4
+ "version": "0.10.35",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",