@pisell/private-materials 6.11.658 → 6.11.660

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.
Files changed (119) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/bigSale/hooks/useSyncBigSaleCartToCds.js +44 -12
  8. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -2
  9. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  10. package/es/components/booking/info/service2/utils.d.ts +1 -1
  11. package/es/components/booking/utils.d.ts +2 -2
  12. package/es/components/eftposPay/amount.d.ts +1 -1
  13. package/es/components/eftposPay/app.d.ts +1 -1
  14. package/es/components/eftposPay/device.d.ts +1 -1
  15. package/es/components/eftposPay/hooks.d.ts +1 -1
  16. package/es/components/eftposPay/store/index.d.ts +2 -2
  17. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  18. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  19. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  20. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  21. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  22. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  23. package/es/plus/piPaymentOld/ui/eftpos/hooks/usePaymentSessionController.d.ts +1 -1
  24. package/es/plus/piPaymentUI/eftpos/hooks/usePaymentSessionController.d.ts +1 -1
  25. package/es/plus/pisellGlobalSearch/providers/orderResultViews.d.ts +1 -1
  26. package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
  27. package/es/plus/pisellReservation/hooks/useReservationResourceWallPersist.d.ts +0 -1
  28. package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
  29. package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -1
  30. package/es/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +0 -1
  31. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  32. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  33. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  34. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  35. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  36. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  37. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  38. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  39. package/es/plus/saasDevice/appDevicePlanning/hooks/useAppDeviceList.d.ts +0 -1
  40. package/es/plus/saasDevice/appDevicePlanning/hooks/useAppWorkAreas.d.ts +0 -1
  41. package/es/plus/saasDevice/appPeripheral/hooks/useConnectDeviceModal.d.ts +0 -1
  42. package/es/plus/saasDevice/devicePlanning/modules/workAreas/hooks/useWorkAreas.d.ts +0 -1
  43. package/es/plus/saleDetail/hooks/useSaleDetailBookingLineItemProps.d.ts +0 -1
  44. package/es/plus/saleDetail/hooks/useSaleDetailProductSelectionModal.d.ts +0 -1
  45. package/es/plus/saleDetail/tmpl/B/components/WalletPass/utils/format.d.ts +1 -1
  46. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  47. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  48. package/es/pro/Selector/Selector.d.ts +1 -1
  49. package/es/pro/skuDetailModal/flow/i18n.d.ts +1 -2
  50. package/es/pro/skuDetailModal/flow/modules/autoResolution.d.ts +4 -5
  51. package/es/pro/skuDetailModal/flow/modules/bookingPrice/index.d.ts +5 -5
  52. package/es/pro/skuDetailModal/flow/modules/date/index.d.ts +2 -20
  53. package/es/pro/skuDetailModal/flow/modules/holder/index.d.ts +1 -2
  54. package/es/pro/skuDetailModal/flow/modules/price/index.d.ts +2 -2
  55. package/es/pro/skuDetailModal/flow/modules/resource/index.d.ts +1 -2
  56. package/es/pro/skuDetailModal/flow/modules/resource/model.d.ts +1 -1
  57. package/es/pro/skuDetailModal/flow/modules/resource/policy.d.ts +1 -2
  58. package/es/pro/skuDetailModal/flow/modules/shared/index.d.ts +5 -6
  59. package/es/pro/skuDetailModal/flow/modules/sku/index.d.ts +1 -2
  60. package/es/pro/skuDetailModal/flow/modules/time/index.d.ts +4 -5
  61. package/es/pro/skuDetailModal/flow/presets.d.ts +5 -5
  62. package/es/pro/skuDetailModal/flow/registry.d.ts +19 -54
  63. package/lib/components/bigSale/hooks/useSyncBigSaleCartToCds.js +54 -19
  64. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -2
  65. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  66. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  67. package/lib/components/booking/utils.d.ts +2 -2
  68. package/lib/components/eftposPay/amount.d.ts +1 -1
  69. package/lib/components/eftposPay/app.d.ts +1 -1
  70. package/lib/components/eftposPay/device.d.ts +1 -1
  71. package/lib/components/eftposPay/hooks.d.ts +1 -1
  72. package/lib/components/eftposPay/store/index.d.ts +2 -2
  73. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  74. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  75. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  76. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  77. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  78. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  79. package/lib/plus/piPaymentOld/ui/eftpos/hooks/usePaymentSessionController.d.ts +1 -1
  80. package/lib/plus/piPaymentUI/eftpos/hooks/usePaymentSessionController.d.ts +1 -1
  81. package/lib/plus/pisellGlobalSearch/providers/orderResultViews.d.ts +1 -1
  82. package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +0 -1
  83. package/lib/plus/pisellReservation/hooks/useReservationResourceWallPersist.d.ts +0 -1
  84. package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +0 -1
  85. package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -1
  86. package/lib/plus/pisellSalesManagement/hooks/useSalesGridData.d.ts +0 -1
  87. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  88. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  89. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  90. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  91. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  92. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  93. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  94. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  95. package/lib/plus/saasDevice/appDevicePlanning/hooks/useAppDeviceList.d.ts +0 -1
  96. package/lib/plus/saasDevice/appDevicePlanning/hooks/useAppWorkAreas.d.ts +0 -1
  97. package/lib/plus/saasDevice/appPeripheral/hooks/useConnectDeviceModal.d.ts +0 -1
  98. package/lib/plus/saasDevice/devicePlanning/modules/workAreas/hooks/useWorkAreas.d.ts +0 -1
  99. package/lib/plus/saleDetail/hooks/useSaleDetailBookingLineItemProps.d.ts +0 -1
  100. package/lib/plus/saleDetail/hooks/useSaleDetailProductSelectionModal.d.ts +0 -1
  101. package/lib/plus/saleDetail/tmpl/B/components/WalletPass/utils/format.d.ts +1 -1
  102. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -1
  103. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  104. package/lib/pro/Selector/Selector.d.ts +1 -1
  105. package/lib/pro/skuDetailModal/flow/i18n.d.ts +1 -2
  106. package/lib/pro/skuDetailModal/flow/modules/autoResolution.d.ts +4 -5
  107. package/lib/pro/skuDetailModal/flow/modules/bookingPrice/index.d.ts +5 -5
  108. package/lib/pro/skuDetailModal/flow/modules/date/index.d.ts +2 -20
  109. package/lib/pro/skuDetailModal/flow/modules/holder/index.d.ts +1 -2
  110. package/lib/pro/skuDetailModal/flow/modules/price/index.d.ts +2 -2
  111. package/lib/pro/skuDetailModal/flow/modules/resource/index.d.ts +1 -2
  112. package/lib/pro/skuDetailModal/flow/modules/resource/model.d.ts +1 -1
  113. package/lib/pro/skuDetailModal/flow/modules/resource/policy.d.ts +1 -2
  114. package/lib/pro/skuDetailModal/flow/modules/shared/index.d.ts +5 -6
  115. package/lib/pro/skuDetailModal/flow/modules/sku/index.d.ts +1 -2
  116. package/lib/pro/skuDetailModal/flow/modules/time/index.d.ts +4 -5
  117. package/lib/pro/skuDetailModal/flow/presets.d.ts +5 -5
  118. package/lib/pro/skuDetailModal/flow/registry.d.ts +19 -54
  119. package/package.json +3 -3
