@pisell/pisellos 2.3.39 → 2.3.41
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/core/index.d.ts +2 -0
- package/dist/core/index.js +7 -0
- package/dist/model/strategy/adapter/promotion/adapter.d.ts +4 -0
- package/dist/model/strategy/adapter/promotion/adapter.js +23 -0
- package/dist/model/strategy/adapter/promotion/evaluator.d.ts +17 -0
- package/dist/model/strategy/adapter/promotion/evaluator.js +279 -6
- package/dist/model/strategy/adapter/promotion/examples.d.ts +86 -0
- package/dist/model/strategy/adapter/promotion/examples.js +99 -0
- package/dist/model/strategy/adapter/promotion/index.d.ts +1 -1
- package/dist/model/strategy/adapter/promotion/index.js +9 -0
- package/dist/model/strategy/adapter/promotion/type.d.ts +90 -2
- package/dist/model/strategy/adapter/promotion/type.js +45 -0
- package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.js +5 -3
- package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.js +6 -3
- package/dist/modules/Discount/index.d.ts +0 -1
- package/dist/modules/Discount/index.js +11 -40
- package/dist/modules/Discount/types.d.ts +0 -1
- package/dist/modules/OpenData/index.d.ts +2 -0
- package/dist/modules/OpenData/index.js +10 -2
- package/dist/modules/Order/index.d.ts +29 -12
- package/dist/modules/Order/index.js +750 -509
- package/dist/modules/Order/payment-utils.d.ts +26 -0
- package/dist/modules/Order/payment-utils.js +225 -0
- package/dist/modules/Order/types.d.ts +33 -10
- package/dist/modules/Order/utils/orderCollectionIdentity.js +7 -2
- package/dist/modules/Order/utils.d.ts +0 -10
- package/dist/modules/Order/utils.js +13 -41
- package/dist/modules/Payment/index.d.ts +2 -0
- package/dist/modules/Payment/index.js +79 -50
- package/dist/modules/Payment/types.d.ts +99 -28
- package/dist/modules/Payment/types.js +20 -3
- package/dist/modules/Payment/walletpass.d.ts +25 -1
- package/dist/modules/Payment/walletpass.js +707 -157
- package/dist/modules/Product/types.d.ts +0 -1
- package/dist/modules/ProductList/index.js +14 -33
- package/dist/modules/Quotation/index.d.ts +1 -1
- package/dist/modules/Quotation/index.js +2 -2
- package/dist/modules/Rules/index.d.ts +1 -0
- package/dist/modules/Rules/index.js +89 -96
- package/dist/modules/SalesSummary/index.js +13 -12
- package/dist/modules/ScanOrderLogger/index.d.ts +0 -2
- package/dist/modules/ScanOrderLogger/index.js +2 -15
- package/dist/modules/ScanOrderLogger/providers/feishu.js +27 -45
- package/dist/modules/ScanOrderLogger/types.d.ts +0 -1
- package/dist/modules/Schedule/index.d.ts +1 -3
- package/dist/modules/Schedule/index.js +16 -21
- package/dist/modules/Summary/utils.js +13 -38
- package/dist/modules/index.d.ts +0 -2
- package/dist/modules/index.js +1 -3
- package/dist/plugins/window.d.ts +0 -1
- package/dist/server/index.d.ts +16 -14
- package/dist/server/index.js +1925 -1143
- package/dist/server/modules/order/index.d.ts +54 -4
- package/dist/server/modules/order/index.js +1600 -700
- package/dist/server/modules/order/types.d.ts +11 -3
- package/dist/server/modules/order/types.js +1 -1
- package/dist/solution/BaseSales/index.d.ts +109 -20
- package/dist/solution/BaseSales/index.js +1800 -480
- package/dist/solution/BaseSales/types.d.ts +52 -0
- package/dist/solution/BaseSales/types.js +2 -1
- package/dist/solution/BaseSales/utils/cartPromotion.d.ts +3 -1
- package/dist/solution/BaseSales/utils/cartPromotion.js +90 -31
- package/dist/solution/BaseSales/utils/parseSalesResponse.d.ts +6 -1
- package/dist/solution/BookingByStep/index.d.ts +2 -17
- package/dist/solution/BookingByStep/index.js +215 -294
- package/dist/solution/BookingByStep/types.d.ts +1 -2
- package/dist/solution/BookingByStep/types.js +1 -3
- package/dist/solution/BookingByStep/utils/capacity.js +1 -17
- package/dist/solution/BookingByStep/utils/timeslots.d.ts +1 -3
- package/dist/solution/BookingByStep/utils/timeslots.js +12 -19
- package/dist/solution/BookingTicket/index.d.ts +7 -3
- package/dist/solution/BookingTicket/index.js +132 -49
- package/dist/solution/BookingTicket/utils/addProductDecision.js +6 -0
- package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts +8 -0
- package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.js +172 -82
- package/dist/solution/BookingTicket/utils/weighingProductSku.d.ts +5 -0
- package/dist/solution/BookingTicket/utils/weighingProductSku.js +45 -0
- package/dist/solution/Sales/index.d.ts +1 -0
- package/dist/solution/Sales/index.js +10 -2
- package/dist/solution/ScanOrder/index.d.ts +14 -26
- package/dist/solution/ScanOrder/index.js +756 -1148
- package/dist/solution/ScanOrder/types.d.ts +1 -21
- package/dist/solution/ScanOrder/utils.d.ts +0 -8
- package/dist/solution/ScanOrder/utils.js +25 -66
- package/dist/solution/ShopDiscount/index.d.ts +0 -1
- package/dist/solution/ShopDiscount/index.js +87 -125
- package/dist/solution/VenueBooking/index.d.ts +11 -39
- package/dist/solution/VenueBooking/index.js +860 -1176
- package/dist/solution/VenueBooking/types.d.ts +0 -3
- package/dist/solution/VenueBooking/utils/resource.js +0 -1
- package/dist/solution/VenueBooking/utils/slotMerge.d.ts +4 -4
- package/dist/solution/VenueBooking/utils/slotMerge.js +5 -10
- package/dist/solution/index.d.ts +0 -1
- package/dist/solution/index.js +1 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/payment-number.d.ts +9 -0
- package/dist/utils/payment-number.js +69 -0
- package/lib/core/index.d.ts +2 -0
- package/lib/core/index.js +4 -0
- package/lib/model/strategy/adapter/promotion/adapter.d.ts +4 -0
- package/lib/model/strategy/adapter/promotion/adapter.js +20 -0
- package/lib/model/strategy/adapter/promotion/evaluator.d.ts +17 -0
- package/lib/model/strategy/adapter/promotion/evaluator.js +235 -0
- package/lib/model/strategy/adapter/promotion/examples.d.ts +86 -0
- package/lib/model/strategy/adapter/promotion/examples.js +91 -0
- package/lib/model/strategy/adapter/promotion/index.d.ts +1 -1
- package/lib/model/strategy/adapter/promotion/index.js +51 -0
- package/lib/model/strategy/adapter/promotion/type.d.ts +90 -2
- package/lib/model/strategy/adapter/promotion/type.js +2 -0
- package/lib/modules/BookingContext/utils/buildCacheItemFromOrderLine.js +2 -1
- package/lib/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.js +2 -1
- package/lib/modules/Discount/index.d.ts +0 -1
- package/lib/modules/Discount/index.js +0 -9
- package/lib/modules/Discount/types.d.ts +0 -1
- package/lib/modules/OpenData/index.d.ts +2 -0
- package/lib/modules/OpenData/index.js +6 -1
- package/lib/modules/Order/index.d.ts +29 -12
- package/lib/modules/Order/index.js +196 -86
- package/lib/modules/Order/payment-utils.d.ts +26 -0
- package/lib/modules/Order/payment-utils.js +224 -0
- package/lib/modules/Order/types.d.ts +33 -10
- package/lib/modules/Order/utils/orderCollectionIdentity.js +3 -0
- package/lib/modules/Order/utils.d.ts +0 -10
- package/lib/modules/Order/utils.js +16 -40
- package/lib/modules/Payment/index.d.ts +2 -0
- package/lib/modules/Payment/index.js +34 -13
- package/lib/modules/Payment/types.d.ts +99 -28
- package/lib/modules/Payment/types.js +4 -3
- package/lib/modules/Payment/walletpass.d.ts +25 -1
- package/lib/modules/Payment/walletpass.js +470 -21
- package/lib/modules/Product/types.d.ts +0 -1
- package/lib/modules/ProductList/index.js +31 -40
- package/lib/modules/Quotation/index.d.ts +1 -1
- package/lib/modules/Quotation/index.js +2 -2
- package/lib/modules/Rules/index.d.ts +1 -0
- package/lib/modules/Rules/index.js +47 -40
- package/lib/modules/SalesSummary/index.js +7 -6
- package/lib/modules/ScanOrderLogger/index.d.ts +0 -2
- package/lib/modules/ScanOrderLogger/index.js +1 -13
- package/lib/modules/ScanOrderLogger/providers/feishu.js +6 -15
- package/lib/modules/ScanOrderLogger/types.d.ts +0 -1
- package/lib/modules/Schedule/index.d.ts +1 -3
- package/lib/modules/Schedule/index.js +8 -10
- package/lib/modules/Summary/utils.js +1 -21
- package/lib/modules/index.d.ts +0 -2
- package/lib/modules/index.js +1 -5
- package/lib/plugins/window.d.ts +0 -1
- package/lib/server/index.d.ts +16 -14
- package/lib/server/index.js +675 -83
- package/lib/server/modules/order/index.d.ts +54 -4
- package/lib/server/modules/order/index.js +679 -66
- package/lib/server/modules/order/types.d.ts +11 -3
- package/lib/solution/BaseSales/index.d.ts +109 -20
- package/lib/solution/BaseSales/index.js +883 -70
- package/lib/solution/BaseSales/types.d.ts +52 -0
- package/lib/solution/BaseSales/types.js +2 -1
- package/lib/solution/BaseSales/utils/cartPromotion.d.ts +3 -1
- package/lib/solution/BaseSales/utils/cartPromotion.js +63 -12
- package/lib/solution/BaseSales/utils/parseSalesResponse.d.ts +6 -1
- package/lib/solution/BookingByStep/index.d.ts +2 -17
- package/lib/solution/BookingByStep/index.js +18 -60
- package/lib/solution/BookingByStep/types.d.ts +1 -2
- package/lib/solution/BookingByStep/types.js +0 -5
- package/lib/solution/BookingByStep/utils/capacity.js +1 -20
- package/lib/solution/BookingByStep/utils/timeslots.d.ts +1 -3
- package/lib/solution/BookingByStep/utils/timeslots.js +11 -19
- package/lib/solution/BookingTicket/index.d.ts +7 -3
- package/lib/solution/BookingTicket/index.js +62 -9
- package/lib/solution/BookingTicket/utils/addProductDecision.js +4 -0
- package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts +8 -0
- package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.js +36 -4
- package/lib/solution/BookingTicket/utils/weighingProductSku.d.ts +5 -0
- package/lib/solution/BookingTicket/utils/weighingProductSku.js +63 -0
- package/lib/solution/Sales/index.d.ts +1 -0
- package/lib/solution/Sales/index.js +5 -3
- package/lib/solution/ScanOrder/index.d.ts +14 -26
- package/lib/solution/ScanOrder/index.js +190 -449
- package/lib/solution/ScanOrder/types.d.ts +1 -21
- package/lib/solution/ScanOrder/utils.d.ts +0 -8
- package/lib/solution/ScanOrder/utils.js +0 -31
- package/lib/solution/ShopDiscount/index.d.ts +0 -1
- package/lib/solution/ShopDiscount/index.js +0 -14
- package/lib/solution/VenueBooking/index.d.ts +11 -39
- package/lib/solution/VenueBooking/index.js +123 -328
- package/lib/solution/VenueBooking/types.d.ts +0 -3
- package/lib/solution/VenueBooking/utils/resource.js +0 -1
- package/lib/solution/VenueBooking/utils/slotMerge.d.ts +4 -4
- package/lib/solution/VenueBooking/utils/slotMerge.js +4 -6
- package/lib/solution/index.d.ts +0 -1
- package/lib/solution/index.js +1 -3
- package/lib/types/index.d.ts +1 -1
- package/lib/utils/payment-number.d.ts +9 -0
- package/lib/utils/payment-number.js +64 -0
- package/package.json +1 -1
- package/dist/modules/Holder/index.d.ts +0 -48
- package/dist/modules/Holder/index.js +0 -640
- package/dist/modules/Holder/types.d.ts +0 -123
- package/dist/modules/Holder/types.js +0 -1
- package/dist/modules/Holder/utils.d.ts +0 -13
- package/dist/modules/Holder/utils.js +0 -34
- package/dist/modules/ResourcePlanner/index.d.ts +0 -24
- package/dist/modules/ResourcePlanner/index.js +0 -181
- package/dist/modules/ResourcePlanner/planner.d.ts +0 -14
- package/dist/modules/ResourcePlanner/planner.js +0 -1069
- package/dist/modules/ResourcePlanner/types.d.ts +0 -227
- package/dist/modules/ResourcePlanner/types.js +0 -1
- package/dist/solution/UnifiedBookingSales/index.d.ts +0 -183
- package/dist/solution/UnifiedBookingSales/index.js +0 -1871
- package/dist/solution/UnifiedBookingSales/types.d.ts +0 -143
- package/dist/solution/UnifiedBookingSales/types.js +0 -11
- package/lib/modules/Holder/index.d.ts +0 -48
- package/lib/modules/Holder/index.js +0 -402
- package/lib/modules/Holder/types.d.ts +0 -123
- package/lib/modules/Holder/types.js +0 -17
- package/lib/modules/Holder/utils.d.ts +0 -13
- package/lib/modules/Holder/utils.js +0 -71
- package/lib/modules/ResourcePlanner/index.d.ts +0 -24
- package/lib/modules/ResourcePlanner/index.js +0 -148
- package/lib/modules/ResourcePlanner/planner.d.ts +0 -14
- package/lib/modules/ResourcePlanner/planner.js +0 -933
- package/lib/modules/ResourcePlanner/types.d.ts +0 -227
- package/lib/modules/ResourcePlanner/types.js +0 -17
- package/lib/solution/UnifiedBookingSales/index.d.ts +0 -183
- package/lib/solution/UnifiedBookingSales/index.js +0 -1076
- package/lib/solution/UnifiedBookingSales/types.d.ts +0 -143
- package/lib/solution/UnifiedBookingSales/types.js +0 -33
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import type { ResourcePlannerModule } from '../../modules';
|
|
2
|
-
import type { OpenDataConfig } from '../../modules/OpenData';
|
|
3
|
-
import type { ResourcePlannerAssignment, ResourcePlannerAssignableSlotResult, ResourcePlannerContextInput, ResourcePlannerProjection, ResourcePlannerQuery, ResourcePlannerSelectionPatch, ResourcePlannerSnapshot, ResourcePlannerValidationResult } from '../../modules/ResourcePlanner';
|
|
4
|
-
import type { ProductListLoadProductsParams } from '../../modules/ProductList';
|
|
5
|
-
import type { LoadScheduleAvailableDateParams } from '../../modules/Schedule/types';
|
|
6
|
-
import type { BookingTicketState } from '../BookingTicket/types';
|
|
7
|
-
export declare enum UnifiedBookingSalesHooks {
|
|
8
|
-
onPlannerContextLoaded = "unifiedBookingSales:onPlannerContextLoaded",
|
|
9
|
-
onPlannerCommitted = "unifiedBookingSales:onPlannerCommitted"
|
|
10
|
-
}
|
|
11
|
-
export interface UnifiedBookingSalesState extends BookingTicketState {
|
|
12
|
-
resourcePlanner: ResourcePlannerModule;
|
|
13
|
-
}
|
|
14
|
-
/** Explicit OpenData target used by page-level UnifiedBookingSales skins. */
|
|
15
|
-
export interface UnifiedBookingSalesLoadOpenDataParams {
|
|
16
|
-
businessCode: string;
|
|
17
|
-
channel: string;
|
|
18
|
-
/** Bypasses the target-scoped in-memory cache. */
|
|
19
|
-
force?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface UnifiedBookingSalesLoadPlannerContextParams extends ResourcePlannerQuery {
|
|
22
|
-
/** ProductList request options used only when products are not supplied as raw/context data. */
|
|
23
|
-
productLoadParams?: ProductListLoadProductsParams;
|
|
24
|
-
/** Escape hatch for tests or callers that already own raw ProductList records. */
|
|
25
|
-
rawProducts?: Record<string, any>[];
|
|
26
|
-
/** Escape hatch for tests or callers that already own raw resource records. */
|
|
27
|
-
rawResources?: Record<string, any>[];
|
|
28
|
-
/** Fully normalized Planner context; takes precedence over API loading for supplied fields. */
|
|
29
|
-
context?: ResourcePlannerContextInput;
|
|
30
|
-
/** Enables the v2 resource API + schedule materialization path. */
|
|
31
|
-
useResourceDateApi?: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface UnifiedBookingSalesCommitPlannerSelectionParams {
|
|
34
|
-
/** Optional selection patch applied before validation and order mutation. */
|
|
35
|
-
selection?: ResourcePlannerSelectionPatch;
|
|
36
|
-
/** Directly supplies selected resource/time facts, usually from resolveAssignableSlots(). */
|
|
37
|
-
assignments?: ResourcePlannerAssignment[];
|
|
38
|
-
/** Defaults to false. True performs the real BaseSales / OrderModule submit after tempOrder is written. */
|
|
39
|
-
submitAfterCommit?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface UnifiedBookingSalesLoadProductsByScheduleDateParams extends Omit<ProductListLoadProductsParams, 'schedule_date' | 'product_ids'> {
|
|
42
|
-
/** The chosen calendar date, used for both availability lookup and ProductList schedule_date. */
|
|
43
|
-
date: string;
|
|
44
|
-
/** Optional caller-side filter applied after the availability result produces its product pool. */
|
|
45
|
-
product_ids?: number[];
|
|
46
|
-
/** Required by the availability API; this is not the low-code page id. */
|
|
47
|
-
custom_page_id?: number;
|
|
48
|
-
/** Availability API channel, commonly pc. ProductList keeps its own sales application channel. */
|
|
49
|
-
channel?: string;
|
|
50
|
-
}
|
|
51
|
-
export interface UnifiedBookingSalesStagePlannerProductsParams {
|
|
52
|
-
/** Products the customer selected before a time/resource booking exists. */
|
|
53
|
-
productIds: Array<number | string>;
|
|
54
|
-
productLoadParams?: ProductListLoadProductsParams;
|
|
55
|
-
rawProducts?: Record<string, any>[];
|
|
56
|
-
}
|
|
57
|
-
/** Ordinary retail product staging. No resource, time, or booking facts are required. */
|
|
58
|
-
export type UnifiedBookingSalesStageRetailProductsParams = UnifiedBookingSalesStagePlannerProductsParams;
|
|
59
|
-
/** Adds one ordinary retail product without replacing other retail lines already in the cart. */
|
|
60
|
-
export interface UnifiedBookingSalesAddRetailProductParams {
|
|
61
|
-
/** Prefer a supplied catalog record when the UI has already loaded it. */
|
|
62
|
-
product?: Record<string, any>;
|
|
63
|
-
/** Used to resolve a product from the current catalog or load it on demand. */
|
|
64
|
-
productId?: number | string;
|
|
65
|
-
/** Defaults to one. */
|
|
66
|
-
quantity?: number;
|
|
67
|
-
/** Only used when the product is not already present in the solution catalog. */
|
|
68
|
-
productLoadParams?: ProductListLoadProductsParams;
|
|
69
|
-
}
|
|
70
|
-
export interface UnifiedBookingSalesCommitResult {
|
|
71
|
-
tempOrder: Record<string, any> | null;
|
|
72
|
-
assignments: ResourcePlannerAssignment[];
|
|
73
|
-
validation: ResourcePlannerValidationResult;
|
|
74
|
-
submitResult?: unknown;
|
|
75
|
-
}
|
|
76
|
-
export interface UnifiedBookingSalesApplyPlannerDiscountsParams {
|
|
77
|
-
/** Customer whose cards/coupons should be loaded. Defaults to tempOrder.customer_id. */
|
|
78
|
-
customerId?: number | string;
|
|
79
|
-
/** Optional explicit card/coupon id. When provided, Rules applies this card instead of auto-picking another card. */
|
|
80
|
-
preferredDiscountId?: number | string;
|
|
81
|
-
/** Defaults to true: after loading eligible cards, let Rules choose the best valid combination. */
|
|
82
|
-
applyBestDiscount?: boolean;
|
|
83
|
-
}
|
|
84
|
-
export interface UnifiedBookingSalesDiscountItem {
|
|
85
|
-
id: number | string;
|
|
86
|
-
name?: string;
|
|
87
|
-
type?: string;
|
|
88
|
-
available: boolean;
|
|
89
|
-
selected: boolean;
|
|
90
|
-
savedAmount?: number;
|
|
91
|
-
unavailableReason?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface UnifiedBookingSalesDiscountApplication {
|
|
94
|
-
discountId?: number | string;
|
|
95
|
-
discountName?: string;
|
|
96
|
-
discountType?: string;
|
|
97
|
-
productId?: number | string;
|
|
98
|
-
productTitle?: string;
|
|
99
|
-
productUid?: string;
|
|
100
|
-
amount: number;
|
|
101
|
-
}
|
|
102
|
-
export interface UnifiedBookingSalesDiscountResult {
|
|
103
|
-
status: 'applied' | 'loaded' | 'no_customer';
|
|
104
|
-
customerId: number | null;
|
|
105
|
-
preferredDiscountFound?: boolean;
|
|
106
|
-
/** True only when the requested card is both selected and written into a planner product line. */
|
|
107
|
-
preferredDiscountApplied?: boolean;
|
|
108
|
-
availableDiscounts: UnifiedBookingSalesDiscountItem[];
|
|
109
|
-
selectedDiscounts: UnifiedBookingSalesDiscountItem[];
|
|
110
|
-
applications: UnifiedBookingSalesDiscountApplication[];
|
|
111
|
-
summaryBefore?: unknown;
|
|
112
|
-
summaryAfter?: unknown;
|
|
113
|
-
}
|
|
114
|
-
export interface UnifiedBookingSalesApi {
|
|
115
|
-
/** Loads board OpenData for a concrete business + channel target. */
|
|
116
|
-
loadOpenData: (params: UnifiedBookingSalesLoadOpenDataParams) => Promise<OpenDataConfig>;
|
|
117
|
-
/** Returns the latest OpenData payload cached by this solution instance. */
|
|
118
|
-
getOpenData: () => OpenDataConfig | null;
|
|
119
|
-
/** Date-first calendar availability backed by ScheduleModule. */
|
|
120
|
-
loadScheduleAvailableDate: (params: LoadScheduleAvailableDateParams) => Promise<unknown>;
|
|
121
|
-
/** Date-first product pool derived from schedule date ids and globally sellable products. */
|
|
122
|
-
loadProductsByScheduleDate: (params: UnifiedBookingSalesLoadProductsByScheduleDateParams) => Promise<unknown[]>;
|
|
123
|
-
/** Adds product lines only; booking creation is intentionally deferred. */
|
|
124
|
-
stagePlannerProducts: (params: UnifiedBookingSalesStagePlannerProductsParams) => Promise<Record<string, any> | null>;
|
|
125
|
-
/** Adds ordinary product lines only. It never creates bookings or invokes ResourcePlanner. */
|
|
126
|
-
stageRetailProducts: (params: UnifiedBookingSalesStageRetailProductsParams) => Promise<Record<string, any> | null>;
|
|
127
|
-
/** Adds one ordinary retail line while preserving all existing cart lines. */
|
|
128
|
-
addRetailProduct: (params: UnifiedBookingSalesAddRetailProductParams) => Promise<Record<string, any>[]>;
|
|
129
|
-
/** Loads and normalizes all IO data needed for the pure ResourcePlanner. */
|
|
130
|
-
loadPlannerContext: (params?: UnifiedBookingSalesLoadPlannerContextParams) => Promise<ResourcePlannerSnapshot>;
|
|
131
|
-
/** Reads continuous availability cells and UI-oriented aggregates. */
|
|
132
|
-
queryPlannerAvailability: (query?: ResourcePlannerQuery) => Promise<ResourcePlannerProjection>;
|
|
133
|
-
/** Produces selectable slots and the assignments required to commit them. */
|
|
134
|
-
resolveAssignableSlots: (query?: ResourcePlannerQuery) => ResourcePlannerAssignableSlotResult;
|
|
135
|
-
setPlannerSelection: (patch: ResourcePlannerSelectionPatch) => ResourcePlannerSnapshot;
|
|
136
|
-
autoAssignPlanner: (query?: ResourcePlannerQuery) => Promise<ResourcePlannerSnapshot>;
|
|
137
|
-
validatePlannerSelection: () => ResourcePlannerValidationResult;
|
|
138
|
-
/** Validates, writes to tempOrder, and only optionally makes a real submit request. */
|
|
139
|
-
commitPlannerSelection: (params?: UnifiedBookingSalesCommitPlannerSelectionParams) => Promise<UnifiedBookingSalesCommitResult>;
|
|
140
|
-
/** Loads the current customer's cards/coupons, optionally applies the best one, and reports line applications. */
|
|
141
|
-
applyPlannerDiscounts: (params?: UnifiedBookingSalesApplyPlannerDiscountsParams) => Promise<UnifiedBookingSalesDiscountResult>;
|
|
142
|
-
getPlannerSnapshot: () => ResourcePlannerSnapshot;
|
|
143
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/solution/UnifiedBookingSales/types.ts
|
|
20
|
-
var types_exports = {};
|
|
21
|
-
__export(types_exports, {
|
|
22
|
-
UnifiedBookingSalesHooks: () => UnifiedBookingSalesHooks
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(types_exports);
|
|
25
|
-
var UnifiedBookingSalesHooks = /* @__PURE__ */ ((UnifiedBookingSalesHooks2) => {
|
|
26
|
-
UnifiedBookingSalesHooks2["onPlannerContextLoaded"] = "unifiedBookingSales:onPlannerContextLoaded";
|
|
27
|
-
UnifiedBookingSalesHooks2["onPlannerCommitted"] = "unifiedBookingSales:onPlannerCommitted";
|
|
28
|
-
return UnifiedBookingSalesHooks2;
|
|
29
|
-
})(UnifiedBookingSalesHooks || {});
|
|
30
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
UnifiedBookingSalesHooks
|
|
33
|
-
});
|