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.
Files changed (127) hide show
  1. package/es/aspects/withdraw.d.ts +40 -40
  2. package/es/components/AbstractComponents.d.ts +62 -11
  3. package/es/components/accountOper/pure/List.pc.d.ts +1 -0
  4. package/es/components/offlineAccount/config/index.js +1 -0
  5. package/es/components/offlineAccount/config/web.pc.d.ts +2 -0
  6. package/es/components/offlineAccount/config/web.pc.js +1 -1
  7. package/es/components/offlineAccount/upsert/index.d.ts +1 -0
  8. package/es/components/offlineAccount/upsert/web.pc.js +1 -1
  9. package/es/components/order/list/index.d.ts +1 -0
  10. package/es/components/order/pay/index.d.ts +1 -1
  11. package/es/components/order/pay/info.d.ts +1 -0
  12. package/es/components/pay/channelPicker2/web.d.ts +1 -0
  13. package/es/components/pay/channelPicker2/web.pc.d.ts +1 -0
  14. package/es/components/pay/detail/index.js +1 -0
  15. package/es/components/pay/detail/web.d.ts +1 -0
  16. package/es/components/pay/detail/web.pc.d.ts +1 -0
  17. package/es/components/pay/detail/web.pc.js +1 -1
  18. package/es/components/pay/list/index.d.ts +1 -0
  19. package/es/components/pay/list/index.js +1 -0
  20. package/es/components/pay/list/web.pc.d.ts +1 -0
  21. package/es/components/payConfig/system/index.d.ts +1 -0
  22. package/es/components/payConfig/system/index.js +1 -0
  23. package/es/components/payConfig/system/web.pc.d.ts +1 -0
  24. package/es/components/payConfig/system/web.pc.js +1 -1
  25. package/es/components/refund/list/index.d.ts +1 -0
  26. package/es/components/refund/list/index.js +1 -0
  27. package/es/components/refund/list/web.pc.d.ts +1 -0
  28. package/es/components/sysAccount/transferList/index.d.ts +1 -0
  29. package/es/components/sysAccount/transferList/web.pc.js +1 -1
  30. package/es/components/withdraw/create/index.d.ts +1 -1
  31. package/es/components/withdraw/detail/index.d.ts +1 -0
  32. package/es/components/withdraw/display/index.d.ts +1 -1
  33. package/es/components/withdraw/display/web.d.ts +1 -0
  34. package/es/components/withdraw/display/web.pc.d.ts +1 -0
  35. package/es/components/withdrawAccount/list/index.js +1 -0
  36. package/es/components/withdrawAccount/list/web.d.ts +1 -0
  37. package/es/components/withdrawAccount/list/web.pc.d.ts +1 -0
  38. package/es/components/withdrawTransfer/list/index.d.ts +1 -0
  39. package/es/components/withdrawTransfer/list/index.js +1 -0
  40. package/es/components/withdrawTransfer/list/web.pc.d.ts +1 -0
  41. package/es/components/wpAccount/config/index.js +1 -0
  42. package/es/components/wpAccount/config/web.pc.d.ts +2 -0
  43. package/es/components/wpProduct/config/index.js +1 -0
  44. package/es/components/wpProduct/config/web.pc.d.ts +2 -0
  45. package/es/components/wpProduct/config/web.pc.js +1 -1
  46. package/es/context/BackendRuntimeContext.d.ts +418 -80
  47. package/es/entities/Deposit.d.ts +2 -2
  48. package/es/entities/Deposit.js +6 -2
  49. package/es/entities/User.js +1 -0
  50. package/es/entities/WpProduct.d.ts +1 -0
  51. package/es/entities/WpProduct.js +1 -0
  52. package/es/oak-app-domain/Deposit/Action.d.ts +2 -2
  53. package/es/oak-app-domain/Deposit/Action.js +4 -3
  54. package/es/oak-app-domain/Deposit/Storage.js +1 -1
  55. package/es/oak-app-domain/Deposit/Style.js +1 -0
  56. package/es/oak-app-domain/Deposit/locales/zh_CN.json +4 -2
  57. package/es/oak-app-domain/Platform/Schema.d.ts +33 -3
  58. package/es/oak-app-domain/Platform/Storage.js +2 -1
  59. package/es/oak-app-domain/Platform/locales/zh_CN.json +4 -0
  60. package/es/oak-app-domain/Relation/Schema.d.ts +33 -4
  61. package/es/oak-app-domain/Relation/Storage.js +1 -1
  62. package/es/oak-app-domain/Relation.js +10 -0
  63. package/es/oak-app-domain/RelationId.d.ts +4 -0
  64. package/es/oak-app-domain/User/Schema.d.ts +5 -0
  65. package/es/oak-app-domain/User/Storage.js +3 -0
  66. package/es/oak-app-domain/User/locales/zh_CN.json +1 -0
  67. package/es/oak-app-domain/UserRelation/Schema.d.ts +33 -4
  68. package/es/oak-app-domain/UserRelation/Storage.js +1 -1
  69. package/es/oak-app-domain/WpProduct/Schema.d.ts +5 -0
  70. package/es/oak-app-domain/WpProduct/Storage.js +4 -0
  71. package/es/oak-app-domain/WpProduct/locales/zh_CN.json +1 -0
  72. package/es/oak-app-domain/_SubQuery.d.ts +4 -0
  73. package/es/routines/start.js +19 -19
  74. package/es/timers/index.js +22 -20
  75. package/es/triggers/index.d.ts +1 -0
  76. package/es/triggers/index.js +4 -1
  77. package/es/triggers/pay.d.ts +1 -0
  78. package/es/triggers/pay.js +27 -2
  79. package/es/triggers/withdraw.d.ts +1 -1
  80. package/es/utils/application.d.ts +418 -80
  81. package/es/utils/pay.d.ts +1 -0
  82. package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
  83. package/es/utils/payClazz/index.js +2 -2
  84. package/es/utils/wpProductFrontend.d.ts +2 -1
  85. package/lib/aspects/withdraw.d.ts +36 -36
  86. package/lib/context/BackendRuntimeContext.d.ts +418 -80
  87. package/lib/entities/Deposit.d.ts +2 -2
  88. package/lib/entities/Deposit.js +6 -2
  89. package/lib/entities/User.js +1 -0
  90. package/lib/entities/WpProduct.d.ts +1 -0
  91. package/lib/entities/WpProduct.js +1 -0
  92. package/lib/oak-app-domain/Deposit/Action.d.ts +2 -2
  93. package/lib/oak-app-domain/Deposit/Action.js +4 -3
  94. package/lib/oak-app-domain/Deposit/Storage.js +1 -1
  95. package/lib/oak-app-domain/Deposit/Style.js +1 -0
  96. package/lib/oak-app-domain/Deposit/locales/zh_CN.json +4 -2
  97. package/lib/oak-app-domain/Platform/Schema.d.ts +33 -3
  98. package/lib/oak-app-domain/Platform/Storage.js +2 -1
  99. package/lib/oak-app-domain/Platform/locales/zh_CN.json +4 -0
  100. package/lib/oak-app-domain/Relation/Schema.d.ts +33 -4
  101. package/lib/oak-app-domain/Relation/Storage.js +1 -1
  102. package/lib/oak-app-domain/Relation.js +10 -0
  103. package/lib/oak-app-domain/RelationId.d.ts +4 -0
  104. package/lib/oak-app-domain/User/Schema.d.ts +5 -0
  105. package/lib/oak-app-domain/User/Storage.js +3 -0
  106. package/lib/oak-app-domain/User/locales/zh_CN.json +1 -0
  107. package/lib/oak-app-domain/UserRelation/Schema.d.ts +33 -4
  108. package/lib/oak-app-domain/UserRelation/Storage.js +1 -1
  109. package/lib/oak-app-domain/WpProduct/Schema.d.ts +5 -0
  110. package/lib/oak-app-domain/WpProduct/Storage.js +4 -0
  111. package/lib/oak-app-domain/WpProduct/locales/zh_CN.json +1 -0
  112. package/lib/oak-app-domain/_SubQuery.d.ts +4 -0
  113. package/lib/routines/start.js +19 -19
  114. package/lib/timers/index.js +22 -20
  115. package/lib/triggers/index.d.ts +1 -0
  116. package/lib/triggers/index.js +5 -1
  117. package/lib/triggers/pay.d.ts +1 -0
  118. package/lib/triggers/pay.js +30 -4
  119. package/lib/utils/application.d.ts +418 -80
  120. package/lib/utils/pay.d.ts +1 -0
  121. package/lib/utils/payClazz/index.js +2 -2
  122. package/lib/utils/wpProductFrontend.d.ts +2 -1
  123. package/lib/utils/wpProductFrontend.js +3 -2
  124. package/package.json +4 -4
  125. package/src/entities/Deposit.ts +8 -4
  126. package/src/entities/User.ts +1 -0
  127. package/src/entities/WpProduct.ts +2 -0
