oak-pay-business 2.5.6 → 2.5.9

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 (219) hide show
  1. package/es/aspects/withdraw.d.ts +36 -36
  2. package/es/components/AbstractComponents.d.ts +11 -62
  3. package/es/components/offlineAccount/config/index.js +1 -0
  4. package/es/components/offlineAccount/config/web.pc.d.ts +2 -0
  5. package/es/components/offlineAccount/config/web.pc.js +1 -1
  6. package/es/components/pay/channelPicker2/index.js +3 -3
  7. package/es/components/pay/detail/index.js +1 -0
  8. package/es/components/pay/detail/web.d.ts +1 -0
  9. package/es/components/pay/detail/web.pc.d.ts +1 -0
  10. package/es/components/pay/detail/web.pc.js +1 -1
  11. package/es/components/pay/list/index.js +1 -0
  12. package/es/components/pay/list/web.pc.d.ts +1 -0
  13. package/es/components/payConfig/system/index.js +1 -0
  14. package/es/components/payConfig/system/web.pc.d.ts +1 -0
  15. package/es/components/refund/list/index.js +1 -0
  16. package/es/components/refund/list/web.pc.d.ts +1 -0
  17. package/es/components/sysAccount/transferList/web.pc.js +1 -1
  18. package/es/components/withdrawAccount/list/index.js +1 -0
  19. package/es/components/withdrawAccount/list/web.d.ts +1 -0
  20. package/es/components/withdrawAccount/list/web.pc.d.ts +1 -0
  21. package/es/components/withdrawTransfer/list/index.js +1 -0
  22. package/es/components/withdrawTransfer/list/web.pc.d.ts +1 -0
  23. package/es/components/wpAccount/config/index.js +1 -0
  24. package/es/components/wpAccount/config/web.pc.d.ts +2 -0
  25. package/es/components/wpProduct/config/index.js +1 -0
  26. package/es/components/wpProduct/config/web.pc.d.ts +2 -0
  27. package/es/components/wpProduct/config/web.pc.js +1 -1
  28. package/es/context/BackendRuntimeContext.d.ts +80 -418
  29. package/es/oak-app-domain/AbstractAccount/locales/zh_CN.json +17 -1
  30. package/es/oak-app-domain/Account/locales/zh_CN.json +29 -1
  31. package/es/oak-app-domain/AccountOper/locales/zh_CN.json +33 -1
  32. package/es/oak-app-domain/ActionAuth/locales/zh_CN.json +8 -1
  33. package/es/oak-app-domain/Address/locales/zh_CN.json +13 -1
  34. package/es/oak-app-domain/Application/Schema.d.ts +11 -2
  35. package/es/oak-app-domain/Application/locales/zh_CN.json +21 -1
  36. package/es/oak-app-domain/ApplicationPassport/locales/zh_CN.json +8 -1
  37. package/es/oak-app-domain/Area/locales/zh_CN.json +20 -1
  38. package/es/oak-app-domain/Article/locales/zh_CN.json +9 -1
  39. package/es/oak-app-domain/ArticleMenu/locales/zh_CN.json +12 -1
  40. package/es/oak-app-domain/Captcha/locales/zh_CN.json +33 -1
  41. package/es/oak-app-domain/ChangePasswordTemp/locales/zh_CN.json +15 -1
  42. package/es/oak-app-domain/Deposit/locales/zh_CN.json +22 -1
  43. package/es/oak-app-domain/Domain/locales/zh_CN.json +16 -1
  44. package/es/oak-app-domain/Email/locales/zh_CN.json +19 -1
  45. package/es/oak-app-domain/ExtraFile/Schema.d.ts +2 -2
  46. package/es/oak-app-domain/ExtraFile/Storage.js +1 -1
  47. package/es/oak-app-domain/ExtraFile/Style.js +1 -0
  48. package/es/oak-app-domain/ExtraFile/locales/zh_CN.json +47 -1
  49. package/es/oak-app-domain/I18n/locales/zh_CN.json +10 -1
  50. package/es/oak-app-domain/Livestream/locales/zh_CN.json +22 -1
  51. package/es/oak-app-domain/Log/locales/zh_CN.json +18 -1
  52. package/es/oak-app-domain/LoginName/locales/zh_CN.json +19 -1
  53. package/es/oak-app-domain/Message/locales/zh_CN.json +40 -1
  54. package/es/oak-app-domain/MessageSystem/locales/zh_CN.json +7 -1
  55. package/es/oak-app-domain/MessageType/locales/zh_CN.json +6 -1
  56. package/es/oak-app-domain/MessageTypeSmsTemplate/locales/zh_CN.json +7 -1
  57. package/es/oak-app-domain/MessageTypeTemplate/locales/zh_CN.json +7 -1
  58. package/es/oak-app-domain/Mobile/locales/zh_CN.json +19 -1
  59. package/es/oak-app-domain/Modi/locales/zh_CN.json +24 -1
  60. package/es/oak-app-domain/ModiEntity/locales/zh_CN.json +8 -1
  61. package/es/oak-app-domain/Notification/locales/zh_CN.json +32 -1
  62. package/es/oak-app-domain/OfflineAccount/locales/zh_CN.json +41 -1
  63. package/es/oak-app-domain/Oper/locales/zh_CN.json +25 -1
  64. package/es/oak-app-domain/OperEntity/locales/zh_CN.json +8 -1
  65. package/es/oak-app-domain/Order/locales/zh_CN.json +45 -1
  66. package/es/oak-app-domain/Parasite/locales/zh_CN.json +20 -1
  67. package/es/oak-app-domain/Passport/Schema.d.ts +1 -1
  68. package/es/oak-app-domain/Passport/Storage.js +1 -1
  69. package/es/oak-app-domain/Passport/Style.js +1 -0
  70. package/es/oak-app-domain/Passport/locales/zh_CN.json +22 -1
  71. package/es/oak-app-domain/Path/locales/zh_CN.json +10 -1
  72. package/es/oak-app-domain/Pay/locales/zh_CN.json +48 -1
  73. package/es/oak-app-domain/Platform/locales/zh_CN.json +11 -1
  74. package/es/oak-app-domain/ReadRemark/locales/zh_CN.json +7 -1
  75. package/es/oak-app-domain/Refund/locales/zh_CN.json +28 -1
  76. package/es/oak-app-domain/Relation/locales/zh_CN.json +9 -1
  77. package/es/oak-app-domain/RelationAuth/locales/zh_CN.json +8 -1
  78. package/es/oak-app-domain/RelationId.d.ts +8 -0
  79. package/es/oak-app-domain/RelationId.js +1 -0
  80. package/es/oak-app-domain/Session/locales/zh_CN.json +13 -1
  81. package/es/oak-app-domain/SessionMessage/locales/zh_CN.json +28 -1
  82. package/es/oak-app-domain/SmsTemplate/locales/zh_CN.json +19 -1
  83. package/es/oak-app-domain/Station/locales/zh_CN.json +7 -1
  84. package/es/oak-app-domain/Subscription/locales/zh_CN.json +11 -1
  85. package/es/oak-app-domain/Subway/locales/zh_CN.json +7 -1
  86. package/es/oak-app-domain/SubwayStation/locales/zh_CN.json +7 -1
  87. package/es/oak-app-domain/SysAccountMove/locales/zh_CN.json +10 -1
  88. package/es/oak-app-domain/SysAccountOper/locales/zh_CN.json +23 -1
  89. package/es/oak-app-domain/System/locales/zh_CN.json +17 -1
  90. package/es/oak-app-domain/ToDo/locales/zh_CN.json +26 -1
  91. package/es/oak-app-domain/Token/locales/zh_CN.json +26 -1
  92. package/es/oak-app-domain/User/locales/zh_CN.json +55 -1
  93. package/es/oak-app-domain/UserEntityClaim/locales/zh_CN.json +10 -1
  94. package/es/oak-app-domain/UserEntityGrant/locales/zh_CN.json +49 -1
  95. package/es/oak-app-domain/UserRelation/locales/zh_CN.json +9 -1
  96. package/es/oak-app-domain/UserSystem/locales/zh_CN.json +7 -1
  97. package/es/oak-app-domain/UserWechatPublicTag/locales/zh_CN.json +22 -1
  98. package/es/oak-app-domain/WechatLogin/locales/zh_CN.json +31 -1
  99. package/es/oak-app-domain/WechatMenu/locales/zh_CN.json +22 -1
  100. package/es/oak-app-domain/WechatMpJump/locales/zh_CN.json +12 -1
  101. package/es/oak-app-domain/WechatPay/locales/zh_CN.json +8 -1
  102. package/es/oak-app-domain/WechatPublicAutoReply/locales/zh_CN.json +23 -1
  103. package/es/oak-app-domain/WechatPublicTag/locales/zh_CN.json +23 -1
  104. package/es/oak-app-domain/WechatQrCode/locales/zh_CN.json +28 -1
  105. package/es/oak-app-domain/WechatTemplate/locales/zh_CN.json +22 -1
  106. package/es/oak-app-domain/WechatUser/locales/zh_CN.json +30 -1
  107. package/es/oak-app-domain/Withdraw/locales/zh_CN.json +29 -1
  108. package/es/oak-app-domain/WithdrawAccount/locales/zh_CN.json +19 -1
  109. package/es/oak-app-domain/WithdrawChannel/locales/zh_CN.json +13 -1
  110. package/es/oak-app-domain/WithdrawTransfer/locales/zh_CN.json +27 -1
  111. package/es/oak-app-domain/WpAccount/locales/zh_CN.json +30 -1
  112. package/es/oak-app-domain/WpProduct/locales/zh_CN.json +20 -1
  113. package/es/triggers/withdraw.d.ts +1 -1
  114. package/es/utils/application.d.ts +80 -418
  115. package/es/utils/pay.d.ts +0 -1
  116. package/lib/aspects/withdraw.d.ts +40 -40
  117. package/lib/aspects/withdraw.js +1 -2
  118. package/lib/checkers/abstractChecker.js +2 -2
  119. package/lib/context/BackendRuntimeContext.d.ts +80 -418
  120. package/lib/features/index.js +2 -3
  121. package/lib/hooks/useFeatures.js +1 -1
  122. package/lib/oak-app-domain/AbstractAccount/locales/zh_CN.json +17 -1
  123. package/lib/oak-app-domain/Account/locales/zh_CN.json +29 -1
  124. package/lib/oak-app-domain/AccountOper/locales/zh_CN.json +33 -1
  125. package/lib/oak-app-domain/ActionAuth/locales/zh_CN.json +8 -1
  126. package/lib/oak-app-domain/Address/locales/zh_CN.json +13 -1
  127. package/lib/oak-app-domain/Application/Schema.d.ts +11 -2
  128. package/lib/oak-app-domain/Application/locales/zh_CN.json +21 -1
  129. package/lib/oak-app-domain/ApplicationPassport/locales/zh_CN.json +8 -1
  130. package/lib/oak-app-domain/Area/locales/zh_CN.json +20 -1
  131. package/lib/oak-app-domain/Article/locales/zh_CN.json +9 -1
  132. package/lib/oak-app-domain/ArticleMenu/locales/zh_CN.json +12 -1
  133. package/lib/oak-app-domain/Captcha/locales/zh_CN.json +33 -1
  134. package/lib/oak-app-domain/ChangePasswordTemp/locales/zh_CN.json +15 -1
  135. package/lib/oak-app-domain/Deposit/locales/zh_CN.json +22 -1
  136. package/lib/oak-app-domain/Domain/locales/zh_CN.json +16 -1
  137. package/lib/oak-app-domain/Email/locales/zh_CN.json +19 -1
  138. package/lib/oak-app-domain/ExtraFile/Schema.d.ts +2 -2
  139. package/lib/oak-app-domain/ExtraFile/Storage.js +1 -1
  140. package/lib/oak-app-domain/ExtraFile/Style.js +1 -0
  141. package/lib/oak-app-domain/ExtraFile/locales/zh_CN.json +47 -1
  142. package/lib/oak-app-domain/I18n/locales/zh_CN.json +10 -1
  143. package/lib/oak-app-domain/Livestream/locales/zh_CN.json +22 -1
  144. package/lib/oak-app-domain/Log/locales/zh_CN.json +18 -1
  145. package/lib/oak-app-domain/LoginName/locales/zh_CN.json +19 -1
  146. package/lib/oak-app-domain/Message/locales/zh_CN.json +40 -1
  147. package/lib/oak-app-domain/MessageSystem/locales/zh_CN.json +7 -1
  148. package/lib/oak-app-domain/MessageType/locales/zh_CN.json +6 -1
  149. package/lib/oak-app-domain/MessageTypeSmsTemplate/locales/zh_CN.json +7 -1
  150. package/lib/oak-app-domain/MessageTypeTemplate/locales/zh_CN.json +7 -1
  151. package/lib/oak-app-domain/Mobile/locales/zh_CN.json +19 -1
  152. package/lib/oak-app-domain/Modi/locales/zh_CN.json +24 -1
  153. package/lib/oak-app-domain/ModiEntity/locales/zh_CN.json +8 -1
  154. package/lib/oak-app-domain/Notification/locales/zh_CN.json +32 -1
  155. package/lib/oak-app-domain/OfflineAccount/locales/zh_CN.json +41 -1
  156. package/lib/oak-app-domain/Oper/locales/zh_CN.json +25 -1
  157. package/lib/oak-app-domain/OperEntity/locales/zh_CN.json +8 -1
  158. package/lib/oak-app-domain/Order/locales/zh_CN.json +45 -1
  159. package/lib/oak-app-domain/Parasite/locales/zh_CN.json +20 -1
  160. package/lib/oak-app-domain/Passport/Schema.d.ts +1 -1
  161. package/lib/oak-app-domain/Passport/Storage.js +1 -1
  162. package/lib/oak-app-domain/Passport/Style.js +1 -0
  163. package/lib/oak-app-domain/Passport/locales/zh_CN.json +22 -1
  164. package/lib/oak-app-domain/Path/locales/zh_CN.json +10 -1
  165. package/lib/oak-app-domain/Pay/locales/zh_CN.json +48 -1
  166. package/lib/oak-app-domain/Platform/locales/zh_CN.json +11 -1
  167. package/lib/oak-app-domain/ReadRemark/locales/zh_CN.json +7 -1
  168. package/lib/oak-app-domain/Refund/locales/zh_CN.json +28 -1
  169. package/lib/oak-app-domain/Relation/locales/zh_CN.json +9 -1
  170. package/lib/oak-app-domain/RelationAuth/locales/zh_CN.json +8 -1
  171. package/lib/oak-app-domain/RelationId.d.ts +8 -0
  172. package/lib/oak-app-domain/RelationId.js +2 -0
  173. package/lib/oak-app-domain/Session/locales/zh_CN.json +13 -1
  174. package/lib/oak-app-domain/SessionMessage/locales/zh_CN.json +28 -1
  175. package/lib/oak-app-domain/SmsTemplate/locales/zh_CN.json +19 -1
  176. package/lib/oak-app-domain/Station/locales/zh_CN.json +7 -1
  177. package/lib/oak-app-domain/Subscription/locales/zh_CN.json +11 -1
  178. package/lib/oak-app-domain/Subway/locales/zh_CN.json +7 -1
  179. package/lib/oak-app-domain/SubwayStation/locales/zh_CN.json +7 -1
  180. package/lib/oak-app-domain/SysAccountMove/locales/zh_CN.json +10 -1
  181. package/lib/oak-app-domain/SysAccountOper/locales/zh_CN.json +23 -1
  182. package/lib/oak-app-domain/System/locales/zh_CN.json +17 -1
  183. package/lib/oak-app-domain/ToDo/locales/zh_CN.json +26 -1
  184. package/lib/oak-app-domain/Token/locales/zh_CN.json +26 -1
  185. package/lib/oak-app-domain/User/locales/zh_CN.json +55 -1
  186. package/lib/oak-app-domain/UserEntityClaim/locales/zh_CN.json +10 -1
  187. package/lib/oak-app-domain/UserEntityGrant/locales/zh_CN.json +49 -1
  188. package/lib/oak-app-domain/UserRelation/locales/zh_CN.json +9 -1
  189. package/lib/oak-app-domain/UserSystem/locales/zh_CN.json +7 -1
  190. package/lib/oak-app-domain/UserWechatPublicTag/locales/zh_CN.json +22 -1
  191. package/lib/oak-app-domain/WechatLogin/locales/zh_CN.json +31 -1
  192. package/lib/oak-app-domain/WechatMenu/locales/zh_CN.json +22 -1
  193. package/lib/oak-app-domain/WechatMpJump/locales/zh_CN.json +12 -1
  194. package/lib/oak-app-domain/WechatPay/locales/zh_CN.json +8 -1
  195. package/lib/oak-app-domain/WechatPublicAutoReply/locales/zh_CN.json +23 -1
  196. package/lib/oak-app-domain/WechatPublicTag/locales/zh_CN.json +23 -1
  197. package/lib/oak-app-domain/WechatQrCode/locales/zh_CN.json +28 -1
  198. package/lib/oak-app-domain/WechatTemplate/locales/zh_CN.json +22 -1
  199. package/lib/oak-app-domain/WechatUser/locales/zh_CN.json +30 -1
  200. package/lib/oak-app-domain/Withdraw/locales/zh_CN.json +29 -1
  201. package/lib/oak-app-domain/WithdrawAccount/locales/zh_CN.json +19 -1
  202. package/lib/oak-app-domain/WithdrawChannel/locales/zh_CN.json +13 -1
  203. package/lib/oak-app-domain/WithdrawTransfer/locales/zh_CN.json +27 -1
  204. package/lib/oak-app-domain/WpAccount/locales/zh_CN.json +30 -1
  205. package/lib/oak-app-domain/WpProduct/locales/zh_CN.json +20 -1
  206. package/lib/registry.js +2 -2
  207. package/lib/triggers/withdraw.js +1 -2
  208. package/lib/types/DependentExceptions.js +1 -1
  209. package/lib/types/Exception.js +2 -2
  210. package/lib/utils/application.d.ts +80 -418
  211. package/lib/utils/application.js +2 -2
  212. package/lib/utils/pay.d.ts +0 -1
  213. package/lib/utils/pay.js +4 -4
  214. package/lib/utils/payClazz/WechatPay/WechatPay.debug.js +1 -2
  215. package/lib/utils/payClazz/WechatPay/index.d.ts +1 -1
  216. package/lib/utils/payClazz/index.js +3 -4
  217. package/lib/utils/wpProduct.js +1 -2
  218. package/lib/utils/wpProductFrontend.js +2 -3
  219. package/package.json +4 -4
