@pisell/pisellos 0.0.569 → 0.0.571

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 (109) hide show
  1. package/dist/effects/index.d.ts +2 -2
  2. package/dist/model/strategy/adapter/dataVariant/type.d.ts +3 -3
  3. package/dist/model/strategy/adapter/itemRule/type.d.ts +6 -6
  4. package/dist/model/strategy/adapter/promotion/type.d.ts +5 -5
  5. package/dist/model/strategy/type.d.ts +1 -1
  6. package/dist/modules/BookingContext/types.d.ts +4 -4
  7. package/dist/modules/BookingContext/utils/resourceErrors.d.ts +1 -1
  8. package/dist/modules/Customer/types.d.ts +1 -1
  9. package/dist/modules/Discount/types.d.ts +1 -1
  10. package/dist/modules/Holder/types.d.ts +1 -1
  11. package/dist/modules/OpenData/types.d.ts +1 -1
  12. package/dist/modules/Order/types.d.ts +5 -5
  13. package/dist/modules/Order/utils/bundleDiscountHydration.d.ts +1 -1
  14. package/dist/modules/Order/utils/orderCollectionIdentity.d.ts +1 -1
  15. package/dist/modules/Order/utils.d.ts +1 -1
  16. package/dist/modules/Payment/types.d.ts +7 -7
  17. package/dist/modules/Product/index.d.ts +1 -1
  18. package/dist/modules/ResourcePlanner/types.d.ts +4 -4
  19. package/dist/modules/Rules/index.js +2 -1
  20. package/dist/modules/Rules/types.d.ts +2 -2
  21. package/dist/modules/ScanOrderLogger/types.d.ts +2 -2
  22. package/dist/modules/Schedule/getDateIsInSchedule.d.ts +1 -1
  23. package/dist/modules/Schedule/type.d.ts +7 -7
  24. package/dist/modules/Schedule/types.d.ts +9 -9
  25. package/dist/plugins/app.d.ts +1 -1
  26. package/dist/plugins/request.d.ts +2 -2
  27. package/dist/server/modules/floor-plan/types.d.ts +1 -1
  28. package/dist/server/modules/menu/types.d.ts +1 -1
  29. package/dist/server/modules/order/types.d.ts +16 -16
  30. package/dist/server/modules/products/types.d.ts +1 -1
  31. package/dist/server/modules/resource/types.d.ts +1 -1
  32. package/dist/server/modules/schedule/utils.d.ts +1 -1
  33. package/dist/server/types.d.ts +4 -4
  34. package/dist/server/utils/small-ticket.d.ts +1 -1
  35. package/dist/solution/BaseSales/index.d.ts +1 -1
  36. package/dist/solution/BaseSales/types.d.ts +7 -7
  37. package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +1 -1
  38. package/dist/solution/BookingByStep/index.d.ts +1 -1
  39. package/dist/solution/BookingByStep/utils/resources.d.ts +1 -1
  40. package/dist/solution/BookingTicket/index.d.ts +1 -13
  41. package/dist/solution/BookingTicket/types.d.ts +3 -3
  42. package/dist/solution/BookingTicket/utils/addProductDecision.d.ts +1 -1
  43. package/dist/solution/BookingTicket/utils/bookingStatus.d.ts +1 -1
  44. package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts +1 -1
  45. package/dist/solution/Sales/types.d.ts +4 -4
  46. package/dist/solution/ScanOrder/types.d.ts +5 -5
  47. package/dist/solution/ShopDiscount/types.d.ts +1 -1
  48. package/dist/solution/ShopDiscount/utils.d.ts +2 -2
  49. package/dist/solution/UnifiedBookingSales/types.d.ts +1 -1
  50. package/dist/solution/VenueBooking/types.d.ts +1 -1
  51. package/dist/types/index.d.ts +1 -1
  52. package/dist/utils/task.d.ts +2 -2
  53. package/dist/utils/watch.d.ts +2 -2
  54. package/lib/effects/index.d.ts +2 -2
  55. package/lib/model/strategy/adapter/dataVariant/type.d.ts +3 -3
  56. package/lib/model/strategy/adapter/itemRule/type.d.ts +6 -6
  57. package/lib/model/strategy/adapter/promotion/type.d.ts +5 -5
  58. package/lib/model/strategy/type.d.ts +1 -1
  59. package/lib/modules/BookingContext/types.d.ts +4 -4
  60. package/lib/modules/BookingContext/utils/resourceErrors.d.ts +1 -1
  61. package/lib/modules/Customer/types.d.ts +1 -1
  62. package/lib/modules/Discount/types.d.ts +1 -1
  63. package/lib/modules/Holder/types.d.ts +1 -1
  64. package/lib/modules/OpenData/types.d.ts +1 -1
  65. package/lib/modules/Order/types.d.ts +5 -5
  66. package/lib/modules/Order/utils/bundleDiscountHydration.d.ts +1 -1
  67. package/lib/modules/Order/utils/orderCollectionIdentity.d.ts +1 -1
  68. package/lib/modules/Order/utils.d.ts +1 -1
  69. package/lib/modules/Payment/types.d.ts +7 -7
  70. package/lib/modules/Product/index.d.ts +1 -1
  71. package/lib/modules/ResourcePlanner/types.d.ts +4 -4
  72. package/lib/modules/Rules/index.js +1 -1
  73. package/lib/modules/Rules/types.d.ts +2 -2
  74. package/lib/modules/ScanOrderLogger/types.d.ts +2 -2
  75. package/lib/modules/Schedule/getDateIsInSchedule.d.ts +1 -1
  76. package/lib/modules/Schedule/type.d.ts +7 -7
  77. package/lib/modules/Schedule/types.d.ts +9 -9
  78. package/lib/plugins/app.d.ts +1 -1
  79. package/lib/plugins/request.d.ts +2 -2
  80. package/lib/server/modules/floor-plan/types.d.ts +1 -1
  81. package/lib/server/modules/menu/types.d.ts +1 -1
  82. package/lib/server/modules/order/types.d.ts +16 -16
  83. package/lib/server/modules/products/types.d.ts +1 -1
  84. package/lib/server/modules/resource/types.d.ts +1 -1
  85. package/lib/server/modules/schedule/utils.d.ts +1 -1
  86. package/lib/server/types.d.ts +4 -4
  87. package/lib/server/utils/small-ticket.d.ts +1 -1
  88. package/lib/solution/BaseSales/index.d.ts +1 -1
  89. package/lib/solution/BaseSales/types.d.ts +7 -7
  90. package/lib/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +1 -1
  91. package/lib/solution/BookingByStep/index.d.ts +1 -1
  92. package/lib/solution/BookingByStep/utils/resources.d.ts +1 -1
  93. package/lib/solution/BookingTicket/index.d.ts +1 -13
  94. package/lib/solution/BookingTicket/types.d.ts +3 -3
  95. package/lib/solution/BookingTicket/utils/addProductDecision.d.ts +1 -1
  96. package/lib/solution/BookingTicket/utils/bookingStatus.d.ts +1 -1
  97. package/lib/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts +1 -1
  98. package/lib/solution/Sales/types.d.ts +4 -4
  99. package/lib/solution/ScanOrder/types.d.ts +5 -5
  100. package/lib/solution/ShopDiscount/types.d.ts +1 -1
  101. package/lib/solution/ShopDiscount/utils.d.ts +2 -2
  102. package/lib/solution/UnifiedBookingSales/types.d.ts +1 -1
  103. package/lib/solution/VenueBooking/types.d.ts +1 -1
  104. package/lib/types/index.d.ts +1 -1
  105. package/lib/utils/task.d.ts +2 -2
  106. package/lib/utils/watch.d.ts +2 -2
  107. package/package.json +18 -19
  108. package/dist/model/strategy/adapter/promotion/index.d.ts +0 -4
  109. package/lib/model/strategy/adapter/promotion/index.d.ts +0 -4