@@ -56,7 +56,7 @@ export declare const NO_RESOURCE_TEXT_KEY = "pisell2.text.sku.detail.modal.resou
56
56
  export declare const RESOURCE_REFRESH_FIELDS: readonly ["productData", "quantity", "booking.startDate", "booking.endDate", "booking.startTime", "booking.endTime", "booking.duration", "booking.capacity", "booking.selectedCandidate"];
57
57
  export declare const nextResourceRequestId: () => number;
58
58
  /** Availability 资源选择转换为旧 BookingContext 使用的 resource map。 */
59
- export declare const buildLegacyResourceMap: (groups: NonNullable<ResourceModuleData['availabilityRange']>['requirementGroups'], selections: NonNullable<SelectionFlowContextValue<string>['draft']['booking']['requirementSelections']>, existingResource?: unknown) => Record<string, any[]>;
59
+ export declare const buildLegacyResourceMap: (groups: NonNullable<ResourceModuleData['availabilityRange']>['requirementGroups'], selections: NonNullable<SelectionFlowContextValue<string>['draft']['booking']['requirementSelections']>, existingResource?: unknown) => any;
60
60
  export declare const collectExistingResourceIds: (value: unknown) => Array<number | string>;
61
61
  /** relation_id=0 要按 form_id 恢复,因为多个资源组共享占位 ID。 */
62
62
  export declare const collectNoResourceFormIds: (value: unknown) => string[];
@@ -1,4 +1,3 @@
1
- import type { SelectionFlowContextValue } from '../../types';
2
1
  import type { ResourceModuleData } from './model';