@@ -6,57 +6,57 @@ export declare function getWithdrawCreateData(params: {
6
6
  }, context: BRC): Promise<(Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "accountId" | "creatorId">> & {
7
7
  id: string;
8
8
  } & {
9
- accountId: string;
10
- account?: import("../oak-app-domain/Account/Schema").UpdateOperation | undefined;
9
+ accountId: import("oak-domain/lib/types").ForeignKey<"account">;
10
+ account?: import("../oak-app-domain/Account/Schema").UpdateOperation;
11
11
  } & {
12
- creatorId: string;
13
- creator?: import("../oak-app-domain/User/Schema").UpdateOperation | undefined;
12
+ creatorId: import("oak-domain/lib/types").ForeignKey<"creator">;
13
+ creator?: import("../oak-app-domain/User/Schema").UpdateOperation;
14
14
  } & {
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;
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
20
  }) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "accountId" | "creatorId">> & {
21
21
  id: string;
22
22
  } & {
23
- accountId: string;
24
- account?: import("../oak-app-domain/Account/Schema").UpdateOperation | undefined;
23
+ accountId: import("oak-domain/lib/types").ForeignKey<"account">;
24
+ account?: import("../oak-app-domain/Account/Schema").UpdateOperation;
25
25
  } & {
26
- creator?: undefined;
27
- creatorId: string;
26
+ creator?: never;
27
+ creatorId: import("oak-domain/lib/types").ForeignKey<"creator">;
28
28
  } & {
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;
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
34
  }) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "accountId" | "creatorId">> & {
35
35
  id: string;
36
36
  } & {
37
- account?: undefined;
38
- accountId: string;
37
+ account?: never;
38
+ accountId: import("oak-domain/lib/types").ForeignKey<"account">;
39
39
  } & {
40
- creatorId: string;
41
- creator?: import("../oak-app-domain/User/Schema").UpdateOperation | undefined;
40
+ creatorId: import("oak-domain/lib/types").ForeignKey<"creator">;
41
+ creator?: import("../oak-app-domain/User/Schema").UpdateOperation;
42
42
  } & {
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;
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
48
  }) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "accountId" | "creatorId">> & {
49
49
  id: string;
50
50
  } & {
51
- account?: undefined;
52
- accountId: string;
51
+ account?: never;
52
+ accountId: import("oak-domain/lib/types").ForeignKey<"account">;
53
53
  } & {
54
- creator?: undefined;
55
- creatorId: string;
54
+ creator?: never;
55
+ creatorId: import("oak-domain/lib/types").ForeignKey<"creator">;
56
56
  } & {
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;
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">>>;
62
62
  })>;
