@pisell/private-materials 6.11.41 → 6.11.43

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 (103) 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/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  8. package/es/components/booking/components/footer/index.js +9 -3
  9. package/es/components/booking/components/voucher/index.d.ts +1 -0
  10. package/es/components/booking/deposit/index.d.ts +1 -0
  11. package/es/components/booking/info/index.d.ts +1 -0
  12. package/es/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  13. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  14. package/es/components/pay/toB/components/Cache/index.d.ts +1 -0
  15. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  16. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  17. package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -0
  18. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  19. package/lib/components/booking/components/footer/index.js +20 -12
  20. package/lib/components/booking/components/voucher/index.d.ts +1 -0
  21. package/lib/components/booking/deposit/index.d.ts +1 -0
  22. package/lib/components/booking/info/index.d.ts +1 -0
  23. package/lib/components/checkout/components/SearchAndClientModule/index.d.ts +1 -0
  24. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  25. package/lib/components/pay/toB/components/Cache/index.d.ts +1 -0
  26. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +1 -0
  27. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  28. package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +9 -0
  29. package/package.json +3 -3
  30. package/es/components/booking/components/footer/amount.d.ts +0 -38
  31. package/es/components/booking/components/footer/utils.d.ts +0 -67
  32. package/es/components/booking/hooks/usePromotion.d.ts +0 -301
  33. package/es/components/booking/hooks/useQuotation.d.ts +0 -5
  34. package/es/components/booking/info/pet/index.d.ts +0 -14
  35. package/es/components/booking/info/service/Lists.d.ts +0 -2
  36. package/es/components/booking/info/service2/utils.d.ts +0 -226
  37. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
  38. package/es/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  39. package/es/components/booking/info2/service/editService/index.d.ts +0 -8
  40. package/es/components/booking/utils/confirmHolderModal.d.ts +0 -13
  41. package/es/components/checkout/components/AmountSummary/index.d.ts +0 -26
  42. package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  43. package/es/components/eftposPay/huifu/const.d.ts +0 -5
  44. package/es/components/eftposPay/linkly/const.d.ts +0 -23
  45. package/es/components/eftposPay/payo/config.d.ts +0 -13
  46. package/es/components/eftposPay/payo/const.d.ts +0 -26
  47. package/es/components/eftposPay/tyro/const.d.ts +0 -17
  48. package/es/components/eftposPay/windcave/const.d.ts +0 -119
  49. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -3
  50. package/es/components/shoppingCart/hooks/usePromotionModal.d.ts +0 -20
  51. package/es/components/shoppingCart/server.d.ts +0 -11
  52. package/es/components/shoppingCart/type.d.ts +0 -57
  53. package/es/components/shoppingCart/utils.d.ts +0 -163
  54. package/es/components/ticketBooking/dialog.d.ts +0 -17
  55. package/es/components/ticketBooking/locales.d.ts +0 -340
  56. package/es/components/ticketBooking/serve.d.ts +0 -289
  57. package/es/components/ticketBooking/utils/edit.d.ts +0 -1
  58. package/es/components/ticketBooking/utils/index.d.ts +0 -103
  59. package/es/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
  60. package/es/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -14
  61. package/es/plus/pisellSalesManagement/config/booking.d.ts +0 -185
  62. package/es/plus/pisellSalesManagement/config/order.d.ts +0 -172
  63. package/es/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
  64. package/es/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
  65. package/es/pro/skuDetailModal/index.d.ts +0 -5
  66. package/es/pro/skuDetailModal/types.d.ts +0 -388
  67. package/lib/components/booking/components/footer/amount.d.ts +0 -38
  68. package/lib/components/booking/components/footer/utils.d.ts +0 -67
  69. package/lib/components/booking/hooks/usePromotion.d.ts +0 -301
  70. package/lib/components/booking/hooks/useQuotation.d.ts +0 -5
  71. package/lib/components/booking/info/pet/index.d.ts +0 -14
  72. package/lib/components/booking/info/service/Lists.d.ts +0 -2
  73. package/lib/components/booking/info/service2/utils.d.ts +0 -226
  74. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -4
  75. package/lib/components/booking/info2/service/editNormalService/index.d.ts +0 -3
  76. package/lib/components/booking/info2/service/editService/index.d.ts +0 -8
  77. package/lib/components/booking/utils/confirmHolderModal.d.ts +0 -13
  78. package/lib/components/checkout/components/AmountSummary/index.d.ts +0 -26
  79. package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +0 -85
  80. package/lib/components/eftposPay/huifu/const.d.ts +0 -5
  81. package/lib/components/eftposPay/linkly/const.d.ts +0 -23
  82. package/lib/components/eftposPay/payo/config.d.ts +0 -13
  83. package/lib/components/eftposPay/payo/const.d.ts +0 -26
  84. package/lib/components/eftposPay/tyro/const.d.ts +0 -17
  85. package/lib/components/eftposPay/windcave/const.d.ts +0 -119
  86. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -3
  87. package/lib/components/shoppingCart/hooks/usePromotionModal.d.ts +0 -20
  88. package/lib/components/shoppingCart/server.d.ts +0 -11
  89. package/lib/components/shoppingCart/type.d.ts +0 -57
  90. package/lib/components/shoppingCart/utils.d.ts +0 -163
  91. package/lib/components/ticketBooking/dialog.d.ts +0 -17
  92. package/lib/components/ticketBooking/locales.d.ts +0 -340
  93. package/lib/components/ticketBooking/serve.d.ts +0 -289
  94. package/lib/components/ticketBooking/utils/edit.d.ts +0 -1
  95. package/lib/components/ticketBooking/utils/index.d.ts +0 -103
  96. package/lib/plus/pisellSalesGrid/PisellSalesGrid.d.ts +0 -5
  97. package/lib/plus/pisellSalesManagement/components/BookingFormsPreview.d.ts +0 -14
  98. package/lib/plus/pisellSalesManagement/config/booking.d.ts +0 -185
  99. package/lib/plus/pisellSalesManagement/config/order.d.ts +0 -172
  100. package/lib/plus/pisellSalesManagement/hooks/useBookingPerspective.d.ts +0 -2
  101. package/lib/plus/pisellSalesManagement/hooks/useOrderPerspective.d.ts +0 -2
  102. package/lib/pro/skuDetailModal/index.d.ts +0 -5
  103. package/lib/pro/skuDetailModal/types.d.ts +0 -388
