@pisell/private-materials 6.12.486 → 6.12.487
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/components/BookingFloatingPanel/useBookingPanelController.js +1 -0
- package/es/components/bigSale/components/ProductList/index.js +1 -0
- package/es/components/bigSale/components/TimeBar/index.js +1 -0
- package/es/components/bigSale/dialog.js +1 -0
- package/es/components/bigSale/hooks/useBigSaleContext.js +1 -0
- package/es/components/bigSale/hooks/useSelectFloorMapResourceForBigSale.js +1 -0
- package/es/components/bigSale/index.js +1 -0
- package/es/components/bigSale/templates/Kiosk/index.js +1 -0
- package/es/components/kiosk/components/Shell/useKioskMemberAction.js +1 -0
- package/es/components/kiosk/sales/KioskSaleSession.js +1 -0
- package/es/components/kiosk/sales/useCheckout.js +1 -0
- package/es/components/kiosk/sales/useSaleSessionExit.js +1 -0
- package/es/components/sharedSecondaryBigSale/SharedSecondaryBigSaleReceiver.js +1 -0
- package/es/components/venueBookingSales/BookingComposer.js +5 -4
- package/es/components/venueBookingSales/availability/controller.js +1 -1
- package/es/components/venueBookingSales/checkout/VenueBookingHolderStep.js +1 -0
- package/es/components/venueBookingSales/checkout/useVenueBookingCheckout.js +1 -0
- package/es/components/venueBookingSales/checkout/useVenueCustomerAccess.js +1 -0
- package/es/components/venueBookingSales/checkout/useVenueKioskCheckout.js +1 -0
- package/es/components/venueBookingSales/extras/VenueExtraDetailModal.js +1 -0
- package/es/components/venueBookingSales/useBookingComposer.js +38 -7
- package/es/components/venueBookingSales/useVenueBookingSession.js +1 -0
- package/es/index.js +2 -0
- package/es/plus/multiCurrencySettlement/index.js +1 -1
- package/es/plus/pisellReservation/data/bookingToReservationTables.js +1 -1
- package/es/plus/pisellReservation/floorMap/floorPlanApi.js +1 -1
- package/es/plus/pisellReservation/floorMap/reservationMock.js +1 -1
- package/es/plus/pisellReservation/floorRoomCard/endingSoonHighlight.js +4 -4
- package/es/plus/pisellReservation/index.js +17 -0
- package/es/plus/pisellReservation/utils/calendarBookingSelection.js +4 -4
- package/es/plus/saasDevice/devicePasscodes/model.js +4 -4
- package/es/plus/saleDetail/Base.js +1 -0
- package/es/plus/saleDetail/components/Client/hooks/useClientSelectorProps.js +1 -0
- package/es/plus/saleDetail/components/DetailActions/PrintAction.js +1 -0
- package/es/plus/saleDetail/components/DetailActions/index.js +1 -0
- package/es/plus/saleDetail/components/SummaryFinancialSections/index.js +1 -0
- package/es/plus/saleDetail/index.js +1 -0
- package/es/plus/saleDetail/tmpl/B/components/Dish/index.js +1 -0
- package/es/plus/saleDetail/tmpl/B/index.js +1 -0
- package/es/plus/salesSdk/index.js +54 -0
- package/es/plus/salesSdk/types.d.ts +3 -1
- package/es/plus/salesSdk/utils/addProductWithFlowDebounced.js +1 -1
- package/es/plus/salesSdk/utils/bookingDate.js +1 -1
- package/es/plus/salesSdk/utils/enrichCartLineHolderDisplay.js +1 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.js +4 -4
- package/es/pro/Login2.0/AuthModal.d.ts +1 -1
- package/es/pro/Login2.0/index.d.ts +2 -2
- package/es/pro/Login2.0/shared/types.d.ts +1 -1
- package/es/pro/skuDetailModal/flow/calendarEntry.js +2 -2
- package/es/pro/skuDetailModal/flow/registry.d.ts +1 -1
- package/lib/components/venueBookingSales/BookingComposer.js +5 -4
- package/lib/components/venueBookingSales/availability/controller.js +1 -1
- package/lib/components/venueBookingSales/useBookingComposer.js +38 -7
- package/lib/plus/salesSdk/types.d.ts +3 -1
- package/lib/pro/skuDetailModal/flow/registry.d.ts +1 -1
- package/package.json +4 -4
- package/es/private-materials/lowcode/authmodal/meta.d.ts +0 -1
|
@@ -31,4 +31,4 @@ function subscribeBookingDateChange(bookingTicket, callback) {
|
|
|
31
31
|
return typeof off === "function" ? off : () => {};
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
|
-
export { formatBookingDateTime, subscribeBookingDateChange };
|
|
34
|
+
export { BOOKING_CONTEXT_DATE_EVENT, formatBookingDateTime, subscribeBookingDateChange };
|
|
@@ -102,4 +102,4 @@ function buildHolderListRequestKey(params) {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
//#endregion
|
|
105
|
-
export { buildHolderListRequestKey, buildHolderListRequestParams, enrichCartBookingHolderDisplay, enrichCartProductHolderDisplay, resolveHolderDisplayConfig };
|
|
105
|
+
export { buildHolderListRequestKey, buildHolderListRequestParams, enrichCartBookingHolderDisplay, enrichCartProductHolderDisplay, pickHolderIdFromBooking, resolveHolderDisplayConfig };
|
|
@@ -7,12 +7,12 @@ import React, { useCallback, useEffect, useMemo, useRef } from "react";
|
|
|
7
7
|
import { locales } from "@pisell/utils";
|
|
8
8
|
import { Button, PisellEmpty, PisellModal, PisellStatisticList, Skeleton, Timeline, usePisellConfig } from "@pisell/materials";
|
|
9
9
|
import { useRequest } from "ahooks";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import utc from "dayjs/plugin/utc";
|
|
11
|
+
import timezone from "dayjs/plugin/timezone";
|
|
12
12
|
import "./index.less";
|
|
13
13
|
//#region src/plus/walletPassGallery/components/timelineSection/index.tsx
|
|
14
|
-
dayjs.extend(
|
|
15
|
-
dayjs.extend(
|
|
14
|
+
dayjs.extend(timezone);
|
|
15
|
+
dayjs.extend(utc);
|
|
16
16
|
const stateTimeUnix = 1723255863;
|
|
17
17
|
const POLL_INTERVAL = 2e3;
|
|
18
18
|
const POLL_MAX_TIMES = 5;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthMethodType, VerificationMethod } from "./shared/types.js";
|
|
1
|
+
import { AuthMethodType, EmailAuthConfig, EmailRegistrationVerification, LoginFormData, OAuthConfig, PhoneAuthConfig, RegisterFormData, UIConfig, VerificationMethod } from "./shared/types.js";
|
|
2
2
|
import { Login2, Login2Config, Login2Events, Login2Props } from "./Login2.js";
|
|
3
3
|
import { Register2, Register2Config, Register2Events, Register2Props } from "./Register2.js";
|
|
4
|
-
import { AuthModal
|
|
4
|
+
import { AuthModal } from "./AuthModal.js";
|
|
@@ -226,4 +226,4 @@ interface RegisterFormData {
|
|
|
226
226
|
verification_token?: string;
|
|
227
227
|
}
|
|
228
228
|
//#endregion
|
|
229
|
-
export { AuthMethodType, EmailAuthConfig, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig, VerificationMethod };
|
|
229
|
+
export { AuthMethodType, EmailAuthConfig, EmailRegistrationVerification, LegalTermsConfig, LoginFormData, LoginMethodItem, OAuthConfig, PhoneAuthConfig, RegisterFormData, RegistrationMethodItem, UIConfig, VerificationMethod };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _objectSpread2 } from "../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
|
|
2
2
|
import { isMultiDayProduct } from "../../../components/booking/info2/service/addService/utils.js";
|
|
3
3
|
import dayjs from "dayjs";
|
|
4
|
-
import
|
|
4
|
+
import utc from "dayjs/plugin/utc";
|
|
5
5
|
//#region src/pro/skuDetailModal/flow/calendarEntry.ts
|
|
6
|
-
dayjs.extend(
|
|
6
|
+
dayjs.extend(utc);
|
|
7
7
|
/** Calendar timestamps belong to the shop clock, rather than the browser clock. */
|
|
8
8
|
function calendarDateTime(value) {
|
|
9
9
|
const matched = value.match(/(Z|([+-])(\d{2}):(\d{2}))$/i);
|
|
@@ -19,7 +19,7 @@ declare const flowModuleRegistry: {
|
|
|
19
19
|
readonly Component: _$react.FC<FlowModuleProps<string>>;
|
|
20
20
|
readonly initializeWhileInactive: true;
|
|
21
21
|
readonly hardRequires: ("productData" | "booking.selectedCandidate")[];
|
|
22
|
-
readonly refreshOn: ("
|
|
22
|
+
readonly refreshOn: ("quantity" | "productData" | "skuValue" | "booking.customerId" | "booking.duration" | "booking.selectedCandidate")[];
|
|
23
23
|
readonly isApplicable: (context: _$_pisell_materials_src0.SelectionFlowContextValue<SelectionFlowDraft, SelectionFlowDraftUpdate, SelectionDraftField, string, SelectionFlowServices, unknown>) => boolean;
|
|
24
24
|
readonly canInitialize: (context: _$_pisell_materials_src0.SelectionFlowContextValue<SelectionFlowDraft, SelectionFlowDraftUpdate, SelectionDraftField, string, SelectionFlowServices, unknown>) => boolean;
|
|
25
25
|
readonly refresh: (context: SelectionFlowContextValue<string>, module: CompiledSelectionFlowModuleConfig<string>) => Promise<void>;
|
|
@@ -25,7 +25,7 @@ function BookingComposer(props) {
|
|
|
25
25
|
const text = (en, zh) => locale === "zh" ? zh : en;
|
|
26
26
|
const model = require_useBookingComposer.useBookingComposer(props);
|
|
27
27
|
const bookingUI = require_context.useOptionalBookingUI();
|
|
28
|
-
const { configuration, setConfiguration, quantity, setQuantity, quote, error, working, revision, commit } = model;
|
|
28
|
+
const { configuration, setConfiguration, quantity, setQuantity, maxQuantity, quantityDisabled, quote, error, working, revision, commit } = model;
|
|
29
29
|
const configurationDetail = mode === "tickets" && ((_draft$plan = draft.plan) === null || _draft$plan === void 0 ? void 0 : _draft$plan.hasConfiguration) ? draft.plan.productDetail : void 0;
|
|
30
30
|
const overSold = require_skuSemantics.isSkuFlagSet((_props$skuOptions$con = (_props$skuOptions = props.skuOptions) === null || _props$skuOptions === void 0 || (_props$skuOptions = _props$skuOptions.config) === null || _props$skuOptions === void 0 ? void 0 : _props$skuOptions.overSold) !== null && _props$skuOptions$con !== void 0 ? _props$skuOptions$con : draft.detail.over_sold);
|
|
31
31
|
const configurationComplete = (0, react.useMemo)(() => Boolean(configurationDetail && require_prepare.validateBookingProductConfiguration(configurationDetail, configuration.skuValue, {
|
|
@@ -70,7 +70,7 @@ function BookingComposer(props) {
|
|
|
70
70
|
return (scrollContainer === null || scrollContainer === void 0 || (_scrollContainer$clos = scrollContainer.closest("[role=\"dialog\"]")) === null || _scrollContainer$clos === void 0 ? void 0 : _scrollContainer$clos.querySelector(".booking-config-actions .booking-primary-action")) || null;
|
|
71
71
|
}
|
|
72
72
|
}));
|
|
73
|
-
const quantityControl = (busy = false) => mode === "tickets" && !draft.lineUid ? /* @__PURE__ */ react.default.createElement("div", {
|
|
73
|
+
const quantityControl = (busy = false) => mode === "tickets" && !draft.lineUid && maxQuantity !== 0 ? /* @__PURE__ */ react.default.createElement("div", {
|
|
74
74
|
className: "reservation-quantity",
|
|
75
75
|
role: "group",
|
|
76
76
|
"aria-label": text("Number", "数量")
|
|
@@ -78,15 +78,16 @@ function BookingComposer(props) {
|
|
|
78
78
|
className: "booking-ticket-quantity",
|
|
79
79
|
variant: "capsule",
|
|
80
80
|
min: 1,
|
|
81
|
+
max: maxQuantity,
|
|
81
82
|
step: 1,
|
|
82
83
|
value: quantity,
|
|
83
|
-
disabled: busy || working || props.disabled,
|
|
84
|
+
disabled: busy || working || props.disabled || quantityDisabled,
|
|
84
85
|
commitInputOnClose: false,
|
|
85
86
|
selectAllInputOnOpen: true,
|
|
86
87
|
clearSelectedInputOnDelete: true,
|
|
87
88
|
ignoreEmptyInputConfirm: true,
|
|
88
89
|
onChange: (value) => {
|
|
89
|
-
if (!busy && !working && !props.disabled && Number.isSafeInteger(value) && value >= 1) setQuantity(value);
|
|
90
|
+
if (!busy && !working && !props.disabled && !quantityDisabled && Number.isSafeInteger(value) && value >= 1) setQuantity(value);
|
|
90
91
|
}
|
|
91
92
|
})) : null;
|
|
92
93
|
const footer = /* @__PURE__ */ react.default.createElement("div", { className: "venue-booking-sales__booking-footer" }, quantityControl(), /* @__PURE__ */ react.default.createElement("div", {
|
|
@@ -181,7 +181,7 @@ var BookingAvailabilityController = class {
|
|
|
181
181
|
});
|
|
182
182
|
return result;
|
|
183
183
|
} catch (error) {
|
|
184
|
-
const rejectedBeforeWrite = !!error && typeof error === "object" && "code" in error && error.code === "BUSINESS_UNAVAILABLE";
|
|
184
|
+
const rejectedBeforeWrite = !!error && typeof error === "object" && "code" in error && (error.code === "BUSINESS_UNAVAILABLE" || error.code === "ITEM_QUANTITY_LIMIT");
|
|
185
185
|
_this.publish({
|
|
186
186
|
status: "error",
|
|
187
187
|
ready: false,
|
|
@@ -17,10 +17,11 @@ let react = require("react");
|
|
|
17
17
|
* Start a new keyed hook owner for a new draft/openId, as the existing Composer does.
|
|
18
18
|
*/
|
|
19
19
|
function useBookingComposer(props) {
|
|
20
|
-
var _draft$openId, _draft$plan, _draft$detail$
|
|
20
|
+
var _draft$detail$product, _draft$openId, _draft$plan, _draft$detail$product2, _selection$candidate, _os$otherParams, _context$sales$salesS, _selection$requiremen2, _selection$selectedRe;
|
|
21
21
|
const { mode, draft, context, date, scopeKey, locale, priceSource } = props;
|
|
22
22
|
const text = (en, zh) => locale === "zh" ? zh : en;
|
|
23
|
-
const
|
|
23
|
+
const ticket = context.sales.bookingTicket;
|
|
24
|
+
const os = ticket;
|
|
24
25
|
const businessAvailability = require_SalesSdkBusinessAvailabilityContext.useSalesSdkBusinessAvailability();
|
|
25
26
|
const panel = (0, react.useRef)(null);
|
|
26
27
|
const [configuration, setConfiguration] = (0, react.useState)(draft.configuration);
|
|
@@ -28,6 +29,33 @@ function useBookingComposer(props) {
|
|
|
28
29
|
const initialQuantity = Number(draft.quantity);
|
|
29
30
|
return Number.isSafeInteger(initialQuantity) && initialQuantity > 0 ? initialQuantity : 1;
|
|
30
31
|
});
|
|
32
|
+
const productId = Number((_draft$detail$product = draft.detail.product_id) !== null && _draft$detail$product !== void 0 ? _draft$detail$product : draft.detail.id);
|
|
33
|
+
const checkQuantityLimit = mode === "tickets" && !draft.lineUid && !!(ticket === null || ticket === void 0 ? void 0 : ticket.getVenueTicketRemainingQuantity);
|
|
34
|
+
const [quantityLimit, setQuantityLimit] = (0, react.useState)();
|
|
35
|
+
(0, react.useEffect)(() => {
|
|
36
|
+
if (!checkQuantityLimit || !(ticket === null || ticket === void 0 ? void 0 : ticket.getVenueTicketRemainingQuantity)) return;
|
|
37
|
+
let active = true;
|
|
38
|
+
setQuantityLimit(void 0);
|
|
39
|
+
ticket.getVenueTicketRemainingQuantity(productId).then((remaining) => {
|
|
40
|
+
if (!active) return;
|
|
41
|
+
if (remaining !== void 0 && remaining > 0) setQuantity((current) => Math.min(current, remaining));
|
|
42
|
+
setQuantityLimit({ remaining });
|
|
43
|
+
}, () => {
|
|
44
|
+
if (active) setQuantityLimit({ failed: true });
|
|
45
|
+
});
|
|
46
|
+
return () => {
|
|
47
|
+
active = false;
|
|
48
|
+
};
|
|
49
|
+
}, [
|
|
50
|
+
checkQuantityLimit,
|
|
51
|
+
ticket,
|
|
52
|
+
productId,
|
|
53
|
+
scopeKey
|
|
54
|
+
]);
|
|
55
|
+
const maxQuantity = checkQuantityLimit ? quantityLimit === null || quantityLimit === void 0 ? void 0 : quantityLimit.remaining : void 0;
|
|
56
|
+
const quantityDisabled = checkQuantityLimit && (!quantityLimit || !!quantityLimit.failed || maxQuantity === 0);
|
|
57
|
+
const quantityValid = !quantityDisabled && (maxQuantity === void 0 || quantity <= maxQuantity);
|
|
58
|
+
const quantityError = checkQuantityLimit && (quantityLimit === null || quantityLimit === void 0 ? void 0 : quantityLimit.failed) ? text("Unable to check the ticket limit. Reopen this ticket to try again.", "无法核对门票限购数量,请重新打开门票。") : maxQuantity === 0 ? text("You have reached the limit for this ticket.", "已达到该门票的购买上限。") : void 0;
|
|
31
59
|
const [selection, setSelection] = (0, react.useState)();
|
|
32
60
|
const lastDraftIntent = (0, react.useRef)(draft.initialSelection);
|
|
33
61
|
const [quote, setQuote] = (0, react.useState)();
|
|
@@ -66,7 +94,7 @@ function useBookingComposer(props) {
|
|
|
66
94
|
scopeKey,
|
|
67
95
|
mode,
|
|
68
96
|
(_draft$openId = draft.openId) !== null && _draft$openId !== void 0 ? _draft$openId : (_draft$plan = draft.plan) === null || _draft$plan === void 0 ? void 0 : _draft$plan.openId,
|
|
69
|
-
(_draft$detail$
|
|
97
|
+
(_draft$detail$product2 = draft.detail.product_id) !== null && _draft$detail$product2 !== void 0 ? _draft$detail$product2 : draft.detail.id,
|
|
70
98
|
draft.lineUid,
|
|
71
99
|
date,
|
|
72
100
|
quantity,
|
|
@@ -92,7 +120,7 @@ function useBookingComposer(props) {
|
|
|
92
120
|
(0, react.useEffect)(() => {
|
|
93
121
|
let active = true;
|
|
94
122
|
setQuote(void 0);
|
|
95
|
-
if (!(selection === null || selection === void 0 ? void 0 : selection.candidate) || !["selecting", "ready"].includes(selection.status) || mode !== "tickets" && !selection.ready || selection.requiresOrderReconciliation || selection.candidate.date !== date || selection.candidate.availabilityContextId !== selection.contextId || !selection.times.some((time) => require_queries.sameContextualTime(time, selection.candidate) && require_queries.selectable(time, (selection.partySize || 0) * selection.bookingCount))) return;
|
|
123
|
+
if (!quantityValid || !(selection === null || selection === void 0 ? void 0 : selection.candidate) || !["selecting", "ready"].includes(selection.status) || mode !== "tickets" && !selection.ready || selection.requiresOrderReconciliation || selection.candidate.date !== date || selection.candidate.availabilityContextId !== selection.contextId || !selection.times.some((time) => require_queries.sameContextualTime(time, selection.candidate) && require_queries.selectable(time, (selection.partySize || 0) * selection.bookingCount))) return;
|
|
96
124
|
setError(void 0);
|
|
97
125
|
require_price.quoteBookingProduct({
|
|
98
126
|
os: priceSource,
|
|
@@ -116,6 +144,7 @@ function useBookingComposer(props) {
|
|
|
116
144
|
draft,
|
|
117
145
|
prepared.product,
|
|
118
146
|
revision,
|
|
147
|
+
quantityValid,
|
|
119
148
|
selection === null || selection === void 0 ? void 0 : selection.ready,
|
|
120
149
|
selection === null || selection === void 0 ? void 0 : selection.status,
|
|
121
150
|
selection === null || selection === void 0 ? void 0 : selection.contextId,
|
|
@@ -124,7 +153,7 @@ function useBookingComposer(props) {
|
|
|
124
153
|
const commit = function() {
|
|
125
154
|
var _ref = require_asyncToGenerator._asyncToGenerator(function* () {
|
|
126
155
|
var _busyCallback$current2, _os$getTempOrder, _props$operationLog, _prepared$product$pro, _selection$requiremen;
|
|
127
|
-
if (lock.current || props.disabled || !quote || !(selection === null || selection === void 0 ? void 0 : selection.ready) || !selection.candidate || !panel.current) return false;
|
|
156
|
+
if (lock.current || props.disabled || !quantityValid || !quote || !(selection === null || selection === void 0 ? void 0 : selection.ready) || !selection.candidate || !panel.current) return false;
|
|
128
157
|
lock.current = true;
|
|
129
158
|
setWorking(true);
|
|
130
159
|
(_busyCallback$current2 = busyCallback.current) === null || _busyCallback$current2 === void 0 || _busyCallback$current2.call(busyCallback, true);
|
|
@@ -272,7 +301,7 @@ function useBookingComposer(props) {
|
|
|
272
301
|
resourceSettingsFailed: Boolean(context.sales.salesSettingsError),
|
|
273
302
|
onRetryResourceSettings: context.sales.ensureSalesSettings
|
|
274
303
|
};
|
|
275
|
-
const bookingReady = Boolean((selection === null || selection === void 0 ? void 0 : selection.ready) && quote && !selection.requiresOrderReconciliation);
|
|
304
|
+
const bookingReady = Boolean(quantityValid && (selection === null || selection === void 0 ? void 0 : selection.ready) && quote && !selection.requiresOrderReconciliation);
|
|
276
305
|
const cancel = () => {
|
|
277
306
|
if (!lock.current) props.onCancel();
|
|
278
307
|
};
|
|
@@ -281,10 +310,12 @@ function useBookingComposer(props) {
|
|
|
281
310
|
setConfiguration,
|
|
282
311
|
quantity,
|
|
283
312
|
setQuantity,
|
|
313
|
+
maxQuantity,
|
|
314
|
+
quantityDisabled,
|
|
284
315
|
prepared,
|
|
285
316
|
selection,
|
|
286
317
|
quote,
|
|
287
|
-
error,
|
|
318
|
+
error: quantityError !== null && quantityError !== void 0 ? quantityError : error,
|
|
288
319
|
working,
|
|
289
320
|
revision,
|
|
290
321
|
panelRef: panel,
|
|
@@ -1145,8 +1145,10 @@ interface BookingTicketHandle extends PickupTimingHandle {
|
|
|
1145
1145
|
getOpenData?: () => Promise<Record<string, any> | null>;
|
|
1146
1146
|
getContactInfoConfig?: () => Promise<SalesContactInfoConfig>;
|
|
1147
1147
|
validateContactInfo?: () => Promise<void>;
|
|
1148
|
-
/** Online
|
|
1148
|
+
/** Online checkout: reject missing required products and online venue-ticket upper bounds. */
|
|
1149
1149
|
validateRequiredProducts?: () => Promise<void>;
|
|
1150
|
+
/** Remaining online venue-ticket quantity, or undefined when no upper bound applies. */
|
|
1151
|
+
getVenueTicketRemainingQuantity?: (productId: number) => Promise<number | undefined>;
|
|
1150
1152
|
/** Fetch bundle relations for catalog cards when revealing a missing required product. */
|
|
1151
1153
|
queryRequiredProductBundles?: (productIds: number[]) => Promise<ProductData[]>;
|
|
1152
1154
|
/** 写入当前临时订单根字段 tempOrder.buzzer。 */
|
|
@@ -19,7 +19,7 @@ declare const flowModuleRegistry: {
|
|
|
19
19
|
readonly Component: _$react.FC<FlowModuleProps<string>>;
|
|
20
20
|
readonly initializeWhileInactive: true;
|
|
21
21
|
readonly hardRequires: ("productData" | "booking.selectedCandidate")[];
|
|
22
|
-
readonly refreshOn: ("
|
|
22
|
+
readonly refreshOn: ("quantity" | "productData" | "skuValue" | "booking.customerId" | "booking.duration" | "booking.selectedCandidate")[];
|
|
23
23
|
readonly isApplicable: (context: _$_pisell_materials_src0.SelectionFlowContextValue<SelectionFlowDraft, SelectionFlowDraftUpdate, SelectionDraftField, string, SelectionFlowServices, unknown>) => boolean;
|
|
24
24
|
readonly canInitialize: (context: _$_pisell_materials_src0.SelectionFlowContextValue<SelectionFlowDraft, SelectionFlowDraftUpdate, SelectionDraftField, string, SelectionFlowServices, unknown>) => boolean;
|
|
25
25
|
readonly refresh: (context: SelectionFlowContextValue<string>, module: CompiledSelectionFlowModuleConfig<string>) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.12.
|
|
3
|
+
"version": "6.12.487",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
"styled-components": "^6.0.0-rc.3",
|
|
76
76
|
"use-sync-external-store": "^1.6.0",
|
|
77
77
|
"@pisell/pi-payment-sdk": "0.0.5",
|
|
78
|
-
"@pisell/utils": "3.0.7",
|
|
79
|
-
"@pisell/icon": "0.0.11",
|
|
80
78
|
"@pisell/materials": "6.12.107",
|
|
81
|
-
"@pisell/
|
|
79
|
+
"@pisell/utils": "3.0.7",
|
|
80
|
+
"@pisell/date-picker": "3.0.12",
|
|
81
|
+
"@pisell/icon": "0.0.11"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"react": "^18.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|