@pisell/pisellos 3.0.57 → 3.0.59
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/dist/core/index.js +1 -2
- package/dist/effects/index.d.ts +3 -4
- package/dist/effects/index.js +6 -15
- package/dist/modules/AccountList/index.d.ts +1 -7
- package/dist/modules/AccountList/index.js +14 -81
- package/dist/modules/AccountList/types.d.ts +0 -28
- package/dist/modules/AccountList/types.js +0 -8
- package/dist/modules/Cart/index.js +1 -1
- package/dist/modules/Payment/index.d.ts +9 -273
- package/dist/modules/Payment/index.js +109 -2525
- package/dist/modules/Payment/types.d.ts +30 -382
- package/dist/modules/Payment/types.js +14 -116
- package/dist/modules/ProductList/index.d.ts +1 -12
- package/dist/modules/ProductList/index.js +3 -27
- package/dist/modules/Rules/index.js +14 -27
- package/dist/modules/Rules/types.d.ts +0 -1
- package/dist/modules/index.d.ts +0 -1
- package/dist/modules/index.js +0 -1
- package/dist/plugins/window.d.ts +0 -1
- package/dist/solution/BookingByStep/index.js +1 -9
- package/dist/solution/ShopDiscount/index.js +2 -4
- package/dist/solution/index.d.ts +0 -2
- package/dist/solution/index.js +1 -3
- package/dist/types/index.d.ts +1 -3
- package/lib/core/index.js +1 -1
- package/lib/effects/index.d.ts +3 -4
- package/lib/effects/index.js +1 -4
- package/lib/modules/AccountList/index.d.ts +1 -7
- package/lib/modules/AccountList/index.js +0 -27
- package/lib/modules/AccountList/types.d.ts +0 -28
- package/lib/modules/Cart/index.js +1 -1
- package/lib/modules/Payment/index.d.ts +9 -273
- package/lib/modules/Payment/index.js +50 -1285
- package/lib/modules/Payment/types.d.ts +30 -382
- package/lib/modules/Payment/types.js +6 -41
- package/lib/modules/ProductList/index.d.ts +1 -12
- package/lib/modules/ProductList/index.js +2 -29
- package/lib/modules/Rules/index.js +12 -20
- package/lib/modules/Rules/types.d.ts +0 -1
- package/lib/modules/index.d.ts +0 -1
- package/lib/modules/index.js +0 -2
- package/lib/plugins/window.d.ts +0 -1
- package/lib/solution/BookingByStep/index.js +2 -1
- package/lib/solution/ShopDiscount/index.js +1 -2
- package/lib/solution/index.d.ts +0 -2
- package/lib/solution/index.js +1 -5
- package/lib/types/index.d.ts +1 -3
- package/package.json +2 -4
- package/dist/modules/Customer/constants.d.ts +0 -7
- package/dist/modules/Customer/constants.js +0 -12
- package/dist/modules/Customer/index.d.ts +0 -122
- package/dist/modules/Customer/index.js +0 -697
- package/dist/modules/Customer/types.d.ts +0 -146
- package/dist/modules/Customer/types.js +0 -41
- package/dist/modules/Payment/cash.d.ts +0 -11
- package/dist/modules/Payment/cash.js +0 -78
- package/dist/modules/Payment/eftpos.d.ts +0 -11
- package/dist/modules/Payment/eftpos.js +0 -80
- package/dist/modules/Payment/wallet.d.ts +0 -11
- package/dist/modules/Payment/wallet.js +0 -78
- package/dist/modules/Payment/walletpass.d.ts +0 -0
- package/dist/modules/Payment/walletpass.js +0 -0
- package/dist/plugins/app-types/app/app.d.ts +0 -83
- package/dist/plugins/app-types/app/const.d.ts +0 -4
- package/dist/plugins/app-types/app/index.d.ts +0 -14
- package/dist/plugins/app-types/applicationManager/application.d.ts +0 -50
- package/dist/plugins/app-types/applicationManager/index.d.ts +0 -13
- package/dist/plugins/app-types/config.d.ts +0 -3
- package/dist/plugins/app-types/cookie/index.d.ts +0 -13
- package/dist/plugins/app-types/data/index.d.ts +0 -8
- package/dist/plugins/app-types/history/config.d.ts +0 -24
- package/dist/plugins/app-types/history/index.d.ts +0 -20
- package/dist/plugins/app-types/history/type.d.ts +0 -2
- package/dist/plugins/app-types/hooks/index.d.ts +0 -12
- package/dist/plugins/app-types/hooks/useDelayedValue/index.d.ts +0 -2
- package/dist/plugins/app-types/hooks/useDispatch/index.d.ts +0 -2
- package/dist/plugins/app-types/hooks/useLowCode/index.d.ts +0 -13
- package/dist/plugins/app-types/hooks/useStore/index.d.ts +0 -6
- package/dist/plugins/app-types/index.d.ts +0 -6
- package/dist/plugins/app-types/indexDB/index.d.ts +0 -178
- package/dist/plugins/app-types/locales/en.d.ts +0 -3
- package/dist/plugins/app-types/locales/index.d.ts +0 -37
- package/dist/plugins/app-types/locales/original.d.ts +0 -3
- package/dist/plugins/app-types/locales/type.d.ts +0 -19
- package/dist/plugins/app-types/locales/zh-CN.d.ts +0 -3
- package/dist/plugins/app-types/locales/zh-HK.d.ts +0 -3
- package/dist/plugins/app-types/logger/feishu.d.ts +0 -11
- package/dist/plugins/app-types/logger/index.d.ts +0 -122
- package/dist/plugins/app-types/menuManager/hooks.d.ts +0 -17
- package/dist/plugins/app-types/menuManager/index.d.ts +0 -28
- package/dist/plugins/app-types/models/global.d.ts +0 -32
- package/dist/plugins/app-types/models/index.d.ts +0 -45
- package/dist/plugins/app-types/models/type.d.ts +0 -2
- package/dist/plugins/app-types/package.json +0 -15
- package/dist/plugins/app-types/plugin/index.d.ts +0 -0
- package/dist/plugins/app-types/pubsub/example.d.ts +0 -5
- package/dist/plugins/app-types/pubsub/index.d.ts +0 -63
- package/dist/plugins/app-types/request/cache.d.ts +0 -46
- package/dist/plugins/app-types/request/cancelToken.d.ts +0 -38
- package/dist/plugins/app-types/request/config.d.ts +0 -3
- package/dist/plugins/app-types/request/constants.d.ts +0 -2
- package/dist/plugins/app-types/request/index.d.ts +0 -24
- package/dist/plugins/app-types/request/pisell2Request.d.ts +0 -6
- package/dist/plugins/app-types/request/type.d.ts +0 -41
- package/dist/plugins/app-types/request/utils.d.ts +0 -46
- package/dist/plugins/app-types/routes/config.d.ts +0 -7
- package/dist/plugins/app-types/routes/index.d.ts +0 -28
- package/dist/plugins/app-types/socket/components/SocketMonitorPage.d.ts +0 -6
- package/dist/plugins/app-types/socket/components/index.d.ts +0 -2
- package/dist/plugins/app-types/socket/constants.d.ts +0 -33
- package/dist/plugins/app-types/socket/events.d.ts +0 -31
- package/dist/plugins/app-types/socket/heartbeat.d.ts +0 -66
- package/dist/plugins/app-types/socket/index.d.ts +0 -61
- package/dist/plugins/app-types/socket/monitor.d.ts +0 -169
- package/dist/plugins/app-types/socket/reconnect.d.ts +0 -61
- package/dist/plugins/app-types/socket/socket.d.ts +0 -129
- package/dist/plugins/app-types/socket/types.d.ts +0 -85
- package/dist/plugins/app-types/storage/index.d.ts +0 -17
- package/dist/plugins/app-types/tasks/index.d.ts +0 -77
- package/dist/plugins/app-types/tasks/type.d.ts +0 -62
- package/dist/plugins/app-types/tasks/useTasks.d.ts +0 -5
- package/dist/plugins/app-types/type.d.ts +0 -2
- package/dist/plugins/app-types/variables/VariablesProvider.d.ts +0 -7
- package/dist/plugins/app-types/variables/config.d.ts +0 -3
- package/dist/plugins/app-types/variables/index.d.ts +0 -6
- package/dist/plugins/app-types/variables/type.d.ts +0 -2
- package/dist/plugins/app-types/website/index.d.ts +0 -6
- package/dist/plugins/app.d.ts +0 -8
- package/dist/plugins/app.js +0 -1
- package/dist/solution/BookingTicket/index.d.ts +0 -172
- package/dist/solution/BookingTicket/index.js +0 -665
- package/dist/solution/BookingTicket/types.d.ts +0 -68
- package/dist/solution/BookingTicket/types.js +0 -43
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.d.ts +0 -22
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.js +0 -159
- package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts +0 -16
- package/dist/solution/BookingTicket/utils/scan/handleScan.js +0 -174
- package/dist/solution/BookingTicket/utils/scan/index.d.ts +0 -81
- package/dist/solution/BookingTicket/utils/scan/index.js +0 -285
- package/dist/solution/BookingTicket/utils/scan/scanCache.d.ts +0 -78
- package/dist/solution/BookingTicket/utils/scan/scanCache.js +0 -305
- package/dist/solution/Checkout/appointmentDemo.json +0 -1
- package/dist/solution/Checkout/index.d.ts +0 -181
- package/dist/solution/Checkout/index.js +0 -1596
- package/dist/solution/Checkout/types.d.ts +0 -550
- package/dist/solution/Checkout/types.js +0 -132
- package/dist/solution/Checkout/utils/index.d.ts +0 -73
- package/dist/solution/Checkout/utils/index.js +0 -371
- package/dist/utils/task.d.ts +0 -40
- package/dist/utils/task.js +0 -171
- package/dist/utils/watch.d.ts +0 -102
- package/dist/utils/watch.js +0 -294
- package/lib/modules/Customer/constants.d.ts +0 -7
- package/lib/modules/Customer/constants.js +0 -39
- package/lib/modules/Customer/index.d.ts +0 -122
- package/lib/modules/Customer/index.js +0 -440
- package/lib/modules/Customer/types.d.ts +0 -146
- package/lib/modules/Customer/types.js +0 -37
- package/lib/modules/Payment/cash.d.ts +0 -11
- package/lib/modules/Payment/cash.js +0 -51
- package/lib/modules/Payment/eftpos.d.ts +0 -11
- package/lib/modules/Payment/eftpos.js +0 -51
- package/lib/modules/Payment/wallet.d.ts +0 -11
- package/lib/modules/Payment/wallet.js +0 -51
- package/lib/modules/Payment/walletpass.d.ts +0 -0
- package/lib/modules/Payment/walletpass.js +0 -0
- package/lib/plugins/app-types/app/app.d.ts +0 -83
- package/lib/plugins/app-types/app/const.d.ts +0 -4
- package/lib/plugins/app-types/app/index.d.ts +0 -14
- package/lib/plugins/app-types/applicationManager/application.d.ts +0 -50
- package/lib/plugins/app-types/applicationManager/index.d.ts +0 -13
- package/lib/plugins/app-types/config.d.ts +0 -3
- package/lib/plugins/app-types/cookie/index.d.ts +0 -13
- package/lib/plugins/app-types/data/index.d.ts +0 -8
- package/lib/plugins/app-types/history/config.d.ts +0 -24
- package/lib/plugins/app-types/history/index.d.ts +0 -20
- package/lib/plugins/app-types/history/type.d.ts +0 -2
- package/lib/plugins/app-types/hooks/index.d.ts +0 -12
- package/lib/plugins/app-types/hooks/useDelayedValue/index.d.ts +0 -2
- package/lib/plugins/app-types/hooks/useDispatch/index.d.ts +0 -2
- package/lib/plugins/app-types/hooks/useLowCode/index.d.ts +0 -13
- package/lib/plugins/app-types/hooks/useStore/index.d.ts +0 -6
- package/lib/plugins/app-types/index.d.ts +0 -6
- package/lib/plugins/app-types/indexDB/index.d.ts +0 -178
- package/lib/plugins/app-types/locales/en.d.ts +0 -3
- package/lib/plugins/app-types/locales/index.d.ts +0 -37
- package/lib/plugins/app-types/locales/original.d.ts +0 -3
- package/lib/plugins/app-types/locales/type.d.ts +0 -19
- package/lib/plugins/app-types/locales/zh-CN.d.ts +0 -3
- package/lib/plugins/app-types/locales/zh-HK.d.ts +0 -3
- package/lib/plugins/app-types/logger/feishu.d.ts +0 -11
- package/lib/plugins/app-types/logger/index.d.ts +0 -122
- package/lib/plugins/app-types/menuManager/hooks.d.ts +0 -17
- package/lib/plugins/app-types/menuManager/index.d.ts +0 -28
- package/lib/plugins/app-types/models/global.d.ts +0 -32
- package/lib/plugins/app-types/models/index.d.ts +0 -45
- package/lib/plugins/app-types/models/type.d.ts +0 -2
- package/lib/plugins/app-types/package.json +0 -15
- package/lib/plugins/app-types/plugin/index.d.ts +0 -0
- package/lib/plugins/app-types/pubsub/example.d.ts +0 -5
- package/lib/plugins/app-types/pubsub/index.d.ts +0 -63
- package/lib/plugins/app-types/request/cache.d.ts +0 -46
- package/lib/plugins/app-types/request/cancelToken.d.ts +0 -38
- package/lib/plugins/app-types/request/config.d.ts +0 -3
- package/lib/plugins/app-types/request/constants.d.ts +0 -2
- package/lib/plugins/app-types/request/index.d.ts +0 -24
- package/lib/plugins/app-types/request/pisell2Request.d.ts +0 -6
- package/lib/plugins/app-types/request/type.d.ts +0 -41
- package/lib/plugins/app-types/request/utils.d.ts +0 -46
- package/lib/plugins/app-types/routes/config.d.ts +0 -7
- package/lib/plugins/app-types/routes/index.d.ts +0 -28
- package/lib/plugins/app-types/socket/components/SocketMonitorPage.d.ts +0 -6
- package/lib/plugins/app-types/socket/components/index.d.ts +0 -2
- package/lib/plugins/app-types/socket/constants.d.ts +0 -33
- package/lib/plugins/app-types/socket/events.d.ts +0 -31
- package/lib/plugins/app-types/socket/heartbeat.d.ts +0 -66
- package/lib/plugins/app-types/socket/index.d.ts +0 -61
- package/lib/plugins/app-types/socket/monitor.d.ts +0 -169
- package/lib/plugins/app-types/socket/reconnect.d.ts +0 -61
- package/lib/plugins/app-types/socket/socket.d.ts +0 -129
- package/lib/plugins/app-types/socket/types.d.ts +0 -85
- package/lib/plugins/app-types/storage/index.d.ts +0 -17
- package/lib/plugins/app-types/tasks/index.d.ts +0 -77
- package/lib/plugins/app-types/tasks/type.d.ts +0 -62
- package/lib/plugins/app-types/tasks/useTasks.d.ts +0 -5
- package/lib/plugins/app-types/type.d.ts +0 -2
- package/lib/plugins/app-types/variables/VariablesProvider.d.ts +0 -7
- package/lib/plugins/app-types/variables/config.d.ts +0 -3
- package/lib/plugins/app-types/variables/index.d.ts +0 -6
- package/lib/plugins/app-types/variables/type.d.ts +0 -2
- package/lib/plugins/app-types/website/index.d.ts +0 -6
- package/lib/plugins/app.d.ts +0 -8
- package/lib/plugins/app.js +0 -17
- package/lib/solution/BookingTicket/index.d.ts +0 -172
- package/lib/solution/BookingTicket/index.js +0 -399
- package/lib/solution/BookingTicket/types.d.ts +0 -68
- package/lib/solution/BookingTicket/types.js +0 -72
- package/lib/solution/BookingTicket/utils/scan/cloudSearch.d.ts +0 -22
- package/lib/solution/BookingTicket/utils/scan/cloudSearch.js +0 -117
- package/lib/solution/BookingTicket/utils/scan/handleScan.d.ts +0 -16
- package/lib/solution/BookingTicket/utils/scan/handleScan.js +0 -125
- package/lib/solution/BookingTicket/utils/scan/index.d.ts +0 -81
- package/lib/solution/BookingTicket/utils/scan/index.js +0 -210
- package/lib/solution/BookingTicket/utils/scan/scanCache.d.ts +0 -78
- package/lib/solution/BookingTicket/utils/scan/scanCache.js +0 -231
- package/lib/solution/Checkout/appointmentDemo.json +0 -1
- package/lib/solution/Checkout/index.d.ts +0 -181
- package/lib/solution/Checkout/index.js +0 -864
- package/lib/solution/Checkout/types.d.ts +0 -550
- package/lib/solution/Checkout/types.js +0 -75
- package/lib/solution/Checkout/utils/index.d.ts +0 -73
- package/lib/solution/Checkout/utils/index.js +0 -266
- package/lib/utils/task.d.ts +0 -40
- package/lib/utils/task.js +0 -109
- package/lib/utils/watch.d.ts +0 -102
- package/lib/utils/watch.js +0 -217
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/modules/Customer/types.ts
|
|
20
|
-
var types_exports = {};
|
|
21
|
-
__export(types_exports, {
|
|
22
|
-
CustomerHooks: () => CustomerHooks
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(types_exports);
|
|
25
|
-
var CustomerHooks = /* @__PURE__ */ ((CustomerHooks2) => {
|
|
26
|
-
CustomerHooks2["OnCustomerListUpdate"] = "customer:onUpdate";
|
|
27
|
-
CustomerHooks2["OnCustomerListError"] = "customer:onError";
|
|
28
|
-
CustomerHooks2["OnCustomerSelected"] = "customer:onSelected";
|
|
29
|
-
CustomerHooks2["OnPaginationChange"] = "customer:onPaginationChange";
|
|
30
|
-
CustomerHooks2["OnScrollLoadMore"] = "customer:onScrollLoadMore";
|
|
31
|
-
CustomerHooks2["OnScrollLoadComplete"] = "customer:onScrollLoadComplete";
|
|
32
|
-
return CustomerHooks2;
|
|
33
|
-
})(CustomerHooks || {});
|
|
34
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
-
0 && (module.exports = {
|
|
36
|
-
CustomerHooks
|
|
37
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CashPayment } from './types';
|
|
2
|
-
import type { PaymentModule } from './index';
|
|
3
|
-
/**
|
|
4
|
-
* 现金支付实现
|
|
5
|
-
*/
|
|
6
|
-
export declare class CashPaymentImpl implements CashPayment {
|
|
7
|
-
private paymentModule;
|
|
8
|
-
constructor(paymentModule: PaymentModule);
|
|
9
|
-
processCashPayment(amount: number, orderUuid: string): Promise<void>;
|
|
10
|
-
getCashBalance(): Promise<number>;
|
|
11
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/modules/Payment/cash.ts
|
|
20
|
-
var cash_exports = {};
|
|
21
|
-
__export(cash_exports, {
|
|
22
|
-
CashPaymentImpl: () => CashPaymentImpl
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(cash_exports);
|
|
25
|
-
var CashPaymentImpl = class {
|
|
26
|
-
constructor(paymentModule) {
|
|
27
|
-
this.paymentModule = paymentModule;
|
|
28
|
-
}
|
|
29
|
-
async processCashPayment(amount, orderUuid) {
|
|
30
|
-
const cashMethod = await this.paymentModule.getCashPaymentMethod();
|
|
31
|
-
if (!cashMethod) {
|
|
32
|
-
throw new Error("现金支付方式未找到");
|
|
33
|
-
}
|
|
34
|
-
const paymentItem = {
|
|
35
|
-
amount: amount.toString(),
|
|
36
|
-
code: cashMethod.code,
|
|
37
|
-
id: cashMethod.id,
|
|
38
|
-
name: cashMethod.name,
|
|
39
|
-
type: cashMethod.type,
|
|
40
|
-
voucher_id: ""
|
|
41
|
-
};
|
|
42
|
-
await this.paymentModule.pushPaymentAsync(orderUuid, paymentItem);
|
|
43
|
-
}
|
|
44
|
-
async getCashBalance() {
|
|
45
|
-
return 0;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
-
0 && (module.exports = {
|
|
50
|
-
CashPaymentImpl
|
|
51
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { EftposPayment } from './types';
|
|
2
|
-
import type { PaymentModule } from './index';
|
|
3
|
-
/**
|
|
4
|
-
* Eftpos支付实现
|
|
5
|
-
*/
|
|
6
|
-
export declare class EftposPaymentImpl implements EftposPayment {
|
|
7
|
-
private paymentModule;
|
|
8
|
-
constructor(paymentModule: PaymentModule);
|
|
9
|
-
processEftposPayment(amount: number, orderUuid: string): Promise<void>;
|
|
10
|
-
checkDeviceStatus(): Promise<boolean>;
|
|
11
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/modules/Payment/eftpos.ts
|
|
20
|
-
var eftpos_exports = {};
|
|
21
|
-
__export(eftpos_exports, {
|
|
22
|
-
EftposPaymentImpl: () => EftposPaymentImpl
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(eftpos_exports);
|
|
25
|
-
var EftposPaymentImpl = class {
|
|
26
|
-
constructor(paymentModule) {
|
|
27
|
-
this.paymentModule = paymentModule;
|
|
28
|
-
}
|
|
29
|
-
async processEftposPayment(amount, orderUuid) {
|
|
30
|
-
const eftposMethod = await this.paymentModule.getEftposPaymentMethod();
|
|
31
|
-
if (!eftposMethod) {
|
|
32
|
-
throw new Error("Eftpos支付方式未找到");
|
|
33
|
-
}
|
|
34
|
-
const paymentItem = {
|
|
35
|
-
amount: amount.toString(),
|
|
36
|
-
code: eftposMethod.code,
|
|
37
|
-
id: eftposMethod.id,
|
|
38
|
-
name: eftposMethod.name,
|
|
39
|
-
type: eftposMethod.type,
|
|
40
|
-
voucher_id: ""
|
|
41
|
-
};
|
|
42
|
-
await this.paymentModule.pushPaymentAsync(orderUuid, paymentItem);
|
|
43
|
-
}
|
|
44
|
-
async checkDeviceStatus() {
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
-
0 && (module.exports = {
|
|
50
|
-
EftposPaymentImpl
|
|
51
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WalletPayment } from './types';
|
|
2
|
-
import type { PaymentModule } from './index';
|
|
3
|
-
/**
|
|
4
|
-
* 钱包支付实现
|
|
5
|
-
*/
|
|
6
|
-
export declare class WalletPaymentImpl implements WalletPayment {
|
|
7
|
-
private paymentModule;
|
|
8
|
-
constructor(paymentModule: PaymentModule);
|
|
9
|
-
processWalletPayment(amount: number, orderUuid: string, voucherId?: string): Promise<void>;
|
|
10
|
-
getWalletBalance(voucherId: string): Promise<number>;
|
|
11
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/modules/Payment/wallet.ts
|
|
20
|
-
var wallet_exports = {};
|
|
21
|
-
__export(wallet_exports, {
|
|
22
|
-
WalletPaymentImpl: () => WalletPaymentImpl
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(wallet_exports);
|
|
25
|
-
var WalletPaymentImpl = class {
|
|
26
|
-
constructor(paymentModule) {
|
|
27
|
-
this.paymentModule = paymentModule;
|
|
28
|
-
}
|
|
29
|
-
async processWalletPayment(amount, orderUuid, voucherId) {
|
|
30
|
-
const walletMethod = await this.paymentModule.getWalletPaymentMethod();
|
|
31
|
-
if (!walletMethod) {
|
|
32
|
-
throw new Error("钱包支付方式未找到");
|
|
33
|
-
}
|
|
34
|
-
const paymentItem = {
|
|
35
|
-
amount: amount.toString(),
|
|
36
|
-
code: walletMethod.code,
|
|
37
|
-
id: walletMethod.id,
|
|
38
|
-
name: walletMethod.name,
|
|
39
|
-
type: walletMethod.type,
|
|
40
|
-
voucher_id: voucherId || ""
|
|
41
|
-
};
|
|
42
|
-
await this.paymentModule.pushPaymentAsync(orderUuid, paymentItem);
|
|
43
|
-
}
|
|
44
|
-
async getWalletBalance(voucherId) {
|
|
45
|
-
return 0;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
-
0 && (module.exports = {
|
|
50
|
-
WalletPaymentImpl
|
|
51
|
-
});
|
|
File without changes
|
|
File without changes
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { RouterManager } from '../routes';
|
|
2
|
-
import { ApplicationManager } from '../applicationManager';
|
|
3
|
-
import { History, HistoryOptions } from '../history';
|
|
4
|
-
import { Data } from '../data';
|
|
5
|
-
import { Locales, LocalesOptions } from '../locales';
|
|
6
|
-
import { Storage, StorageOptions } from '../storage';
|
|
7
|
-
import { MenuManager } from '../menuManager';
|
|
8
|
-
import LoggerManager, { LoggerOptions } from '../logger';
|
|
9
|
-
import { TasksManager } from '../tasks';
|
|
10
|
-
import IndexDBManager, { DBOptions } from '../indexDB';
|
|
11
|
-
declare global {
|
|
12
|
-
interface Window {
|
|
13
|
-
app: App;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export interface AppOptions {
|
|
17
|
-
logger?: LoggerOptions;
|
|
18
|
-
db?: DBOptions;
|
|
19
|
-
constants?: any;
|
|
20
|
-
history?: HistoryOptions;
|
|
21
|
-
storage?: StorageOptions;
|
|
22
|
-
locales?: LocalesOptions;
|
|
23
|
-
}
|
|
24
|
-
declare class App {
|
|
25
|
-
private static instance;
|
|
26
|
-
private plugins;
|
|
27
|
-
globalData: any;
|
|
28
|
-
router: RouterManager;
|
|
29
|
-
applicationManager: ApplicationManager;
|
|
30
|
-
history: History;
|
|
31
|
-
data: Data;
|
|
32
|
-
hooks: import("../hooks").HooksExport;
|
|
33
|
-
locales: Locales;
|
|
34
|
-
models: {
|
|
35
|
-
getStore: () => import("../models").Store;
|
|
36
|
-
StoreProvider: typeof import("react-redux").Provider;
|
|
37
|
-
setConfig: (models: any[]) => void;
|
|
38
|
-
};
|
|
39
|
-
request: {
|
|
40
|
-
get: (url: import("../request").RequestWrapperProps["url"], data: import("../request").RequestWrapperProps["data"], config: import("../request").RequestWrapperProps["config"]) => Promise<any>;
|
|
41
|
-
post: (url: import("../request").RequestWrapperProps["url"], data: import("../request").RequestWrapperProps["data"], config: import("../request").RequestWrapperProps["config"]) => Promise<any>;
|
|
42
|
-
put: (url: import("../request").RequestWrapperProps["url"], data: import("../request").RequestWrapperProps["data"], config: import("../request").RequestWrapperProps["config"]) => Promise<any>;
|
|
43
|
-
remove: (url: import("../request").RequestWrapperProps["url"], data: import("../request").RequestWrapperProps["data"], config: import("../request").RequestWrapperProps["config"]) => Promise<any>;
|
|
44
|
-
custom: (url: import("../request").RequestWrapperProps["url"], config: import("../request").RequestWrapperProps["config"]) => Promise<any>;
|
|
45
|
-
setConfig: (newConfig: Partial<import("../request").RequestConfig>) => void;
|
|
46
|
-
getConfig: () => import("../request").RequestConfig;
|
|
47
|
-
};
|
|
48
|
-
storage: Storage;
|
|
49
|
-
menuManager: MenuManager;
|
|
50
|
-
cookie: {
|
|
51
|
-
setCookie: (name: string, value: string, domain?: string) => void;
|
|
52
|
-
getCookie: (name: string) => string | null;
|
|
53
|
-
deleteCookie: (name: string, domain?: string) => void;
|
|
54
|
-
checkCookie: (name: string) => boolean;
|
|
55
|
-
updateCookie: (name: string, value: string, domain?: string) => void;
|
|
56
|
-
};
|
|
57
|
-
website: {
|
|
58
|
-
setTitle: (title: string) => void;
|
|
59
|
-
setIcon: (paramsIcon: string) => void;
|
|
60
|
-
setAppleWebAppTitle: (title: string) => void;
|
|
61
|
-
};
|
|
62
|
-
logger: LoggerManager;
|
|
63
|
-
pubsub: import("../pubsub").PubSub;
|
|
64
|
-
tasksManager: TasksManager;
|
|
65
|
-
dbManager: IndexDBManager | null;
|
|
66
|
-
constants: {
|
|
67
|
-
channel: string;
|
|
68
|
-
[key: string]: string;
|
|
69
|
-
};
|
|
70
|
-
private constructor();
|
|
71
|
-
static getInstance(options?: AppOptions): App;
|
|
72
|
-
setGlobalData(globalData: any): void;
|
|
73
|
-
usePlugin(name: string, plugin: any): void;
|
|
74
|
-
usePlugins(plugins: {
|
|
75
|
-
name: string;
|
|
76
|
-
plugin: any;
|
|
77
|
-
}[]): void;
|
|
78
|
-
getPlugin(name: string): any;
|
|
79
|
-
getGlobalData(): any;
|
|
80
|
-
install(): void;
|
|
81
|
-
unInstall(): void;
|
|
82
|
-
}
|
|
83
|
-
export default App;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import App, { AppOptions } from "./app";
|
|
3
|
-
type AppContextType = {
|
|
4
|
-
globalData: any;
|
|
5
|
-
setGlobalData: React.Dispatch<React.SetStateAction<any>>;
|
|
6
|
-
app: App;
|
|
7
|
-
};
|
|
8
|
-
export declare const AppProvider: React.FC<{
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
options: AppOptions;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const useApp: () => AppContextType;
|
|
13
|
-
export declare const getApp: typeof App.getInstance;
|
|
14
|
-
export default App;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import App from "../app";
|
|
2
|
-
import { LoadLibraryByUrlParams } from "../locales/type";
|
|
3
|
-
import { MenuItem } from "../menuManager/index";
|
|
4
|
-
export type ApplicationInterface = {
|
|
5
|
-
page_type: "low_code" | "code";
|
|
6
|
-
page_id: number | string;
|
|
7
|
-
page_code: string;
|
|
8
|
-
page_version?: string;
|
|
9
|
-
page_name: string;
|
|
10
|
-
router: string;
|
|
11
|
-
category: "page" | "component" | "function";
|
|
12
|
-
Component?: any;
|
|
13
|
-
children?: any;
|
|
14
|
-
layout?: string;
|
|
15
|
-
originalUrl?: string;
|
|
16
|
-
};
|
|
17
|
-
export type ApplicationData = {
|
|
18
|
-
app_id: number;
|
|
19
|
-
app_name: string;
|
|
20
|
-
app_type: "system" | "custom";
|
|
21
|
-
interfaces: ApplicationInterface[];
|
|
22
|
-
functions?: any[];
|
|
23
|
-
menu?: {
|
|
24
|
-
[key: string]: MenuItem[];
|
|
25
|
-
};
|
|
26
|
-
locales?: LoadLibraryByUrlParams;
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
};
|
|
29
|
-
export declare class Application {
|
|
30
|
-
options: ApplicationData;
|
|
31
|
-
name: ApplicationData["app_name"];
|
|
32
|
-
interfaces: Map<ApplicationInterface["page_name"], ApplicationInterface>;
|
|
33
|
-
components: Map<string, any>;
|
|
34
|
-
functions: Map<string, any>;
|
|
35
|
-
app: App;
|
|
36
|
-
constructor(options: ApplicationData, app: App);
|
|
37
|
-
afterAdd(application: Application): Promise<void>;
|
|
38
|
-
beforeLoad(): Promise<void>;
|
|
39
|
-
load(): Promise<void>;
|
|
40
|
-
initInterfaces(interfaces: ApplicationData["interfaces"]): void;
|
|
41
|
-
initFunctions(functions: ApplicationData["functions"]): void;
|
|
42
|
-
loadInterface(interfaceItem: ApplicationInterface): Promise<ApplicationInterface>;
|
|
43
|
-
setInterface(code: string, interfaceItem: ApplicationInterface): void;
|
|
44
|
-
setComponent(code: string, component: ApplicationInterface): void;
|
|
45
|
-
setFunction(code: string, functionItem: ApplicationInterface): void;
|
|
46
|
-
getInterface(code: string): ApplicationInterface | undefined;
|
|
47
|
-
getComponent(code: string): any;
|
|
48
|
-
getFunction(code: string): any;
|
|
49
|
-
runFunction(code: string, params?: any, ...args: any): any;
|
|
50
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import APP from "../app";
|
|
2
|
-
import { Application, ApplicationData } from "./application";
|
|
3
|
-
export declare class ApplicationManager {
|
|
4
|
-
applicationList: Application[];
|
|
5
|
-
protected app: APP;
|
|
6
|
-
applications: Map<string, Application>;
|
|
7
|
-
constructor(applicationList: Application[] | undefined, app: APP);
|
|
8
|
-
init(applicationList: Application[] | ApplicationData[]): Promise<unknown>;
|
|
9
|
-
add(application: Application): Promise<void>;
|
|
10
|
-
get(appName: Application["name"]): Application | undefined;
|
|
11
|
-
remove(appName: Application["name"]): void;
|
|
12
|
-
load(): Promise<void>;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare function setCookie(name: string, value: string, domain?: string): void;
|
|
2
|
-
declare function getCookie(name: string): string | null;
|
|
3
|
-
declare function deleteCookie(name: string, domain?: string): void;
|
|
4
|
-
declare function checkCookie(name: string): boolean;
|
|
5
|
-
declare function updateCookie(name: string, value: string, domain?: string): void;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
setCookie: typeof setCookie;
|
|
8
|
-
getCookie: typeof getCookie;
|
|
9
|
-
deleteCookie: typeof deleteCookie;
|
|
10
|
-
checkCookie: typeof checkCookie;
|
|
11
|
-
updateCookie: typeof updateCookie;
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { HistoryConfig } from './type';
|
|
2
|
-
/**
|
|
3
|
-
* @title: 默认配置
|
|
4
|
-
* @description:
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: zhiwei.Wang
|
|
7
|
-
*/
|
|
8
|
-
export declare const defaultConfig: HistoryConfig;
|
|
9
|
-
/**
|
|
10
|
-
* @title: 设置配置
|
|
11
|
-
* @description:
|
|
12
|
-
* @param {Partial} newConfig
|
|
13
|
-
* @return {*}
|
|
14
|
-
* @Author: zhiwei.Wang
|
|
15
|
-
*/
|
|
16
|
-
export declare const setConfig: (newConfig: Partial<HistoryConfig>) => HistoryConfig;
|
|
17
|
-
/**
|
|
18
|
-
* @title: 获取配置
|
|
19
|
-
* @description:
|
|
20
|
-
* @param {*} HistoryConfig
|
|
21
|
-
* @return {*}
|
|
22
|
-
* @Author: zhiwei.Wang
|
|
23
|
-
*/
|
|
24
|
-
export declare const getConfig: () => HistoryConfig;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { History as HistoryType } from "history";
|
|
2
|
-
import { useHistory, useLocation, useParams } from "react-router-dom";
|
|
3
|
-
import App from "../app";
|
|
4
|
-
export interface HistoryOptions {
|
|
5
|
-
basename?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class History {
|
|
8
|
-
instance: HistoryType<unknown>;
|
|
9
|
-
useHistory: typeof useHistory;
|
|
10
|
-
useLocation: typeof useLocation;
|
|
11
|
-
useParams: typeof useParams;
|
|
12
|
-
app: App;
|
|
13
|
-
constructor(app: App, options?: HistoryOptions);
|
|
14
|
-
push: HistoryType["push"];
|
|
15
|
-
replace: HistoryType["replace"];
|
|
16
|
-
reload: () => void;
|
|
17
|
-
reloadTo: (path: string) => void;
|
|
18
|
-
externalPage: (path: string) => void;
|
|
19
|
-
goLogin: () => any;
|
|
20
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import useLowCode from './useLowCode';
|
|
2
|
-
import useDelayedValue from './useDelayedValue';
|
|
3
|
-
import useStore from './useStore';
|
|
4
|
-
import useDispatch from './useDispatch';
|
|
5
|
-
export interface HooksExport {
|
|
6
|
-
useLowCode: typeof useLowCode;
|
|
7
|
-
useDelayedValue: typeof useDelayedValue;
|
|
8
|
-
useStore: typeof useStore;
|
|
9
|
-
useDispatch: typeof useDispatch;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: HooksExport;
|
|
12
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface useLowCodeProps {
|
|
2
|
-
onChange: (e: any) => void;
|
|
3
|
-
onReady: (e: any) => void;
|
|
4
|
-
}
|
|
5
|
-
export interface useLowCodeResult {
|
|
6
|
-
lowcodeRef: {
|
|
7
|
-
onReady: (e: any) => void;
|
|
8
|
-
onChange: (e: any) => void;
|
|
9
|
-
};
|
|
10
|
-
setState: (values: any, callback?: any) => any;
|
|
11
|
-
}
|
|
12
|
-
declare const useLowCode: (props: Partial<useLowCodeProps>) => useLowCodeResult;
|
|
13
|
-
export default useLowCode;
|