@pisell/pisellos 2.2.31 → 2.2.32

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.
@@ -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(): "duration" | "session" | "normal";
52
+ getProductType(): "normal" | "duration" | "session";
53
53
  }
@@ -21,7 +21,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
21
21
  * @return {*}
22
22
  * @Author: xiangfeng.xue
23
23
  */
24
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
24
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
25
25
  /**
26
26
  * @title: 计算定金
27
27
  * @param items - 购物车商品数组
@@ -11,6 +11,8 @@ export type { RouteHandler, HttpMethod, RouteDefinition, Router, ModuleRegistryC
11
11
  */
12
12
  declare class Server {
13
13
  private core;
14
+ private app;
15
+ private logger;
14
16
  products?: ProductsModule;
15
17
  menu?: MenuModule;
16
18
  quotation?: QuotationModule;
@@ -142,6 +144,24 @@ declare class Server {
142
144
  * @private
143
145
  */
144
146
  private filterProductsByMenuConfig;
147
+ /**
148
+ * 记录信息日志
149
+ * @param title 日志标题
150
+ * @param metadata 日志元数据
151
+ */
152
+ private logInfo;
153
+ /**
154
+ * 记录警告日志
155
+ * @param title 日志标题
156
+ * @param metadata 日志元数据
157
+ */
158
+ private logWarning;
159
+ /**
160
+ * 记录错误日志
161
+ * @param title 日志标题
162
+ * @param metadata 日志元数据
163
+ */
164
+ private logError;
145
165
  /**
146
166
  * 处理获取日程时间段点的请求
147
167
  * 通过餐牌ID列表获取所有相关日程的时间段点