@pisell/pisellos 2.3.128 → 2.3.130

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 (160) hide show
  1. package/dist/index.d.ts +2 -0
  2. package/dist/index.js +3 -1
  3. package/dist/model/strategy/adapter/promotion/index.js +0 -9
  4. package/dist/model/strategy/adapter/walletPass/evaluator.d.ts +2 -0
  5. package/dist/model/strategy/adapter/walletPass/evaluator.js +4 -2
  6. package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.js +58 -19
  7. package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.js +24 -12
  8. package/dist/modules/Customer/index.js +6 -3
  9. package/dist/modules/Customer/types.d.ts +2 -0
  10. package/dist/modules/Discount/availability.d.ts +7 -0
  11. package/dist/modules/Discount/availability.js +49 -0
  12. package/dist/modules/Discount/entitlementPass.d.ts +34 -0
  13. package/dist/modules/Discount/entitlementPass.js +147 -0
  14. package/dist/modules/Discount/index.d.ts +2 -2
  15. package/dist/modules/Discount/index.js +37 -151
  16. package/dist/modules/Discount/types.d.ts +36 -5
  17. package/dist/modules/FulfillmentTiming/index.d.ts +11 -0
  18. package/dist/modules/FulfillmentTiming/index.js +407 -0
  19. package/dist/modules/FulfillmentTiming/types.d.ts +67 -0
  20. package/dist/modules/FulfillmentTiming/types.js +1 -0
  21. package/dist/modules/OpenData/types.d.ts +6 -0
  22. package/dist/modules/Order/index.d.ts +12 -0
  23. package/dist/modules/Order/index.js +498 -247
  24. package/dist/modules/Order/pickupTiming.d.ts +46 -0
  25. package/dist/modules/Order/pickupTiming.js +53 -0
  26. package/dist/modules/Order/types.d.ts +5 -1
  27. package/dist/modules/Order/utils/orderCollectionIdentity.js +16 -12
  28. package/dist/modules/Order/utils.d.ts +1 -1
  29. package/dist/modules/Order/utils.js +117 -66
  30. package/dist/modules/Payment/index.js +9 -10
  31. package/dist/modules/Payment/types.d.ts +21 -1
  32. package/dist/modules/Payment/types.js +2 -0
  33. package/dist/modules/Payment/walletpass.d.ts +1 -1
  34. package/dist/modules/Payment/walletpass.js +80 -47
  35. package/dist/modules/Rules/index.d.ts +2 -2
  36. package/dist/modules/Rules/index.js +480 -186
  37. package/dist/modules/Rules/types.d.ts +4 -0
  38. package/dist/modules/Schedule/index.d.ts +8 -0
  39. package/dist/modules/Schedule/index.js +141 -39
  40. package/dist/modules/index.d.ts +1 -0
  41. package/dist/modules/index.js +1 -0
  42. package/dist/plugins/request.d.ts +7 -0
  43. package/dist/server/modules/order/types.d.ts +2 -0
  44. package/dist/server/utils/small-ticket.d.ts +1 -85
  45. package/dist/server/utils/small-ticket.js +2 -2542
  46. package/dist/shared/payment/loadPaymentMethods.d.ts +9 -0
  47. package/dist/shared/payment/loadPaymentMethods.js +66 -0
  48. package/dist/shared/receipt/loadCustomerInvoiceLayout.d.ts +22 -0
  49. package/dist/shared/receipt/loadCustomerInvoiceLayout.js +142 -0
  50. package/dist/shared/receipt/small-ticket.d.ts +85 -0
  51. package/dist/shared/receipt/small-ticket.js +2576 -0
  52. package/dist/shared/sales/loadSalesOrderSnapshot.d.ts +9 -0
  53. package/dist/shared/sales/loadSalesOrderSnapshot.js +21 -0
  54. package/dist/solution/BaseSales/index.d.ts +25 -0
  55. package/dist/solution/BaseSales/index.js +1226 -1040
  56. package/dist/solution/BaseSales/pickupTiming.d.ts +43 -0
  57. package/dist/solution/BaseSales/pickupTiming.js +589 -0
  58. package/dist/solution/BaseSales/types.d.ts +2 -2
  59. package/dist/solution/BaseSales/utils/cartPromotion.js +141 -126
  60. package/dist/solution/BaseSales/utils/parseSalesResponse.js +3 -0
  61. package/dist/solution/BookingByStep/index.d.ts +1 -1
  62. package/dist/solution/BookingTicket/index.d.ts +4 -5
  63. package/dist/solution/BookingTicket/index.js +60 -63
  64. package/dist/solution/BookingTicket/types.d.ts +5 -1
  65. package/dist/solution/BookingTicket/utils/cartView.js +3 -1
  66. package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts +2 -0
  67. package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.js +338 -147
  68. package/dist/solution/BookingTicket/utils/scan/cloudSearch.js +8 -4
  69. package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts +6 -0
  70. package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.js +19 -6
  71. package/dist/solution/OrderInvoicePreview/index.d.ts +56 -0
  72. package/dist/solution/OrderInvoicePreview/index.js +269 -0
  73. package/dist/solution/ShopDiscount/index.d.ts +2 -0
  74. package/dist/solution/ShopDiscount/index.js +99 -42
  75. package/dist/solution/ShopDiscount/utils.d.ts +4 -2
  76. package/dist/solution/ShopDiscount/utils.js +43 -23
  77. package/dist/solution/UnifiedBookingSales/index.d.ts +13 -4
  78. package/dist/solution/UnifiedBookingSales/index.js +874 -709
  79. package/dist/solution/index.d.ts +1 -0
  80. package/dist/solution/index.js +2 -1
  81. package/lib/index.d.ts +2 -0
  82. package/lib/index.js +21 -1
  83. package/lib/model/strategy/adapter/walletPass/evaluator.d.ts +2 -0
  84. package/lib/model/strategy/adapter/walletPass/evaluator.js +2 -0
  85. package/lib/modules/BookingContext/utils/buildCacheItemFromOrderLine.js +35 -6
  86. package/lib/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.js +13 -6
  87. package/lib/modules/Customer/index.js +5 -1
  88. package/lib/modules/Customer/types.d.ts +2 -0
  89. package/lib/modules/Discount/availability.d.ts +7 -0
  90. package/lib/modules/Discount/availability.js +43 -0
  91. package/lib/modules/Discount/entitlementPass.d.ts +34 -0
  92. package/lib/modules/Discount/entitlementPass.js +141 -0
  93. package/lib/modules/Discount/index.d.ts +2 -2
  94. package/lib/modules/Discount/index.js +23 -129
  95. package/lib/modules/Discount/types.d.ts +36 -5
  96. package/lib/modules/FulfillmentTiming/index.d.ts +11 -0
  97. package/lib/modules/FulfillmentTiming/index.js +359 -0
  98. package/lib/modules/FulfillmentTiming/types.d.ts +67 -0
  99. package/lib/modules/FulfillmentTiming/types.js +5 -0
  100. package/lib/modules/OpenData/types.d.ts +6 -0
  101. package/lib/modules/Order/index.d.ts +12 -0
  102. package/lib/modules/Order/index.js +252 -48
  103. package/lib/modules/Order/pickupTiming.d.ts +46 -0
  104. package/lib/modules/Order/pickupTiming.js +61 -0
  105. package/lib/modules/Order/types.d.ts +5 -1
  106. package/lib/modules/Order/utils/orderCollectionIdentity.js +14 -11
  107. package/lib/modules/Order/utils.d.ts +1 -1
  108. package/lib/modules/Order/utils.js +51 -7
  109. package/lib/modules/Payment/index.js +3 -4
  110. package/lib/modules/Payment/types.d.ts +21 -1
  111. package/lib/modules/Payment/types.js +1 -0
  112. package/lib/modules/Payment/walletpass.d.ts +1 -1
  113. package/lib/modules/Payment/walletpass.js +29 -9
  114. package/lib/modules/Rules/index.d.ts +2 -2
  115. package/lib/modules/Rules/index.js +357 -110
  116. package/lib/modules/Rules/types.d.ts +4 -0
  117. package/lib/modules/Schedule/index.d.ts +8 -0
  118. package/lib/modules/Schedule/index.js +68 -12
  119. package/lib/modules/index.d.ts +1 -0
  120. package/lib/modules/index.js +11 -0
  121. package/lib/plugins/request.d.ts +7 -0
  122. package/lib/server/modules/order/types.d.ts +2 -0
  123. package/lib/server/utils/small-ticket.d.ts +1 -85
  124. package/lib/server/utils/small-ticket.js +9 -2305
  125. package/lib/shared/payment/loadPaymentMethods.d.ts +9 -0
  126. package/lib/shared/payment/loadPaymentMethods.js +40 -0
  127. package/lib/shared/receipt/loadCustomerInvoiceLayout.d.ts +22 -0
  128. package/lib/shared/receipt/loadCustomerInvoiceLayout.js +86 -0
  129. package/lib/shared/receipt/small-ticket.d.ts +85 -0
  130. package/lib/shared/receipt/small-ticket.js +2342 -0
  131. package/lib/shared/sales/loadSalesOrderSnapshot.d.ts +9 -0
  132. package/lib/shared/sales/loadSalesOrderSnapshot.js +22 -0
  133. package/lib/solution/BaseSales/index.d.ts +25 -0
  134. package/lib/solution/BaseSales/index.js +102 -3
  135. package/lib/solution/BaseSales/pickupTiming.d.ts +43 -0
  136. package/lib/solution/BaseSales/pickupTiming.js +269 -0
  137. package/lib/solution/BaseSales/types.d.ts +2 -2
  138. package/lib/solution/BaseSales/utils/cartPromotion.js +12 -4
  139. package/lib/solution/BaseSales/utils/parseSalesResponse.js +3 -0
  140. package/lib/solution/BookingByStep/index.d.ts +1 -1
  141. package/lib/solution/BookingTicket/index.d.ts +4 -5
  142. package/lib/solution/BookingTicket/index.js +36 -33
  143. package/lib/solution/BookingTicket/types.d.ts +5 -1
  144. package/lib/solution/BookingTicket/utils/cartView.js +3 -1
  145. package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts +2 -0
  146. package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.js +174 -42
  147. package/lib/solution/BookingTicket/utils/scan/cloudSearch.js +8 -4
  148. package/lib/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts +6 -0
  149. package/lib/solution/BookingTicket/utils/scan/formatGlobalScan.js +11 -3
  150. package/lib/solution/OrderInvoicePreview/index.d.ts +56 -0
  151. package/lib/solution/OrderInvoicePreview/index.js +192 -0
  152. package/lib/solution/ShopDiscount/index.d.ts +2 -0
  153. package/lib/solution/ShopDiscount/index.js +55 -9
  154. package/lib/solution/ShopDiscount/utils.d.ts +4 -2
  155. package/lib/solution/ShopDiscount/utils.js +42 -25
  156. package/lib/solution/UnifiedBookingSales/index.d.ts +13 -4
  157. package/lib/solution/UnifiedBookingSales/index.js +132 -48
  158. package/lib/solution/index.d.ts +1 -0
  159. package/lib/solution/index.js +11 -0
  160. package/package.json +1 -1
