@pisell/private-materials 6.11.658 → 6.11.660
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/bigSale/hooks/useSyncBigSaleCartToCds.js +44 -12
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -2
- package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/plus/piPaymentOld/ui/eftpos/hooks/usePaymentSessionController.d.ts +1 -1
- package/es/plus/piPaymentUI/eftpos/hooks/usePaymentSessionController.d.ts +1 -1
- package/es/plus/pisellGlobalSearch/providers/orderResultViews.d.ts +1 -1
- package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
- package/es/plus/pisellReservation/hooks/useReservationResourceWallPersist.d.ts +0 -1
- package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -1
- package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +0 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/saasDevice/appDevicePlanning/hooks/useAppDeviceList.d.ts +0 -1
- package/es/plus/saasDevice/appDevicePlanning/hooks/useAppWorkAreas.d.ts +0 -1
- package/es/plus/saasDevice/appPeripheral/hooks/useConnectDeviceModal.d.ts +0 -1
- package/es/plus/saasDevice/devicePlanning/modules/workAreas/hooks/useWorkAreas.d.ts +0 -1
- package/es/plus/saleDetail/hooks/useSaleDetailBookingLineItemProps.d.ts +0 -1
- package/es/plus/saleDetail/hooks/useSaleDetailProductSelectionModal.d.ts +0 -1
- package/es/plus/saleDetail/tmpl/B/components/WalletPass/utils/format.d.ts +1 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/es/pro/Selector/Selector.d.ts +1 -1
- package/es/pro/skuDetailModal/flow/i18n.d.ts +1 -2
- package/es/pro/skuDetailModal/flow/modules/autoResolution.d.ts +4 -5
- package/es/pro/skuDetailModal/flow/modules/bookingPrice/index.d.ts +5 -5
- package/es/pro/skuDetailModal/flow/modules/date/index.d.ts +2 -20
- package/es/pro/skuDetailModal/flow/modules/holder/index.d.ts +1 -2
- package/es/pro/skuDetailModal/flow/modules/price/index.d.ts +2 -2
- package/es/pro/skuDetailModal/flow/modules/resource/index.d.ts +1 -2
- package/es/pro/skuDetailModal/flow/modules/resource/model.d.ts +1 -1
- package/es/pro/skuDetailModal/flow/modules/resource/policy.d.ts +1 -2
- package/es/pro/skuDetailModal/flow/modules/shared/index.d.ts +5 -6
- package/es/pro/skuDetailModal/flow/modules/sku/index.d.ts +1 -2
- package/es/pro/skuDetailModal/flow/modules/time/index.d.ts +4 -5
- package/es/pro/skuDetailModal/flow/presets.d.ts +5 -5
- package/es/pro/skuDetailModal/flow/registry.d.ts +19 -54
- package/lib/components/bigSale/hooks/useSyncBigSaleCartToCds.js +54 -19
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -2
- package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/plus/piPaymentOld/ui/eftpos/hooks/usePaymentSessionController.d.ts +1 -1
- package/lib/plus/piPaymentUI/eftpos/hooks/usePaymentSessionController.d.ts +1 -1
- package/lib/plus/pisellGlobalSearch/providers/orderResultViews.d.ts +1 -1
- package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
- package/lib/plus/pisellReservation/hooks/useReservationResourceWallPersist.d.ts +0 -1
- package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -1
- package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +0 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/saasDevice/appDevicePlanning/hooks/useAppDeviceList.d.ts +0 -1
- package/lib/plus/saasDevice/appDevicePlanning/hooks/useAppWorkAreas.d.ts +0 -1
- package/lib/plus/saasDevice/appPeripheral/hooks/useConnectDeviceModal.d.ts +0 -1
- package/lib/plus/saasDevice/devicePlanning/modules/workAreas/hooks/useWorkAreas.d.ts +0 -1
- package/lib/plus/saleDetail/hooks/useSaleDetailBookingLineItemProps.d.ts +0 -1
- package/lib/plus/saleDetail/hooks/useSaleDetailProductSelectionModal.d.ts +0 -1
- package/lib/plus/saleDetail/tmpl/B/components/WalletPass/utils/format.d.ts +1 -1
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
- package/lib/pro/Selector/Selector.d.ts +1 -1
- package/lib/pro/skuDetailModal/flow/i18n.d.ts +1 -2
- package/lib/pro/skuDetailModal/flow/modules/autoResolution.d.ts +4 -5
- package/lib/pro/skuDetailModal/flow/modules/bookingPrice/index.d.ts +5 -5
- package/lib/pro/skuDetailModal/flow/modules/date/index.d.ts +2 -20
- package/lib/pro/skuDetailModal/flow/modules/holder/index.d.ts +1 -2
- package/lib/pro/skuDetailModal/flow/modules/price/index.d.ts +2 -2
- package/lib/pro/skuDetailModal/flow/modules/resource/index.d.ts +1 -2
- package/lib/pro/skuDetailModal/flow/modules/resource/model.d.ts +1 -1
- package/lib/pro/skuDetailModal/flow/modules/resource/policy.d.ts +1 -2
- package/lib/pro/skuDetailModal/flow/modules/shared/index.d.ts +5 -6
- package/lib/pro/skuDetailModal/flow/modules/sku/index.d.ts +1 -2
- package/lib/pro/skuDetailModal/flow/modules/time/index.d.ts +4 -5
- package/lib/pro/skuDetailModal/flow/presets.d.ts +5 -5
- package/lib/pro/skuDetailModal/flow/registry.d.ts +19 -54
- package/package.json +3 -3
|
@@ -294,7 +294,7 @@ var buildCdsProductPayload = function buildCdsProductPayload(cartLine, params) {
|
|
|
294
294
|
return payload;
|
|
295
295
|
};
|
|
296
296
|
export var buildCartUpdatePayload = function buildCartUpdatePayload(context, params) {
|
|
297
|
-
var _context$summary, _context$sales, _summary$product_orig,
|
|
297
|
+
var _context$summary, _context$sales, _context$sales2, _bookingTicket$getOrd, _amountSnapshot$summa, _bookingTicket$getTem, _summary$product_orig, _context$cart, _ref2, _amountSnapshot$total, _amountSnapshot$summa2, _amountSnapshot$summa3;
|
|
298
298
|
var cartLines = getCartProductLines(context === null || context === void 0 ? void 0 : context.cart);
|
|
299
299
|
if (!cartLines.length) {
|
|
300
300
|
return _objectSpread({
|
|
@@ -304,11 +304,14 @@ export var buildCartUpdatePayload = function buildCartUpdatePayload(context, par
|
|
|
304
304
|
var products = cartLines.map(function (cartLine) {
|
|
305
305
|
return buildCdsProductPayload(cartLine, params);
|
|
306
306
|
});
|
|
307
|
-
var
|
|
307
|
+
var contextSummary = (_context$summary = context.summary) === null || _context$summary === void 0 ? void 0 : _context$summary.summary;
|
|
308
308
|
var tempOrder = (_context$sales = context.sales) === null || _context$sales === void 0 ? void 0 : _context$sales.tempOrder;
|
|
309
|
-
var
|
|
309
|
+
var bookingTicket = (_context$sales2 = context.sales) === null || _context$sales2 === void 0 ? void 0 : _context$sales2.bookingTicket;
|
|
310
|
+
var amountSnapshot = bookingTicket === null || bookingTicket === void 0 || (_bookingTicket$getOrd = bookingTicket.getOrderAmountSnapshot) === null || _bookingTicket$getOrd === void 0 ? void 0 : _bookingTicket$getOrd.call(bookingTicket);
|
|
311
|
+
var summary = (_amountSnapshot$summa = amountSnapshot === null || amountSnapshot === void 0 ? void 0 : amountSnapshot.summary) !== null && _amountSnapshot$summa !== void 0 ? _amountSnapshot$summa : contextSummary;
|
|
312
|
+
var currentTempOrder = (bookingTicket === null || bookingTicket === void 0 || (_bookingTicket$getTem = bookingTicket.getTempOrder) === null || _bookingTicket$getTem === void 0 ? void 0 : _bookingTicket$getTem.call(bookingTicket)) || tempOrder;
|
|
313
|
+
var payments = currentTempOrder === null || currentTempOrder === void 0 ? void 0 : currentTempOrder.payments;
|
|
310
314
|
var isTaxIncluded = Number(tempOrder === null || tempOrder === void 0 ? void 0 : tempOrder.is_price_include_tax) === 1;
|
|
311
|
-
var hasPendingWalletPayment = toArray(payments).some(isPendingWalletPayment);
|
|
312
315
|
var cartProducts = cartLines.map(function (cartLine) {
|
|
313
316
|
return cartLine.product;
|
|
314
317
|
});
|
|
@@ -328,7 +331,8 @@ export var buildCartUpdatePayload = function buildCartUpdatePayload(context, par
|
|
|
328
331
|
type: 'tax'
|
|
329
332
|
});
|
|
330
333
|
}
|
|
331
|
-
|
|
334
|
+
var cartOrderPassFees = collectOrderPassFees(context === null || context === void 0 || (_context$cart = context.cart) === null || _context$cart === void 0 ? void 0 : _context$cart.discountList);
|
|
335
|
+
fees.push.apply(fees, _toConsumableArray(cartOrderPassFees.length ? cartOrderPassFees : collectOrderPassFees(tempOrder === null || tempOrder === void 0 ? void 0 : tempOrder.discount_list)));
|
|
332
336
|
if (toFiniteNumber(tempOrder === null || tempOrder === void 0 ? void 0 : tempOrder.shop_discount) > 0) {
|
|
333
337
|
fees.push({
|
|
334
338
|
isReduce: true,
|
|
@@ -338,15 +342,16 @@ export var buildCartUpdatePayload = function buildCartUpdatePayload(context, par
|
|
|
338
342
|
});
|
|
339
343
|
}
|
|
340
344
|
fees.push.apply(fees, _toConsumableArray(collectWalletPaymentFees(payments, params.locale)));
|
|
341
|
-
var effectiveAmountDue =
|
|
345
|
+
var effectiveAmountDue = resolveEffectiveSaleDetailAmountDue({
|
|
346
|
+
baseSalesAmountGap: amountSnapshot === null || amountSnapshot === void 0 ? void 0 : amountSnapshot.amountGap,
|
|
342
347
|
amountGap: summary === null || summary === void 0 ? void 0 : summary.amount_gap,
|
|
343
|
-
fallbackAmount: (
|
|
344
|
-
orderPaidAmount: summary === null || summary === void 0 ? void 0 : summary.order_paid_amount,
|
|
348
|
+
fallbackAmount: (_ref2 = (_amountSnapshot$total = amountSnapshot === null || amountSnapshot === void 0 ? void 0 : amountSnapshot.totalAmount) !== null && _amountSnapshot$total !== void 0 ? _amountSnapshot$total : summary === null || summary === void 0 ? void 0 : summary.total_amount) !== null && _ref2 !== void 0 ? _ref2 : summary === null || summary === void 0 ? void 0 : summary.expect_amount,
|
|
349
|
+
orderPaidAmount: (_amountSnapshot$summa2 = amountSnapshot === null || amountSnapshot === void 0 || (_amountSnapshot$summa3 = amountSnapshot.summary) === null || _amountSnapshot$summa3 === void 0 ? void 0 : _amountSnapshot$summa3.order_paid_amount) !== null && _amountSnapshot$summa2 !== void 0 ? _amountSnapshot$summa2 : summary === null || summary === void 0 ? void 0 : summary.order_paid_amount,
|
|
345
350
|
payments: payments
|
|
346
|
-
})
|
|
351
|
+
});
|
|
347
352
|
return {
|
|
348
353
|
currency_symbol: params.currencySymbol,
|
|
349
|
-
total: effectiveAmountDue
|
|
354
|
+
total: effectiveAmountDue.toFixed(2),
|
|
350
355
|
products: products,
|
|
351
356
|
fees: fees
|
|
352
357
|
};
|
|
@@ -356,7 +361,7 @@ export var buildCartUpdatePayload = function buildCartUpdatePayload(context, par
|
|
|
356
361
|
* Standard 大促模板购物车变更时,向 Native CDS 同步购物车快照。
|
|
357
362
|
*/
|
|
358
363
|
export function useSyncBigSaleCartToCds(context) {
|
|
359
|
-
var _context$
|
|
364
|
+
var _context$cart2, _context$cart3, _context$cart4, _context$cart5, _context$summary2, _context$sales3, _context$sales4, _context$sales5, _context$sales7;
|
|
360
365
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
361
366
|
var engineContext = useEngineContext();
|
|
362
367
|
var _options$enabled = options.enabled,
|
|
@@ -372,5 +377,32 @@ export function useSyncBigSaleCartToCds(context) {
|
|
|
372
377
|
locale: locale
|
|
373
378
|
});
|
|
374
379
|
postCartUpdateToCds(utils, data);
|
|
375
|
-
}, [context === null || context === void 0 || (_context$
|
|
380
|
+
}, [context === null || context === void 0 || (_context$cart2 = context.cart) === null || _context$cart2 === void 0 ? void 0 : _context$cart2.bookings, context === null || context === void 0 || (_context$cart3 = context.cart) === null || _context$cart3 === void 0 ? void 0 : _context$cart3.discountList, context === null || context === void 0 || (_context$cart4 = context.cart) === null || _context$cart4 === void 0 ? void 0 : _context$cart4.displayLines, context === null || context === void 0 || (_context$cart5 = context.cart) === null || _context$cart5 === void 0 ? void 0 : _context$cart5.items, context === null || context === void 0 || (_context$summary2 = context.summary) === null || _context$summary2 === void 0 ? void 0 : _context$summary2.summary, context === null || context === void 0 || (_context$sales3 = context.sales) === null || _context$sales3 === void 0 ? void 0 : _context$sales3.tempOrder, context === null || context === void 0 || (_context$sales4 = context.sales) === null || _context$sales4 === void 0 || (_context$sales4 = _context$sales4.tempOrder) === null || _context$sales4 === void 0 ? void 0 : _context$sales4.payments, context === null || context === void 0 || (_context$sales5 = context.sales) === null || _context$sales5 === void 0 ? void 0 : _context$sales5.bookingTicket, engineContext, enabled]);
|
|
381
|
+
useEffect(function () {
|
|
382
|
+
var _context$sales6, _engineContext$appHel2;
|
|
383
|
+
if (!enabled) return undefined;
|
|
384
|
+
var bookingTicket = context === null || context === void 0 || (_context$sales6 = context.sales) === null || _context$sales6 === void 0 ? void 0 : _context$sales6.bookingTicket;
|
|
385
|
+
if (!bookingTicket || typeof bookingTicket.effectsOn !== 'function') {
|
|
386
|
+
return undefined;
|
|
387
|
+
}
|
|
388
|
+
var utils = (engineContext === null || engineContext === void 0 || (_engineContext$appHel2 = engineContext.appHelper) === null || _engineContext$appHel2 === void 0 ? void 0 : _engineContext$appHel2.utils) || {};
|
|
389
|
+
var off = bookingTicket.effectsOn('onTempOrderReplaced', function () {
|
|
390
|
+
var _bookingTicket$getTem2;
|
|
391
|
+
var tempOrder = (_bookingTicket$getTem2 = bookingTicket.getTempOrder) === null || _bookingTicket$getTem2 === void 0 ? void 0 : _bookingTicket$getTem2.call(bookingTicket);
|
|
392
|
+
if (!tempOrder) return;
|
|
393
|
+
var hasCartLines = toArray(tempOrder.products).length > 0 || toArray(tempOrder.bookings).length > 0;
|
|
394
|
+
if (hasCartLines) return;
|
|
395
|
+
var data = _objectSpread({
|
|
396
|
+
currency_symbol: getCurrencySymbol(utils)
|
|
397
|
+
}, EMPTY_CART_UPDATE);
|
|
398
|
+
postCartUpdateToCds(utils, data);
|
|
399
|
+
});
|
|
400
|
+
return function () {
|
|
401
|
+
try {
|
|
402
|
+
off();
|
|
403
|
+
} catch (_unused) {
|
|
404
|
+
// 订单替换监听清理失败不应影响页面卸载。
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
}, [context === null || context === void 0 || (_context$sales7 = context.sales) === null || _context$sales7 === void 0 ? void 0 : _context$sales7.bookingTicket, engineContext, enabled]);
|
|
376
408
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SendModalValues } from './index';
|
|
3
2
|
declare const useSendModal: (bookingId?: number) => {
|
|
4
3
|
open: boolean;
|
|
5
4
|
setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
6
5
|
handleOpen: () => void;
|
|
7
6
|
handleValuesChange: (val: any) => void;
|
|
8
|
-
handleOk: (values: SendModalValues) => Promise<
|
|
7
|
+
handleOk: (values: SendModalValues) => Promise<any>;
|
|
9
8
|
};
|
|
10
9
|
export default useSendModal;
|
|
@@ -216,7 +216,7 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
216
216
|
* @Author: WangHan
|
|
217
217
|
* @Date: 2024-12-24 11:32
|
|
218
218
|
*/
|
|
219
|
-
export declare const updateServicePrice: (state: any) => never[]
|
|
219
|
+
export declare const updateServicePrice: (state: any) => Promise<any> | never[];
|
|
220
220
|
/**
|
|
221
221
|
* @description: 根据_id和sourceProductId来获取主商品已选择的赠品
|
|
222
222
|
* @param {string} productId 主商品_id
|
|
@@ -175,10 +175,10 @@ export declare const getProductTotalPrice: (item: any, options?: {
|
|
|
175
175
|
export declare const getDuration: (duration: number | {
|
|
176
176
|
type: string;
|
|
177
177
|
value: number;
|
|
178
|
-
}) => number | {
|
|
178
|
+
}) => number | "flexible" | {
|
|
179
179
|
type: string;
|
|
180
180
|
value: number;
|
|
181
|
-
}
|
|
181
|
+
};
|
|
182
182
|
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
|
183
183
|
export declare const getIsEdit: (state: any) => boolean;
|
|
184
184
|
export declare type DiscountFilterRejectKey = 'total_credits' | 'per_user_limit' | 'max_per_day' | 'max_per_week' | 'max_per_month';
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "success" | "
|
|
12
|
+
onChange?: ((status: "success" | "print" | "page" | "fail" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PosProps, RouteType } from './const';
|
|
3
|
-
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "
|
|
3
|
+
declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
|
|
4
4
|
action: RouteType;
|
|
5
5
|
device_number: string | number;
|
|
6
6
|
api: ReturnType<PosProps['getApi']>;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "success" | "
|
|
14
|
+
onChange?: ((status: "success" | "print" | "page" | "fail" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "init" | "reject" | "fail" | "pedding" | "resove" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
@@ -178,7 +178,7 @@ export declare const updateCustom: (payload: {
|
|
|
178
178
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
179
179
|
type: EActionTypes;
|
|
180
180
|
payload: {
|
|
181
|
-
status: "
|
|
181
|
+
status: "success" | "warn" | "loading" | "fail" | "question";
|
|
182
182
|
};
|
|
183
183
|
};
|
|
184
184
|
/**
|
|
@@ -312,7 +312,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
312
312
|
net?: boolean | undefined;
|
|
313
313
|
component?: string | undefined;
|
|
314
314
|
form?: string | undefined;
|
|
315
|
-
status?: "
|
|
315
|
+
status?: "success" | "warn" | "loading" | "init" | "reject" | "fail" | "pedding" | "resove" | "question" | undefined;
|
|
316
316
|
warn?: string | undefined;
|
|
317
317
|
steps?: {
|
|
318
318
|
/** 用于重置当前步骤 */
|
|
@@ -47,7 +47,7 @@ declare type ScanData = {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
50
|
-
searchType: "
|
|
50
|
+
searchType: "order" | "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
|
51
51
|
data: any;
|
|
52
52
|
scanCode: string;
|
|
53
53
|
} | null;
|
|
@@ -28,7 +28,7 @@ interface UsePaymentSessionControllerOptions {
|
|
|
28
28
|
*/
|
|
29
29
|
export declare const usePaymentSessionController: ({ context, openVisible, refs, setters, addLog, createEventIdentity, emitChange, setFlowPage, handleSessionEvent, getEffectiveOnline, }: UsePaymentSessionControllerOptions) => {
|
|
30
30
|
schedulePaymentQuery: (this: unknown, transactionNumber: string) => void;
|
|
31
|
-
printReceipts: (this: unknown, receipts: string[], source: "success" | "
|
|
31
|
+
printReceipts: (this: unknown, receipts: string[], source: "success" | "failure" | "signature") => void;
|
|
32
32
|
updateAmountQuote: (this: unknown, amount: string | number, surcharge?: {
|
|
33
33
|
rate?: string | number | undefined;
|
|
34
34
|
fixed?: string | number | undefined;
|
|
@@ -28,7 +28,7 @@ interface UsePaymentSessionControllerOptions {
|
|
|
28
28
|
*/
|
|
29
29
|
export declare const usePaymentSessionController: ({ context, openVisible, refs, setters, addLog, createEventIdentity, emitChange, setFlowPage, handleSessionEvent, getEffectiveOnline, }: UsePaymentSessionControllerOptions) => {
|
|
30
30
|
schedulePaymentQuery: (this: unknown, transactionNumber: string) => void;
|
|
31
|
-
printReceipts: (this: unknown, receipts: string[], source: "success" | "
|
|
31
|
+
printReceipts: (this: unknown, receipts: string[], source: "success" | "failure" | "signature") => void;
|
|
32
32
|
updateAmountQuote: (this: unknown, amount: string | number, surcharge?: {
|
|
33
33
|
rate?: string | number | undefined;
|
|
34
34
|
fixed?: string | number | undefined;
|
|
@@ -24,7 +24,7 @@ export declare class OrderTableFallbackBoundary extends React.Component<OrderTab
|
|
|
24
24
|
constructor(props: OrderTableFallbackBoundaryProps);
|
|
25
25
|
static getDerivedStateFromError(): OrderTableFallbackBoundaryState;
|
|
26
26
|
componentDidCatch(error: Error): void;
|
|
27
|
-
render(): string | number | boolean | React.
|
|
27
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* 业务模式(精确搜索)内容区:把命中的订单详情逐条排下去展示。
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Capacity: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true | React.
|
|
5
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
6
6
|
export default Capacity;
|
|
@@ -3,5 +3,5 @@ import { SkuStatusOverlayConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const CardMask: ({ props }: {
|
|
5
5
|
props: SkuStatusOverlayConfig;
|
|
6
|
-
}) => string | number | true | React.
|
|
6
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
7
7
|
export default CardMask;
|
|
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const Countdown: ({ props }: {
|
|
5
5
|
props: ProductCardConfig;
|
|
6
|
-
}) => string | number | true | React.
|
|
6
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
7
7
|
export default Countdown;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Duration: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true | React.
|
|
5
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
6
6
|
export default Duration;
|
|
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const MemberPrice: ({ props }: {
|
|
5
5
|
props: ProductCardConfig;
|
|
6
|
-
}) => string | number | true | React.
|
|
6
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
7
7
|
export default MemberPrice;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Resource: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true | React.
|
|
5
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
6
6
|
export default Resource;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Stock: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true | React.
|
|
5
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
6
6
|
export default Stock;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
import { ProductCardConfig } from '../../type';
|
|
3
3
|
declare const Time: ({ props }: {
|
|
4
4
|
props: ProductCardConfig;
|
|
5
|
-
}) => string | number | true | React.
|
|
5
|
+
}) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
|
|
6
6
|
export default Time;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { CreateDeviceConnectionPayload, DeviceBrandItem, DeviceConnectionType, DeviceItem, DeviceModelItem, DeviceStructure, I18nText, LangDict, WorkAreaItem } from '../types';
|
|
3
2
|
export declare type ConnectMode = 'existing' | 'new';
|
|
4
3
|
export declare type ConnectStep = 'pick' | 'config';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { SalesSdkBookingContextValue, SalesSdkCartContextValue, SalesSdkCustomerContextValue, SalesSdkContextValue } from '../salesSdk';
|
|
3
2
|
import type { CartItemsInteractionPolicy } from '../components/CartItems';
|
|
4
3
|
import type { LineItemProps } from '../components/LineItem/types';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type UsePromotionModalOptions } from '../../../components/shoppingCart/hooks/usePromotionModal';
|
|
3
2
|
import type { SalesSdkContextValue } from '../../salesSdk';
|
|
4
3
|
export interface UseSaleDetailProductSelectionModalOptions extends Pick<UsePromotionModalOptions, 'onConfirm' | 'onCancel'> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { WalletPassAmountUnit, WalletPassStatus } from './types';
|
|
2
2
|
export declare const DEFAULT_SYMBOL = "$";
|
|
3
3
|
export declare function formatMoney(amount: number, symbol?: string): string;
|
|
4
|
-
export declare function getUsageLabel(status: WalletPassStatus, locale: 'en' | 'zh'): "
|
|
4
|
+
export declare function getUsageLabel(status: WalletPassStatus, locale: 'en' | 'zh'): "Unused" | "Used" | "未使用" | "已使用";
|
|
5
5
|
export declare function getUsageValue(amount: number, unit: WalletPassAmountUnit, symbol: string, locale: 'en' | 'zh'): string;
|
|
6
6
|
export declare function formatBalanceText(amount: number | null, unit: WalletPassAmountUnit, symbol: string, locale: 'en' | 'zh', remainingUses?: number | null): string;
|
|
7
7
|
export declare function maskPassId(value: string): string;
|
|
@@ -3,6 +3,6 @@ export interface ImageUploadProps {
|
|
|
3
3
|
value?: string;
|
|
4
4
|
onChange?: (val: string) => void;
|
|
5
5
|
}
|
|
6
|
-
export declare const getBaseTime: (size: number) =>
|
|
6
|
+
export declare const getBaseTime: (size: number) => 1000 | 2000 | 8000 | 4000;
|
|
7
7
|
declare const ImageUpload: React.FC<ImageUploadProps>;
|
|
8
8
|
export default ImageUpload;
|
|
@@ -3,7 +3,7 @@ import { ItemLayout, ItemProps, PresetConfig, SelectorProps, SelectorVariant } f
|
|
|
3
3
|
import './selector.less';
|
|
4
4
|
export declare const SelectorContext: React.Context<{
|
|
5
5
|
disabled?: boolean | undefined;
|
|
6
|
-
mode?: "
|
|
6
|
+
mode?: "multiple" | "single" | undefined;
|
|
7
7
|
itemLayout?: ItemLayout | undefined;
|
|
8
8
|
valueType?: "object" | "primitive" | undefined;
|
|
9
9
|
variant?: SelectorVariant | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { SelectionFlowCompileIssue, SelectionFlowMessageCode, SelectionFlowRuntimeIssue } from '@pisell/materials';
|
|
3
2
|
/**
|
|
4
3
|
* Selection Flow 的配置既允许业务方传入普通文案,也允许内置预设传入语言 key。
|
|
5
4
|
* 只解析 pisell2 命名空间,避免把商品名、资源名等接口返回文案误当成语言 key。
|
|
@@ -12,6 +11,6 @@ export declare const selectionFlowTextWithArgs: (key: string, ...args: unknown[]
|
|
|
12
11
|
/** 将原子 Flow 的稳定消息码映射回现有 SKU Detail 多语言键。 */
|
|
13
12
|
export declare const translateSelectionFlowMessage: (code: SelectionFlowMessageCode, params?: Readonly<Record<string, unknown>>) => string;
|
|
14
13
|
/** 私有展示层负责把原子状态机的结构化原因转换成当前语言文案。 */
|
|
15
|
-
export declare const resolveSelectionFlowRuntimeIssue: (issue?:
|
|
14
|
+
export declare const resolveSelectionFlowRuntimeIssue: (issue?: any) => string | undefined;
|
|
16
15
|
/** 编译器保留英文诊断详情,界面使用当前语言的业务提示。 */
|
|
17
16
|
export declare const renderSelectionFlowCompileIssue: (issue: SelectionFlowCompileIssue) => ReactNode;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { SelectionFlowContextValue } from '../types';
|
|
2
1
|
interface AutoResolutionModule {
|
|
3
2
|
key: string;
|
|
4
3
|
type: string;
|
|
@@ -6,13 +5,13 @@ interface AutoResolutionModule {
|
|
|
6
5
|
}
|
|
7
6
|
export declare const findFirstNormallyAvailableDate: <T extends {
|
|
8
7
|
date: string;
|
|
9
|
-
status?: "available" | "
|
|
8
|
+
status?: "available" | "unavailable" | "full" | "limited" | "conflict" | "past" | undefined;
|
|
10
9
|
remainingCapacity?: number | undefined;
|
|
11
10
|
maxCapacity?: number | undefined;
|
|
12
11
|
}>(items: readonly T[]) => T | undefined;
|
|
13
|
-
export declare const validateAvailabilityDateAutoResolution: (context:
|
|
14
|
-
export declare const validateAvailabilityTimeAutoResolution: (context:
|
|
15
|
-
export declare const validateAvailabilityResourceAutoResolution: (context:
|
|
12
|
+
export declare const validateAvailabilityDateAutoResolution: (context: AtomicSelectionFlowContextValue<import("../types").SelectionFlowDraft, import("../types").SelectionFlowDraftUpdate, import("../types").SelectionDraftField, TType, import("../types").SelectionFlowServices, unknown>, module: AutoResolutionModule) => any;
|
|
13
|
+
export declare const validateAvailabilityTimeAutoResolution: (context: AtomicSelectionFlowContextValue<import("../types").SelectionFlowDraft, import("../types").SelectionFlowDraftUpdate, import("../types").SelectionDraftField, TType, import("../types").SelectionFlowServices, unknown>, module: AutoResolutionModule) => any;
|
|
14
|
+
export declare const validateAvailabilityResourceAutoResolution: (context: AtomicSelectionFlowContextValue<import("../types").SelectionFlowDraft, import("../types").SelectionFlowDraftUpdate, import("../types").SelectionDraftField, TType, import("../types").SelectionFlowServices, unknown>, module: AutoResolutionModule) => any;
|
|
16
15
|
export declare const isCapacityAutoResolved: (capacityConfig: any, value: unknown) => boolean;
|
|
17
16
|
export declare const getDefaultCustomCapacitySelection: (capacityConfig: any) => any;
|
|
18
17
|
export declare const isHolderAutoResolved: ({ required, holderIds, quantity, }: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { FlowModuleProps, SelectionFlowBookingPriceQuote, SelectionFlowBookingPriceRequest, SelectionFlowBookingPriceService
|
|
2
|
+
import type { FlowModuleProps, SelectionFlowBookingPriceQuote, SelectionFlowBookingPriceRequest, SelectionFlowBookingPriceService } from '../../types';
|
|
3
3
|
interface BookingPriceModuleCache {
|
|
4
4
|
entries: Map<string, Promise<SelectionFlowBookingPriceQuote>>;
|
|
5
5
|
}
|
|
@@ -8,7 +8,7 @@ interface BookingPriceModuleCache {
|
|
|
8
8
|
* 初始订单行快照也进入同一缓存,因此编辑切回原时段不会产生价格漂移。
|
|
9
9
|
*/
|
|
10
10
|
export declare const loadSelectionFlowBookingPrice: (cache: BookingPriceModuleCache, service: SelectionFlowBookingPriceService, request: SelectionFlowBookingPriceRequest, requestKey?: string) => Promise<SelectionFlowBookingPriceQuote>;
|
|
11
|
-
export declare const refreshSelectionFlowBookingPrice: (context:
|
|
11
|
+
export declare const refreshSelectionFlowBookingPrice: (context: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>, module: AtomicCompiledSelectionFlowModuleConfig<TType_1>) => Promise<void>;
|
|
12
12
|
export declare const bookingPriceFlowModule: {
|
|
13
13
|
type: string;
|
|
14
14
|
Component: React.FC<FlowModuleProps<string>>;
|
|
@@ -17,10 +17,10 @@ export declare const bookingPriceFlowModule: {
|
|
|
17
17
|
refreshOn: string[];
|
|
18
18
|
isApplicable: (context: any) => boolean;
|
|
19
19
|
canInitialize: (context: any) => boolean;
|
|
20
|
-
refresh: (context:
|
|
21
|
-
shouldRefresh: (_context: any, change: any) =>
|
|
20
|
+
refresh: (context: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>, module: AtomicCompiledSelectionFlowModuleConfig<TType_1>) => Promise<void>;
|
|
21
|
+
shouldRefresh: (_context: any, change: any) => any;
|
|
22
22
|
clearDependencies: (context: any, change: any, module: any) => void;
|
|
23
23
|
validate: (context: any, handle: any) => any;
|
|
24
|
-
validateAutoResolution: (context:
|
|
24
|
+
validateAutoResolution: (context: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>) => boolean;
|
|
25
25
|
}, satisfies: any, SelectionFlowModuleAdapter: any;
|
|
26
26
|
export {};
|
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { FlowModuleProps, SelectionFlowModuleAdapter } from '../../types';
|
|
1
|
+
import type { SelectionFlowModuleAdapter } from '../../types';
|
|
3
2
|
export declare const dateFlowModule: SelectionFlowModuleAdapter, satisfies: any, SelectionFlowModuleAdapter: any;
|
|
4
3
|
/**
|
|
5
4
|
* 跨日日期范围适配器复用同一个 Date module 组件,只扩展依赖声明:
|
|
6
5
|
* range 选择完成后会同时提供开始日期、结束日期和按天计算的 duration。
|
|
7
6
|
*/
|
|
8
|
-
export declare const multiDayDateFlowModule:
|
|
9
|
-
type: string;
|
|
10
|
-
validateAutoResolution: undefined;
|
|
11
|
-
provides: string[];
|
|
12
|
-
initializeWhileInactive?: boolean | undefined;
|
|
13
|
-
hardRequires?: readonly import("../../types").SelectionDraftField[] | undefined;
|
|
14
|
-
refreshOn?: readonly import("../../types").SelectionDraftField[] | undefined;
|
|
15
|
-
shouldRefresh?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, string, import("../../types").SelectionFlowServices, unknown>, change: import("@pisell/materials").SelectionFlowDraftChange<import("../../types").SelectionFlowDraft, import("../../types").SelectionDraftField, string>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => boolean) | undefined;
|
|
16
|
-
isApplicable?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, string, import("../../types").SelectionFlowServices, unknown>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => boolean) | undefined;
|
|
17
|
-
canInitialize?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, string, import("../../types").SelectionFlowServices, unknown>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => boolean | Promise<boolean>) | undefined;
|
|
18
|
-
refresh?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, string, import("../../types").SelectionFlowServices, unknown>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => void | Promise<void>) | undefined;
|
|
19
|
-
reconcile?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, string, import("../../types").SelectionFlowServices, unknown>, change: import("@pisell/materials").SelectionFlowDraftChange<import("../../types").SelectionFlowDraft, import("../../types").SelectionDraftField, string>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => void | Promise<void>) | undefined;
|
|
20
|
-
clearDependencies?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, string, import("../../types").SelectionFlowServices, unknown>, change: import("@pisell/materials").SelectionFlowDraftChange<import("../../types").SelectionFlowDraft, import("../../types").SelectionDraftField, string>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => void | Promise<void>) | undefined;
|
|
21
|
-
validate?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, string, import("../../types").SelectionFlowServices, unknown>, handle: import("@pisell/materials").FlowModuleHandle | null, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => import("@pisell/materials").FlowModuleValidationReturn) | undefined;
|
|
22
|
-
beforeLeave?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, string, import("../../types").SelectionFlowServices, unknown>, handle: import("@pisell/materials").FlowModuleHandle | null, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => import("@pisell/materials").FlowModuleBeforeLeaveReturn) | undefined;
|
|
23
|
-
Component: React.ComponentType<FlowModuleProps<string>>;
|
|
24
|
-
rendersOwnError?: boolean | undefined;
|
|
25
|
-
}, satisfies: any, SelectionFlowModuleAdapter: any;
|
|
7
|
+
export declare const multiDayDateFlowModule: any, satisfies: any, SelectionFlowModuleAdapter: any;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const holderFlowModule: SelectionFlowModuleAdapter<string>;
|
|
1
|
+
export declare const holderFlowModule: any;
|
|
@@ -5,8 +5,8 @@ import type { FlowModuleProps } from '../../types';
|
|
|
5
5
|
* 使用同一个 getProductTotalPrice 规则计算变体、套餐、option 和称重价格。
|
|
6
6
|
* 计算自动价格时必须移除旧 priceOverride,否则覆盖价会遮住 SKU 新价格。
|
|
7
7
|
*/
|
|
8
|
-
export declare const resolveAutomaticSelectionPrice: (context:
|
|
9
|
-
export declare const resolveSelectionFlowPriceValues: (context:
|
|
8
|
+
export declare const resolveAutomaticSelectionPrice: (context: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>) => number;
|
|
9
|
+
export declare const resolveSelectionFlowPriceValues: (context: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>) => {
|
|
10
10
|
value: number;
|
|
11
11
|
originalValue: number;
|
|
12
12
|
};
|