@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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +12 -7
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/ticketBooking/serve.js +119 -17
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/index.js +1 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/ticketBooking/serve.js +117 -15
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/index.js +1 -1
- package/package.json +12 -12
|
@@ -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"
|
|
33
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => Decimal | "0.00";
|
|
34
34
|
/**
|
|
35
35
|
* 计算所有价格明细
|
|
36
36
|
* @param items - 购物车商品数组
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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<
|
|
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:
|
|
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
|
+
}>;
|
|
@@ -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
|
|
251
|
+
export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
|
|
@@ -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:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
}
|
|
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: "
|
|
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: "
|
|
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<"
|
|
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: "
|
|
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?: "
|
|
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?: "
|
|
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:
|
|
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:
|
|
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
|
+
}>;
|
|
@@ -25,7 +25,13 @@ export var getClients = /*#__PURE__*/function () {
|
|
|
25
25
|
while (1) switch (_context.prev = _context.next) {
|
|
26
26
|
case 0:
|
|
27
27
|
_context.next = 2;
|
|
28
|
-
return request.getRequest().get(prefix + '/customer/select-list', params
|
|
28
|
+
return request.getRequest().get(prefix + '/customer/select-list', params, {
|
|
29
|
+
cache: {
|
|
30
|
+
mode: 'remote_local',
|
|
31
|
+
updateCache: true,
|
|
32
|
+
type: "indexDB"
|
|
33
|
+
}
|
|
34
|
+
});
|
|
29
35
|
case 2:
|
|
30
36
|
_yield$request$getReq = _context.sent;
|
|
31
37
|
data = _yield$request$getReq.data;
|
|
@@ -93,7 +99,13 @@ export var getResources = /*#__PURE__*/function () {
|
|
|
93
99
|
while (1) switch (_context3.prev = _context3.next) {
|
|
94
100
|
case 0:
|
|
95
101
|
_context3.next = 2;
|
|
96
|
-
return request.getRequest().get(prefix + '/form/schedule', params
|
|
102
|
+
return request.getRequest().get(prefix + '/form/schedule', params, {
|
|
103
|
+
cache: {
|
|
104
|
+
mode: 'remote_local',
|
|
105
|
+
updateCache: true,
|
|
106
|
+
type: "indexDB"
|
|
107
|
+
}
|
|
108
|
+
});
|
|
97
109
|
case 2:
|
|
98
110
|
_yield$request$getReq2 = _context3.sent;
|
|
99
111
|
data = _yield$request$getReq2.data;
|
|
@@ -155,7 +167,13 @@ export var getForms = /*#__PURE__*/function () {
|
|
|
155
167
|
while (1) switch (_context5.prev = _context5.next) {
|
|
156
168
|
case 0:
|
|
157
169
|
_context5.next = 2;
|
|
158
|
-
return request.getRequest().get(prefix + '/form/relation/record', params
|
|
170
|
+
return request.getRequest().get(prefix + '/form/relation/record', params, {
|
|
171
|
+
cache: {
|
|
172
|
+
mode: 'remote_local',
|
|
173
|
+
updateCache: true,
|
|
174
|
+
type: "indexDB"
|
|
175
|
+
}
|
|
176
|
+
});
|
|
159
177
|
case 2:
|
|
160
178
|
_yield$request$getReq4 = _context5.sent;
|
|
161
179
|
data = _yield$request$getReq4.data;
|
|
@@ -188,7 +206,13 @@ export var getBookingConfig = /*#__PURE__*/function () {
|
|
|
188
206
|
_context6.next = 2;
|
|
189
207
|
return request.getRequest().get(prefix + '/core/board/management/config', _objectSpread({
|
|
190
208
|
item_type: 'appointment_booking'
|
|
191
|
-
}, params)
|
|
209
|
+
}, params), {
|
|
210
|
+
cache: {
|
|
211
|
+
mode: 'remote_local',
|
|
212
|
+
updateCache: true,
|
|
213
|
+
type: "indexDB"
|
|
214
|
+
}
|
|
215
|
+
});
|
|
192
216
|
case 2:
|
|
193
217
|
_yield$request$getReq5 = _context6.sent;
|
|
194
218
|
data = _yield$request$getReq5.data;
|
|
@@ -220,7 +244,13 @@ export var getPets = /*#__PURE__*/function () {
|
|
|
220
244
|
while (1) switch (_context7.prev = _context7.next) {
|
|
221
245
|
case 0:
|
|
222
246
|
_context7.next = 2;
|
|
223
|
-
return request.getRequest().get("/form/".concat(formId), params
|
|
247
|
+
return request.getRequest().get("/form/".concat(formId), params, {
|
|
248
|
+
cache: {
|
|
249
|
+
mode: 'remote_local',
|
|
250
|
+
updateCache: true,
|
|
251
|
+
type: "indexDB"
|
|
252
|
+
}
|
|
253
|
+
});
|
|
224
254
|
case 2:
|
|
225
255
|
_yield$request$getReq6 = _context7.sent;
|
|
226
256
|
data = _yield$request$getReq6.data;
|
|
@@ -251,7 +281,13 @@ export var getPetsData = /*#__PURE__*/function () {
|
|
|
251
281
|
while (1) switch (_context8.prev = _context8.next) {
|
|
252
282
|
case 0:
|
|
253
283
|
_context8.next = 2;
|
|
254
|
-
return request.getRequest().get(prefix + '/form/data/v1', params
|
|
284
|
+
return request.getRequest().get(prefix + '/form/data/v1', params, {
|
|
285
|
+
cache: {
|
|
286
|
+
mode: 'remote_local',
|
|
287
|
+
updateCache: true,
|
|
288
|
+
type: "indexDB"
|
|
289
|
+
}
|
|
290
|
+
});
|
|
255
291
|
case 2:
|
|
256
292
|
_yield$request$getReq7 = _context8.sent;
|
|
257
293
|
data = _yield$request$getReq7.data;
|
|
@@ -314,7 +350,13 @@ export var getAddonsByOrderId = /*#__PURE__*/function () {
|
|
|
314
350
|
while (1) switch (_context10.prev = _context10.next) {
|
|
315
351
|
case 0:
|
|
316
352
|
_context10.next = 2;
|
|
317
|
-
return request.getRequest().get("".concat(prefix, "/order/appointment/addons/").concat(bookingId), params
|
|
353
|
+
return request.getRequest().get("".concat(prefix, "/order/appointment/addons/").concat(bookingId), params, {
|
|
354
|
+
cache: {
|
|
355
|
+
mode: 'remote_local',
|
|
356
|
+
updateCache: true,
|
|
357
|
+
type: "indexDB"
|
|
358
|
+
}
|
|
359
|
+
});
|
|
318
360
|
case 2:
|
|
319
361
|
_yield$request$getReq9 = _context10.sent;
|
|
320
362
|
data = _yield$request$getReq9.data;
|
|
@@ -378,7 +420,13 @@ export var getBookingDetail = /*#__PURE__*/function () {
|
|
|
378
420
|
while (1) switch (_context12.prev = _context12.next) {
|
|
379
421
|
case 0:
|
|
380
422
|
_context12.next = 2;
|
|
381
|
-
return request.getRequest().get("".concat(prefix, "/order/appointment/").concat(bookingId), params
|
|
423
|
+
return request.getRequest().get("".concat(prefix, "/order/appointment/").concat(bookingId), params, {
|
|
424
|
+
cache: {
|
|
425
|
+
mode: 'remote_local',
|
|
426
|
+
updateCache: true,
|
|
427
|
+
type: "indexDB"
|
|
428
|
+
}
|
|
429
|
+
});
|
|
382
430
|
case 2:
|
|
383
431
|
_yield$request$getReq11 = _context12.sent;
|
|
384
432
|
data = _yield$request$getReq11.data;
|
|
@@ -473,7 +521,13 @@ export var getNotesByOrder = /*#__PURE__*/function () {
|
|
|
473
521
|
while (1) switch (_context15.prev = _context15.next) {
|
|
474
522
|
case 0:
|
|
475
523
|
_context15.next = 2;
|
|
476
|
-
return request.getRequest().get(prefix + '/schedule/event-note', params
|
|
524
|
+
return request.getRequest().get(prefix + '/schedule/event-note', params, {
|
|
525
|
+
cache: {
|
|
526
|
+
mode: 'remote_local',
|
|
527
|
+
updateCache: true,
|
|
528
|
+
type: "indexDB"
|
|
529
|
+
}
|
|
530
|
+
});
|
|
477
531
|
case 2:
|
|
478
532
|
_yield$request$getReq14 = _context15.sent;
|
|
479
533
|
data = _yield$request$getReq14.data;
|
|
@@ -630,7 +684,13 @@ export var getPaymentList = /*#__PURE__*/function () {
|
|
|
630
684
|
while (1) switch (_context20.prev = _context20.next) {
|
|
631
685
|
case 0:
|
|
632
686
|
_context20.next = 2;
|
|
633
|
-
return request.getRequest().get(prefix + '/order/payment', params
|
|
687
|
+
return request.getRequest().get(prefix + '/order/payment', params, {
|
|
688
|
+
cache: {
|
|
689
|
+
mode: 'remote_local',
|
|
690
|
+
updateCache: true,
|
|
691
|
+
type: "indexDB"
|
|
692
|
+
}
|
|
693
|
+
});
|
|
634
694
|
case 2:
|
|
635
695
|
_yield$request$getReq19 = _context20.sent;
|
|
636
696
|
data = _yield$request$getReq19.data;
|
|
@@ -694,7 +754,13 @@ export var getRefundInfo = /*#__PURE__*/function () {
|
|
|
694
754
|
while (1) switch (_context22.prev = _context22.next) {
|
|
695
755
|
case 0:
|
|
696
756
|
_context22.next = 2;
|
|
697
|
-
return request.getRequest().get("".concat(prefix, "/order/refund-info/").concat(bookingId), params
|
|
757
|
+
return request.getRequest().get("".concat(prefix, "/order/refund-info/").concat(bookingId), params, {
|
|
758
|
+
cache: {
|
|
759
|
+
mode: 'remote_local',
|
|
760
|
+
updateCache: true,
|
|
761
|
+
type: "indexDB"
|
|
762
|
+
}
|
|
763
|
+
});
|
|
698
764
|
case 2:
|
|
699
765
|
_yield$request$getReq21 = _context22.sent;
|
|
700
766
|
data = _yield$request$getReq21.data;
|
|
@@ -757,7 +823,13 @@ export var getEventBookingDetail = /*#__PURE__*/function () {
|
|
|
757
823
|
while (1) switch (_context24.prev = _context24.next) {
|
|
758
824
|
case 0:
|
|
759
825
|
_context24.next = 2;
|
|
760
|
-
return request.getRequest().get("".concat(prefix, "/eventbookingv2/order/").concat(bookingId), params
|
|
826
|
+
return request.getRequest().get("".concat(prefix, "/eventbookingv2/order/").concat(bookingId), params, {
|
|
827
|
+
cache: {
|
|
828
|
+
mode: 'remote_local',
|
|
829
|
+
updateCache: true,
|
|
830
|
+
type: "indexDB"
|
|
831
|
+
}
|
|
832
|
+
});
|
|
761
833
|
case 2:
|
|
762
834
|
_yield$request$getReq23 = _context24.sent;
|
|
763
835
|
data = _yield$request$getReq23.data;
|
|
@@ -822,7 +894,13 @@ export var getDepositShow = /*#__PURE__*/function () {
|
|
|
822
894
|
_context26.next = 2;
|
|
823
895
|
return request.getRequest().get(prefix + '/metadata', _objectSpread({
|
|
824
896
|
key: 'bookingv2_deposit'
|
|
825
|
-
}, params)
|
|
897
|
+
}, params), {
|
|
898
|
+
cache: {
|
|
899
|
+
mode: 'remote_local',
|
|
900
|
+
updateCache: true,
|
|
901
|
+
type: "indexDB"
|
|
902
|
+
}
|
|
903
|
+
});
|
|
826
904
|
case 2:
|
|
827
905
|
_yield$request$getReq25 = _context26.sent;
|
|
828
906
|
data = _yield$request$getReq25.data;
|
|
@@ -853,7 +931,13 @@ export var getFormRecords = /*#__PURE__*/function () {
|
|
|
853
931
|
while (1) switch (_context27.prev = _context27.next) {
|
|
854
932
|
case 0:
|
|
855
933
|
_context27.next = 2;
|
|
856
|
-
return request.getRequest().get(prefix + '/form/records', params
|
|
934
|
+
return request.getRequest().get(prefix + '/form/records', params, {
|
|
935
|
+
cache: {
|
|
936
|
+
mode: 'remote_local',
|
|
937
|
+
updateCache: true,
|
|
938
|
+
type: "indexDB"
|
|
939
|
+
}
|
|
940
|
+
});
|
|
857
941
|
case 2:
|
|
858
942
|
_yield$request$getReq26 = _context27.sent;
|
|
859
943
|
data = _yield$request$getReq26.data;
|
|
@@ -884,7 +968,13 @@ export var getBookingList2 = /*#__PURE__*/function () {
|
|
|
884
968
|
while (1) switch (_context28.prev = _context28.next) {
|
|
885
969
|
case 0:
|
|
886
970
|
_context28.next = 2;
|
|
887
|
-
return request.getRequest().get(prefix + '/schedule/booking', params
|
|
971
|
+
return request.getRequest().get(prefix + '/schedule/booking', params, {
|
|
972
|
+
cache: {
|
|
973
|
+
mode: 'remote_local',
|
|
974
|
+
updateCache: true,
|
|
975
|
+
type: "indexDB"
|
|
976
|
+
}
|
|
977
|
+
});
|
|
888
978
|
case 2:
|
|
889
979
|
_yield$request$getReq27 = _context28.sent;
|
|
890
980
|
data = _yield$request$getReq27.data;
|
|
@@ -915,7 +1005,13 @@ export var getOrderInfoByCode = /*#__PURE__*/function () {
|
|
|
915
1005
|
while (1) switch (_context29.prev = _context29.next) {
|
|
916
1006
|
case 0:
|
|
917
1007
|
_context29.next = 2;
|
|
918
|
-
return request.getRequest().get(prefix + '/machinecode/order-info', params
|
|
1008
|
+
return request.getRequest().get(prefix + '/machinecode/order-info', params, {
|
|
1009
|
+
cache: {
|
|
1010
|
+
mode: 'remote_local',
|
|
1011
|
+
updateCache: true,
|
|
1012
|
+
type: "indexDB"
|
|
1013
|
+
}
|
|
1014
|
+
});
|
|
919
1015
|
case 2:
|
|
920
1016
|
_yield$request$getReq28 = _context29.sent;
|
|
921
1017
|
data = _yield$request$getReq28.data;
|
|
@@ -946,7 +1042,13 @@ export var getClientsEs = /*#__PURE__*/function () {
|
|
|
946
1042
|
while (1) switch (_context30.prev = _context30.next) {
|
|
947
1043
|
case 0:
|
|
948
1044
|
_context30.next = 2;
|
|
949
|
-
return request.getRequest().get(prefix + '/customer/es/data', params
|
|
1045
|
+
return request.getRequest().get(prefix + '/customer/es/data', params, {
|
|
1046
|
+
cache: {
|
|
1047
|
+
mode: 'remote_local',
|
|
1048
|
+
updateCache: true,
|
|
1049
|
+
type: "indexDB"
|
|
1050
|
+
}
|
|
1051
|
+
});
|
|
950
1052
|
case 2:
|
|
951
1053
|
_yield$request$getReq29 = _context30.sent;
|
|
952
1054
|
data = _yield$request$getReq29.data;
|
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
44
|
-
searchType: "
|
|
44
|
+
searchType: "customer" | "product" | "wallet" | "walletPass" | "local_product";
|
|
45
45
|
data: any;
|
|
46
46
|
scanCode: string;
|
|
47
47
|
} | null;
|
|
@@ -1 +1,13 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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 |
|
|
5
|
+
}) => string | number | true | JSX.Element | React.ReactFragment | null;
|
|
6
6
|
export default Capacity;
|
|
@@ -3,5 +3,5 @@ import { SkuStatusOverlayConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const CardMask: ({ props }: {
|
|
5
5
|
props: SkuStatusOverlayConfig;
|
|
6
|
-
}) => string | number | true |
|
|
6
|
+
}) => string | number | true | JSX.Element | React.ReactFragment | null;
|
|
7
7
|
export default CardMask;
|
|
@@ -46,7 +46,7 @@ var CardWrapper = function CardWrapper(props) {
|
|
|
46
46
|
}, [style, paddingX, paddingY, borderWidth, borderColor, isBorderVisible, radius, background, marginX, marginY]);
|
|
47
47
|
return /*#__PURE__*/React.createElement("div", {
|
|
48
48
|
className: classNames("".concat(PREFIX, "__card-wrapper"), (skuStatusOverlayConfig === null || skuStatusOverlayConfig === void 0 ? void 0 : skuStatusOverlayConfig.isOpen) && "".concat(PREFIX, "__card-wrapper-overlay"), className),
|
|
49
|
-
|
|
49
|
+
onPointerUp: function onPointerUp(e) {
|
|
50
50
|
e.stopPropagation();
|
|
51
51
|
onCardClick === null || onCardClick === void 0 || onCardClick(dataSource);
|
|
52
52
|
}
|
|
@@ -3,5 +3,5 @@ import { ProductCardConfig } from '../../type';
|
|
|
3
3
|
import './index.less';
|
|
4
4
|
declare const Countdown: ({ props }: {
|
|
5
5
|
props: ProductCardConfig;
|
|
6
|
-
}) => string | number | true |
|
|
6
|
+
}) => string | number | true | JSX.Element | React.ReactFragment | null;
|
|
7
7
|
export default Countdown;
|