@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.
@@ -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[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.10.71",
4
+ "version": "0.10.72",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",