@pisell/pisellos 0.10.70 → 0.10.72
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/modules/BookingContext/utils/productExtend.d.ts +5 -0
- package/dist/modules/BookingContext/utils/productExtend.js +61 -23
- package/dist/modules/OpenData/index.d.ts +1 -0
- package/dist/modules/OpenData/index.js +1 -0
- package/dist/modules/OpenData/salesSettings.d.ts +32 -0
- package/dist/modules/OpenData/salesSettings.js +80 -0
- package/dist/modules/OpenData/types.d.ts +13 -0
- package/dist/modules/Order/index.d.ts +13 -4
- package/dist/modules/Order/index.js +1401 -764
- package/dist/modules/Order/types.d.ts +24 -1
- package/dist/modules/Order/types.js +4 -0
- package/dist/server/index.js +5 -2
- package/dist/solution/BaseSales/index.d.ts +2 -2
- package/dist/solution/BaseSales/index.js +8 -8
- package/dist/solution/BookingTicket/index.d.ts +2 -2
- package/dist/solution/UnifiedBookingSales/index.d.ts +36 -1
- package/dist/solution/UnifiedBookingSales/index.js +1434 -709
- package/dist/solution/UnifiedBookingSales/salesSettings.d.ts +16 -0
- package/dist/solution/UnifiedBookingSales/salesSettings.js +81 -0
- package/dist/solution/UnifiedBookingSales/types.d.ts +17 -1
- package/lib/model/strategy/adapter/promotion/index.js +1 -46
- package/lib/modules/BookingContext/utils/productExtend.d.ts +5 -0
- package/lib/modules/BookingContext/utils/productExtend.js +36 -3
- package/lib/modules/OpenData/index.d.ts +1 -0
- package/lib/modules/OpenData/index.js +12 -0
- package/lib/modules/OpenData/salesSettings.d.ts +32 -0
- package/lib/modules/OpenData/salesSettings.js +70 -0
- package/lib/modules/OpenData/types.d.ts +13 -0
- package/lib/modules/Order/index.d.ts +13 -4
- package/lib/modules/Order/index.js +284 -24
- package/lib/modules/Order/types.d.ts +24 -1
- package/lib/modules/Order/types.js +2 -0
- package/lib/server/index.js +5 -1
- package/lib/solution/BaseSales/index.d.ts +2 -2
- package/lib/solution/BaseSales/index.js +2 -2
- package/lib/solution/BookingTicket/index.d.ts +2 -2
- package/lib/solution/UnifiedBookingSales/index.d.ts +36 -1
- package/lib/solution/UnifiedBookingSales/index.js +463 -45
- package/lib/solution/UnifiedBookingSales/salesSettings.d.ts +16 -0
- package/lib/solution/UnifiedBookingSales/salesSettings.js +72 -0
- package/lib/solution/UnifiedBookingSales/types.d.ts +17 -1
- package/package.json +1 -1
|
@@ -463,12 +463,27 @@ export interface AddProductToOrderOptions {
|
|
|
463
463
|
disableMerge?: boolean;
|
|
464
464
|
/** 商品行 UID 落定后,由 OrderModule 原子绑定到该行的 Sales Notes 草稿。 */
|
|
465
465
|
salesNotes?: SalesNoteDraftInput[];
|
|
466
|
+
/** Validate the captured booking intent before preparation and draft publication. */
|
|
467
|
+
availabilityCommitGuard?: () => void;
|
|
468
|
+
/** Ownership only; remains valid after this mutation changes products and prices. */
|
|
469
|
+
availabilityCommitTargetGuard?: () => boolean;
|
|
470
|
+
}
|
|
471
|
+
/** Atomic replacement of one unsubmitted Party booking and its explicitly confirmed retail children. */
|
|
472
|
+
export interface ReplaceBookingProductWithRelatedRetailParams {
|
|
473
|
+
productLineUid: string;
|
|
474
|
+
product: Partial<OrderProduct> & OrderProductIdentity;
|
|
475
|
+
booking: AddProductBookingInput;
|
|
476
|
+
relatedRetailProducts: Array<Partial<OrderProduct> & OrderProductIdentity>;
|
|
477
|
+
availabilityCommitGuard: () => void;
|
|
478
|
+
availabilityCommitTargetGuard?: () => boolean;
|
|
466
479
|
}
|
|
467
480
|
/**
|
|
468
481
|
* 删除商品后的可选位置保持策略。
|
|
469
482
|
* 预约合并行减量时仍删除最新真实行,再把剩余代表行移动到被删除代表行原位置。
|
|
470
483
|
*/
|
|
471
484
|
export interface RemoveProductsFromOrderOptions {
|
|
485
|
+
/** Prevent an asynchronous deletion/finalization from crossing order or business scopes. */
|
|
486
|
+
isCurrentOrder?: () => boolean;
|
|
472
487
|
preserveDisplayPosition?: {
|
|
473
488
|
remainingProductUid: string;
|
|
474
489
|
anchorProductUid: string;
|
|
@@ -511,6 +526,13 @@ export interface UpdateOrderProductParams {
|
|
|
511
526
|
*/
|
|
512
527
|
allow_booking_discount_reapply?: boolean;
|
|
513
528
|
}
|
|
529
|
+
/** Opt-in atomic draft update for asynchronous re-quotation callers. */
|
|
530
|
+
export interface UpdateOrderProductsOptions {
|
|
531
|
+
/** Validate the quoted source snapshot immediately before publication; may throw. */
|
|
532
|
+
beforeApply?: () => void;
|
|
533
|
+
/** Order/business ownership only. Called after publication too; exclude old prices/quantities. */
|
|
534
|
+
isCurrentOrder?: () => boolean;
|
|
535
|
+
}
|
|
514
536
|
/** 仅更新购物车行数量;行定位语义与 updateOrderProduct / removeProductFromOrder 保持一致 */
|
|
515
537
|
export interface UpdateOrderProductQuantityParams extends OrderProductIdentity {
|
|
516
538
|
num: number;
|
|
@@ -903,6 +925,7 @@ export interface OrderModuleAPI {
|
|
|
903
925
|
updateTempOrderBuzzer: (buzzer: string) => string;
|
|
904
926
|
updateTempOrderContactsInfo: (contactsInfo: Record<string, any> | null) => Record<string, any> | null;
|
|
905
927
|
addProductToOrder: (product: Partial<OrderProduct> & OrderProductIdentity, booking?: AddProductBookingInput, options?: AddProductToOrderOptions) => Promise<OrderProduct[]>;
|
|
928
|
+
replaceBookingProductWithRelatedRetail: (params: ReplaceBookingProductWithRelatedRetailParams) => Promise<OrderProduct[]>;
|
|
906
929
|
getSalesNotes: () => SalesNote[];
|
|
907
930
|
createSalesNotesMutationSnapshot: () => SalesNotesMutationSnapshot;
|
|
908
931
|
restoreSalesNotesMutationSnapshot: (snapshot: SalesNotesMutationSnapshot) => void;
|
|
@@ -911,7 +934,7 @@ export interface OrderModuleAPI {
|
|
|
911
934
|
clearSalesNotes: () => Promise<void>;
|
|
912
935
|
updateOrderProduct: (params: UpdateOrderProductParams) => Promise<OrderProduct[]>;
|
|
913
936
|
/** 批量更新购物车行,末尾仅触发一次促销重算与 summary 刷新 */
|
|
914
|
-
updateOrderProducts: (paramsList: UpdateOrderProductParams[]) => Promise<OrderProduct[]>;
|
|
937
|
+
updateOrderProducts: (paramsList: UpdateOrderProductParams[], options?: UpdateOrderProductsOptions) => Promise<OrderProduct[]>;
|
|
915
938
|
updateOrderProductQuantity: (params: UpdateOrderProductQuantityParams) => Promise<OrderProduct[]>;
|
|
916
939
|
updateOrderBooking: (params: UpdateOrderBookingParams) => any[];
|
|
917
940
|
removeProductFromOrder: (identity: OrderProductIdentity, options?: RemoveProductsFromOrderOptions) => Promise<OrderProduct[]>;
|
|
@@ -77,6 +77,8 @@ export var OrderHooks = /*#__PURE__*/function (OrderHooks) {
|
|
|
77
77
|
* 避免步进器修改数量改变该组展示位置。
|
|
78
78
|
*/
|
|
79
79
|
|
|
80
|
+
/** Atomic replacement of one unsubmitted Party booking and its explicitly confirmed retail children. */
|
|
81
|
+
|
|
80
82
|
/**
|
|
81
83
|
* 删除商品后的可选位置保持策略。
|
|
82
84
|
* 预约合并行减量时仍删除最新真实行,再把剩余代表行移动到被删除代表行原位置。
|
|
@@ -84,6 +86,8 @@ export var OrderHooks = /*#__PURE__*/function (OrderHooks) {
|
|
|
84
86
|
|
|
85
87
|
/** 更新购物车行:仅传 SKU 时命中同 SKU 第一行;多行同 SKU 须传 unique_identification_number / 选项指纹等 */
|
|
86
88
|
|
|
89
|
+
/** Opt-in atomic draft update for asynchronous re-quotation callers. */
|
|
90
|
+
|
|
87
91
|
/** 仅更新购物车行数量;行定位语义与 updateOrderProduct / removeProductFromOrder 保持一致 */
|
|
88
92
|
|
|
89
93
|
/**
|
package/dist/server/index.js
CHANGED
|
@@ -418,11 +418,14 @@ var Server = /*#__PURE__*/function () {
|
|
|
418
418
|
schedule_date: schedule_date,
|
|
419
419
|
schedule_datetime: scheduleDatetime
|
|
420
420
|
});
|
|
421
|
-
return _context4.abrupt("return", _this.computeProductQueryResult({
|
|
421
|
+
return _context4.abrupt("return", _this.computeProductQueryResult(_objectSpread({
|
|
422
422
|
schedule_date: schedule_date,
|
|
423
423
|
schedule_datetime: scheduleDatetime,
|
|
424
424
|
product_id: productId
|
|
425
|
-
})
|
|
425
|
+
}, data && _typeof(data) === 'object' ? {
|
|
426
|
+
customer_id: data.customer_id,
|
|
427
|
+
strategy_context: data.strategy_context
|
|
428
|
+
} : {})));
|
|
426
429
|
case 17:
|
|
427
430
|
case "end":
|
|
428
431
|
return _context4.stop();
|
|
@@ -6,7 +6,7 @@ import { OrderModule } from '../../modules/Order';
|
|
|
6
6
|
import { type PickupTimingBookingInput } from '../../modules/Order/pickupTiming';
|
|
7
7
|
import type { PickupTimingAvailability, PickupTimingSelection, PickupTimingValidationResult } from '../../modules/FulfillmentTiming';
|
|
8
8
|
import { type ContactInfoConfig } from '../../modules/OpenData/contactInfo';
|
|
9
|
-
import type { AddProductBookingInput, AddProductToOrderOptions, LoadSalesDetailParams, OrderPaymentData, OrderPaymentUpdateOptions, OrderPaymentUpdateResult, OrderPaymentSource, SendCustomerPayLinkParams, SyncPaymentsToOrderParams, SyncPaymentsToOrderResult, UpdateTempOrderCustomerInput, UpdateOrderBookingParams, UpdateOrderProductParams, OrderTempOrder, OrderSummary, OrderPromotionEvaluator, OrderGiftSelectResolver, OrderUnfulfilledPromotion, OrderLastGiftActions, RemoveProductsFromOrderOptions, ReplaceTempOrderOptions, SalesNote, SalesNotesMutationSnapshot, SetSalesNoteInput, PickupReferenceMode, ShopServiceData, ShopServiceType } from '../../modules/Order/types';
|
|
9
|
+
import type { AddProductBookingInput, AddProductToOrderOptions, LoadSalesDetailParams, OrderPaymentData, OrderPaymentUpdateOptions, OrderPaymentUpdateResult, OrderPaymentSource, SendCustomerPayLinkParams, SyncPaymentsToOrderParams, SyncPaymentsToOrderResult, UpdateTempOrderCustomerInput, UpdateOrderBookingParams, UpdateOrderProductParams, UpdateOrderProductsOptions, OrderTempOrder, OrderSummary, OrderPromotionEvaluator, OrderGiftSelectResolver, OrderUnfulfilledPromotion, OrderLastGiftActions, RemoveProductsFromOrderOptions, ReplaceTempOrderOptions, SalesNote, SalesNotesMutationSnapshot, SetSalesNoteInput, PickupReferenceMode, ShopServiceData, ShopServiceType } from '../../modules/Order/types';
|
|
10
10
|
import type { SubmitPayloadEnhancer } from '../../modules/Order/utils';
|
|
11
11
|
import type { Discount, VirtualCurrencyAsset } from '../../modules/Discount/types';
|
|
12
12
|
import { RequestPlugin, WindowPlugin } from '../../plugins';
|
|
@@ -535,7 +535,7 @@ export declare class BaseSalesImpl extends BaseModule implements Module {
|
|
|
535
535
|
validateProductVoucherSelection(): void;
|
|
536
536
|
addProductToOrder(product: Partial<BaseSalesOrderProduct> & BaseSalesOrderProductIdentity, booking?: AddProductBookingInput, options?: AddProductToOrderOptions): Promise<import("../../modules/Order/types").OrderProduct[]>;
|
|
537
537
|
updateOrderProduct(params: UpdateOrderProductParams): Promise<import("../../modules/Order/types").OrderProduct[]>;
|
|
538
|
-
updateOrderProducts(paramsList: UpdateOrderProductParams[]): Promise<import("../../modules/Order/types").OrderProduct[]>;
|
|
538
|
+
updateOrderProducts(paramsList: UpdateOrderProductParams[], options?: UpdateOrderProductsOptions): Promise<import("../../modules/Order/types").OrderProduct[]>;
|
|
539
539
|
updateOrderProductQuantity(params: BaseSalesUpdateOrderProductQuantityParams): Promise<import("../../modules/Order/types").OrderProduct[]>;
|
|
540
540
|
updateOrderBooking(params: UpdateOrderBookingParams): any[];
|
|
541
541
|
/**
|
|
@@ -7049,7 +7049,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
7049
7049
|
}, {
|
|
7050
7050
|
key: "updateOrderProducts",
|
|
7051
7051
|
value: function () {
|
|
7052
|
-
var _updateOrderProducts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee72(paramsList) {
|
|
7052
|
+
var _updateOrderProducts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee72(paramsList, options) {
|
|
7053
7053
|
var products;
|
|
7054
7054
|
return _regeneratorRuntime().wrap(function _callee72$(_context72) {
|
|
7055
7055
|
while (1) switch (_context72.prev = _context72.next) {
|
|
@@ -7062,7 +7062,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
7062
7062
|
throw new Error('order 模块未初始化');
|
|
7063
7063
|
case 3:
|
|
7064
7064
|
_context72.next = 5;
|
|
7065
|
-
return this.store.order.updateOrderProducts(paramsList);
|
|
7065
|
+
return this.store.order.updateOrderProducts(paramsList, options);
|
|
7066
7066
|
case 5:
|
|
7067
7067
|
products = _context72.sent;
|
|
7068
7068
|
return _context72.abrupt("return", products);
|
|
@@ -7076,7 +7076,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
7076
7076
|
}
|
|
7077
7077
|
}, _callee72, this, [[0, 9]]);
|
|
7078
7078
|
}));
|
|
7079
|
-
function updateOrderProducts(_x60) {
|
|
7079
|
+
function updateOrderProducts(_x60, _x61) {
|
|
7080
7080
|
return _updateOrderProducts.apply(this, arguments);
|
|
7081
7081
|
}
|
|
7082
7082
|
return updateOrderProducts;
|
|
@@ -7111,7 +7111,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
7111
7111
|
}
|
|
7112
7112
|
}, _callee73, this, [[0, 9]]);
|
|
7113
7113
|
}));
|
|
7114
|
-
function updateOrderProductQuantity(
|
|
7114
|
+
function updateOrderProductQuantity(_x62) {
|
|
7115
7115
|
return _updateOrderProductQuantity.apply(this, arguments);
|
|
7116
7116
|
}
|
|
7117
7117
|
return updateOrderProductQuantity;
|
|
@@ -7169,7 +7169,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
7169
7169
|
}
|
|
7170
7170
|
}, _callee74, this, [[0, 11]]);
|
|
7171
7171
|
}));
|
|
7172
|
-
function setOrderProductLineNote(
|
|
7172
|
+
function setOrderProductLineNote(_x63, _x64) {
|
|
7173
7173
|
return _setOrderProductLineNote.apply(this, arguments);
|
|
7174
7174
|
}
|
|
7175
7175
|
return setOrderProductLineNote;
|
|
@@ -7222,7 +7222,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
7222
7222
|
}
|
|
7223
7223
|
}, _callee75, this, [[0, 15]]);
|
|
7224
7224
|
}));
|
|
7225
|
-
function removeProductsFromOrder(
|
|
7225
|
+
function removeProductsFromOrder(_x65, _x66) {
|
|
7226
7226
|
return _removeProductsFromOrder.apply(this, arguments);
|
|
7227
7227
|
}
|
|
7228
7228
|
return removeProductsFromOrder;
|
|
@@ -7241,7 +7241,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
7241
7241
|
}
|
|
7242
7242
|
}, _callee76, this);
|
|
7243
7243
|
}));
|
|
7244
|
-
function removeProductFromOrder(
|
|
7244
|
+
function removeProductFromOrder(_x67, _x68) {
|
|
7245
7245
|
return _removeProductFromOrder.apply(this, arguments);
|
|
7246
7246
|
}
|
|
7247
7247
|
return removeProductFromOrder;
|
|
@@ -7407,7 +7407,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
7407
7407
|
}
|
|
7408
7408
|
}, _callee79, this);
|
|
7409
7409
|
}));
|
|
7410
|
-
function setOtherParams(
|
|
7410
|
+
function setOtherParams(_x69) {
|
|
7411
7411
|
return _setOtherParams.apply(this, arguments);
|
|
7412
7412
|
}
|
|
7413
7413
|
return setOtherParams;
|
|
@@ -441,7 +441,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
441
441
|
/**
|
|
442
442
|
* 构造 BookingContext 计算上下文(供 getProductExtend / getResourceByIds 等读 API 复用)。
|
|
443
443
|
*/
|
|
444
|
-
|
|
444
|
+
protected buildBookingCalcContext(extra?: Partial<BookingCalcContext>): BookingCalcContext;
|
|
445
445
|
/**
|
|
446
446
|
* 取商品当前可选资源列表(透传 OS BookingContext utils#getResourceByIds)。
|
|
447
447
|
* `extraResources` 用于把拖入未绑定的资源也展示出来。
|
|
@@ -474,7 +474,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
|
|
|
474
474
|
/**
|
|
475
475
|
* 拼装 addProductDecision 通用上下文(从 store 自取)。
|
|
476
476
|
*/
|
|
477
|
-
|
|
477
|
+
protected buildAddProductCtx(extra?: Partial<AddProductDecideContext>): AddProductDecideContext;
|
|
478
478
|
/**
|
|
479
479
|
* 加车两阶段主决策(规格弹窗 / 资源编辑 / 直接加车)。
|
|
480
480
|
* 与 ticketBooking `handleSelectProduct` + `handleBooking4Service` 等价。
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Module, ModuleOptions, PisellCore } from '../../types';
|
|
2
2
|
import type { ProductData } from '../../modules';
|
|
3
|
-
import
|
|
3
|
+
import type { BookingCalcContext } from '../../modules/BookingContext';
|
|
4
|
+
import type { AddProductDecideContext } from '../BookingTicket/utils/addProductDecision';
|
|
5
|
+
import { type InvoiceLayoutConfig, type InvoiceTemplateSettings, type OpenDataConfig, type ResolvedSalesSettings } from '../../modules/OpenData';
|
|
4
6
|
import type { LoadScheduleAvailableDateParams, ScheduleItem } from '../../modules/Schedule/types';
|
|
5
7
|
import type { ProductListLoadProductsParams, ProductListStoreQueryParams } from '../../modules/ProductList';
|
|
6
8
|
import type { AvailabilityDateRange, AvailabilityOccupancy, AvailabilityProduct, AvailabilityResource, GetProductTimeRangesRequest } from '../../modules/ResourcePlanner';
|
|
@@ -9,6 +11,7 @@ import type { BusinessAvailability } from '../../modules/BusinessAvailability';
|
|
|
9
11
|
import { BookingTicket } from '../BookingTicket';
|
|
10
12
|
import type { AllergyRequirement } from '../../model/strategy/adapter/itemRule';
|
|
11
13
|
export * from './types';
|
|
14
|
+
export * from './salesSettings';
|
|
12
15
|
export type { BusinessAvailability, BusinessClosedBehavior } from '../../modules/BusinessAvailability';
|
|
13
16
|
export { AvailabilityError } from '../../modules/ResourcePlanner';
|
|
14
17
|
/**
|
|
@@ -167,6 +170,24 @@ export declare class UnifiedBookingSalesImpl extends BookingTicket {
|
|
|
167
170
|
/** A successful configuration belongs to this business runtime until an explicit refresh. */
|
|
168
171
|
loadOpenData(params: UnifiedBookingSalesLoadOpenDataParams): Promise<OpenDataConfig>;
|
|
169
172
|
getOpenData(): Promise<OpenDataConfig | null>;
|
|
173
|
+
/** One policy snapshot for all Sales 2.0 consumers. Network errors must reach the caller. */
|
|
174
|
+
getSalesSettings(): Promise<ResolvedSalesSettings>;
|
|
175
|
+
private getLoadedSalesSettings;
|
|
176
|
+
private getProductBookingsForScheduling;
|
|
177
|
+
private shouldApplyMultipleBookingScheduling;
|
|
178
|
+
private resolveLoadedDefaultBookingStart;
|
|
179
|
+
/** Used by the SKU flow after Holder changes, without changing an explicit user-selected time. */
|
|
180
|
+
resolveDefaultBookingStart(params: {
|
|
181
|
+
holderIds?: unknown;
|
|
182
|
+
fallback?: string;
|
|
183
|
+
}): Promise<string | undefined>;
|
|
184
|
+
protected buildBookingCalcContext(extra?: Partial<BookingCalcContext>): BookingCalcContext;
|
|
185
|
+
protected buildAddProductCtx(extra?: Partial<AddProductDecideContext>): AddProductDecideContext;
|
|
186
|
+
/** Re-evaluate an automatic default after Holder enrichment, or restore a known explicit TimeBar start. */
|
|
187
|
+
applyDefaultBookingStart(cacheItem: any, options?: {
|
|
188
|
+
holderIds?: unknown;
|
|
189
|
+
explicitStart?: string;
|
|
190
|
+
}): Promise<any>;
|
|
170
191
|
protected loadPickupTimingOpenData(_force: boolean): Promise<Record<string, unknown>>;
|
|
171
192
|
private resetAllergyItemRuleState;
|
|
172
193
|
private fetchAllergyItemRuleConfigs;
|
|
@@ -192,6 +213,18 @@ export declare class UnifiedBookingSalesImpl extends BookingTicket {
|
|
|
192
213
|
callback?: (result: any) => void;
|
|
193
214
|
subscriberId?: string;
|
|
194
215
|
}): Promise<ProductData[]>;
|
|
216
|
+
/**
|
|
217
|
+
* Queries one explicitly configured menu scope without publishing the sales catalog.
|
|
218
|
+
* The returned graph is detached from ProductList's shared ID cache. Callers own its
|
|
219
|
+
* membership and must requery/reprice with the service datetime after a context change.
|
|
220
|
+
* Missing/invalid menu configuration fails closed instead of querying every product.
|
|
221
|
+
*/
|
|
222
|
+
queryCatalogSnapshot(params: ProductListLoadProductsParams): Promise<ProductData[]>;
|
|
223
|
+
/** Full SKU/bundle detail, after verifying membership in the explicit day/menu scope. */
|
|
224
|
+
queryCatalogProductDetail(params: ProductListLoadProductsParams & {
|
|
225
|
+
product_id: number;
|
|
226
|
+
}): Promise<ProductData | undefined>;
|
|
227
|
+
private loadCatalogProducts;
|
|
195
228
|
queryProducts(params?: ProductListStoreQueryParams): Promise<ProductData[]>;
|
|
196
229
|
/** Date-first entry point. It delegates protocol details and cache ownership to ScheduleModule. */
|
|
197
230
|
loadScheduleAvailableDate(params: LoadScheduleAvailableDateParams): Promise<import("../../modules/Date/types").ITime[]>;
|
|
@@ -269,6 +302,8 @@ export declare class UnifiedBookingSalesImpl extends BookingTicket {
|
|
|
269
302
|
getProductTimeRanges(contextId: string, request?: GetProductTimeRangesRequest): Promise<ContextualProductTimeRangeGroup[]>;
|
|
270
303
|
/** Thin facade: auto-refresh on cart drift, then delegate to the pure projection query. */
|
|
271
304
|
queryBookingAvailability(contextId: string, request: ContextualAvailabilityQuery): Promise<ContextualAvailabilityQueryResult>;
|
|
305
|
+
/** Reads detached resource metadata from the current context; never refreshes or performs I/O. */
|
|
306
|
+
getAvailabilityResources(contextId: string, expectedVersion?: number): AvailabilityResource[];
|
|
272
307
|
releaseAvailabilityContext(contextId: string): void;
|
|
273
308
|
private assertAvailabilityCommitWriteCAS;
|
|
274
309
|
private findProductLineByUid;
|