@pisell/pisellos 0.10.71 → 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/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/UnifiedBookingSales/index.d.ts +15 -0
- package/dist/solution/UnifiedBookingSales/index.js +1082 -596
- package/dist/solution/UnifiedBookingSales/types.d.ts +17 -1
- 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/UnifiedBookingSales/index.d.ts +15 -0
- package/lib/solution/UnifiedBookingSales/index.js +343 -44
- package/lib/solution/UnifiedBookingSales/types.d.ts +17 -1
- package/package.json +1 -1
|
@@ -59,6 +59,12 @@ export interface UnifiedBookingSalesPrepareAvailabilityProjectionParams {
|
|
|
59
59
|
dateRange?: Partial<AvailabilityDateRange>;
|
|
60
60
|
catalogScope?: UnifiedBookingSalesCatalogScope;
|
|
61
61
|
rawProducts?: Record<string, any>[];
|
|
62
|
+
/** Keep an independent catalog/projection without replacing the public sales catalog. Defaults to true. */
|
|
63
|
+
publishCatalog?: boolean;
|
|
64
|
+
/** Await remote occupancy refresh instead of stale-while-revalidate. Ignores rawResources; does not lock resources. */
|
|
65
|
+
refreshOccupancies?: boolean;
|
|
66
|
+
/** Enforce configured sale cutoffs and disable manual POS availability overrides for this context. Defaults to false. */
|
|
67
|
+
strictAvailability?: boolean;
|
|
62
68
|
rawResources?: Record<string, any>[];
|
|
63
69
|
rawOccupancies?: AvailabilityOccupancy[];
|
|
64
70
|
editingProductLineUids?: string[];
|
|
@@ -152,10 +158,20 @@ export interface UnifiedBookingSalesAddRetailProductParams {
|
|
|
152
158
|
productId?: number | string;
|
|
153
159
|
quantity?: number;
|
|
154
160
|
productLoadParams?: ProductListLoadProductsParams;
|
|
161
|
+
salesNotes?: SalesNoteDraftInput[];
|
|
162
|
+
availabilityCommitGuard?: () => void;
|
|
155
163
|
}
|
|
156
164
|
export interface ContextualCommitAvailabilitySelectionParams {
|
|
157
|
-
mode: 'add' | 'edit';
|
|
165
|
+
mode: 'add' | 'edit' | 'replace';
|
|
166
|
+
/** Local UI intent guard, checked again immediately before the Order mutation. */
|
|
167
|
+
availabilityCommitGuard?: () => void;
|
|
158
168
|
productLineUid?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Confirmed complete Party extras set (configured, service-datetime-repriced retail source products).
|
|
171
|
+
* Required for replace; edit opts into the same atomic path. Existing extras keep their own
|
|
172
|
+
* metadata.unique_identification_number; new extras omit it. [] explicitly removes all owned extras.
|
|
173
|
+
*/
|
|
174
|
+
relatedRetailProducts?: Record<string, any>[];
|
|
159
175
|
orderProduct: Record<string, any>;
|
|
160
176
|
candidate: ContextualProductTimeRange;
|
|
161
177
|
requirementSelections: AvailabilityRequirementSelection[];
|