3
2
  interface SelectedResourcePolicy {
4
3
  policyId: number | string;
@@ -8,5 +7,5 @@ interface SelectedResourcePolicy {
8
7
  * 收集当前真正选中的资源协议:兼容旧 Booking renderItem 和 UBS
9
8
  * Availability option,并按协议 ID 去重。
10
9
  */
11
- export declare const collectSelectedResourcePolicies: (context: SelectionFlowContextValue<string>, data?: ResourceModuleData) => SelectedResourcePolicy[];
10
+ export declare const collectSelectedResourcePolicies: (context: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>, data?: ResourceModuleData) => SelectedResourcePolicy[];
12
11
  export {};
@@ -1,6 +1,5 @@
1
- import type { FlowModuleProps, SelectionFlowContextValue } from '../../types';
2
1
  export declare type ModuleOptions = Readonly<Record<string, unknown>>;
3
- export declare const getModuleOptions: (module: FlowModuleProps['module']) => ModuleOptions;
2
+ export declare const getModuleOptions: (module: AtomicCompiledSelectionFlowModuleConfig<TType>) => ModuleOptions;
4
3
  export declare const hasSkuSelectionOptions: (productData: unknown) => boolean;
5
4
  /** 商品根级或任一规格启用了按重量销售。 */
6
5
  export declare const hasWeighingSelection: (productData: unknown) => boolean;
@@ -19,21 +18,21 @@ export declare const isSameSkuSelection: (left: unknown, right: unknown) => bool
19
18
  * 将组件层 Draft 合并成现有预约子组件可读取的 cacheItem 形状。
20
19
  * 这里只做选择态字段映射,不生成购物车或订单数据。
21
20
  */
22
- export declare const buildDraftCacheItem: (context: SelectionFlowContextValue<string>, source?: unknown) => any;
21
+ export declare const buildDraftCacheItem: (context: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>, source?: unknown) => any;
23
22
  /**
24
23
  * 对齐旧 addService/editService:SKU(尤其套餐)变化后,以最新选择重新生成
25
24
  * capacity。package capacity 直接来自参与人数统计的套餐子商品 quantity;
26
25
  * custom/无配置继续沿用 setDefaultCapacitys 的既有默认规则。
27
26
  */
28
- export declare const resolveSelectionFlowCapacityForSku: (context: SelectionFlowContextValue<string>, skuValue: Readonly<Record<string, unknown>>) => any[];
27
+ export declare const resolveSelectionFlowCapacityForSku: (context: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>, skuValue: Readonly<Record<string, unknown>>) => any[];
29
28
  /**
30
29
  * 单份预约的 Guests:capacity 各项之和。
31
30
  * UBS commit 会另外接收 bookingCount,因此这里不能再乘商品数量;否则多份
32
31
  * 预约会同时放大 partySize 和 bookingCount,造成容量被重复计算。
33
32
  */
34
- export declare const resolveSelectionFlowPartySize: (draft: SelectionFlowContextValue<string>['draft'], fallback?: number) => number;
33
+ export declare const resolveSelectionFlowPartySize: (draft: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>, fallback?: number) => number;
35
34
  /**
36
35
  * Availability 查询没有独立 bookingCount 参数,需要用总 Guests 提前过滤
37
36
  * 日期、时间和资源;真正 commit 时则使用上面的单份 partySize + bookingCount。
38
37
  */
39
- export declare const resolveSelectionFlowQueryPartySize: (draft: SelectionFlowContextValue<string>['draft'], fallback?: number) => number;
38
+ export declare const resolveSelectionFlowQueryPartySize: (draft: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>, fallback?: number) => number;
@@ -1,2 +1 @@
1
- import type { SelectionFlowModuleAdapter } from '../../types';
2
- export declare const skuFlowModule: SelectionFlowModuleAdapter<string>;
1
+ export declare const skuFlowModule: any;
@@ -1,14 +1,13 @@
1
- import dayjs from 'dayjs';
2
- import type { SelectionFlowContextValue, SelectionFlowModuleAdapter } from '../../types';
1
+ import type { SelectionFlowModuleAdapter } from '../../types';
3
2
  /**
4
3
  * 把现有商品/缓存中的 duration 收敛为 Flow Draft 的可控值。
5
4
  * 普通预约统一使用分钟;跨日预约保留天数标量。
6
5
  */
7
6
  export declare const normalizeSelectionDuration: (duration: unknown) => number | string | null;
8
- export declare const deriveTimeBooking: (context: SelectionFlowContextValue<string>, startTime: string | null, duration: number | string | null) => {
7
+ export declare const deriveTimeBooking: (context: AtomicSelectionFlowContextValue<import("../../types").SelectionFlowDraft, import("../../types").SelectionFlowDraftUpdate, import("../../types").SelectionDraftField, TType, import("../../types").SelectionFlowServices, unknown>, startTime: string | null, duration: number | string | null) => {
9
8
  duration: string | number | null;
10
- startDate: dayjs.Dayjs | null;
11
- endDate: dayjs.Dayjs | null;
9
+ startDate: any;
10
+ endDate: any;
12
11
  endTime: string | null;
13
12
  };
14
13
  export declare const timeFlowModule: SelectionFlowModuleAdapter;
@@ -1,10 +1,10 @@
1
- import type { ResolveSelectionFlowSteps, SelectionModuleType, SelectionFlowStepConfig } from './types';
1
+ import type { ResolveSelectionFlowSteps, SelectionFlowStepConfig } from './types';
2
2
  /** 普通商品只展示其真实存在的规格与称重能力。 */
3
3
  export declare const resolveNormalProductSelectionFlowSteps: ResolveSelectionFlowSteps;
4
4
  /** 用户端:每项选择能力独立成一步。 */
5
5
  export declare const customerSteps: readonly SelectionFlowStepConfig[];
6
6
  /** POS:先完成日期与 SKU,再合并其余预约模块。 */
7
- export declare const posSteps: readonly SelectionFlowStepConfig<SelectionModuleType>[];
7
+ export declare const posSteps: readonly AtomicSelectionFlowStepConfig<TType>[];
8
8
  /**
9
9
  * 统一预约交互:先选 SKU,再在同一步联动日期与时间,
10
10
  * 最后分别选择资源和 Holder。Kiosk 与 POS 预约模板共享这一组步骤。
@@ -14,7 +14,7 @@ export declare const posSteps: readonly SelectionFlowStepConfig<SelectionModuleT
14
14
  * 该日期应由当前销售页业务日期(新增)或购物车预约行的 start_date(编辑)
15
15
  * 预先写入 Flow Draft,不能因为界面隐藏日期就把日期上下文一起删除。
16
16
  */
17
- export declare const bookingSelectionFlowSteps: readonly SelectionFlowStepConfig<SelectionModuleType>[];
17
+ export declare const bookingSelectionFlowSteps: readonly AtomicSelectionFlowStepConfig<TType>[];
18
18
  /**
19
19
  * POS 旧服务抽屉对应的手动预约流程。
20
20
  *
@@ -89,7 +89,7 @@ export declare const resolveBookingSelectionFlowSteps: ResolveSelectionFlowSteps
89
89
  */
90
90
  export declare const resolveKioskBookingSelectionFlowSteps: ResolveSelectionFlowSteps;
91
91
  export declare const selectionFlowPresets: {
92
- readonly customer: readonly SelectionFlowStepConfig<SelectionModuleType>[];
93
- readonly pos: readonly SelectionFlowStepConfig<SelectionModuleType>[];
92
+ readonly customer: readonly AtomicSelectionFlowStepConfig<TType>[];
93
+ readonly pos: readonly AtomicSelectionFlowStepConfig<TType>[];
94
94
  };
95
95
  export declare type SelectionFlowPresetName = keyof typeof selectionFlowPresets;
@@ -1,31 +1,13 @@
1
1
  /// <reference types="react" />
2
- import type { SelectionFlowModuleAdapter } from './types';
3
2
  /**
4
3
  * 第一期使用静态注册表,模块 key 同时作为 SelectionModuleType 的类型来源。
5
4
  * 新类型只需实现适配器并在此增加一项,不提供运行时 register API。
6
5
  */
7
6
  export declare const flowModuleRegistry: {
8
- readonly sku: SelectionFlowModuleAdapter<string>;
9
- readonly date: SelectionFlowModuleAdapter<string>;
10
- readonly multiDayDate: {
11
- type: string;
12
- validateAutoResolution: undefined;
13
- provides: string[];
14
- initializeWhileInactive?: boolean | undefined;
15
- hardRequires?: readonly import("./types").SelectionDraftField[] | undefined;
16
- refreshOn?: readonly import("./types").SelectionDraftField[] | undefined;
17
- shouldRefresh?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, change: import("@pisell/materials").SelectionFlowDraftChange<import("./types").SelectionFlowDraft, import("./types").SelectionDraftField, string>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => boolean) | undefined;
18
- isApplicable?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => boolean) | undefined;
19
- canInitialize?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => boolean | Promise<boolean>) | undefined;
20
- refresh?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => void | Promise<void>) | undefined;
21
- reconcile?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, change: import("@pisell/materials").SelectionFlowDraftChange<import("./types").SelectionFlowDraft, import("./types").SelectionDraftField, string>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => void | Promise<void>) | undefined;
22
- clearDependencies?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, change: import("@pisell/materials").SelectionFlowDraftChange<import("./types").SelectionFlowDraft, import("./types").SelectionDraftField, string>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => void | Promise<void>) | undefined;
23
- validate?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, handle: import("@pisell/materials").FlowModuleHandle | null, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => import("@pisell/materials").FlowModuleValidationReturn) | undefined;
24
- beforeLeave?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, handle: import("@pisell/materials").FlowModuleHandle | null, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => import("@pisell/materials").FlowModuleBeforeLeaveReturn) | undefined;
25
- Component: import("react").ComponentType<import("./types").FlowModuleProps<string>>;
26
- rendersOwnError?: boolean | undefined;
27
- };
28
- readonly time: SelectionFlowModuleAdapter<string>;
7
+ readonly sku: any;
8
+ readonly date: any;
9
+ readonly multiDayDate: any;
10
+ readonly time: any;
29
11
  readonly bookingPrice: {
30
12
  type: string;
31
13
  Component: import("react").FC<import("./types").FlowModuleProps<string>>;
@@ -34,11 +16,11 @@ export declare const flowModuleRegistry: {
34
16
  refreshOn: string[];
35
17
  isApplicable: (context: any) => boolean;
36
18
  canInitialize: (context: any) => boolean;
37
- refresh: (context: import("./types").SelectionFlowContextValue<string>, module: import("./types").CompiledSelectionFlowModuleConfig<string>) => Promise<void>;
38
- shouldRefresh: (_context: any, change: any) => boolean;
19
+ refresh: (context: AtomicSelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, TType, import("./types").SelectionFlowServices, unknown>, module: AtomicCompiledSelectionFlowModuleConfig<TType_1>) => Promise<void>;
20
+ shouldRefresh: (_context: any, change: any) => any;
39
21
  clearDependencies: (context: any, change: any, module: any) => void;
40
22
  validate: (context: any, handle: any) => any;
41
- validateAutoResolution: (context: import("./types").SelectionFlowContextValue<string>) => boolean;
23
+ validateAutoResolution: (context: AtomicSelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, TType, import("./types").SelectionFlowServices, unknown>) => boolean;
42
24
  };
43
25
  readonly capacity: {
44
26
  type: string;
@@ -52,8 +34,8 @@ export declare const flowModuleRegistry: {
52
34
  validate: (context: any, handle: any) => any;
53
35
  validateAutoResolution: (context: any) => boolean;
54
36
  };
55
- readonly resource: SelectionFlowModuleAdapter<string>;
56
- readonly holder: SelectionFlowModuleAdapter<string>;
37
+ readonly resource: any;
38
+ readonly holder: any;
57
39
  readonly price: {
58
40
  type: string;
59
41
  Component: import("react").FC<import("./types").FlowModuleProps<string>>;
@@ -75,28 +57,11 @@ export declare const flowModuleRegistry: {
75
57
  };
76
58
  }, satisfies: any, Record: any;
77
59
  export declare type RegisteredSelectionModuleType = keyof typeof flowModuleRegistry;
78
- export declare const getFlowModuleAdapter: <TType extends "weighing" | "bookingPrice" | "multiDayDate" | "capacity" | "price" | "sku" | "date" | "time" | "resource" | "holder">(type: TType) => {
79
- readonly sku: SelectionFlowModuleAdapter<string>;
80
- readonly date: SelectionFlowModuleAdapter<string>;
81
- readonly multiDayDate: {
82
- type: string;
83
- validateAutoResolution: undefined;
84
- provides: string[];
85
- initializeWhileInactive?: boolean | undefined;
86
- hardRequires?: readonly import("./types").SelectionDraftField[] | undefined;
87
- refreshOn?: readonly import("./types").SelectionDraftField[] | undefined;
88
- shouldRefresh?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, change: import("@pisell/materials").SelectionFlowDraftChange<import("./types").SelectionFlowDraft, import("./types").SelectionDraftField, string>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => boolean) | undefined;
89
- isApplicable?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => boolean) | undefined;
90
- canInitialize?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => boolean | Promise<boolean>) | undefined;
91
- refresh?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => void | Promise<void>) | undefined;
92
- reconcile?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, change: import("@pisell/materials").SelectionFlowDraftChange<import("./types").SelectionFlowDraft, import("./types").SelectionDraftField, string>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => void | Promise<void>) | undefined;
93
- clearDependencies?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, change: import("@pisell/materials").SelectionFlowDraftChange<import("./types").SelectionFlowDraft, import("./types").SelectionDraftField, string>, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => void | Promise<void>) | undefined;
94
- validate?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, handle: import("@pisell/materials").FlowModuleHandle | null, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => import("@pisell/materials").FlowModuleValidationReturn) | undefined;
95
- beforeLeave?: ((context: import("@pisell/materials").SelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, string, import("./types").SelectionFlowServices, unknown>, handle: import("@pisell/materials").FlowModuleHandle | null, module: import("@pisell/materials").CompiledSelectionFlowModuleConfig<string>) => import("@pisell/materials").FlowModuleBeforeLeaveReturn) | undefined;
96
- Component: import("react").ComponentType<import("./types").FlowModuleProps<string>>;
97
- rendersOwnError?: boolean | undefined;
98
- };
99
- readonly time: SelectionFlowModuleAdapter<string>;
60
+ export declare const getFlowModuleAdapter: <TType extends "time" | "resource" | "holder" | "price" | "date" | "weighing" | "bookingPrice" | "multiDayDate" | "capacity" | "sku">(type: TType) => {
61
+ readonly sku: any;
62
+ readonly date: any;
63
+ readonly multiDayDate: any;
64
+ readonly time: any;
100
65
  readonly bookingPrice: {
101
66
  type: string;
102
67
  Component: import("react").FC<import("./types").FlowModuleProps<string>>;
@@ -105,11 +70,11 @@ export declare const getFlowModuleAdapter: <TType extends "weighing" | "bookingP
105
70
  refreshOn: string[];
106
71
  isApplicable: (context: any) => boolean;
107
72
  canInitialize: (context: any) => boolean;
108
- refresh: (context: import("./types").SelectionFlowContextValue<string>, module: import("./types").CompiledSelectionFlowModuleConfig<string>) => Promise<void>;
109
- shouldRefresh: (_context: any, change: any) => boolean;
73
+ refresh: (context: AtomicSelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, TType, import("./types").SelectionFlowServices, unknown>, module: AtomicCompiledSelectionFlowModuleConfig<TType_1>) => Promise<void>;
74
+ shouldRefresh: (_context: any, change: any) => any;
110
75
  clearDependencies: (context: any, change: any, module: any) => void;
111
76
  validate: (context: any, handle: any) => any;
112
- validateAutoResolution: (context: import("./types").SelectionFlowContextValue<string>) => boolean;
77
+ validateAutoResolution: (context: AtomicSelectionFlowContextValue<import("./types").SelectionFlowDraft, import("./types").SelectionFlowDraftUpdate, import("./types").SelectionDraftField, TType, import("./types").SelectionFlowServices, unknown>) => boolean;
113
78
  };
114
79
  readonly capacity: {
115
80
  type: string;
@@ -123,8 +88,8 @@ export declare const getFlowModuleAdapter: <TType extends "weighing" | "bookingP
123
88
  validate: (context: any, handle: any) => any;
124
89
  validateAutoResolution: (context: any) => boolean;
125
90
  };
126
- readonly resource: SelectionFlowModuleAdapter<string>;
127
- readonly holder: SelectionFlowModuleAdapter<string>;
91
+ readonly resource: any;
92
+ readonly holder: any;
128
93
  readonly price: {
129
94
  type: string;
130
95
  Component: import("react").FC<import("./types").FlowModuleProps<string>>;
@@ -336,7 +336,7 @@ var buildCdsProductPayload = (cartLine, params) => {
336
336
  return payload;
337
337
  };
338
338
  var buildCartUpdatePayload = (context, params) => {
339
- var _a, _b;
339
+ var _a, _b, _c, _d, _e, _f, _g;
340
340
  const cartLines = getCartProductLines(context == null ? void 0 : context.cart);
341
341
  if (!cartLines.length) {
342
342
  return {
@@ -347,13 +347,14 @@ var buildCartUpdatePayload = (context, params) => {
347
347
  const products = cartLines.map(
348
348
  (cartLine) => buildCdsProductPayload(cartLine, params)
349
349
  );
350
- const summary = (_a = context.summary) == null ? void 0 : _a.summary;
350
+ const contextSummary = (_a = context.summary) == null ? void 0 : _a.summary;
351
351
  const tempOrder = (_b = context.sales) == null ? void 0 : _b.tempOrder;
352
- const payments = tempOrder == null ? void 0 : tempOrder.payments;
352
+ const bookingTicket = (_c = context.sales) == null ? void 0 : _c.bookingTicket;
353
+ const amountSnapshot = (_d = bookingTicket == null ? void 0 : bookingTicket.getOrderAmountSnapshot) == null ? void 0 : _d.call(bookingTicket);
354
+ const summary = (amountSnapshot == null ? void 0 : amountSnapshot.summary) ?? contextSummary;
355
+ const currentTempOrder = ((_e = bookingTicket == null ? void 0 : bookingTicket.getTempOrder) == null ? void 0 : _e.call(bookingTicket)) || tempOrder;
356
+ const payments = currentTempOrder == null ? void 0 : currentTempOrder.payments;
353
357
  const isTaxIncluded = Number(tempOrder == null ? void 0 : tempOrder.is_price_include_tax) === 1;
354
- const hasPendingWalletPayment = toArray(payments).some(
355
- isPendingWalletPayment
356
- );
357
358
  const cartProducts = cartLines.map((cartLine) => cartLine.product);
358
359
  const fees = [
359
360
  {
@@ -377,7 +378,12 @@ var buildCartUpdatePayload = (context, params) => {
377
378
  type: "tax"
378
379
  });
379
380
  }
380
- fees.push(...collectOrderPassFees(tempOrder == null ? void 0 : tempOrder.discount_list));
381
+ const cartOrderPassFees = collectOrderPassFees(
382
+ (_f = context == null ? void 0 : context.cart) == null ? void 0 : _f.discountList
383
+ );
384
+ fees.push(
385
+ ...cartOrderPassFees.length ? cartOrderPassFees : collectOrderPassFees(tempOrder == null ? void 0 : tempOrder.discount_list)
386
+ );
381
387
  if (toFiniteNumber(tempOrder == null ? void 0 : tempOrder.shop_discount) > 0) {
382
388
  fees.push({
383
389
  isReduce: true,
@@ -389,21 +395,22 @@ var buildCartUpdatePayload = (context, params) => {
389
395
  });
390
396
  }
391
397
  fees.push(...collectWalletPaymentFees(payments, params.locale));
392
- const effectiveAmountDue = hasPendingWalletPayment ? (0, import_utils2.resolveEffectiveSaleDetailAmountDue)({
398
+ const effectiveAmountDue = (0, import_utils2.resolveEffectiveSaleDetailAmountDue)({
399
+ baseSalesAmountGap: amountSnapshot == null ? void 0 : amountSnapshot.amountGap,
393
400
  amountGap: summary == null ? void 0 : summary.amount_gap,
394
- fallbackAmount: (summary == null ? void 0 : summary.total_amount) ?? (summary == null ? void 0 : summary.expect_amount),
395
- orderPaidAmount: summary == null ? void 0 : summary.order_paid_amount,
401
+ fallbackAmount: (amountSnapshot == null ? void 0 : amountSnapshot.totalAmount) ?? (summary == null ? void 0 : summary.total_amount) ?? (summary == null ? void 0 : summary.expect_amount),
402
+ orderPaidAmount: ((_g = amountSnapshot == null ? void 0 : amountSnapshot.summary) == null ? void 0 : _g.order_paid_amount) ?? (summary == null ? void 0 : summary.order_paid_amount),
396
403
  payments
397
- }) : null;
404
+ });
398
405
  return {
399
406
  currency_symbol: params.currencySymbol,
400
- total: effectiveAmountDue !== null ? effectiveAmountDue.toFixed(2) : (summary == null ? void 0 : summary.expect_amount) ?? "0",
407
+ total: effectiveAmountDue.toFixed(2),
401
408
  products,
402
409
  fees
403
410
  };
404
411
  };
405
412
  function useSyncBigSaleCartToCds(context, options = {}) {
406
- var _a, _b, _c, _d, _e, _f, _g, _h;
413
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
407
414
  const engineContext = (0, import_useEngineContext.default)();
408
415
  const { enabled = true } = options;
409
416
  (0, import_react.useEffect)(() => {
@@ -419,15 +426,43 @@ function useSyncBigSaleCartToCds(context, options = {}) {
419
426
  postCartUpdateToCds(utils, data);
420
427
  }, [
421
428
  (_a = context == null ? void 0 : context.cart) == null ? void 0 : _a.bookings,
422
- (_b = context == null ? void 0 : context.cart) == null ? void 0 : _b.displayLines,
423
- (_c = context == null ? void 0 : context.cart) == null ? void 0 : _c.items,
424
- (_d = context == null ? void 0 : context.summary) == null ? void 0 : _d.summary,
425
- (_e = context == null ? void 0 : context.sales) == null ? void 0 : _e.tempOrder,
426
- (_g = (_f = context == null ? void 0 : context.sales) == null ? void 0 : _f.tempOrder) == null ? void 0 : _g.payments,
427
- (_h = context == null ? void 0 : context.sales) == null ? void 0 : _h.bookingTicket,
429
+ (_b = context == null ? void 0 : context.cart) == null ? void 0 : _b.discountList,
430
+ (_c = context == null ? void 0 : context.cart) == null ? void 0 : _c.displayLines,
431
+ (_d = context == null ? void 0 : context.cart) == null ? void 0 : _d.items,
432
+ (_e = context == null ? void 0 : context.summary) == null ? void 0 : _e.summary,
433
+ (_f = context == null ? void 0 : context.sales) == null ? void 0 : _f.tempOrder,
434
+ (_h = (_g = context == null ? void 0 : context.sales) == null ? void 0 : _g.tempOrder) == null ? void 0 : _h.payments,
435
+ (_i = context == null ? void 0 : context.sales) == null ? void 0 : _i.bookingTicket,
428
436
  engineContext,
429
437
  enabled
430
438
  ]);
439
+ (0, import_react.useEffect)(() => {
440
+ var _a2, _b2;
441
+ if (!enabled) return void 0;
442
+ const bookingTicket = (_a2 = context == null ? void 0 : context.sales) == null ? void 0 : _a2.bookingTicket;
443
+ if (!bookingTicket || typeof bookingTicket.effectsOn !== "function") {
444
+ return void 0;
445
+ }
446
+ const utils = ((_b2 = engineContext == null ? void 0 : engineContext.appHelper) == null ? void 0 : _b2.utils) || {};
447
+ const off = bookingTicket.effectsOn("onTempOrderReplaced", () => {
448
+ var _a3;
449
+ const tempOrder = (_a3 = bookingTicket.getTempOrder) == null ? void 0 : _a3.call(bookingTicket);
450
+ if (!tempOrder) return;
451
+ const hasCartLines = toArray(tempOrder.products).length > 0 || toArray(tempOrder.bookings).length > 0;
452
+ if (hasCartLines) return;
453
+ const data = {
454
+ currency_symbol: getCurrencySymbol(utils),
455
+ ...EMPTY_CART_UPDATE
456
+ };
457
+ postCartUpdateToCds(utils, data);
458
+ });
459
+ return () => {
460
+ try {
461
+ off();
462
+ } catch {
463
+ }
464
+ };
465
+ }, [(_j = context == null ? void 0 : context.sales) == null ? void 0 : _j.bookingTicket, engineContext, enabled]);
431
466
  }
432
467
  // Annotate the CommonJS export names for ESM import in node:
433
468
  0 && (module.exports = {
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { SendModalValues } from './index';
3
2
  declare const useSendModal: (bookingId?: number) => {
4
3
  open: boolean;
5
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
6
5
  handleOpen: () => void;
7
6
  handleValuesChange: (val: any) => void;
8
- handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
7
+ handleOk: (values: SendModalValues) => Promise<any>;
9
8
  };
10
9
  export default useSendModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -216,7 +216,7 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
216
216
  * @Author: WangHan
217
217
  * @Date: 2024-12-24 11:32
218
218
  */
219
- export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
219
+ export declare const updateServicePrice: (state: any) => Promise<any> | never[];
220
220
  /**
221
221
  * @description: 根据_id和sourceProductId来获取主商品已选择的赠品
222
222
  * @param {string} productId 主商品_id
@@ -175,10 +175,10 @@ export declare const getProductTotalPrice: (item: any, options?: {
175
175
  export declare const getDuration: (duration: number | {
176
176
  type: string;
177
177
  value: number;
178
- }) => number | {
178
+ }) => number | "flexible" | {
179
179
  type: string;
180
180
  value: number;
181
- } | "flexible";
181
+ };
182
182
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
183
183
  export declare const getIsEdit: (state: any) => boolean;
184
184
  export declare type DiscountFilterRejectKey = 'total_credits' | 'per_user_limit' | 'max_per_day' | 'max_per_week' | 'max_per_month';
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "print" | "page" | "fail" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PosProps, RouteType } from './const';
3
- declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "mode" | "type" | "getApi"> & {
3
+ declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
4
  action: RouteType;
5
5
  device_number: string | number;
6
6
  api: ReturnType<PosProps['getApi']>;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "print" | "page" | "fail" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,7 +15,7 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "init" | "question" | "pedding" | "resove" | "reject">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "init" | "reject" | "fail" | "pedding" | "resove" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -178,7 +178,7 @@ export declare const updateCustom: (payload: {
178
178
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
179
179
  type: EActionTypes;
180
180
  payload: {
181
- status: "loading" | "success" | "warn" | "fail" | "question";
181
+ status: "success" | "warn" | "loading" | "fail" | "question";
182
182
  };
183
183
  };
184
184
  /**
@@ -312,7 +312,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
312
312
  net?: boolean | undefined;
313
313
  component?: string | undefined;
314
314
  form?: string | undefined;
315
- status?: "loading" | "success" | "warn" | "fail" | "init" | "question" | "pedding" | "resove" | "reject" | undefined;
315
+ status?: "success" | "warn" | "loading" | "init" | "reject" | "fail" | "pedding" | "resove" | "question" | undefined;
316
316
  warn?: string | undefined;
317
317
  steps?: {
318
318
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ErrorTip: ({ text }: any) => import("react").JSX.Element;
4
3
  export default ErrorTip;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CallToBookProps = {
4
3
  show: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const WeekItem: (props: any) => import("react").JSX.Element;
4
3
  export default WeekItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type CalenDateWeekProps = {
4
3
  currentDate: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Empty: (props: any) => import("react").JSX.Element;
4
3
  export default Empty;
@@ -47,7 +47,7 @@ declare type ScanData = {
47
47
  };
48
48
  };
49
49
  export declare const formatScanCustomer: (data: ScanData) => {
50
- searchType: "product" | "order" | "customer" | "wallet" | "walletPass" | "local_product";
50
+ searchType: "order" | "product" | "customer" | "wallet" | "walletPass" | "local_product";
51
51
  data: any;
52
52
  scanCode: string;
53
53
  } | null;
@@ -28,7 +28,7 @@ interface UsePaymentSessionControllerOptions {
28
28
  */
29
29
  export declare const usePaymentSessionController: ({ context, openVisible, refs, setters, addLog, createEventIdentity, emitChange, setFlowPage, handleSessionEvent, getEffectiveOnline, }: UsePaymentSessionControllerOptions) => {
30
30
  schedulePaymentQuery: (this: unknown, transactionNumber: string) => void;
31
- printReceipts: (this: unknown, receipts: string[], source: "success" | "signature" | "failure") => void;
31
+ printReceipts: (this: unknown, receipts: string[], source: "success" | "failure" | "signature") => void;
32
32
  updateAmountQuote: (this: unknown, amount: string | number, surcharge?: {
33
33
  rate?: string | number | undefined;
34
34
  fixed?: string | number | undefined;
@@ -28,7 +28,7 @@ interface UsePaymentSessionControllerOptions {
28
28
  */
29
29
  export declare const usePaymentSessionController: ({ context, openVisible, refs, setters, addLog, createEventIdentity, emitChange, setFlowPage, handleSessionEvent, getEffectiveOnline, }: UsePaymentSessionControllerOptions) => {
30
30
  schedulePaymentQuery: (this: unknown, transactionNumber: string) => void;
31
- printReceipts: (this: unknown, receipts: string[], source: "success" | "signature" | "failure") => void;
31
+ printReceipts: (this: unknown, receipts: string[], source: "success" | "failure" | "signature") => void;
32
32
  updateAmountQuote: (this: unknown, amount: string | number, surcharge?: {
33
33
  rate?: string | number | undefined;
34
34
  fixed?: string | number | undefined;
@@ -24,7 +24,7 @@ export declare class OrderTableFallbackBoundary extends React.Component<OrderTab
24
24
  constructor(props: OrderTableFallbackBoundaryProps);
25
25
  static getDerivedStateFromError(): OrderTableFallbackBoundaryState;
26
26
  componentDidCatch(error: Error): void;
27
- render(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
27
+ render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
28
28
  }
29
29
  /**
30
30
  * 业务模式(精确搜索)内容区:把命中的订单详情逐条排下去展示。
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { FloorMapViewConfig } from '@pisell/materials';
3
2
  export declare function useReservationFloorPlan(options: {
4
3
  resolvedFloorPlanId: number | null;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { RecordBoardResourceWallCardModel } from '@pisell/materials';
3
2
  export interface UseReservationResourceWallPersistParams {
4
3
  bodyViewStorageKey: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ReservationScheduleBandValue } from '@pisell/materials';
3
2
  /**
4
3
  * @returns `schedule` 绑定日程带 UI;`debouncedSchedule` 绑定 sales / patch / 外部 onSearch。
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const getBookingStatusMap: () => Record<string, string>;
3
2
  export declare const BOOKING_STATUS_COLOR_MAP: Record<string, string>;
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface UseSalesGridDataParams {
3
2
  perspective: 'monitor' | 'handle';
4
3
  extParams?: {
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Capacity: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
5
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
6
6
  export default Capacity;
@@ -3,5 +3,5 @@ import { SkuStatusOverlayConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const CardMask: ({ props }: {
5
5
  props: SkuStatusOverlayConfig;
6
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
6
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
7
7
  export default CardMask;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const Countdown: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | React.JSX.Element | Iterable<React.ReactNode> | null;
6
+ }) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element | null;
7
7
  export default Countdown;