@@ -4,66 +4,15 @@
4
4
  */
5
5
  import React from 'react';
6
6
  import { EntityDict } from '../oak-app-domain';
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?: "large" | "middle" | "small" | 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?: "large" | "middle" | "small" | 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;
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;
69
18
  export { FilterPanel, List, ListPro, Detail, Upsert, ReactComponentProps, ColumnProps, RowWithActions, OakExtraActionProps, OakAbsAttrDef, onActionFnDef, };
@@ -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
  }}>
@@ -6,14 +6,14 @@ export default OakComponent({
6
6
  },
7
7
  formData() {
8
8
  const { payChannels, payChannel } = this.props;
9
- const channels = payChannels.map(ele => ({
9
+ const channels = payChannels.map((ele) => ({
10
10
  ...ele,
11
11
  label: ele.label ? this.t(ele.label) : this.t(`payChannel::${ele.entity}`),
12
12
  value: ele.entityId,
13
13
  }));
14
14
  return {
15
15
  channels,
16
- channel: channels.find(ele => ele.entityId === payChannel?.entityId)?.entityId,
16
+ channel: channels.find((ele) => ele.entityId === payChannel?.entityId)?.entityId,
17
17
  };
18
18
  },
19
19
  listeners: {
@@ -27,7 +27,7 @@ export default OakComponent({
27
27
  methods: {
28
28
  onPickChannel(id) {
29
29
  const { onPick, payChannels } = this.props;
30
- const channel = payChannels.find(ele => ele.entityId === id);
30
+ const channel = payChannels.find((ele) => ele.entityId === id);
31
31
  onPick(channel);
32
32
  },
33
33
  onPickChannelMp(touch) {
@@ -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'}/>
@@ -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 {};
@@ -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;
@@ -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;
@@ -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={[
@@ -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>;
@@ -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;
@@ -82,7 +82,7 @@ export default function render(props) {
82
82
  }
83
83
  ]);
84
84
  }}/>
85
- </List.Item>)}/>
85
+ </List.Item>)}/>
86
86
  </div>);
87
87
  }
88
88
  return (<div className={Styles.container2}>