@pisell/private-materials 6.5.23 → 6.5.25

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 (81) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +12 -7
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.js +7 -7
  9. package/es/components/Sales/Summary/utils.d.ts +1 -1
  10. package/es/components/booking/addons/model.d.ts +10 -1
  11. package/es/components/booking/forms/model.d.ts +10 -1
  12. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  13. package/es/components/booking/info/model.d.ts +10 -1
  14. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  15. package/es/components/booking/info/service2/utils.d.ts +1 -1
  16. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  17. package/es/components/booking/model.d.ts +9 -1
  18. package/es/components/booking/notes/model.d.ts +10 -1
  19. package/es/components/booking/payments/model.d.ts +10 -1
  20. package/es/components/booking/utils.d.ts +2 -2
  21. package/es/components/eftposPay/amount.d.ts +1 -1
  22. package/es/components/eftposPay/device.d.ts +1 -1
  23. package/es/components/eftposPay/hooks.d.ts +1 -1
  24. package/es/components/eftposPay/store/index.d.ts +3 -3
  25. package/es/components/pay/toC/model.d.ts +9 -1
  26. package/es/components/schedules/model.d.ts +9 -1
  27. package/es/components/ticketBooking/serve.js +119 -17
  28. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  29. package/es/components/wallet/Detail/model.d.ts +13 -1
  30. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  31. package/es/components/wallet/PointCard/model.d.ts +13 -1
  32. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  33. package/es/components/wallet/Voucher/model.d.ts +13 -1
  34. package/es/components/wallet/model.d.ts +9 -1
  35. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  36. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  37. package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
  38. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  39. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  40. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  41. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  42. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  43. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  44. package/es/plus/productSelect/ProductCard/index.js +1 -1
  45. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  46. package/lib/components/booking/addons/model.d.ts +10 -1
  47. package/lib/components/booking/forms/model.d.ts +10 -1
  48. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  49. package/lib/components/booking/info/model.d.ts +10 -1
  50. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  51. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  52. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  53. package/lib/components/booking/model.d.ts +9 -1
  54. package/lib/components/booking/notes/model.d.ts +10 -1
  55. package/lib/components/booking/payments/model.d.ts +10 -1
  56. package/lib/components/booking/utils.d.ts +2 -2
  57. package/lib/components/eftposPay/amount.d.ts +1 -1
  58. package/lib/components/eftposPay/device.d.ts +1 -1
  59. package/lib/components/eftposPay/hooks.d.ts +1 -1
  60. package/lib/components/eftposPay/store/index.d.ts +3 -3
  61. package/lib/components/pay/toC/model.d.ts +9 -1
  62. package/lib/components/schedules/model.d.ts +9 -1
  63. package/lib/components/ticketBooking/serve.js +117 -15
  64. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  65. package/lib/components/wallet/Detail/model.d.ts +13 -1
  66. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  67. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  68. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  69. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  70. package/lib/components/wallet/model.d.ts +9 -1
  71. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  72. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  73. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
  74. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  75. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  76. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  77. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  78. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  79. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  80. package/lib/plus/productSelect/ProductCard/index.js +1 -1
  81. package/package.json +12 -12
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Duration: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
6
  export default Duration;
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
3
3
  import './index.less';
