oak-pay-business 2.5.7 → 2.6.1
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/es/aspects/withdraw.d.ts +40 -40
- package/es/components/AbstractComponents.d.ts +62 -11
- package/es/components/accountOper/pure/List.pc.d.ts +1 -0
- package/es/components/offlineAccount/config/index.js +1 -0
- package/es/components/offlineAccount/config/web.pc.d.ts +2 -0
- package/es/components/offlineAccount/config/web.pc.js +1 -1
- package/es/components/offlineAccount/upsert/index.d.ts +1 -0
- package/es/components/offlineAccount/upsert/web.pc.js +1 -1
- package/es/components/order/list/index.d.ts +1 -0
- package/es/components/order/pay/index.d.ts +1 -1
- package/es/components/order/pay/info.d.ts +1 -0
- package/es/components/pay/channelPicker2/web.d.ts +1 -0
- package/es/components/pay/channelPicker2/web.pc.d.ts +1 -0
- package/es/components/pay/detail/index.js +1 -0
- package/es/components/pay/detail/web.d.ts +1 -0
- package/es/components/pay/detail/web.pc.d.ts +1 -0
- package/es/components/pay/detail/web.pc.js +1 -1
- package/es/components/pay/list/index.d.ts +1 -0
- package/es/components/pay/list/index.js +1 -0
- package/es/components/pay/list/web.pc.d.ts +1 -0
- package/es/components/payConfig/system/index.d.ts +1 -0
- package/es/components/payConfig/system/index.js +1 -0
- package/es/components/payConfig/system/web.pc.d.ts +1 -0
- package/es/components/payConfig/system/web.pc.js +1 -1
- package/es/components/refund/list/index.d.ts +1 -0
- package/es/components/refund/list/index.js +1 -0
- package/es/components/refund/list/web.pc.d.ts +1 -0
- package/es/components/sysAccount/transferList/index.d.ts +1 -0
- package/es/components/sysAccount/transferList/web.pc.js +1 -1
- package/es/components/withdraw/create/index.d.ts +1 -1
- package/es/components/withdraw/detail/index.d.ts +1 -0
- package/es/components/withdraw/display/index.d.ts +1 -1
- package/es/components/withdraw/display/web.d.ts +1 -0
- package/es/components/withdraw/display/web.pc.d.ts +1 -0
- package/es/components/withdrawAccount/list/index.js +1 -0
- package/es/components/withdrawAccount/list/web.d.ts +1 -0
- package/es/components/withdrawAccount/list/web.pc.d.ts +1 -0
- package/es/components/withdrawTransfer/list/index.d.ts +1 -0
- package/es/components/withdrawTransfer/list/index.js +1 -0
- package/es/components/withdrawTransfer/list/web.pc.d.ts +1 -0
- package/es/components/wpAccount/config/index.js +1 -0
- package/es/components/wpAccount/config/web.pc.d.ts +2 -0
- package/es/components/wpProduct/config/index.js +1 -0
- package/es/components/wpProduct/config/web.pc.d.ts +2 -0
- package/es/components/wpProduct/config/web.pc.js +1 -1
- package/es/context/BackendRuntimeContext.d.ts +418 -80
- package/es/entities/Deposit.d.ts +2 -2
- package/es/entities/Deposit.js +6 -2
- package/es/entities/User.js +1 -0
- package/es/entities/WpProduct.d.ts +1 -0
- package/es/entities/WpProduct.js +1 -0
- package/es/oak-app-domain/Deposit/Action.d.ts +2 -2
- package/es/oak-app-domain/Deposit/Action.js +4 -3
- package/es/oak-app-domain/Deposit/Storage.js +1 -1
- package/es/oak-app-domain/Deposit/Style.js +1 -0
- package/es/oak-app-domain/Deposit/locales/zh_CN.json +4 -2
- package/es/oak-app-domain/Platform/Schema.d.ts +33 -3
- package/es/oak-app-domain/Platform/Storage.js +2 -1
- package/es/oak-app-domain/Platform/locales/zh_CN.json +4 -0
- package/es/oak-app-domain/Relation/Schema.d.ts +33 -4
- package/es/oak-app-domain/Relation/Storage.js +1 -1
- package/es/oak-app-domain/Relation.js +10 -0
- package/es/oak-app-domain/RelationId.d.ts +4 -0
- package/es/oak-app-domain/User/Schema.d.ts +5 -0
- package/es/oak-app-domain/User/Storage.js +3 -0
- package/es/oak-app-domain/User/locales/zh_CN.json +1 -0
- package/es/oak-app-domain/UserRelation/Schema.d.ts +33 -4
- package/es/oak-app-domain/UserRelation/Storage.js +1 -1
- package/es/oak-app-domain/WpProduct/Schema.d.ts +5 -0
- package/es/oak-app-domain/WpProduct/Storage.js +4 -0
- package/es/oak-app-domain/WpProduct/locales/zh_CN.json +1 -0
- package/es/oak-app-domain/_SubQuery.d.ts +4 -0
- package/es/routines/start.js +19 -19
- package/es/timers/index.js +22 -20
- package/es/triggers/index.d.ts +1 -0
- package/es/triggers/index.js +4 -1
- package/es/triggers/pay.d.ts +1 -0
- package/es/triggers/pay.js +27 -2
- package/es/triggers/withdraw.d.ts +1 -1
- package/es/utils/application.d.ts +418 -80
- package/es/utils/pay.d.ts +1 -0
- package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/es/utils/payClazz/index.js +2 -2
- package/es/utils/wpProductFrontend.d.ts +2 -1
- package/lib/aspects/withdraw.d.ts +36 -36
- package/lib/context/BackendRuntimeContext.d.ts +418 -80
- package/lib/entities/Deposit.d.ts +2 -2
- package/lib/entities/Deposit.js +6 -2
- package/lib/entities/User.js +1 -0
- package/lib/entities/WpProduct.d.ts +1 -0
- package/lib/entities/WpProduct.js +1 -0
- package/lib/oak-app-domain/Deposit/Action.d.ts +2 -2
- package/lib/oak-app-domain/Deposit/Action.js +4 -3
- package/lib/oak-app-domain/Deposit/Storage.js +1 -1
- package/lib/oak-app-domain/Deposit/Style.js +1 -0
- package/lib/oak-app-domain/Deposit/locales/zh_CN.json +4 -2
- package/lib/oak-app-domain/Platform/Schema.d.ts +33 -3
- package/lib/oak-app-domain/Platform/Storage.js +2 -1
- package/lib/oak-app-domain/Platform/locales/zh_CN.json +4 -0
- package/lib/oak-app-domain/Relation/Schema.d.ts +33 -4
- package/lib/oak-app-domain/Relation/Storage.js +1 -1
- package/lib/oak-app-domain/Relation.js +10 -0
- package/lib/oak-app-domain/RelationId.d.ts +4 -0
- package/lib/oak-app-domain/User/Schema.d.ts +5 -0
- package/lib/oak-app-domain/User/Storage.js +3 -0
- package/lib/oak-app-domain/User/locales/zh_CN.json +1 -0
- package/lib/oak-app-domain/UserRelation/Schema.d.ts +33 -4
- package/lib/oak-app-domain/UserRelation/Storage.js +1 -1
- package/lib/oak-app-domain/WpProduct/Schema.d.ts +5 -0
- package/lib/oak-app-domain/WpProduct/Storage.js +4 -0
- package/lib/oak-app-domain/WpProduct/locales/zh_CN.json +1 -0
- package/lib/oak-app-domain/_SubQuery.d.ts +4 -0
- package/lib/routines/start.js +19 -19
- package/lib/timers/index.js +22 -20
- package/lib/triggers/index.d.ts +1 -0
- package/lib/triggers/index.js +5 -1
- package/lib/triggers/pay.d.ts +1 -0
- package/lib/triggers/pay.js +30 -4
- package/lib/utils/application.d.ts +418 -80
- package/lib/utils/pay.d.ts +1 -0
- package/lib/utils/payClazz/index.js +2 -2
- package/lib/utils/wpProductFrontend.d.ts +2 -1
- package/lib/utils/wpProductFrontend.js +3 -2
- package/package.json +4 -4
- package/src/entities/Deposit.ts +8 -4
- package/src/entities/User.ts +1 -0
- package/src/entities/WpProduct.ts +2 -0
package/es/aspects/withdraw.d.ts
CHANGED
|
@@ -3,60 +3,60 @@ export declare function getWithdrawCreateData(params: {
|
|
|
3
3
|
accountId: string;
|
|
4
4
|
price: number;
|
|
5
5
|
withdrawAccountId?: string;
|
|
6
|
-
}, context: BRC): Promise<(Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
6
|
+
}, context: BRC): Promise<(Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
7
7
|
id: string;
|
|
8
8
|
} & {
|
|
9
|
-
accountId:
|
|
10
|
-
account?: import("../oak-app-domain/Account/Schema").UpdateOperation;
|
|
9
|
+
accountId: string;
|
|
10
|
+
account?: import("../oak-app-domain/Account/Schema").UpdateOperation | undefined;
|
|
11
11
|
} & {
|
|
12
|
-
creatorId:
|
|
13
|
-
creator?: import("../oak-app-domain/User/Schema").UpdateOperation;
|
|
12
|
+
creatorId: string;
|
|
13
|
+
creator?: import("../oak-app-domain/User/Schema").UpdateOperation | undefined;
|
|
14
14
|
} & {
|
|
15
|
-
refund$withdraw?: import("oak-domain/lib/types").Operation<
|
|
16
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<
|
|
17
|
-
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
18
|
-
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
19
|
-
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
20
|
-
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
15
|
+
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
|
|
16
|
+
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
|
|
17
|
+
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
18
|
+
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
19
|
+
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
20
|
+
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
21
21
|
id: string;
|
|
22
22
|
} & {
|
|
23
|
-
accountId:
|
|
24
|
-
account?: import("../oak-app-domain/Account/Schema").UpdateOperation;
|
|
23
|
+
accountId: string;
|
|
24
|
+
account?: import("../oak-app-domain/Account/Schema").UpdateOperation | undefined;
|
|
25
25
|
} & {
|
|
26
|
-
creator?:
|
|
27
|
-
creatorId:
|
|
26
|
+
creator?: undefined;
|
|
27
|
+
creatorId: string;
|
|
28
28
|
} & {
|
|
29
|
-
refund$withdraw?: import("oak-domain/lib/types").Operation<
|
|
30
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<
|
|
31
|
-
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
32
|
-
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
33
|
-
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
34
|
-
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
29
|
+
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
|
|
30
|
+
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
|
|
31
|
+
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
32
|
+
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
33
|
+
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
34
|
+
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
35
35
|
id: string;
|
|
36
36
|
} & {
|
|
37
|
-
account?:
|
|
38
|
-
accountId:
|
|
37
|
+
account?: undefined;
|
|
38
|
+
accountId: string;
|
|
39
39
|
} & {
|
|
40
|
-
creatorId:
|
|
41
|
-
creator?: import("../oak-app-domain/User/Schema").UpdateOperation;
|
|
40
|
+
creatorId: string;
|
|
41
|
+
creator?: import("../oak-app-domain/User/Schema").UpdateOperation | undefined;
|
|
42
42
|
} & {
|
|
43
|
-
refund$withdraw?: import("oak-domain/lib/types").Operation<
|
|
44
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<
|
|
45
|
-
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
46
|
-
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
47
|
-
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
48
|
-
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "
|
|
43
|
+
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
|
|
44
|
+
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
|
|
45
|
+
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
46
|
+
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
47
|
+
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
48
|
+
}) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
|
|
49
49
|
id: string;
|
|
50
50
|
} & {
|
|
51
|
-
account?:
|
|
52
|
-
accountId:
|
|
51
|
+
account?: undefined;
|
|
52
|
+
accountId: string;
|
|
53
53
|
} & {
|
|
54
|
-
creator?:
|
|
55
|
-
creatorId:
|
|
54
|
+
creator?: undefined;
|
|
55
|
+
creatorId: string;
|
|
56
56
|
} & {
|
|
57
|
-
refund$withdraw?: import("oak-domain/lib/types").Operation<
|
|
58
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<
|
|
59
|
-
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
60
|
-
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
61
|
-
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> |
|
|
57
|
+
refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
|
|
58
|
+
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">>)[] | undefined;
|
|
59
|
+
modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
60
|
+
operEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/OperEntity/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
61
|
+
accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
|
|
62
62
|
})>;
|
|
@@ -4,15 +4,66 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { EntityDict } from '../oak-app-domain';
|
|
7
|
-
import { ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef } from 'oak-frontend-base';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
import { ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, ListButtonProps, OakAbsAttrUpsertDef } from 'oak-frontend-base';
|
|
8
|
+
declare const FilterPanel: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
|
9
|
+
entity: T;
|
|
10
|
+
columns: ColumnProps<EntityDict, T>[];
|
|
11
|
+
}>) => React.ReactElement;
|
|
12
|
+
declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
|
13
|
+
entity: T;
|
|
14
|
+
extraActions: OakExtraActionProps[] | ((row: RowWithActions<EntityDict, T>) => OakExtraActionProps[]);
|
|
15
|
+
onAction: onActionFnDef;
|
|
16
|
+
disabledOp: boolean;
|
|
17
|
+
attributes: OakAbsAttrDef[];
|
|
18
|
+
data: RowWithActions<EntityDict, T>[];
|
|
19
|
+
loading: boolean;
|
|
20
|
+
tablePagination?: React.ReactNode;
|
|
21
|
+
rowSelection?: any;
|
|
22
|
+
hideHeader?: boolean | undefined;
|
|
23
|
+
disableSerialNumber?: boolean | undefined;
|
|
24
|
+
size?: "small" | "middle" | "large" | undefined;
|
|
25
|
+
scroll?: any;
|
|
26
|
+
empty?: React.ReactNode;
|
|
27
|
+
opWidth?: number | undefined;
|
|
28
|
+
ellipsis?: boolean | undefined;
|
|
29
|
+
}>) => React.ReactElement;
|
|
30
|
+
declare const ListPro: <T extends keyof EntityDict>(props: {
|
|
31
|
+
title?: any;
|
|
32
|
+
extraContent?: any;
|
|
33
|
+
hideDefaultButtons?: boolean | undefined;
|
|
34
|
+
buttonGroup?: ListButtonProps[] | undefined;
|
|
35
|
+
onReload?: (() => void) | undefined;
|
|
36
|
+
entity: T;
|
|
37
|
+
extraActions?: OakExtraActionProps[] | ((row: RowWithActions<EntityDict, T>) => OakExtraActionProps[]) | undefined;
|
|
38
|
+
onAction?: onActionFnDef | undefined;
|
|
39
|
+
disabledOp?: boolean | undefined;
|
|
40
|
+
attributes: OakAbsAttrDef[];
|
|
41
|
+
data: RowWithActions<EntityDict, T>[];
|
|
42
|
+
loading?: boolean | undefined;
|
|
43
|
+
tablePagination?: any;
|
|
44
|
+
rowSelection?: any;
|
|
45
|
+
disableSerialNumber?: boolean | undefined;
|
|
46
|
+
size?: "small" | "middle" | "large" | undefined;
|
|
47
|
+
scroll?: any;
|
|
48
|
+
empty?: any;
|
|
49
|
+
opWidth?: number | undefined;
|
|
50
|
+
oakPath?: string | undefined;
|
|
51
|
+
}) => React.ReactElement;
|
|
52
|
+
declare const Detail: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
|
53
|
+
column?: number | Record<Breakpoint, number> | undefined;
|
|
54
|
+
entity: T;
|
|
55
|
+
attributes: OakAbsAttrDef[];
|
|
56
|
+
data: Partial<EntityDict[T]["Schema"]>;
|
|
57
|
+
title?: string | undefined;
|
|
58
|
+
bordered?: boolean | undefined;
|
|
59
|
+
layout?: "horizontal" | "vertical" | undefined;
|
|
60
|
+
}>) => React.ReactElement;
|
|
61
|
+
declare const Upsert: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
|
62
|
+
helps: Record<string, string>;
|
|
63
|
+
entity: T;
|
|
64
|
+
attributes: OakAbsAttrUpsertDef<EntityDict, T, string | number>[];
|
|
65
|
+
data: EntityDict[T]["Schema"];
|
|
66
|
+
layout: "horizontal" | "vertical";
|
|
67
|
+
mode: "default" | "card";
|
|
68
|
+
}>) => React.ReactElement;
|
|
18
69
|
export { FilterPanel, List, ListPro, Detail, Upsert, ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EntityDict } from "../../../oak-app-domain";
|
|
3
3
|
import { RowWithActions, WebComponentProps } from "oak-frontend-base";
|
|
4
|
+
import { OakException } from 'oak-domain/lib/types';
|
|
4
5
|
export declare function OfflineAccount(props: {
|
|
5
6
|
data: RowWithActions<EntityDict, 'offlineAccount'> & {
|
|
6
7
|
color: string;
|
|
@@ -16,4 +17,5 @@ export default function render(props: WebComponentProps<EntityDict, 'offlineAcco
|
|
|
16
17
|
})[];
|
|
17
18
|
systemId: string;
|
|
18
19
|
canCreate?: boolean;
|
|
20
|
+
oakExecutable: boolean | OakException<EntityDict>;
|
|
19
21
|
}>): React.JSX.Element;
|
|
@@ -90,7 +90,7 @@ export default function render(props) {
|
|
|
90
90
|
</div>)}
|
|
91
91
|
</div>
|
|
92
92
|
<div className={Styles.btnBar}>
|
|
93
|
-
|
|
93
|
+
{canCreate && <Button type="primary" onClick={() => {
|
|
94
94
|
const id = addItem({ systemId });
|
|
95
95
|
setUpsertId(id);
|
|
96
96
|
}}>
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "offlineAccount", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -75,7 +75,7 @@ export default function render(props) {
|
|
|
75
75
|
}}/>
|
|
76
76
|
</Form.Item>
|
|
77
77
|
<Form.Item label={t('offlineAccount:attr.withdrawTransferLossRatio')} help={t('placeholder.withdrawTransferLossRatio')} required>
|
|
78
|
-
<InputNumber value={offlineAccount.withdrawTransferLossRatio} max={5} min={0
|
|
78
|
+
<InputNumber value={offlineAccount.withdrawTransferLossRatio} max={5} min={0} addonAfter={"%"} step={0.01} precision={2} onChange={(value) => {
|
|
79
79
|
const withdrawTransferLossRatio = value;
|
|
80
80
|
update({ withdrawTransferLossRatio });
|
|
81
81
|
}}/>
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "order", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -2,6 +2,6 @@ import { EntityDict } from "../../../oak-app-domain";
|
|
|
2
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "order", false, {
|
|
3
3
|
accountId: string;
|
|
4
4
|
accountAvailMax: number;
|
|
5
|
-
onSetPays: (pays: Partial<EntityDict[
|
|
5
|
+
onSetPays: (pays: Partial<EntityDict['pay']['CreateSingle']['data']>[]) => void;
|
|
6
6
|
}>) => React.ReactElement;
|
|
7
7
|
export default _default;
|
|
@@ -156,6 +156,7 @@ export default OakComponent({
|
|
|
156
156
|
offlines,
|
|
157
157
|
notSameApp: data && data.applicationId !== application.id && data.entity !== 'offlineAccount',
|
|
158
158
|
priceStr: data?.price && CentToString(data.price, 2),
|
|
159
|
+
oakExecutable: this.tryExecute(),
|
|
159
160
|
};
|
|
160
161
|
},
|
|
161
162
|
features: [{
|
|
@@ -25,7 +25,7 @@ export function RenderOffline(props) {
|
|
|
25
25
|
</Tag>
|
|
26
26
|
</Form.Item>,
|
|
27
27
|
<Form.Item key="externalId" label={<span className={Styles.bold}>{t('externalId.label')}</span>}>
|
|
28
|
-
|
|
28
|
+
<Input value={externalId || ''} onChange={({ currentTarget }) => {
|
|
29
29
|
const { value } = currentTarget;
|
|
30
30
|
updateExternalId(value);
|
|
31
31
|
}} placeholder={t('externalId.help')} disabled={iState !== 'paying'}/>
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "pay", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "system", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "refund", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "withdrawTransfer", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
2
3
|
export default _default;
|
|
@@ -3,7 +3,7 @@ import { Result, Alert } from 'antd';
|
|
|
3
3
|
import ListPro from 'oak-frontend-base/es/components/listPro';
|
|
4
4
|
import { ThousandCont, ToYuan } from 'oak-domain/lib/utils/money';
|
|
5
5
|
export default function Render(props) {
|
|
6
|
-
const { transfers, oakFullpath
|
|
6
|
+
const { transfers, oakFullpath } = props.data;
|
|
7
7
|
const { t } = props.methods;
|
|
8
8
|
if (transfers?.length) {
|
|
9
9
|
return (<ListPro entity="withdrawTransfer" data={transfers} title={<Alert type="info" message={t('tips')}/>} attributes={[
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityDict } from "../../../oak-app-domain";
|
|
2
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, boolean, {
|
|
3
3
|
accountId: string;
|
|
4
|
-
withdrawAccountFilter:
|
|
4
|
+
withdrawAccountFilter: import("../../../oak-app-domain/WithdrawAccount/Schema").Filter | undefined;
|
|
5
5
|
onNewWithdrawAccount: () => void;
|
|
6
6
|
onCreateWithdraw: (id: string) => void;
|
|
7
7
|
onGoToHistory: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
import { EntityDict } from "../../../oak-app-domain";
|
|
2
3
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "withdraw", false, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
3
4
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityDict } from '../../../oak-app-domain';
|
|
2
2
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, boolean, {
|
|
3
|
-
withdraw:
|
|
3
|
+
withdraw: import("../../../oak-app-domain/Withdraw/Schema").Schema;
|
|
4
4
|
create: boolean;
|
|
5
5
|
}>) => React.ReactElement;
|
|
6
6
|
export default _default;
|
|
@@ -16,6 +16,7 @@ export default function render(props: WebComponentProps<EntityDict, 'withdrawAcc
|
|
|
16
16
|
allowCreate?: boolean;
|
|
17
17
|
selectedId?: string;
|
|
18
18
|
onCancel?: () => void;
|
|
19
|
+
oakExecutable: boolean;
|
|
19
20
|
}, {
|
|
20
21
|
setUpsertId: (id: string) => void;
|
|
21
22
|
doUpdate: () => Promise<void>;
|
|
@@ -16,6 +16,7 @@ export default function render(props: WebComponentProps<EntityDict, 'withdrawAcc
|
|
|
16
16
|
allowCreate?: boolean;
|
|
17
17
|
selectedId?: string;
|
|
18
18
|
onCancel?: () => void;
|
|
19
|
+
oakExecutable: boolean;
|
|
19
20
|
}, {
|
|
20
21
|
setUpsertId: (id: string) => void;
|
|
21
22
|
doUpdate: () => Promise<void>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="wechat-miniprogram" />
|
|
1
2
|
import { EntityDict } from '../../../oak-app-domain';
|
|
2
3
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, "withdrawTransfer", true, WechatMiniprogram.Component.DataOption>) => React.ReactElement;
|
|
3
4
|
export default _default;
|
|
@@ -11,6 +11,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
|
|
|
11
11
|
})[];
|
|
12
12
|
updateId: string;
|
|
13
13
|
sysAccountAmount: number;
|
|
14
|
+
oakExecutable: boolean;
|
|
14
15
|
}, {
|
|
15
16
|
setUpdateId: (id: string, action: string) => void;
|
|
16
17
|
}>): React.JSX.Element | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EntityDict } from "../../../oak-app-domain";
|
|
3
3
|
import { RowWithActions, WebComponentProps } from "oak-frontend-base";
|
|
4
|
+
import { OakException } from 'oak-domain/lib/types';
|
|
4
5
|
export declare function WpAccount(props: {
|
|
5
6
|
data: RowWithActions<EntityDict, 'wpAccount'>;
|
|
6
7
|
systemId: string;
|
|
@@ -12,4 +13,5 @@ export default function render(props: WebComponentProps<EntityDict, 'wpAccount',
|
|
|
12
13
|
accounts?: (RowWithActions<EntityDict, 'wpAccount'> & {})[];
|
|
13
14
|
systemId: string;
|
|
14
15
|
canCreate?: boolean;
|
|
16
|
+
oakExecutable: boolean | OakException<EntityDict>;
|
|
15
17
|
}>): React.JSX.Element;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EntityDict } from "../../../oak-app-domain";
|
|
3
3
|
import { RowWithActions, WebComponentProps } from "oak-frontend-base";
|
|
4
|
+
import { OakException } from 'oak-domain/lib/types';
|
|
4
5
|
export default function render(props: WebComponentProps<EntityDict, 'wpProduct', true, {
|
|
5
6
|
wpProducts?: (RowWithActions<EntityDict, 'wpProduct'> & {})[];
|
|
6
7
|
systemId: string;
|
|
7
8
|
canCreate?: boolean;
|
|
8
9
|
wpAccountId: string;
|
|
10
|
+
oakExecutable: boolean | OakException<EntityDict>;
|
|
9
11
|
}>): React.JSX.Element;
|