@@ -1,8 +1,8 @@
1
- type EffectCallback = (payload: any) => void | Promise<void | {
1
+ declare type EffectCallback = (payload: any) => void | Promise<void | {
2
2
  status: boolean;
3
3
  message?: string;
4
4
  }>;
5
- type UnsubscribeFunction = () => void;
5
+ declare type UnsubscribeFunction = () => void;
6
6
  declare class EffectsManager {
7
7
  private listeners;
8
8
  on(event: string, callback: EffectCallback): UnsubscribeFunction;
@@ -8,7 +8,7 @@ import type { ScheduleItem } from '../../../../modules/Schedule/types';
8
8
  export declare const DATA_VARIANT_ACTION_TYPES: {
9
9
  readonly APPLY: "DATA_VARIANT_APPLY";
10
10
  };
11
- export type DataVariantActionType = (typeof DATA_VARIANT_ACTION_TYPES)[keyof typeof DATA_VARIANT_ACTION_TYPES];
11
+ export declare type DataVariantActionType = (typeof DATA_VARIANT_ACTION_TYPES)[keyof typeof DATA_VARIANT_ACTION_TYPES];
12
12
  /**
13
13
  * Data Variant 规则元数据。
14
14
  *
@@ -116,7 +116,7 @@ export interface EffectiveRuleInfo {
116
116
  productRules: ConditionRule[];
117
117
  globalResult: EvaluationResult;
118
118
  }
119
- export type GlobalEffectiveRuleMap = Map<string, EffectiveRuleInfo>;
119
+ export declare type GlobalEffectiveRuleMap = Map<string, EffectiveRuleInfo>;
120
120
  /**
121
121
  * 单条商品命中的变体覆盖信息。
122
122
  */
@@ -145,4 +145,4 @@ export interface ResolvedDataVariantResult {
145
145
  scheduleTimePoints: string[];
146
146
  rawResults: EvaluationResult[];
147
147
  }
148
- export type ConditionScope = 'global' | 'product';
148
+ export declare type ConditionScope = 'global' | 'product';
@@ -5,7 +5,7 @@ export declare const ITEM_RULE_ACTION_TYPES: {
5
5
  /** 预填购物车 */
6
6
  readonly PREFILL_CART: "PREFILL_CART";
7
7
  };
8
- export type ItemRuleActionType = (typeof ITEM_RULE_ACTION_TYPES)[keyof typeof ITEM_RULE_ACTION_TYPES];
8
+ export declare type ItemRuleActionType = (typeof ITEM_RULE_ACTION_TYPES)[keyof typeof ITEM_RULE_ACTION_TYPES];
9
9
  export declare const ITEM_RULE_TEMPLATES: {
10
10
  /** 空白规则 */
11
11
  readonly BLANK: "blank";
@@ -16,15 +16,15 @@ export declare const ITEM_RULE_TEMPLATES: {
16
16
  /** 必选商品 */
17
17
  readonly MUST_INCLUDE: "must_include";
18
18
  };
19
- export type ItemRuleTemplate = (typeof ITEM_RULE_TEMPLATES)[keyof typeof ITEM_RULE_TEMPLATES];
19
+ export declare type ItemRuleTemplate = (typeof ITEM_RULE_TEMPLATES)[keyof typeof ITEM_RULE_TEMPLATES];
20
20
  /** 数量比较类型 */
21
- export type QuantityComparison = 'minimum' | 'maximum' | 'exact' | 'must_include';
21
+ export declare type QuantityComparison = 'minimum' | 'maximum' | 'exact' | 'must_include';
22
22
  /** 数量来源 */
23
- export type QuantitySource = 'total_pax' | 'adult_pax' | 'fixed';
23
+ export declare type QuantitySource = 'total_pax' | 'adult_pax' | 'fixed';
24
24
  /** 目标类型(当前仅支持按商品) */
25
- export type TargetType = 'product';
25
+ export declare type TargetType = 'product';
26
26
  /** 作用范围 */
27
- export type RuleScope = 'each_submission' | 'first_submission_only' | 'subsequent_only' | 'cumulative';
27
+ export declare type RuleScope = 'each_submission' | 'first_submission_only' | 'subsequent_only' | 'cumulative';
28
28
  /**
29
29
  * 单条数量规则
30
30
  *
@@ -17,7 +17,7 @@ export declare const PROMOTION_ACTION_TYPES: {
17
17
  /** 固定减价 */
18
18
  readonly DEDUCT_AMOUNT: "DEDUCT_AMOUNT";
19
19
  };
20
- export type PromotionActionType = (typeof PROMOTION_ACTION_TYPES)[keyof typeof PROMOTION_ACTION_TYPES];
20
+ export declare type PromotionActionType = (typeof PROMOTION_ACTION_TYPES)[keyof typeof PROMOTION_ACTION_TYPES];
21
21
  /**
22
22
  * X件Y元 - Action Value
23
23
  *
@@ -54,7 +54,7 @@ export interface BuyXGetYFreeValue {
54
54
  /**
55
55
  * 赠品选择模式
56
56
  */
57
- export type GiftSelectionMode = 'user_select' | 'auto' | 'cheapest';
57
+ export declare type GiftSelectionMode = 'user_select' | 'auto' | 'cheapest';
58
58
  /**
59
59
  * 买X送Y - Action Config
60
60
  */
@@ -105,7 +105,7 @@ export interface BuyXGetYFreeAction extends Omit<ActionEffect, 'type' | 'value'
105
105
  /**
106
106
  * 促销活动 Action 联合类型
107
107
  */
108
- export type PromotionAction = XItemsForYPriceAction | BuyXGetYFreeAction;
108
+ export declare type PromotionAction = XItemsForYPriceAction | BuyXGetYFreeAction;
109
109
  /**
110
110
  * 促销相关运算符
111
111
  */
@@ -135,7 +135,7 @@ export interface PromotionBusinessData {
135
135
  /** 自定义属性 */
136
136
  custom?: Record<string, any>;
137
137
  }
138
- type ProductBundleItem = {
138
+ declare type ProductBundleItem = {
139
139
  /** 主商品ID */
140
140
  product_id: number;
141
141
  /** 变体ID(0 表示无变体) */
@@ -195,7 +195,7 @@ export interface PromotionTransformResult {
195
195
  /**
196
196
  * Action 详情联合类型
197
197
  */
198
- export type PromotionActionDetail = XItemsForYPriceActionDetail | BuyXGetYFreeActionDetail;
198
+ export declare type PromotionActionDetail = XItemsForYPriceActionDetail | BuyXGetYFreeActionDetail;
199
199
  /**
200
200
  * X件Y元 Action 详情
201
201
  */
@@ -242,4 +242,4 @@ export interface EngineOptions {
242
242
  /**
243
243
  * 运算符处理器
244
244
  */
245
- export type OperatorHandler = (fieldValue: any, compareValue: any, rule: ConditionRule) => boolean;
245
+ export declare type OperatorHandler = (fieldValue: any, compareValue: any, rule: ConditionRule) => boolean;
@@ -39,17 +39,17 @@ export interface InitBookingContextParams {
39
39
  * 资源全集 map:key 为资源 id(数字),value 为资源原始对象,含 times / event_list 等运行态。
40
40
  * 这里只声明 Record 形态;具体字段保留 `any`,与 ticketBooking 现网传入的数据形状兼容。
41
41
  */
42
- export type BookingContextResource = Record<string, any>;
43
- export type BookingContextResourceMap = Record<string, BookingContextResource>;
42
+ export declare type BookingContextResource = Record<string, any>;
43
+ export declare type BookingContextResourceMap = Record<string, BookingContextResource>;
44
44
  /**
45
45
  * 形参 booking_config(结构来自 `/core/board/management/config` 接口)。
46
46
  * OS 不强制 schema,保留 `Record<string, any>` 兼容现网;常用路径文档化在 SDK docs。
47
47
  */
48
- export type BookingContextConfig = Record<string, any>;
48
+ export declare type BookingContextConfig = Record<string, any>;
49
49
  /**
50
50
  * 日期入参:接受 dayjs 实例、ISO 字符串、Date 实例;内部统一 normalize 为 ISO 字符串保存。
51
51
  */
52
- export type BookingContextDateInput = string | Date | {
52
+ export declare type BookingContextDateInput = string | Date | {
53
53
  format?: (fmt?: string) => string;
54
54
  } | null | undefined;
55
55
  /**
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * OS 这边不耦合 i18n 文案,UI 拿到 reason + params 后自行渲染(参考 docs/SDK 中给出的 i18n key 对照表)。
11
11
  */
12
- export type ResourceUnavailableReason = 'no_product' | 'time_out_of_range' | 'count_out_of_range' | 'resource_unbound';
12
+ export declare type ResourceUnavailableReason = 'no_product' | 'time_out_of_range' | 'count_out_of_range' | 'resource_unbound';
13
13
  export interface ResourceError {
14
14
  reason: ResourceUnavailableReason;
15
15
  params: {
@@ -33,7 +33,7 @@ export interface ShopCustomer extends ICustomer {
33
33
  * walletDetails.wallet: 用户所有wallet
34
34
  * latestWalletDetail.wallet: 用户最新wallet
35
35
  */
36
- type CustomerWith = 'formRecord' | 'walletDetails.wallet' | 'latestWalletDetail.wallet';
36
+ declare type CustomerWith = 'formRecord' | 'walletDetails.wallet' | 'latestWalletDetail.wallet';
37
37
  /**
38
38
  * 获取客户列表参数
39
39
  */
@@ -63,7 +63,7 @@ interface UsageCreditsValue {
63
63
  max_per_week: number;
64
64
  max_per_month: number;
65
65
  }
66
- export type DiscountFilterRejectKey = 'total_credits' | 'per_user_limit' | 'max_per_day' | 'max_per_week' | 'max_per_month';
66
+ export declare type DiscountFilterRejectKey = 'total_credits' | 'per_user_limit' | 'max_per_day' | 'max_per_week' | 'max_per_month';
67
67
  export interface DiscountWithReason {
68
68
  discountList: Discount[];
69
69
  unavailableReasonKey: DiscountFilterRejectKey | null;
@@ -39,7 +39,7 @@ export interface IFormItemData {
39
39
  /**
40
40
  * form_id 为 key 的 map 结构,如 948: { records: [], form: {} }
41
41
  */
42
- export type HolderFormMap = Record<string, IFormItemData>;
42
+ export declare type HolderFormMap = Record<string, IFormItemData>;
43
43
  /**
44
44
  * Holder 模块 reactive store,仅 holderMap 会触发 changed 事件
45
45
  */
@@ -61,7 +61,7 @@ export interface OpenDataApiResponse {
61
61
  message: string;
62
62
  data: OpenDataConfig;
63
63
  }
64
- export type OpenDataUnavailableReason = 'shop_disabled' | 'paused' | 'closed' | 'reservation_disabled';
64
+ export declare type OpenDataUnavailableReason = 'shop_disabled' | 'paused' | 'closed' | 'reservation_disabled';
65
65
  export interface OpenDataAvailabilityResult {
66
66
  available: boolean;
67
67
  reason: OpenDataUnavailableReason | null;
@@ -69,7 +69,7 @@ export interface OrderGiftSelectResult {
69
69
  *
70
70
  * 返回数组时沿用旧协议,只写 tempOrder.products;返回对象时可同时写入预约 bookings。
71
71
  */
72
- export type OrderGiftSelectResolver = (ctx: OrderGiftSelectContext) => Promise<Partial<OrderProduct>[] | OrderGiftSelectResult | null>;
72
+ export declare type OrderGiftSelectResolver = (ctx: OrderGiftSelectContext) => Promise<Partial<OrderProduct>[] | OrderGiftSelectResult | null>;
73
73
  /** 未满足的促销策略(购物车底部 alert 渲染源) */
74
74
  export interface OrderUnfulfilledPromotion {
75
75
  strategyId: string;
@@ -318,7 +318,7 @@ export interface ReplaceTempOrderOptions {
318
318
  persist?: boolean;
319
319
  saveDraft?: boolean;
320
320
  }
321
- export type AddProductBookingInput = Record<string, any>;
321
+ export declare type AddProductBookingInput = Record<string, any>;
322
322
  /** 更新购物车行:仅传 SKU 时命中同 SKU 第一行;多行同 SKU 须传 unique_identification_number / 选项指纹等 */
323
323
  export interface UpdateOrderProductParams {
324
324
  product_id: number | null;
@@ -376,7 +376,7 @@ export interface OrderProductMergeDecisionContext {
376
376
  booking?: AddProductBookingInput;
377
377
  defaultShouldMerge: boolean;
378
378
  }
379
- export type OrderProductMergeDecisionResult = boolean | {
379
+ export declare type OrderProductMergeDecisionResult = boolean | {
380
380
  shouldMerge: boolean;
381
381
  reason?: string;
382
382
  [key: string]: any;
@@ -524,11 +524,11 @@ export interface OrderPaymentData {
524
524
  created_at?: string;
525
525
  updated_at?: string;
526
526
  }
527
- export type OrderPaymentSource = PaymentItem | OrderPaymentData | Record<string, any>;
527
+ export declare type OrderPaymentSource = PaymentItem | OrderPaymentData | Record<string, any>;
528
528
  export interface MapOrderPaymentsOptions {
529
529
  includeVoided?: boolean;
530
530
  }
531
- export type OrderSyncState = 'local' | 'submitting' | 'submitted' | 'failed' | 'remoteLoaded';
531
+ export declare type OrderSyncState = 'local' | 'submitting' | 'submitted' | 'failed' | 'remoteLoaded';
532
532
  export interface LoadSalesDetailParams {
533
533
  orderId?: number | string;
534
534
  orderNumber?: string;
@@ -1,5 +1,5 @@
1
1
  import type { OrderProductDiscountItem } from '../types';
2
- type NormalizeDiscountList = (discountList?: unknown[] | null) => OrderProductDiscountItem[];
2
+ declare type NormalizeDiscountList = (discountList?: unknown[] | null) => OrderProductDiscountItem[];
3
3
  export declare function restoreHydratedBundleDiscounts<T extends Record<string, any>>(product: T, normalizeDiscountList: NormalizeDiscountList): T;
4
4
  export declare function expandHydratedProductsForDiscountCollection(products: any[] | undefined | null): any[];
5
5
  export {};
@@ -1,4 +1,4 @@
1
- export type OrderCollectionKind = 'product' | 'booking' | 'payment';
1
+ export declare type OrderCollectionKind = 'product' | 'booking' | 'payment';
2
2
  export interface OrderCollectionIdentityStats {
3
3
  backfilledUidCount: number;
4
4
  collapsedDuplicateCount: number;
@@ -209,7 +209,7 @@ export interface SubmitPayloadEnhancerContext {
209
209
  bookingUuid: string;
210
210
  now: Date;
211
211
  }
212
- export type SubmitPayloadEnhancer = (payload: OrderSubmitPayload, ctx: SubmitPayloadEnhancerContext) => OrderSubmitPayload;
212
+ export declare type SubmitPayloadEnhancer = (payload: OrderSubmitPayload, ctx: SubmitPayloadEnhancerContext) => OrderSubmitPayload;
213
213
  export declare function buildSubmitPayload(params: {
214
214
  tempOrder: OrderTempOrder;
215
215
  cacheId?: string;
@@ -629,12 +629,12 @@ export declare enum PaymentHooks {
629
629
  OnOrderAmountChanged = "payment:onOrderAmountChanged",
630
630
  OnPaymentSyncError = "payment:onPaymentSyncError",
631
631
  OnPaymentSyncSuccess = "payment:onPaymentSyncSuccess",
632
- OnWalletRecommendListUpdated = "wallet:onWalletRecommendListUpdated",
633
- OnWalletRecommendListCleared = "wallet:onWalletRecommendListCleared",
634
- OnUserIdentificationCodesUpdated = "wallet:onUserIdentificationCodesUpdated",
635
- OnUserIdentificationCodesCleared = "wallet:onUserIdentificationCodesCleared",
636
- OnWalletCacheCleared = "wallet:onWalletCacheCleared",
637
- OnSearchIdentificationCodeCompleted = "wallet:onSearchIdentificationCodeCompleted"
632
+ OnWalletRecommendListUpdated = 0,
633
+ OnWalletRecommendListCleared = 0,
634
+ OnUserIdentificationCodesUpdated = 0,
635
+ OnUserIdentificationCodesCleared = 0,
636
+ OnWalletCacheCleared = 0,
637
+ OnSearchIdentificationCodeCompleted = 0
638
638
  }
639
639
  /**
640
640
  * 钱包推荐扣款请求参数
@@ -797,7 +797,7 @@ export interface SearchIdentificationCodeResponse {
797
797
  /**
798
798
  * 搜索识别码结果类型
799
799
  */
800
- export type SearchIdentificationCodeResult = {
800
+ export declare type SearchIdentificationCodeResult = {
801
801
  type: 'walletCode';
802
802
  data: SearchIdentificationCodeItem[];
803
803
  } | {
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
49
49
  getCategories(): ProductCategory[];
50
50
  setOtherParams(key: string, value: any): void;
51
51
  getOtherParams(): any;
52
- getProductType(): "normal" | "duration" | "session";
52
+ getProductType(): "duration" | "session" | "normal";
53
53
  }
@@ -1,7 +1,7 @@
1
- export type ResourcePlannerMode = 'appointment' | 'scan_order' | 'venue_grid';
2
- export type ResourcePlannerProductKind = 'normal' | 'duration' | 'session' | 'venue_slot';
3
- export type ResourcePlannerResourceType = 'single' | 'multiple' | 'capacity';
4
- export type ResourcePlannerStatus = 'available' | 'limited' | 'full' | 'conflict' | 'unavailable' | 'past';
1
+ export declare type ResourcePlannerMode = 'appointment' | 'scan_order' | 'venue_grid';
2
+ export declare type ResourcePlannerProductKind = 'normal' | 'duration' | 'session' | 'venue_slot';
3
+ export declare type ResourcePlannerResourceType = 'single' | 'multiple' | 'capacity';
4
+ export declare type ResourcePlannerStatus = 'available' | 'limited' | 'full' | 'conflict' | 'unavailable' | 'past';
5
5
  export interface ResourcePlannerTimeRange {
6
6
  start_at: string;
7
7
  end_at: string;
@@ -2436,7 +2436,8 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
2436
2436
  // 套餐适用范围配置
2437
2437
  var packageScope = usageRules === null || usageRules === void 0 ? void 0 : usageRules.package_scope;
2438
2438
  var _ref16 = packageScope || {},
2439
- scopeType = _ref16.type,
2439
+ _ref16$type = _ref16.type,
2440
+ scopeType = _ref16$type === void 0 ? 'product_all' : _ref16$type,
2440
2441
  _ref16$exclude_bundle = _ref16.exclude_bundle_product_ids,
2441
2442
  exclude_bundle_product_ids = _ref16$exclude_bundle === void 0 ? [] : _ref16$exclude_bundle,
2442
2443
  _ref16$include_bundle = _ref16.include_bundle_product_ids,
@@ -23,7 +23,7 @@ export interface DiscountResult {
23
23
  productList: any[];
24
24
  discountList: any[];
25
25
  }
26
- export type RulesFormSubject = boolean | ((product: any) => boolean);
26
+ export declare type RulesFormSubject = boolean | ((product: any) => boolean);
27
27
  export interface RulesCalcDiscountOptions {
28
28
  isSelected?: boolean;
29
29
  discountId?: number;
@@ -45,7 +45,7 @@ export interface RulesModuleAPI {
45
45
  orderTotalAmount: number;
46
46
  }, options?: RulesCalcDiscountOptions) => DiscountResult;
47
47
  }
48
- type ProductDetail = {
48
+ declare type ProductDetail = {
49
49
  isClient?: boolean;
50
50
  isManualDiscount?: boolean;
51
51
  booking_id: any;
@@ -1,5 +1,5 @@
1
- export type ScanOrderLogLevel = 'info' | 'warning' | 'error' | 'debug';
2
- export type ScanOrderLoggerProviderType = 'feishu' | 'grafana';
1
+ export declare type ScanOrderLogLevel = 'info' | 'warning' | 'error' | 'debug';
2
+ export declare type ScanOrderLoggerProviderType = 'feishu' | 'grafana';
3
3
  export interface ScanOrderLoggerProviderFeishuConfig {
4
4
  webhook?: string;
5
5
  errorHook?: string;
@@ -1,7 +1,7 @@
1
1
  import dayjs from "dayjs";
2
2
  import { ScheduleItem } from "./types";
3
3
  export declare const getDateIsInSchedule: (dateTime: string, scheduleList: ScheduleItem[]) => boolean;
4
- export type ScheduleTimeSlot = {
4
+ export declare type ScheduleTimeSlot = {
5
5
  /** 开始时间 HH:mm */
6
6
  start_time: string;
7
7
  /** 结束时间 HH:mm */
@@ -1,4 +1,4 @@
1
- export type ScheduleItem = {
1
+ export declare type ScheduleItem = {
2
2
  /** 颜色 */
3
3
  color: string;
4
4
  /** 创建时间 */
@@ -65,7 +65,7 @@ export type ScheduleItem = {
65
65
  schedule_id: number;
66
66
  }[];
67
67
  };
68
- export type ScheduleFormOtherValue = {
68
+ export declare type ScheduleFormOtherValue = {
69
69
  /** 截止模式
70
70
  * 1: 永不截止
71
71
  * 2: 按日期截止
@@ -79,11 +79,11 @@ export type ScheduleFormOtherValue = {
79
79
  includeStatus: boolean;
80
80
  type: 'standard' | 'time-slots' | 'designation';
81
81
  };
82
- export type ExcIncDate = {
82
+ export declare type ExcIncDate = {
83
83
  start: string;
84
84
  end: string;
85
85
  };
86
- export type ScheduleFormData = {
86
+ export declare type ScheduleFormData = {
87
87
  /** 颜色 */
88
88
  color: string;
89
89
  /** 日程名称 */
@@ -131,20 +131,20 @@ export type ScheduleFormData = {
131
131
  start_time: any;
132
132
  end_time: any;
133
133
  };
134
- export type CalendarDataItem = {
134
+ export declare type CalendarDataItem = {
135
135
  date: string;
136
136
  color: string[];
137
137
  isExcluded: boolean;
138
138
  schedule_ids?: number[];
139
139
  [key: string]: any;
140
140
  };
141
- export type RequestData<Data> = {
141
+ export declare type RequestData<Data> = {
142
142
  data: Data;
143
143
  status: boolean;
144
144
  message: string;
145
145
  code: number;
146
146
  };
147
- export type ResponseListData<Data> = {
147
+ export declare type ResponseListData<Data> = {
148
148
  status: boolean;
149
149
  message: string;
150
150
  code: number;
@@ -6,7 +6,7 @@ export interface ScheduleState {
6
6
  availabilityDateList: ScheduleAvailabilityDateItem[];
7
7
  otherProductsIds: number[];
8
8
  }
9
- export type ScheduleAvailabilityDateItem = {
9
+ export declare type ScheduleAvailabilityDateItem = {
10
10
  date: string;
11
11
  schedule_id: number[];
12
12
  product_ids: number[];
@@ -28,7 +28,7 @@ export interface ScheduleModuleAPI {
28
28
  getScheduleList: () => ScheduleItem[];
29
29
  isScheduleListLoaded: () => boolean;
30
30
  }
31
- export type ScheduleItem = {
31
+ export declare type ScheduleItem = {
32
32
  /** 颜色 */
33
33
  color: string;
34
34
  /** 创建时间 */
@@ -95,7 +95,7 @@ export type ScheduleItem = {
95
95
  schedule_id: number;
96
96
  }[];
97
97
  };
98
- export type ScheduleFormOtherValue = {
98
+ export declare type ScheduleFormOtherValue = {
99
99
  /** 截止模式
100
100
  * 1: 永不截止
101
101
  * 2: 按日期截止
@@ -109,11 +109,11 @@ export type ScheduleFormOtherValue = {
109
109
  includeStatus: boolean;
110
110
  type: 'standard' | 'time-slots' | 'designation';
111
111
  };
112
- export type ExcIncDate = {
112
+ export declare type ExcIncDate = {
113
113
  start: string;
114
114
  end: string;
115
115
  };
116
- export type ScheduleFormData = {
116
+ export declare type ScheduleFormData = {
117
117
  /** 颜色 */
118
118
  color: string;
119
119
  /** 日程名称 */
@@ -161,20 +161,20 @@ export type ScheduleFormData = {
161
161
  start_time: any;
162
162
  end_time: any;
163
163
  };
164
- export type CalendarDataItem = {
164
+ export declare type CalendarDataItem = {
165
165
  date: string;
166
166
  color: string[];
167
167
  isExcluded: boolean;
168
168
  schedule_ids?: number[];
169
169
  [key: string]: any;
170
170
  };
171
- export type RequestData<Data> = {
171
+ export declare type RequestData<Data> = {
172
172
  data: Data;
173
173
  status: boolean;
174
174
  message: string;
175
175
  code: number;
176
176
  };
177
- export type ResponseListData<Data> = {
177
+ export declare type ResponseListData<Data> = {
178
178
  status: boolean;
179
179
  message: string;
180
180
  code: number;
@@ -185,7 +185,7 @@ export type ResponseListData<Data> = {
185
185
  skip: number;
186
186
  };
187
187
  };
188
- export type ScheduleAllMap = Record<string, {
188
+ export declare type ScheduleAllMap = Record<string, {
189
189
  minTime: dayjs.Dayjs | null;
190
190
  maxTime: dayjs.Dayjs | null;
191
191
  minTimeStr: string | null;
@@ -1,6 +1,6 @@
1
1
  import { Plugin } from '../types';
2
2
  import App from './app-types/app';
3
- export type AppDataGetter = (key: string) => any;
3
+ export declare type AppDataGetter = (key: string) => any;
4
4
  /**
5
5
  * AppPlugin 接口定义
6
6
  */
@@ -42,8 +42,8 @@ export declare enum RequestModeENUM {
42
42
  REMOTE_LOCAL = "remote_local",
43
43
  OS_SERVER = "os_server"
44
44
  }
45
- export type RequestModeType = RequestModeENUM.LOCAL | RequestModeENUM.REMOTE | RequestModeENUM.LOCAL_REMOTE | RequestModeENUM.REMOTE_LOCAL | RequestModeENUM.OS_SERVER;
46
- export type CacheType = 'memory' | 'storage' | 'indexDB';
45
+ export declare type RequestModeType = RequestModeENUM.LOCAL | RequestModeENUM.REMOTE | RequestModeENUM.LOCAL_REMOTE | RequestModeENUM.REMOTE_LOCAL | RequestModeENUM.OS_SERVER;
46
+ export declare type CacheType = 'memory' | 'storage' | 'indexDB';
47
47
  export interface CacheProps {
48
48
  key?: string;
49
49
  type?: CacheType;
@@ -40,4 +40,4 @@ export declare const FloorPlanHooks: {
40
40
  /** pubsub 同步处理完成,供 Server 向订阅者推送最新查询结果 */
41
41
  readonly onFloorPlanSyncCompleted: "server_floor_plan:onFloorPlanSyncCompleted";
42
42
  };
43
- export type FloorPlanHooksType = (typeof FloorPlanHooks)[keyof typeof FloorPlanHooks];
43
+ export declare type FloorPlanHooksType = (typeof FloorPlanHooks)[keyof typeof FloorPlanHooks];
@@ -9,7 +9,7 @@ export interface MenuState {
9
9
  /** 当前生效的餐牌 */
10
10
  currentMenu?: MenuData;
11
11
  }
12
- type ProductItemType = {
12
+ declare type ProductItemType = {
13
13
  /** 商品集合 ID */
14
14
  product_collection_id: number;
15
15
  /** 商品 ID */
@@ -2,36 +2,36 @@ import type { ScheduleEventResource } from '../resource/types';
2
2
  /**
3
3
  * Order 模块主键类型(对齐标准 Sales 协议的 order_id)
4
4
  */
5
- export type OrderId = number | string;
5
+ export declare type OrderId = number | string;
6
6
  /**
7
7
  * 协议中金额类字段多为 string 快照(交易时价格不可从基准商品重算)
8
8
  */
9
- export type OrderMoneyString = string;
9
+ export declare type OrderMoneyString = string;
10
10
  /** 订单类型。文档:appointment_booking / ticket / virtual。来源:Order.type */
11
- export type OrderType = 'appointment_booking' | 'ticket' | 'virtual' | string;
11
+ export declare type OrderType = 'appointment_booking' | 'ticket' | 'virtual' | string;
12
12
  /**
13
13
  * 来源平台。文档:shop / pos / kiosk / h5 / app / mini-program。
14
14
  * 来源:Order.platform
15
15
  */
16
- export type OrderPlatform = 'shop' | 'pos' | 'kiosk' | 'h5' | 'app' | 'mini-program' | string;
16
+ export declare type OrderPlatform = 'shop' | 'pos' | 'kiosk' | 'h5' | 'app' | 'mini-program' | string;
17
17
  /** 订单状态(仅输出)。文档:open / completed / cancelled。来源:Order.status */
18
- export type OrderStatus = 'open' | 'completed' | 'cancelled' | string;
18
+ export declare type OrderStatus = 'open' | 'completed' | 'cancelled' | string;
19
19
  /** 支付状态。来源:Order.payment_status */
20
- export type OrderPaymentStatus = 'payment_processing' | 'paid' | 'unpaid' | 'partially_paid' | string;
20
+ export declare type OrderPaymentStatus = 'payment_processing' | 'paid' | 'unpaid' | 'partially_paid' | string;
21
21
  /** 发货状态(仅输出)。来源:Order.shipping_status */
22
- export type OrderShippingStatus = 'unfulfilled' | 'fulfilled' | string;
22
+ export declare type OrderShippingStatus = 'unfulfilled' | 'fulfilled' | string;
23
23
  /**
24
24
  * 预约子事件状态(仅输出)。
25
25
  * 文档:new / confirmed / arrived / started / completed / cancelled。
26
26
  * 来源:ScheduleEvent.appointment_status
27
27
  */
28
- export type AppointmentStatus = 'new' | 'confirmed' | 'arrived' | 'started' | 'completed' | 'cancelled' | string;
28
+ export declare type AppointmentStatus = 'new' | 'confirmed' | 'arrived' | 'started' | 'completed' | 'cancelled' | string;
29
29
  /** 折扣类型:shop(整单)/ product(商品)。来源:Discount.type */
30
- export type OrderProductDiscountType = 'shop' | 'product' | string;
30
+ export declare type OrderProductDiscountType = 'shop' | 'product' | string;
31
31
  /** 支付记录状态:paid / voided / payment_pending 等。来源:OrderPayment.status */
32
- export type OrderPaymentRecordStatus = 'paid' | 'voided' | 'payment_pending' | string;
32
+ export declare type OrderPaymentRecordStatus = 'paid' | 'voided' | 'payment_pending' | string;
33
33
  /** 附加费类型。来源:OrderSurcharge.type */
34
- export type OrderSurchargeType = string;
34
+ export declare type OrderSurchargeType = string;
35
35
  /** 商品折扣 metadata,常含 unique_identification_number */
36
36
  export interface OrderProductDiscountMetadata {
37
37
  /** 设备端本地唯一标识,用于与服务端记录对齐 */
@@ -419,12 +419,12 @@ export interface OrderData {
419
419
  [key: string]: any;
420
420
  }
421
421
  /** 去掉 bookings 后的订单快照;展开预约行时挂在 {@link BookingData.order} 上 */
422
- export type OrderWithoutBookings = Omit<OrderData, 'bookings'>;
422
+ export declare type OrderWithoutBookings = Omit<OrderData, 'bookings'>;
423
423
  /**
424
424
  * 展开后的单条预约视图:协议 {@link OrderBookingItem} 平铺字段 + 所属订单(不含 bookings)+
425
425
  * 当前预约归属的商品行(由订单 products 按 schedule_event_id / relation_items 归集,不修改 order)
426
426
  */
427
- export type BookingData = OrderBookingItem & {
427
+ export declare type BookingData = OrderBookingItem & {
428
428
  order: OrderWithoutBookings;
429
429
  products: OrderProductLineItem[];
430
430
  };
@@ -519,11 +519,11 @@ export interface OrderFilterRejectedEntry {
519
519
  /** 按筛选顺序命中的第一条未满足条件 */
520
520
  reason: OrderFilterRejectDetail;
521
521
  }
522
- export type OrderFilterResult = OrderModulePagedResult<OrderData> & {
522
+ export declare type OrderFilterResult = OrderModulePagedResult<OrderData> & {
523
523
  /** 被过滤掉的订单及首个命中原因(与筛选短路顺序一致;不含仅分页未展示的已通过订单) */
524
524
  rejected: OrderFilterRejectedEntry[];
525
525
  };
526
- export type BookingFilterResult = OrderModulePagedResult<BookingData>;
526
+ export declare type BookingFilterResult = OrderModulePagedResult<BookingData>;
527
527
  /**
528
528
  * SSE 同步配置
529
529
  */
@@ -535,7 +535,7 @@ export interface OrderSSESyncConfig {
535
535
  /**
536
536
  * Ably 事件类型
537
537
  */
538
- export type OrderAblyEventType = 'created' | 'updated' | 'deleted';
538
+ export declare type OrderAblyEventType = 'created' | 'updated' | 'deleted';
539
539
  /**
540
540
  * Ably 事件载荷
541
541
  */
@@ -148,4 +148,4 @@ export interface ProductFormatterContext {
148
148
  * 商品格式化器类型
149
149
  * 用于对商品数据进行处理和格式化(包括价格应用、字段扩展等)
150
150
  */
151
- export type ProductFormatter = (products: ProductData[], context: ProductFormatterContext) => ProductData[] | Promise<ProductData[]>;
151
+ export declare type ProductFormatter = (products: ProductData[], context: ProductFormatterContext) => ProductData[] | Promise<ProductData[]>;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Resource 模块主键类型
3
3
  */
4
- export type ResourceId = number | string;
4
+ export declare type ResourceId = number | string;
5
5
  /**
6
6
  * Sales / ScheduleEventResource:预约条目内关联资源(仅 ID 与占用,详情由设备端基准数据解析)
7
7
  * @see 统一 Sales 数据协议 3.4.1 resources
@@ -1,7 +1,7 @@
1
1
  import dayjs from "dayjs";
2
2
  import { ScheduleItem } from "../../../modules/Schedule/types";
3
3
  export declare const getDateIsInSchedule: (dateTime: string, scheduleList: ScheduleItem[]) => boolean;
4
- export type ScheduleTimeSlot = {
4
+ export declare type ScheduleTimeSlot = {
5
5
  /** 开始时间 HH:mm */
6
6
  start_time: string;
7
7
  /** 结束时间 HH:mm */