@@ -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, "accountId" | "creatorId">> & {
6
+ }, context: BRC): Promise<(Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
7
7
  id: string;
8
8
  } & {
9
- accountId: import("oak-domain/lib/types").ForeignKey<"account">;
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: import("oak-domain/lib/types").ForeignKey<"creator">;
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<import("../oak-app-domain/Refund/Schema").UpdateOperation["action"], 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">[]> | Array<import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<import("../oak-app-domain/Refund/Schema").UpdateOperation["action"], Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">>>;
16
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperation["action"], 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">[]> | Array<import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperation["action"], Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">>>;
17
- modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | Array<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">[]> | Array<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">[]> | Array<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, "accountId" | "creatorId">> & {
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: import("oak-domain/lib/types").ForeignKey<"account">;
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?: never;
27
- creatorId: import("oak-domain/lib/types").ForeignKey<"creator">;
26
+ creator?: undefined;
27
+ creatorId: string;
28
28
  } & {
29
- refund$withdraw?: import("oak-domain/lib/types").Operation<import("../oak-app-domain/Refund/Schema").UpdateOperation["action"], 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">[]> | Array<import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<import("../oak-app-domain/Refund/Schema").UpdateOperation["action"], Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">>>;
30
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperation["action"], 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">[]> | Array<import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperation["action"], Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">>>;
31
- modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | Array<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">[]> | Array<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">[]> | Array<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, "accountId" | "creatorId">> & {
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?: never;
38
- accountId: import("oak-domain/lib/types").ForeignKey<"account">;
37
+ account?: undefined;
38
+ accountId: string;
39
39
  } & {
40
- creatorId: import("oak-domain/lib/types").ForeignKey<"creator">;
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<import("../oak-app-domain/Refund/Schema").UpdateOperation["action"], 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">[]> | Array<import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<import("../oak-app-domain/Refund/Schema").UpdateOperation["action"], Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">>>;
44
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperation["action"], 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">[]> | Array<import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperation["action"], Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">>>;
45
- modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | Array<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">[]> | Array<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">[]> | Array<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, "accountId" | "creatorId">> & {
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?: never;
52
- accountId: import("oak-domain/lib/types").ForeignKey<"account">;
51
+ account?: undefined;
52
+ accountId: string;
53
53
  } & {
54
- creator?: never;
55
- creatorId: import("oak-domain/lib/types").ForeignKey<"creator">;
54
+ creator?: undefined;
55
+ creatorId: string;
56
56
  } & {
57
- refund$withdraw?: import("oak-domain/lib/types").Operation<import("../oak-app-domain/Refund/Schema").UpdateOperation["action"], 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">[]> | Array<import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<import("../oak-app-domain/Refund/Schema").UpdateOperation["action"], Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdraw" | "withdrawId">>>;
58
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperation["action"], 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">[]> | Array<import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdraw" | "withdrawId">> | import("oak-domain/lib/types").Operation<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperation["action"], Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdraw" | "withdrawId">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdraw" | "withdrawId">>>;
59
- modiEntity$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/ModiEntity/Schema").CreateOperationData, "entity" | "entityId">[]> | Array<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">[]> | Array<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">[]> | Array<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
- import AbsFilterPanel from 'oak-frontend-base/es/components/filterPanel';
9
- import AbsList from 'oak-frontend-base/es/components/list';
10
- import AbsListPro from 'oak-frontend-base/es/components/listPro';
11
- import AbsDetail from 'oak-frontend-base/es/components/detail';
12
- import AbsUpsert from 'oak-frontend-base/es/components/upsert';
13
- declare const FilterPanel: <T extends keyof EntityDict>(...props: Parameters<typeof AbsFilterPanel<EntityDict, T>>) => React.ReactElement;
14
- declare const List: <T extends keyof EntityDict>(...props: Parameters<typeof AbsList<EntityDict, T>>) => React.ReactElement;
15
- declare const ListPro: <T extends keyof EntityDict>(...props: Parameters<typeof AbsListPro<EntityDict, T>>) => React.ReactElement;
16
- declare const Detail: <T extends keyof EntityDict>(...props: Parameters<typeof AbsDetail<EntityDict, T>>) => React.ReactElement;
17
- declare const Upsert: <T extends keyof EntityDict>(...props: Parameters<typeof AbsUpsert<EntityDict, T>>) => React.ReactElement;
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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EntityDict } from "../../../oak-app-domain";
2
3
  export default function Render(props: {
3
4
  accountOpers: EntityDict['accountOper']['OpSchema'][];
@@ -42,6 +42,7 @@ export default OakComponent({
42
42
  };
43
43
  }),
44
44
  canCreate: legalActions?.includes('create'),
45
+ oakExecutable: this.tryExecute(),
45
46
  };
46
47
  },
47
48
  actions: ['create', 'update', 'remove'],
@@ -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
- {canCreate && <Button type="primary" onClick={() => {
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.01} addonAfter={"%"} step={0.01} precision={2} onChange={(value) => {
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["pay"]["CreateSingle"]["data"]>[]) => void;
5
+ onSetPays: (pays: Partial<EntityDict['pay']['CreateSingle']['data']>[]) => void;
6
6
  }>) => React.ReactElement;
7
7
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export default function Info(props: {
2
3
  price: number;
3
4
  t: (k: string) => string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayChannelOption } from "../../../types/Pay";
2
3
  export default function Render(props: {
3
4
  data: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayChannelOption } from "../../../types/Pay";
2
3
  export default function Render(props: {
3
4
  data: {
@@ -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: [{
@@ -22,6 +22,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
22
22
  type: string;
23
23
  offlines?: ColoredOffline[];
24
24
  offline?: ColoredOffline;
25
+ oakExecutable: boolean;
25
26
  }, {
26
27
  goBack: () => void;
27
28
  startPay: () => Promise<void>;
@@ -22,6 +22,7 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
22
22
  type: string;
23
23
  offlines?: ColoredOffline[];
24
24
  offline?: ColoredOffline;
25
+ oakExecutable: boolean;
25
26
  }, {
26
27
  goBack: () => void;
27
28
  startPay: () => Promise<void>;
@@ -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
- <Input value={externalId || ''} onChange={({ currentTarget }) => {
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;
@@ -100,6 +100,7 @@ export default OakComponent({
100
100
  ...ele,
101
101
  };
102
102
  }),
103
+ oakExecutable: this.tryExecute(),
103
104
  };
104
105
  },
105
106
  getTotal: 100,
@@ -10,5 +10,6 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
10
10
  creatorMobile?: string;
11
11
  })[];
12
12
  offlines?: ColoredOffline[];
13
+ oakExecutable: boolean;
13
14
  }>): React.JSX.Element | null;
14
15
  export {};
@@ -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;
@@ -23,6 +23,7 @@ export default OakComponent({
23
23
  operation: operation && operation[0].operation,
24
24
  system: data,
25
25
  canUpdate: !!data?.['#oakLegalActions']?.includes('update'),
26
+ oakExecutable: this.tryExecute(),
26
27
  };
27
28
  },
28
29
  actions: ['update'],
@@ -11,4 +11,5 @@ export default function render(props: WebComponentProps<EntityDict, 'system', fa
11
11
  operation?: EntityDict['system']['Update'];
12
12
  serverUrl?: string;
13
13
  canUpdate?: boolean;
14
+ oakExecutable: boolean;
14
15
  }>): React.JSX.Element | null;
@@ -160,7 +160,7 @@ export default function render(props) {
160
160
  label: (<div className={Styles.systemLabel}>
161
161
  {t(`${ele}:name`)}
162
162
  </div>),
163
- key: 'ele',
163
+ key: ele,
164
164
  children: <C oakPath={`${oakFullpath}.${ele}$system`} systemId={system.id}/>
165
165
  };
166
166
  })
@@ -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;
@@ -71,6 +71,7 @@ export default OakComponent({
71
71
  };
72
72
  }),
73
73
  amIRoot: features.token.isRoot(),
74
+ oakExecutable: this.tryExecute(),
74
75
  };