@@ -29,6 +29,10 @@ export interface RulesCalcDiscountOptions {
29
29
  discountId?: number;
30
30
  selectedList?: SetDiscountSelectedParams[];
31
31
  scan?: boolean;
32
+ /** 本次扫码优先使用的次卡实例;普通重算不传,继续保留商品行当前选择。 */
33
+ preferredEntitlementPassIds?: number[];
34
+ /** 普通重算保留商品行已应用的次卡;最优选择传 false 恢复自动排序。 */
35
+ preserveEntitlementSelection?: boolean;
32
36
  /** Change time 重报价目标行:允许已选编辑态折扣卡重新应用到这些 booking 商品。 */
33
37
  reapplyBookingDiscountProductUids?: string[];
34
38
  /** Reweighed order lines only: reapply selected wallet discounts against their new amount. */
@@ -10,6 +10,10 @@ export declare class ScheduleModule extends BaseModule implements Module, Schedu
10
10
  private openCache;
11
11
  private fatherModule;
12
12
  private hasLoadedScheduleList;
13
+ private scheduleListPromise;
14
+ private scheduleListRequestVersion;
15
+ private scheduleCatalogScope;
16
+ private otherParams;
13
17
  constructor(name?: string, version?: string);
14
18
  initialize(core: PisellCore, options: ModuleOptions): Promise<void>;
15
19
  /**
@@ -19,6 +23,9 @@ export declare class ScheduleModule extends BaseModule implements Module, Schedu
19
23
  * scheduleModule.updateOtherParams({ openCache: true, cacheId: 'cache-2' });
20
24
  */
21
25
  updateOtherParams(params: Record<string, any>): void;
26
+ private syncScheduleCatalogScope;
27
+ private resetScheduleCatalog;
28
+ destroy(): void;
22
29
  /**
23
30
  * 加载当前店铺下所有 schedule
24
31
  *
@@ -27,6 +34,7 @@ export declare class ScheduleModule extends BaseModule implements Module, Schedu
27
34
  loadAllSchedule(options?: {
28
35
  useCache?: boolean;
29
36
  }): Promise<void>;
37
+ private loadScheduleCatalog;
30
38
  setScheduleList(list: ScheduleItem[]): void;
31
39
  private syncScheduleMap;
32
40
  getScheduleList(): ScheduleItem[];
@@ -24,10 +24,18 @@ class ScheduleModule extends _BaseModule.BaseModule {
24
24
  openCache = false;
25
25
  fatherModule;
26
26
  hasLoadedScheduleList = false;
27
+ scheduleListPromise = null;
28
+ scheduleListRequestVersion = 0;
29
+ scheduleCatalogScope = '';
30
+ otherParams = {};
27
31
  constructor(name, version) {
28
32
  super(name, version);
29
33
  }
30
34
  async initialize(core, options) {
35
+ // The store proxies initialState, so capture its input before resets write through it.
36
+ const initialScheduleList = options.initialState?.scheduleList;
37
+ const hasInitialScheduleList = Array.isArray(initialScheduleList);
38
+ this.resetScheduleCatalog();
31
39
  this.core = core;
32
40
 
33
41
  // 获取依赖的插件
@@ -40,24 +48,18 @@ class ScheduleModule extends _BaseModule.BaseModule {
40
48
  // this.state = { ...this.state, ...options.initialState }
41
49
  // }
42
50
  this.store = options?.store;
51
+ this.updateOtherParams(options.otherParams || {});
43
52
  if (options.initialState) {
44
- this.store.scheduleList = options.initialState.scheduleList;
53
+ this.store.scheduleList = hasInitialScheduleList ? initialScheduleList : [];
45
54
  this.syncScheduleMap();
46
55
  this.store.availabilityDateList = options.initialState.availabilityDateList;
47
- this.hasLoadedScheduleList = Array.isArray(options.initialState.scheduleList);
56
+ this.hasLoadedScheduleList = hasInitialScheduleList;
48
57
  } else {
49
58
  this.store.scheduleList = [];
50
59
  this.store.map = new Map();
51
60
  this.store.availabilityDateList = [];
52
61
  this.hasLoadedScheduleList = false;
53
62
  }
54
- if (options.otherParams?.cacheId) {
55
- this.openCache = options.otherParams.openCache;
56
- this.cacheId = options.otherParams.cacheId;
57
- }
58
- if (options.otherParams?.fatherModule) {
59
- this.fatherModule = options.otherParams.fatherModule;
60
- }
61
63
  }
62
64
 
63
65
  /**
@@ -68,9 +70,34 @@ class ScheduleModule extends _BaseModule.BaseModule {
68
70
  */
69
71
  updateOtherParams(params) {
70
72
  const otherParams = params || {};
73
+ this.otherParams = {
74
+ ...otherParams
75
+ };
71
76
  this.openCache = otherParams.openCache ?? false;
72
77
  this.cacheId = otherParams.cacheId;
73
78
  this.fatherModule = otherParams.fatherModule;
79
+ this.syncScheduleCatalogScope();
80
+ }
81
+ syncScheduleCatalogScope() {
82
+ const context = this.core?.context;
83
+ const shopId = typeof context?.getData === 'function' ? context.getData('shop_id') : context?.shop_id;
84
+ const params = this.otherParams;
85
+ const scope = JSON.stringify([this.cacheId, this.fatherModule, params.businessCode ?? params.business_code, params.channel, params.platform, params.businessTimezone, shopId].map(value => String(value ?? '').trim()));
86
+ if (scope !== this.scheduleCatalogScope) {
87
+ this.resetScheduleCatalog();
88
+ this.scheduleCatalogScope = scope;
89
+ }
90
+ }
91
+ resetScheduleCatalog() {
92
+ this.scheduleListRequestVersion += 1;
93
+ this.scheduleListPromise = null;
94
+ this.hasLoadedScheduleList = false;
95
+ this.store.scheduleList = [];
96
+ this.store.map = new Map();
97
+ }
98
+ destroy() {
99
+ this.resetScheduleCatalog();
100
+ super.destroy();
74
101
  }
75
102
 
76
103
  /**
@@ -79,14 +106,40 @@ class ScheduleModule extends _BaseModule.BaseModule {
79
106
  * @memberof ScheduleModule
80
107
  */
81
108
  async loadAllSchedule(options = {}) {
82
- const scheduleList = await this.request.get(`/schedule`, {
109
+ this.syncScheduleCatalogScope();
110
+ const useCache = options.useCache ?? true;
111
+ if (useCache) {
112
+ if (this.scheduleListPromise) return this.scheduleListPromise;
113
+ if (this.hasLoadedScheduleList) return;
114
+ }
115
+ const requestVersion = ++this.scheduleListRequestVersion;
116
+ const promise = this.loadScheduleCatalog(useCache, requestVersion);
117
+ this.scheduleListPromise = promise;
118
+ try {
119
+ await promise;
120
+ } finally {
121
+ if (this.scheduleListPromise === promise) {
122
+ this.scheduleListPromise = null;
123
+ }
124
+ }
125
+ }
126
+ async loadScheduleCatalog(useCache, requestVersion) {
127
+ const response = await this.request.get(`/schedule`, {
83
128
  num: 999
84
129
  }, {
85
- useCache: options.useCache ?? true
130
+ useCache
86
131
  });
87
- this.setScheduleList(scheduleList.data?.list || []);
132
+ if (response.code !== undefined && Number(response.code) !== 200 || response.status === false || typeof response.status === 'number' && response.status >= 400 || response.success === false) {
133
+ throw new Error(response.message || 'Schedule catalog request failed');
134
+ }
135
+ this.syncScheduleCatalogScope();
136
+ // A refresh or a different runtime may have superseded this request.
137
+ if (requestVersion === this.scheduleListRequestVersion) {
138
+ this.setScheduleList(response.data?.list || []);
139
+ }
88
140
  }
89
141
  setScheduleList(list) {
142
+ this.syncScheduleCatalogScope();
90
143
  this.store.scheduleList = list;
91
144
  this.syncScheduleMap();
92
145
  this.hasLoadedScheduleList = true;
@@ -95,9 +148,11 @@ class ScheduleModule extends _BaseModule.BaseModule {
95
148
  this.store.map = new Map((this.store.scheduleList || []).map(schedule => [Number(schedule.id), schedule]));
96
149
  }
97
150
  getScheduleList() {
151
+ this.syncScheduleCatalogScope();
98
152
  return this.store.scheduleList || [];
99
153
  }
100
154
  isScheduleListLoaded() {
155
+ this.syncScheduleCatalogScope();
101
156
  return this.hasLoadedScheduleList;
102
157
  }
103
158
  async loadScheduleAvailableDate({
@@ -149,6 +204,7 @@ class ScheduleModule extends _BaseModule.BaseModule {
149
204
  return dates;
150
205
  }
151
206
  getScheduleListByIds(ids) {
207
+ this.syncScheduleCatalogScope();
152
208
  const idSet = new Set(ids.map(id => String(id)));
153
209
  if (this.store.map instanceof Map && this.store.map.size > 0) {
154
210
  return ids.map(id => this.store.map.get(Number(id))).filter(Boolean);
@@ -17,6 +17,7 @@ export * from './Schedule';
17
17
  export * from './Quotation';
18
18
  export * from './ScanOrderLogger';
19
19
  export * from './OpenData';
20
+ export * from './FulfillmentTiming';
20
21
  export * from './BookingContext';
21
22
  export * from './Holder';
22
23
  export * from './ResourcePlanner';
@@ -212,6 +212,17 @@ Object.keys(_OpenData).forEach(function (key) {
212
212
  }
213
213
  });
214
214
  });
215
+ var _FulfillmentTiming = require("./FulfillmentTiming");
216
+ Object.keys(_FulfillmentTiming).forEach(function (key) {
217
+ if (key === "default" || key === "__esModule") return;
218
+ if (key in exports && exports[key] === _FulfillmentTiming[key]) return;
219
+ Object.defineProperty(exports, key, {
220
+ enumerable: true,
221
+ get: function () {
222
+ return _FulfillmentTiming[key];
223
+ }
224
+ });
225
+ });
215
226
  var _BookingContext = require("./BookingContext");
216
227
  Object.keys(_BookingContext).forEach(function (key) {
217
228
  if (key === "default" || key === "__esModule") return;
@@ -56,6 +56,13 @@ export interface CacheProps {
56
56
  * 请求配置
57
57
  */
58
58
  export interface RequestOptions {
59
+ /** Customer-only, credential-free GET /open/document/{id} on picoding. */
60
+ publicInvoiceDocument?: boolean;
61
+ /** Route through the host's configured picoding environment. */
62
+ pisell2?: boolean;
63
+ /** Let the caller handle read-only preview failures without host navigation/toasts. */
64
+ manualErrorHandling?: boolean;
65
+ skipErrorHandler?: boolean;
59
66
  url?: string;
60
67
  method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
61
68
  headers?: Record<string, string>;
@@ -36,6 +36,8 @@ export type OrderSurchargeType = string;
36
36
  export interface OrderProductDiscountMetadata {
37
37
  /** 设备端本地唯一标识,用于与服务端记录对齐 */
38
38
  unique_identification_number?: string;
39
+ /** 月卡扣除本单新增使用后的剩余次数;不限次数时为 null。 */
40
+ balance?: number | null;
39
41
  [key: string]: unknown;
40
42
  }
41
43
  /**
@@ -1,85 +1 @@
1
- export interface SmallTicketShopInfo {
2
- name?: string;
3
- phone?: string;
4
- address?: string;
5
- address_street?: string;
6
- address_detail?: string;
7
- city?: string;
8
- province?: string;
9
- country?: string;
10
- zip?: string;
11
- tax_number?: string;
12
- tax_title?: string;
13
- is_price_include_tax?: 0 | 1 | boolean;
14
- currency_symbol?: string;
15
- currency_code?: string;
16
- primary_locale?: string;
17
- timezone?: string;
18
- [key: string]: any;
19
- }
20
- export interface BuildSmallTicketDataParams {
21
- order: Record<string, any>;
22
- shopInfo?: SmallTicketShopInfo | null;
23
- locales?: string[];
24
- productMap?: Record<string | number, Record<string, any>>;
25
- }
26
- export interface SmallTicketItem {
27
- item: string;
28
- value: string;
29
- size?: number;
30
- align?: string;
31
- product_uid?: string | number;
32
- booking_uid?: string | number;
33
- }
34
- export interface SmallTicketProduct {
35
- product_title: string;
36
- product_quantity: number;
37
- selling_price: string;
38
- total_selling_price: string;
39
- original_price: string;
40
- base_price?: string;
41
- total_original_price: string;
42
- options_total_price?: string;
43
- package_items_total_price?: string;
44
- extension_list: any[];
45
- product_uid?: string | number;
46
- booking_uid?: string | number;
47
- product_note?: string;
48
- allergy?: string;
49
- options?: Array<{
50
- name: string;
51
- num?: number;
52
- price?: string;
53
- total_price: string;
54
- value?: string;
55
- }>;
56
- variant?: string;
57
- combinations?: any[];
58
- }
59
- export type SmallTicketAppointment = SmallTicketItem[];
60
- export interface SmallTicketLocaleData {
61
- base_data: Record<string, any>;
62
- products: SmallTicketProduct[];
63
- fees: {
64
- fees: SmallTicketItem[];
65
- countFee: Record<string, any>;
66
- };
67
- customer: SmallTicketItem[];
68
- appointment: SmallTicketAppointment;
69
- delivery?: SmallTicketItem[];
70
- resources: Array<{
71
- id: string | number;
72
- code: string;
73
- title: string;
74
- form_title: string;
75
- }>;
76
- payment_data: SmallTicketItem[][];
77
- wallets: SmallTicketItem[][];
78
- tickets: any[];
79
- source_shop: any[];
80
- refund_data: SmallTicketItem[][];
81
- expend_data: any[];
82
- }
83
- export type SmallTicketData = Record<string, SmallTicketLocaleData>;
84
- export declare function buildSmallTicketData(params: BuildSmallTicketDataParams): SmallTicketData;
85
- export declare function hasSmallTicketData(value: any): boolean;
1
+ export * from '../../shared/receipt/small-ticket';