@@ -1,388 +0,0 @@
1
- export declare type ChannelApplication = 'online-store' | 'pos' | 'wholesalebusiness' | 'kiosk';
2
- export declare type ProductType = 'physical' | 'virtual';
3
- export declare type WeightUnit = 'KILOGRAMS' | 'GRAMS' | 'POUNDS' | 'OUNCES';
4
- export declare type DurationType = 'minutes' | 'hours' | 'days';
5
- export declare type ResourceType = 'single' | 'multiple';
6
- export declare type RelationType = 'form';
7
- export declare type EventType = 'schedule_event';
8
- export declare type MaxParticipantsType = 'custom-limit' | 'unlimited';
9
- export interface TimeSlice {
10
- label: string;
11
- value: string;
12
- }
13
- export interface DurationSlice {
14
- label: string;
15
- value: number;
16
- }
17
- export interface MultiLanguageName {
18
- en?: string;
19
- 'zh-CN'?: string;
20
- 'zh-HK'?: string;
21
- original?: string;
22
- 'ja'?: string;
23
- 'pt'?: string;
24
- auto?: string;
25
- }
26
- export interface MultiLanguageTitle {
27
- label: {
28
- type: 'i18n';
29
- 'en-US': string;
30
- 'zh-CN': string;
31
- 'ja'?: string;
32
- 'pt'?: string;
33
- };
34
- }
35
- export interface SelectType {
36
- type: 'single' | 'multiple';
37
- min: number;
38
- max: number;
39
- }
40
- export interface Duration {
41
- type: DurationType;
42
- value: number;
43
- }
44
- export interface CutOffTime {
45
- unit: number;
46
- unit_type: DurationType;
47
- future_day: number;
48
- type: 'advance';
49
- ongoing: {
50
- type: 'before_end';
51
- unit: number;
52
- };
53
- }
54
- export interface MachineCode {
55
- make_over: number;
56
- beforehand: number;
57
- limit_count: number;
58
- customer: number;
59
- send_action: string;
60
- hide_recharge: number;
61
- distributor_automatic: number;
62
- }
63
- export interface Form {
64
- id: number;
65
- shop_id: number;
66
- title: string;
67
- navigation_display: number;
68
- button: string;
69
- describe: string;
70
- status: 'published' | 'draft';
71
- resource_sort: number;
72
- code: string;
73
- type: 'manual' | 'auto';
74
- version: number;
75
- setting: any;
76
- created_at: string;
77
- updated_at: string;
78
- }
79
- export interface PartyroomPackage {
80
- type: 'product_all' | 'product_part';
81
- }
82
- export interface EventListItem {
83
- id: number;
84
- start_date?: string;
85
- start_time?: string;
86
- end_date?: string;
87
- end_time?: string;
88
- relation_id: number;
89
- number?: number;
90
- start_at?: string;
91
- end_at?: string;
92
- keys?: string;
93
- pax: number;
94
- type: EventType;
95
- pax_list: Record<string, number>;
96
- }
97
- export interface TimeConfig {
98
- keys: string;
99
- schedule_id: number;
100
- item_type: string;
101
- item_id: number;
102
- start_date: string;
103
- end_date: string;
104
- start_time: string;
105
- end_time: string;
106
- is_all: number;
107
- relation_type: RelationType;
108
- start_at: string;
109
- end_at: string;
110
- event_list: EventListItem[];
111
- max_participants_type?: MaxParticipantsType;
112
- max_participants_limit?: number;
113
- is_blocked?: number;
114
- blocked_times?: any[];
115
- order_event_count?: number;
116
- unique?: string;
117
- _extend?: {
118
- isMaxLimitRange: boolean;
119
- isDateRange: boolean;
120
- isCountRange: boolean;
121
- isUsable: boolean;
122
- };
123
- }
124
- export interface ResourceMetadata {
125
- combined_resource: any;
126
- }
127
- export interface ResourceItem {
128
- id: number;
129
- main_field: string;
130
- sort: number;
131
- form_id: number;
132
- times: TimeConfig[];
133
- capacity: number;
134
- combined_resource: any;
135
- resource_form_id: string | number;
136
- form_code: string;
137
- resourceType: ResourceType;
138
- children: any[];
139
- metadata: ResourceMetadata;
140
- form_tag?: any;
141
- policy?: number;
142
- partyroom_package?: PartyroomPackage;
143
- status?: string;
144
- description?: string;
145
- media?: string;
146
- subtitle?: string;
147
- room_name?: string;
148
- labelText?: string;
149
- form_record_id?: number;
150
- item_type?: string;
151
- form_resource_sort?: number;
152
- form_title?: string;
153
- form?: Form;
154
- _extend?: {
155
- usableTime?: TimeConfig;
156
- };
157
- usable?: boolean;
158
- label?: any;
159
- }
160
- export interface ResourceTypeInfo {
161
- id: number;
162
- title: string;
163
- status: number;
164
- code: string;
165
- created_at: string;
166
- updated_at: string | null;
167
- type: ResourceType;
168
- optional_resource: number[];
169
- default_resource: any[];
170
- select_type: SelectType;
171
- resource_type_id: number;
172
- renderList?: ResourceItem[];
173
- form_id?: number;
174
- renderListMaps?: Record<string, ResourceItem>;
175
- }
176
- export interface ProductResource {
177
- resources: ResourceTypeInfo[];
178
- }
179
- export interface CapacityCustom {
180
- name: MultiLanguageName;
181
- min: number;
182
- max: number;
183
- id: string;
184
- }
185
- export interface CapacityPackage {
186
- }
187
- export interface Capacity {
188
- type: 'product' | 'package';
189
- custom: CapacityCustom[];
190
- package: CapacityPackage[];
191
- }
192
- export interface ProductDisplaySetting {
193
- kiosk: {
194
- use_display_mode: number;
195
- product_option_mode: any;
196
- product_option_mode_paging: any;
197
- product_bundle_mode: any;
198
- product_bundle_mode_paging: any;
199
- };
200
- }
201
- export interface ShelfProductData {
202
- }
203
- export interface Category {
204
- id: number;
205
- name: string;
206
- icon: string;
207
- slug: string;
208
- sort: number;
209
- }
210
- export interface Collection {
211
- id: number;
212
- title: string;
213
- cover: string;
214
- }
215
- export interface ExtendData {
216
- duration: number;
217
- start_time: string;
218
- start_date: string;
219
- quantity: number;
220
- price: string;
221
- product_name: string;
222
- other: {
223
- bundle: any[];
224
- key: number;
225
- option: any[];
226
- product_id: number;
227
- product_variant_id: number;
228
- quantity: number;
229
- rowKey: number;
230
- session: any;
231
- unique: string;
232
- };
233
- total: number;
234
- origin_total: number;
235
- startDate: string;
236
- endDate: string;
237
- capacity: Array<{
238
- id: number;
239
- value: number;
240
- name: string;
241
- }>;
242
- resource: Record<string, Array<{
243
- children: any[];
244
- form_id: number;
245
- relation_id: number;
246
- like_status: string;
247
- errors: any[];
248
- metadata: {
249
- form_name: string;
250
- resource_name: string;
251
- };
252
- }>>;
253
- note?: string;
254
- _skuValue?: {
255
- bundle: any[];
256
- option: any[];
257
- product_id: number;
258
- product_variant_id: number;
259
- };
260
- priceOverride?: number;
261
- }
262
- export interface TimeObj {
263
- timeSlices: TimeSlice[];
264
- durationSlicesBasedOnTime: DurationSlice[];
265
- }
266
- export interface DataObj {
267
- timeObj: TimeObj;
268
- capacitys: Capacity;
269
- resourcesOrigin: ResourceTypeInfo[];
270
- resources: ResourceTypeInfo[];
271
- resourceMaps: Record<string, ResourceTypeInfo>;
272
- }
273
- export interface DiscountItem {
274
- amount: number;
275
- type: 'discount_card' | 'discount_code' | 'discount_package';
276
- discount: {
277
- resource_id: number;
278
- title: MultiLanguageTitle;
279
- original_amount: number;
280
- product_id: number;
281
- percent: string;
282
- };
283
- num: number;
284
- }
285
- export interface ProductData {
286
- id: number;
287
- extension_id: number;
288
- extension_type: string;
289
- shop_id: number;
290
- title: string;
291
- slug: string;
292
- status: 'published' | 'draft' | 'archived';
293
- stock_quantity: number;
294
- sales_quantity: number;
295
- sum_stock: number;
296
- price: string;
297
- original_price: string;
298
- cost_price: string;
299
- cover: string;
300
- channel_application: ChannelApplication[];
301
- is_track: number;
302
- over_sold: number;
303
- is_gst: number;
304
- code: string;
305
- barcode: string;
306
- is_delivery: number;
307
- weight_unit: WeightUnit;
308
- weight_value: string;
309
- type: ProductType;
310
- unit: string;
311
- sort: number;
312
- subtitle: string;
313
- minimum_markup_price: string;
314
- is_bundle: number;
315
- bundle_group_count: number;
316
- option_group_count: number;
317
- is_variant: number;
318
- variant_count: number;
319
- cut_off_time: CutOffTime;
320
- policy: number;
321
- machine_code: MachineCode;
322
- duration: Duration;
323
- product_resource: ProductResource;
324
- capacity: Capacity;
325
- product_display_setting: ProductDisplaySetting;
326
- shelf_product_datas: ShelfProductData[];
327
- step_value: number;
328
- min_num_unit: number;
329
- schedules: any[];
330
- is_charge_tax: number;
331
- base_price: string;
332
- variant: any[];
333
- category: Category[];
334
- collection: Collection[];
335
- product_id: number;
336
- _id: string;
337
- _key: number;
338
- _extend: ExtendData;
339
- new: number;
340
- currentDefaultTime: string;
341
- _data: DataObj;
342
- autoClose: boolean;
343
- _serviceKey: string;
344
- _holderKey: string;
345
- discount_list: DiscountItem[];
346
- }
347
- export declare type SkuDetailModalData = ProductData;
348
- export interface SkuDetailModalProps {
349
- /** 确认回调 */
350
- onConfirm?: (data: ProductData) => void;
351
- /** 删除回调 */
352
- onRemove?: (productData: ProductData) => void;
353
- /** 关闭回调 */
354
- onClose?: () => void;
355
- }
356
- export interface SkuDetailModalRef {
357
- /** 打开弹窗 */
358
- open: (data: ProductData | SkuDetailModalOpenParams) => void;
359
- }
360
- export interface ConfigProps {
361
- /** 是否显示数量步进器 */
362
- isShowStepper?: boolean;
363
- /** 是否显示备注 */
364
- isShowNote?: boolean;
365
- /** 是否使用外部传递的 variant 数据,而不是组件内部从接口获取的数据。默认 false(使用接口数据) */
366
- useExternalVariant?: boolean;
367
- /** 是否使用自定义数据覆盖接口字段 */
368
- useCustomData?: boolean;
369
- /** 自定义数据,用于覆盖接口返回的特定字段,如 { price: 0, origin_price: 17 } */
370
- customData?: Partial<ProductData>;
371
- /** 是否调用商品详情接口 */
372
- isCallProductDetail?: boolean;
373
- /** 自定义取消按钮 */
374
- onCancel?: () => void;
375
- /** 自定义确认按钮 */
376
- onConfirm?: (data: ProductData) => void;
377
- /** 自定义移除按钮 */
378
- onRemove?: (data: ProductData) => void;
379
- /** 自定义关闭按钮 */
380
- onClose?: () => void;
381
- }
382
- export interface SkuDetailModalOpenParams {
383
- id: number;
384
- date: string;
385
- is_eject?: 0 | 1;
386
- productData?: ProductData;
387
- skuDetailConfig?: ConfigProps;
388
- }
@@ -1,38 +0,0 @@
1
- export declare const getRelationDetailsTotal: (relation_details: any) => number;
2
- export declare const getProductDiscountProductDiscountDifference: (product: any) => any;
3
- export declare const getIsPriceIncludeTax: (state: any) => any;
4
- /**
5
- * 总金额
6
- * @param state
7
- * @param options isEdit: 预约信息是否发生变动
8
- * @returns
9
- */
10
- export declare const getSumTotal: (state: any, options: {
11
- [key: string]: any;
12
- isEdit: boolean;
13
- ScheduleModule: any;
14
- }) => {
15
- productAmount: number;
16
- duration: string;
17
- tax: number;
18
- taxInfo: {
19
- title: any;
20
- rate: any;
21
- is_price_include_tax: any;
22
- };
23
- shopDiscount: number;
24
- surcharge: any;
25
- otherAmount: any;
26
- sumTotalAmount: number;
27
- paidAmount: any;
28
- notPaidAmount: number;
29
- paySurchargeFee: number;
30
- expectAmount: number;
31
- actualPaidAmount: any;
32
- orderPaidAmount: any;
33
- totalRefundAmount: number;
34
- dueAmount: number;
35
- roundingAmount: number;
36
- originExpectAmount: number;
37
- originExpectAmountWithoutDiscount: number;
38
- };
@@ -1,67 +0,0 @@
1
- /**
2
- * @title: 套餐单规格信息
3
- * @description:
4
- * @param {any} option
5
- * @return {*}
6
- * @Author: zhiwei.Wang
7
- * @Date: 2024-02-19 09:26
8
- */
9
- export declare const formatProductOption: (option: any) => any;
10
- /**
11
- * @title: 套餐信息
12
- * @description:
13
- * @param {any} bundle
14
- * @return {*}
15
- * @Author: zhiwei.Wang
16
- * @Date: 2024-02-19 09:26
17
- */
18
- export declare const formatProductBundle: (bundle: any, is_price_include_tax: number) => any;
19
- /**
20
- * 获取子商品折扣信息
21
- * @param item
22
- */
23
- export declare const getBundleDiscountList: (bundle: any[]) => any[];
24
- export interface ResourceItem {
25
- [key: string]: any;
26
- }
27
- /**
28
- * @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
29
- * @description:
30
- * @param {object} resource
31
- * @return {*}
32
- * @Author: jinglin.tan
33
- */
34
- export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
35
- export declare const checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
36
- /**
37
- * @title: 格式化商品单价
38
- * @description:
39
- * @param {any} item
40
- * @return {*}
41
- * @Author: WangHan
42
- * @Date: 2024-12-23 12:05
43
- */
44
- export declare const formatProductPrice: (item: any) => number;
45
- /**
46
- * checkout2.0: 单个数量商品总价(原价),包含所有套餐子商品金额、报价单等等
47
- * @param item
48
- * @returns
49
- */
50
- export declare const formatOriginalPrice: (item: any) => number;
51
- /**
52
- * checkout2.0: 商品维度折扣后价格, original_price - 商品折扣金额(商品手动折扣等等)
53
- * @param item
54
- * @returns
55
- */
56
- export declare const formatSellingPrice: (item: any) => number;
57
- export declare const getSourceProductPrice: (item: any) => number;
58
- export declare const getMainProductSellingPrice: (item: any) => number | undefined;
59
- /**
60
- * @title: 是否包含跨日预约商品
61
- * @description:
62
- * @param {any} data
63
- * @return {*}
64
- */
65
- export declare const getHasMultiDayProduct: (data: any) => any;
66
- export declare const formatValues: (state: any) => any;
67
- export declare const checkHolderIsError: (state: any) => any;