4
4
  declare const MemberPrice: ({ props }: {
5
5
  props: ProductCardConfig;
6
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
6
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
7
7
  export default MemberPrice;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Resource: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
6
  export default Resource;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Stock: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
6
  export default Stock;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { ProductCardConfig } from '../../type';
3
3
  declare const Time: ({ props }: {
4
4
  props: ProductCardConfig;
5
- }) => string | number | true | React.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
6
  export default Time;
@@ -117,7 +117,7 @@ export var ProductCard = /*#__PURE__*/memo(function (_ref) {
117
117
  className: classNames("".concat(PREFIX, "__product-card"), className, {
118
118
  selected: isSelected
119
119
  }),
120
- onClick: function onClick() {
120
+ onPointerUp: function onPointerUp() {
121
121
  onSelect === null || onSelect === void 0 || onSelect(item);
122
122
  },
123
123
  "data-index": index,
@@ -30,7 +30,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
30
30
  * @return {*}
31
31
  * @Author: xiangfeng.xue
32
32
  */
33
- export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
33
+ export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
34
34
  /**
35
35
  * 计算所有价格明细
36
36
  * @param items - 购物车商品数组
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -4,6 +4,6 @@ declare const useSendModal: (bookingId?: number) => {
4
4
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
5
  handleOpen: () => void;
6
6
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
7
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
8
  };
9
9
  export default useSendModal;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
251
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -105,4 +106,11 @@ export declare const walkInData: {
105
106
  id: number;
106
107
  nickname: string;
107
108
  };
108
- export declare const Provider: any, Context: any;
109
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
110
+ state: FormState;
111
+ } & {
112
+ dispatch: (params: {
113
+ type: string;
114
+ payload: any;
115
+ }) => void;
116
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -164,10 +164,10 @@ export declare const getProductTotalPrice: (item: any) => number;
164
164
  export declare const getDuration: (duration: number | {
165
165
  type: string;
166
166
  value: number;
167
- }) => number | {
167
+ }) => number | "flexible" | {
168
168
  type: string;
169
169
  value: number;
170
- } | "flexible";
170
+ };
171
171
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
172
172
  export declare const getIsEdit: (state: any) => boolean;
173
173
  export {};
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -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" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "page" | "success" | "print" | "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<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -298,7 +298,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
298
298
  mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
301
+ action?: "pay" | "amount" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -28,4 +29,11 @@ export interface PayGroup {
28
29
  pay_number?: string;
29
30
  _order: any;
30
31
  }
31
- export declare const Provider: any, Context: any;
32
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
+ state: FormState;
34
+ } & {
35
+ dispatch: (params: {
36
+ type: string;
37
+ payload: any;
38
+ }) => void;
39
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,4 +69,11 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: any, Context: any;
72
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
+ state: FormState;
74
+ } & {
75
+ dispatch: (params: {
76
+ type: string;
77
+ payload: any;
78
+ }) => void;
79
+ }>;
@@ -56,7 +56,13 @@ module.exports = __toCommonJS(serve_exports);
56
56
  var import_utils = require("./../../utils");
57
57
  var prefix = "/shop";
58
58
  var getClients = async (params) => {
59
- let { data } = await import_utils.request.getRequest().get(prefix + "/customer/select-list", params);
59
+ let { data } = await import_utils.request.getRequest().get(prefix + "/customer/select-list", params, {
60
+ cache: {
61
+ mode: "remote_local",
62
+ updateCache: true,
63
+ type: "indexDB"
64
+ }
65
+ });
60
66
  return data;
61
67
  };
62
68
  var getServices = async (params) => {
@@ -68,7 +74,13 @@ var getServices = async (params) => {
68
74
  return res.data;
69
75
  };
70
76
  var getResources = async (params) => {
71
- let { data } = await import_utils.request.getRequest().get(prefix + "/form/schedule", params);
77
+ let { data } = await import_utils.request.getRequest().get(prefix + "/form/schedule", params, {
78
+ cache: {
79
+ mode: "remote_local",
80
+ updateCache: true,
81
+ type: "indexDB"
82
+ }
83
+ });
72
84
  return data;
73
85
  };
74
86
  var getProducts = async (params) => {
@@ -76,22 +88,46 @@ var getProducts = async (params) => {
76
88
  return data;
77
89
  };
78
90
  var getForms = async (params) => {
79
- let { data } = await import_utils.request.getRequest().get(prefix + "/form/relation/record", params);
91
+ let { data } = await import_utils.request.getRequest().get(prefix + "/form/relation/record", params, {
92
+ cache: {
93
+ mode: "remote_local",
94
+ updateCache: true,
95
+ type: "indexDB"
96
+ }
97
+ });
80
98
  return data;
81
99
  };
82
100
  var getBookingConfig = async (params) => {
83
101
  let { data } = await import_utils.request.getRequest().get(prefix + "/core/board/management/config", {
84
102
  item_type: "appointment_booking",
85
103
  ...params
104
+ }, {
105
+ cache: {
106
+ mode: "remote_local",
107
+ updateCache: true,
108
+ type: "indexDB"
109
+ }
86
110
  });
87
111
  return data;
88
112
  };
89
113
  var getPets = async (formId, params) => {
90
- let { data } = await import_utils.request.getRequest().get(`/form/${formId}`, params);
114
+ let { data } = await import_utils.request.getRequest().get(`/form/${formId}`, params, {
115
+ cache: {
116
+ mode: "remote_local",
117
+ updateCache: true,
118
+ type: "indexDB"
119
+ }
120
+ });
91
121
  return data;
92
122
  };
93
123
  var getPetsData = async (params) => {
94
- let { data } = await import_utils.request.getRequest().get(prefix + "/form/data/v1", params);
124
+ let { data } = await import_utils.request.getRequest().get(prefix + "/form/data/v1", params, {
125
+ cache: {
126
+ mode: "remote_local",
127
+ updateCache: true,
128
+ type: "indexDB"
129
+ }
130
+ });
95
131
  return data;
96
132
  };
97
133
  var createBooking = async (params) => {
@@ -99,7 +135,13 @@ var createBooking = async (params) => {
99
135
  return data;
100
136
  };
101
137
  var getAddonsByOrderId = async (bookingId, params) => {
102
- let { data } = await import_utils.request.getRequest().get(`${prefix}/order/appointment/addons/${bookingId}`, params);
138
+ let { data } = await import_utils.request.getRequest().get(`${prefix}/order/appointment/addons/${bookingId}`, params, {
139
+ cache: {
140
+ mode: "remote_local",
141
+ updateCache: true,
142
+ type: "indexDB"
143
+ }
144
+ });
103
145
  return data;
104
146
  };
105
147
  var saveAddonsByOrderId = async (bookingId, params) => {
@@ -107,7 +149,13 @@ var saveAddonsByOrderId = async (bookingId, params) => {
107
149
  return data;
108
150
  };
109
151
  var getBookingDetail = async (bookingId, params) => {
110
- let { data } = await import_utils.request.getRequest().get(`${prefix}/order/appointment/${bookingId}`, params);
152
+ let { data } = await import_utils.request.getRequest().get(`${prefix}/order/appointment/${bookingId}`, params, {
153
+ cache: {
154
+ mode: "remote_local",
155
+ updateCache: true,
156
+ type: "indexDB"
157
+ }
158
+ });
111
159
  return data;
112
160
  };
113
161
  var editBookingStatus = async (bookingId, params) => {
@@ -119,7 +167,13 @@ var editBooking = async (bookingId, params) => {
119
167
  return data;
120
168
  };
121
169
  var getNotesByOrder = async (params) => {
122
- let { data } = await import_utils.request.getRequest().get(prefix + "/schedule/event-note", params);
170
+ let { data } = await import_utils.request.getRequest().get(prefix + "/schedule/event-note", params, {
171
+ cache: {
172
+ mode: "remote_local",
173
+ updateCache: true,
174
+ type: "indexDB"
175
+ }
176
+ });
123
177
  return data;
124
178
  };
125
179
  var addNotesByOrder = async (params) => {
@@ -139,7 +193,13 @@ var saveBookingFormData = async (params) => {
139
193
  return data;
140
194
  };
141
195
  var getPaymentList = async (params) => {
142
- let { data } = await import_utils.request.getRequest().get(prefix + "/order/payment", params);
196
+ let { data } = await import_utils.request.getRequest().get(prefix + "/order/payment", params, {
197
+ cache: {
198
+ mode: "remote_local",
199
+ updateCache: true,
200
+ type: "indexDB"
201
+ }
202
+ });
143
203
  return data;
144
204
  };
145
205
  var editOrderNote = async (bookingId, params) => {
@@ -147,7 +207,13 @@ var editOrderNote = async (bookingId, params) => {
147
207
  return data;
148
208
  };
149
209
  var getRefundInfo = async (bookingId, params) => {
150
- let { data } = await import_utils.request.getRequest().get(`${prefix}/order/refund-info/${bookingId}`, params);
210
+ let { data } = await import_utils.request.getRequest().get(`${prefix}/order/refund-info/${bookingId}`, params, {
211
+ cache: {
212
+ mode: "remote_local",
213
+ updateCache: true,
214
+ type: "indexDB"
215
+ }
216
+ });
151
217
  return data;
152
218
  };
153
219
  var createEventBooking = async (params) => {
@@ -155,7 +221,13 @@ var createEventBooking = async (params) => {
155
221
  return data;
156
222
  };
157
223
  var getEventBookingDetail = async (bookingId, params) => {
158
- let { data } = await import_utils.request.getRequest().get(`${prefix}/eventbookingv2/order/${bookingId}`, params);
224
+ let { data } = await import_utils.request.getRequest().get(`${prefix}/eventbookingv2/order/${bookingId}`, params, {
225
+ cache: {
226
+ mode: "remote_local",
227
+ updateCache: true,
228
+ type: "indexDB"
229
+ }
230
+ });
159
231
  return data;
160
232
  };
161
233
  var editEventBooking = async (bookingId, params) => {
@@ -166,23 +238,53 @@ var getDepositShow = async (params) => {
166
238
  let { data } = await import_utils.request.getRequest().get(prefix + "/metadata", {
167
239
  key: "bookingv2_deposit",
168
240
  ...params
241
+ }, {
242
+ cache: {
243
+ mode: "remote_local",
244
+ updateCache: true,
245
+ type: "indexDB"
246
+ }
169
247
  });
170
248
  return data;
171
249
  };
172
250
  var getFormRecords = async (params) => {
173
- let { data } = await import_utils.request.getRequest().get(prefix + "/form/records", params);
251
+ let { data } = await import_utils.request.getRequest().get(prefix + "/form/records", params, {
252
+ cache: {
253
+ mode: "remote_local",
254
+ updateCache: true,
255
+ type: "indexDB"
256
+ }
257
+ });
174
258
  return data;
175
259
  };
176
260
  var getBookingList2 = async (params) => {
177
- let { data } = await import_utils.request.getRequest().get(prefix + "/schedule/booking", params);
261
+ let { data } = await import_utils.request.getRequest().get(prefix + "/schedule/booking", params, {
262
+ cache: {
263
+ mode: "remote_local",
264
+ updateCache: true,
265
+ type: "indexDB"
266
+ }
267
+ });
178
268
  return data;
179
269
  };
180
270
  var getOrderInfoByCode = async (params) => {
181
- let { data } = await import_utils.request.getRequest().get(prefix + "/machinecode/order-info", params);
271
+ let { data } = await import_utils.request.getRequest().get(prefix + "/machinecode/order-info", params, {
272
+ cache: {
273
+ mode: "remote_local",
274
+ updateCache: true,
275
+ type: "indexDB"
276
+ }
277
+ });
182
278
  return data;
183
279
  };
184
280
  var getClientsEs = async (params) => {
185
- let { data } = await import_utils.request.getRequest().get(prefix + "/customer/es/data", params);
281
+ let { data } = await import_utils.request.getRequest().get(prefix + "/customer/es/data", params, {
282
+ cache: {
283
+ mode: "remote_local",
284
+ updateCache: true,
285
+ type: "indexDB"
286
+ }
287
+ });
186
288
  return data;
187
289
  };
188
290
  var voidAppointment = async (order_id) => {
@@ -41,7 +41,7 @@ declare type ScanData = {
41
41
  };
42
42
  };
43
43
  export declare const formatScanCustomer: (data: ScanData) => {
44
- searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
44
+ searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
45
45
  data: any;
46
46
  scanCode: string;
47
47
  } | null;
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ addWalletCard: any;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ walletDetailState: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,14 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ setup?: 'menu' | 'list' | 'detail' | string;
5
+ }
6
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
7
+ state: RechargeState;
8
+ } & {
9
+ dispatch: (params: {
10
+ type: string;
11
+ payload: any;
12
+ }) => void;
13
+ }>;
14
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: number;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1 +1,29 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ selectedGiftOptionId: string | null;
4
+ cardList: Array<{
5
+ id: string;
6
+ name: string;
7
+ price: number;
8
+ }>;
9
+ selectedItem: {
10
+ id?: string;
11
+ gift_price?: number;
12
+ price?: number;
13
+ name?: string;
14
+ variant_id?: string;
15
+ };
16
+ productId?: string;
17
+ detailId?: string;
18
+ total: string | number;
19
+ rechargeModalOpen: boolean;
20
+ }
21
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
22
+ state: RechargeState;
23
+ } & {
24
+ dispatch: (params: {
25
+ type: string;
26
+ payload: any;
27
+ }) => void;
28
+ }>;
29
+ export {};
@@ -1 +1,13 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ interface RechargeState {
3
+ total: 0;
4
+ }
5
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
6
+ state: RechargeState;
7
+ } & {
8
+ dispatch: (params: {
9
+ type: string;
10
+ payload: any;
11
+ }) => void;
12
+ }>;
13
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IWalletListItemProps } from './serve';
2
3
  export interface WalletCardItemProps {
3
4
  id: string;
@@ -26,4 +27,11 @@ export interface WalletListProps {
26
27
  currentSearchListItemCode?: string;
27
28
  [key: string]: any;
28
29
  }
29
- export declare const Provider: any, Context: any;
30
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
31
+ global_wallet: WalletListProps;
32
+ } & {
33
+ dispatch: (params: {
34
+ type: string;
35
+ payload: any;
36
+ }) => void;
37
+ }>;
@@ -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.ReactFragment | JSX.Element | null;
5
+ }) => string | number | true | JSX.Element | React.ReactFragment | null;
6
6
  export default Capacity;