75
76
  }
76
77
  });
@@ -9,4 +9,5 @@ export default function Render(props: WebComponentProps<EntityDict, 'pay', false
9
9
  payChannel: string;
10
10
  })[];
11
11
  amIRoot?: boolean;
12
+ oakExecutable: boolean;
12
13
  }>): React.JSX.Element | null;
@@ -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, oakExecutable } = props.data;
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: EntityDict["withdrawAccount"]["Selection"]["filter"];
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: EntityDict["withdraw"]["Schema"];
3
+ withdraw: import("../../../oak-app-domain/Withdraw/Schema").Schema;
4
4
  create: boolean;
5
5
  }>) => React.ReactElement;
6
6
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EntityDict } from '../../../oak-app-domain';
2
3
  export default function render(props: {
3
4
  data: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EntityDict } from '../../../oak-app-domain';
2
3
  export default function render(props: {
3
4
  data: {
@@ -49,6 +49,7 @@ export default OakComponent({
49
49
  }),
50
50
  asPicker: !!this.props.onPick,
51
51
  allowCreate: legalActions?.includes('create'),
52
+ oakExecutable: this.tryExecute(),
52
53
  };
53
54
  },
54
55
  data: {
@@ -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;
@@ -64,6 +64,7 @@ export default OakComponent({
64
64
  channel,
65
65
  };
66
66
  }),
67
+ oakExecutable: this.tryExecute(),
67
68
  };
68
69
  },
69
70
  data: {
@@ -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;
@@ -29,6 +29,7 @@ export default OakComponent({
29
29
  return {
30
30
  accounts: data,
31
31
  canCreate: legalActions?.includes('create') && !data?.find(ele => ele.enabled),
32
+ oakExecutable: this.tryExecute(),
32
33
  };
33
34
  },
34
35
  actions: ['create', 'update', 'remove'],
@@ -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;
@@ -31,6 +31,7 @@ export default OakComponent({
31
31
  return {
32
32
  wpProducts: data,
33
33
  canCreate: legalActions?.includes('create'),
34
+ oakExecutable: this.tryExecute(),
34
35
  };
35
36
  },
36
37
  actions: ['create', 'update', 'remove'],
@@ -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;