oak-pay-business 2.2.1 → 2.2.3

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 (169) hide show
  1. package/es/aspects/AspectDict.d.ts +3 -3
  2. package/es/aspects/index.d.ts +2 -1
  3. package/es/checkers/accountOper.js +4 -3
  4. package/es/checkers/offlineAccount.js +4 -1
  5. package/es/checkers/order.js +39 -0
  6. package/es/checkers/refund.js +1 -0
  7. package/es/components/AbstractComponents.d.ts +15 -10
  8. package/es/components/account/detail/web.pc.module.less +68 -68
  9. package/es/components/offlineAccount/upsert/web.pc.js +1 -1
  10. package/es/components/order/pay/index.js +1 -1
  11. package/es/components/order/pay/info.js +6 -6
  12. package/es/components/order/pay/info.module.less +24 -24
  13. package/es/components/order/pay/web.mobile.module.less +35 -35
  14. package/es/components/order/pay/web.pc.module.less +35 -35
  15. package/es/components/payConfig/upsert/offline/web.pc.module.less +4 -4
  16. package/es/components/payConfig/upsert/web.pc.module.less +10 -10
  17. package/es/components/sysAccount/survey/locales/zh-CN.json +3 -1
  18. package/es/components/sysAccount/survey/web.pc.js +69 -32
  19. package/es/components/sysAccount/survey/web.pc.module.less +3 -2
  20. package/es/components/sysAccount/transferList/index.d.ts +3 -0
  21. package/es/components/sysAccount/transferList/index.js +52 -0
  22. package/es/components/sysAccount/transferList/index.json +1 -0
  23. package/es/components/sysAccount/transferList/locales/zh-CN.json +6 -0
  24. package/es/components/sysAccount/transferList/web.pc.d.ts +12 -0
  25. package/es/components/sysAccount/transferList/web.pc.js +45 -0
  26. package/es/components/sysAccountMove/create/index.d.ts +7 -0
  27. package/es/components/sysAccountMove/create/index.js +145 -0
  28. package/es/components/sysAccountMove/create/index.json +1 -0
  29. package/es/components/sysAccountMove/create/locales/zh-CN.json +6 -0
  30. package/es/components/sysAccountMove/create/web.pc.d.ts +26 -0
  31. package/es/components/sysAccountMove/create/web.pc.js +68 -0
  32. package/es/components/sysAccountOper/list/index.d.ts +5 -0
  33. package/es/components/sysAccountOper/list/index.js +127 -0
  34. package/es/components/sysAccountOper/list/index.json +1 -0
  35. package/es/components/sysAccountOper/list/locales/zh-CN.json +5 -0
  36. package/es/components/sysAccountOper/list/web.module.less +42 -0
  37. package/es/components/sysAccountOper/list/web.pc.d.ts +25 -0
  38. package/es/components/sysAccountOper/list/web.pc.js +36 -0
  39. package/es/components/withdrawAccount/list/index.less +8 -0
  40. package/es/components/withdrawAccount/list/index.xml +6 -1
  41. package/es/components/withdrawTransfer/list/locales/zh-CN.json +1 -1
  42. package/es/components/wpAccount/upsert/web.pc.js +1 -1
  43. package/es/configuration/attrUpdateMatrix.js +2 -2
  44. package/es/data/actionAuth.js +7 -2
  45. package/es/data/i18n.js +53 -3
  46. package/es/data/path.js +2 -2
  47. package/es/entities/AccountOper.d.ts +1 -1
  48. package/es/entities/AccountOper.js +3 -1
  49. package/es/entities/OfflineAccount.d.ts +1 -1
  50. package/es/entities/OfflineAccount.js +8 -2
  51. package/es/entities/Order.d.ts +2 -1
  52. package/es/entities/Order.js +1 -0
  53. package/es/entities/SysAccountMove.d.ts +13 -0
  54. package/es/entities/SysAccountMove.js +18 -0
  55. package/es/entities/SysAccountOper.d.ts +4 -1
  56. package/es/entities/SysAccountOper.js +1 -0
  57. package/es/entities/WpAccount.d.ts +1 -1
  58. package/es/entities/WpAccount.js +8 -2
  59. package/es/locales/error/zh-CN.json +9 -0
  60. package/es/locales/offlineAccount/zh-CN.json +2 -1
  61. package/es/oak-app-domain/AccountOper/Schema.d.ts +1 -1
  62. package/es/oak-app-domain/AccountOper/Storage.js +1 -1
  63. package/es/oak-app-domain/AccountOper/Style.js +1 -0
  64. package/es/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
  65. package/es/oak-app-domain/EntityDict.d.ts +2 -0
  66. package/es/oak-app-domain/OfflineAccount/Action.d.ts +1 -1
  67. package/es/oak-app-domain/OfflineAccount/Action.js +1 -1
  68. package/es/oak-app-domain/OfflineAccount/Style.js +4 -1
  69. package/es/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -1
  70. package/es/oak-app-domain/Order/Schema.d.ts +8 -2
  71. package/es/oak-app-domain/Order/Storage.js +3 -1
  72. package/es/oak-app-domain/Order/locales/zh_CN.json +1 -1
  73. package/es/oak-app-domain/Path/Schema.d.ts +6 -0
  74. package/es/oak-app-domain/Path/Storage.js +6 -0
  75. package/es/oak-app-domain/Path/locales/zh_CN.json +1 -1
  76. package/es/oak-app-domain/Storage.js +2 -0
  77. package/es/oak-app-domain/SysAccountMove/Schema.d.ts +185 -0
  78. package/es/oak-app-domain/SysAccountMove/Schema.js +1 -0
  79. package/es/oak-app-domain/SysAccountMove/Storage.d.ts +3 -0
  80. package/es/oak-app-domain/SysAccountMove/Storage.js +31 -0
  81. package/es/oak-app-domain/SysAccountMove/locales/zh_CN.json +1 -0
  82. package/es/oak-app-domain/SysAccountOper/Schema.d.ts +34 -5
  83. package/es/oak-app-domain/SysAccountOper/Storage.js +4 -0
  84. package/es/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -1
  85. package/es/oak-app-domain/System/Schema.d.ts +12 -0
  86. package/es/oak-app-domain/User/Schema.d.ts +12 -0
  87. package/es/oak-app-domain/WpAccount/Action.d.ts +1 -1
  88. package/es/oak-app-domain/WpAccount/Action.js +1 -1
  89. package/es/oak-app-domain/WpAccount/Style.js +4 -1
  90. package/es/oak-app-domain/WpAccount/locales/zh_CN.json +1 -1
  91. package/es/oak-app-domain/_SubQuery.d.ts +12 -0
  92. package/es/triggers/pay.js +149 -46
  93. package/es/triggers/refund.js +3 -0
  94. package/es/triggers/withdraw.d.ts +1 -1
  95. package/es/types/RuntimeCxt.d.ts +1 -1
  96. package/es/types/sysAccountOper.d.ts +1 -0
  97. package/es/types/sysAccountOper.js +1 -0
  98. package/es/utils/payClazz/Account.js +3 -2
  99. package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
  100. package/es/utils/wpProductFrontend.js +1 -1
  101. package/lib/aspects/AspectDict.d.ts +3 -3
  102. package/lib/aspects/index.d.ts +2 -1
  103. package/lib/aspects/withdraw.d.ts +8 -8
  104. package/lib/checkers/accountOper.js +4 -3
  105. package/lib/checkers/offlineAccount.js +4 -1
  106. package/lib/checkers/order.js +39 -0
  107. package/lib/checkers/refund.js +1 -0
  108. package/lib/configuration/attrUpdateMatrix.js +2 -2
  109. package/lib/data/actionAuth.js +7 -2
  110. package/lib/data/i18n.js +53 -3
  111. package/lib/data/path.js +2 -2
  112. package/lib/entities/AccountOper.d.ts +1 -1
  113. package/lib/entities/AccountOper.js +3 -1
  114. package/lib/entities/OfflineAccount.d.ts +1 -1
  115. package/lib/entities/OfflineAccount.js +8 -2
  116. package/lib/entities/Order.d.ts +2 -1
  117. package/lib/entities/Order.js +1 -0
  118. package/lib/entities/SysAccountMove.d.ts +13 -0
  119. package/lib/entities/SysAccountMove.js +21 -0
  120. package/lib/entities/SysAccountOper.d.ts +4 -1
  121. package/lib/entities/SysAccountOper.js +1 -0
  122. package/lib/entities/WpAccount.d.ts +1 -1
  123. package/lib/entities/WpAccount.js +8 -2
  124. package/lib/locales/error/zh-CN.json +9 -0
  125. package/lib/locales/offlineAccount/zh-CN.json +2 -1
  126. package/lib/oak-app-domain/AccountOper/Schema.d.ts +1 -1
  127. package/lib/oak-app-domain/AccountOper/Storage.js +1 -1
  128. package/lib/oak-app-domain/AccountOper/Style.js +1 -0
  129. package/lib/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
  130. package/lib/oak-app-domain/EntityDict.d.ts +2 -0
  131. package/lib/oak-app-domain/OfflineAccount/Action.d.ts +1 -1
  132. package/lib/oak-app-domain/OfflineAccount/Action.js +1 -1
  133. package/lib/oak-app-domain/OfflineAccount/Style.js +4 -1
  134. package/lib/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -1
  135. package/lib/oak-app-domain/Order/Schema.d.ts +8 -2
  136. package/lib/oak-app-domain/Order/Storage.js +3 -1
  137. package/lib/oak-app-domain/Order/locales/zh_CN.json +1 -1
  138. package/lib/oak-app-domain/Path/Schema.d.ts +6 -0
  139. package/lib/oak-app-domain/Storage.js +18 -16
  140. package/lib/oak-app-domain/SysAccountMove/Schema.d.ts +185 -0
  141. package/lib/oak-app-domain/SysAccountMove/Schema.js +2 -0
  142. package/lib/oak-app-domain/SysAccountMove/Storage.d.ts +3 -0
  143. package/lib/oak-app-domain/SysAccountMove/Storage.js +34 -0
  144. package/lib/oak-app-domain/SysAccountMove/locales/zh_CN.json +1 -0
  145. package/lib/oak-app-domain/SysAccountOper/Schema.d.ts +34 -5
  146. package/lib/oak-app-domain/SysAccountOper/Storage.js +4 -0
  147. package/lib/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -1
  148. package/lib/oak-app-domain/System/Schema.d.ts +12 -0
  149. package/lib/oak-app-domain/System/Storage.js +1 -2
  150. package/lib/oak-app-domain/User/Schema.d.ts +12 -0
  151. package/lib/oak-app-domain/WpAccount/Action.d.ts +1 -1
  152. package/lib/oak-app-domain/WpAccount/Action.js +1 -1
  153. package/lib/oak-app-domain/WpAccount/Style.js +4 -1
  154. package/lib/oak-app-domain/WpAccount/locales/zh_CN.json +1 -1
  155. package/lib/oak-app-domain/_SubQuery.d.ts +12 -0
  156. package/lib/triggers/pay.js +149 -46
  157. package/lib/triggers/refund.js +3 -0
  158. package/lib/types/RuntimeCxt.d.ts +1 -1
  159. package/lib/types/sysAccountOper.d.ts +1 -0
  160. package/lib/types/sysAccountOper.js +2 -0
  161. package/lib/utils/payClazz/Account.js +3 -2
  162. package/lib/utils/wpProductFrontend.js +1 -1
  163. package/package.json +171 -200
  164. package/src/entities/AccountOper.ts +4 -2
  165. package/src/entities/OfflineAccount.ts +12 -5
  166. package/src/entities/Order.ts +3 -1
  167. package/src/entities/SysAccountMove.ts +39 -0
  168. package/src/entities/SysAccountOper.ts +5 -1
  169. package/src/entities/WpAccount.ts +11 -4
@@ -14,8 +14,11 @@ exports.style = {
14
14
  icon: {
15
15
  pay: '',
16
16
  refund: '',
17
+ withdrawTransfer: '',
18
+ compensate: '',
19
+ moveIn: '',
20
+ moveOut: '',
17
21
  deposit: '',
18
- withdraw: '',
19
22
  tax: '',
20
23
  }
21
24
  };
@@ -1 +1 @@
1
- { "name": "线下账户", "attr": { "type": "类型", "channel": "通道", "name": "用户/帐号", "qrCode": "收款二维码", "taxLossRatio": "商户号手续费(百分比)", "refundCompensateRatio": "退款补偿百分比", "refundGapDays": "(支付后)允许退款的天数", "allowWithdrawTransfer": "允许提现转账", "withdrawTransferLossRatio": "提现转账费率(百分数)", "allowDeposit": "允许主动充值", "allowPay": "允许主动支付", "system": "所属系统", "price": "余额", "pays": "支付", "opers": "操作记录", "channels": "提现通道", "enabled": "是否启用" }, "v": { "type": { "bank": "银行", "alipay": "支付宝", "wechat": "微信", "shouqianba": "收钱吧", "others": "其它" } }, "action": { "pay": "支付", "refund": "退款", "deposit": "充值", "withdraw": "提现", "tax": "渠道费" } }
1
+ { "name": "线下账户", "attr": { "type": "类型", "channel": "通道", "name": "用户/帐号", "qrCode": "收款二维码", "taxLossRatio": "商户号手续费(百分比)", "refundCompensateRatio": "退款补偿百分比", "refundGapDays": "(支付后)允许退款的天数", "allowWithdrawTransfer": "允许提现转账", "withdrawTransferLossRatio": "提现转账费率(百分数)", "allowDeposit": "允许主动充值", "allowPay": "允许主动支付", "system": "所属系统", "price": "余额", "pays": "支付", "opers": "操作记录", "channels": "提现通道", "enabled": "是否启用" }, "v": { "type": { "bank": "银行", "alipay": "支付宝", "wechat": "微信", "shouqianba": "收钱吧", "others": "其它" } }, "action": { "pay": "支付", "refund": "退款", "withdrawTransfer": "提现转账", "compensate": "补偿", "moveIn": "转入", "moveOut": "转出", "deposit": "充值", "tax": "渠道费" } }
@@ -14,11 +14,12 @@ export type OpSchema = EntityShape & {
14
14
  refunded: Price;
15
15
  title: String<32>;
16
16
  desc: Text;
17
- timeoutAt: Datetime;
17
+ timeoutAt?: Datetime | null;
18
18
  creatorId: ForeignKey<"user">;
19
19
  entity: String<32>;
20
20
  entityId: String<64>;
21
21
  settled: Boolean;
22
+ allowPartialPay?: Boolean | null;
22
23
  systemId: ForeignKey<"system">;
23
24
  iState?: IState | null;
24
25
  };
@@ -29,11 +30,12 @@ export type Schema = EntityShape & {
29
30
  refunded: Price;
30
31
  title: String<32>;
31
32
  desc: Text;
32
- timeoutAt: Datetime;
33
+ timeoutAt?: Datetime | null;
33
34
  creatorId: ForeignKey<"user">;
34
35
  entity: String<32>;
35
36
  entityId: String<64>;
36
37
  settled: Boolean;
38
+ allowPartialPay?: Boolean | null;
37
39
  systemId: ForeignKey<"system">;
38
40
  iState?: IState | null;
39
41
  creator: User.Schema;
@@ -61,6 +63,7 @@ type AttrFilter = {
61
63
  entity: Q_StringValue;
62
64
  entityId: Q_StringValue;
63
65
  settled: Q_BooleanValue;
66
+ allowPartialPay: Q_BooleanValue;
64
67
  systemId: Q_StringValue;
65
68
  system: System.Filter;
66
69
  iState: Q_EnumValue<IState>;
@@ -86,6 +89,7 @@ export type Projection = {
86
89
  entity?: number;
87
90
  entityId?: number;
88
91
  settled?: number;
92
+ allowPartialPay?: number;
89
93
  systemId?: number;
90
94
  system?: System.Projection;
91
95
  iState?: number;
@@ -141,6 +145,8 @@ export type SortAttr = {
141
145
  entityId: number;
142
146
  } | {
143
147
  settled: number;
148
+ } | {
149
+ allowPartialPay: number;
144
150
  } | {
145
151
  systemId: number;
146
152
  } | {
@@ -28,7 +28,6 @@ exports.desc = {
28
28
  type: "text"
29
29
  },
30
30
  timeoutAt: {
31
- notNull: true,
32
31
  type: "datetime"
33
32
  },
34
33
  creatorId: {
@@ -54,6 +53,9 @@ exports.desc = {
54
53
  notNull: true,
55
54
  type: "boolean"
56
55
  },
56
+ allowPartialPay: {
57
+ type: "boolean"
58
+ },
57
59
  systemId: {
58
60
  notNull: true,
59
61
  type: "ref",
@@ -1 +1 @@
1
- { "name": "订单", "attr": { "price": "订单金额", "paid": "已支付金额", "refunded": "已退款金额", "iState": "订单状态", "title": "订单标题", "desc": "订单描述", "timeoutAt": "过期时间", "creator": "创建者", "entity": "关联对象", "entityId": "关联对象Id", "settled": "是否结算", "opers": "相关帐户操作", "system": "所属系统" }, "action": { "startPaying": "开始支付", "payAll": "全部支付", "payPartially": "部分支付", "payNone": "支付失败", "timeout": "过期", "cancel": "放弃", "startRefunding": "开始退款", "refundAll": "完全退款", "refundNone": "退款失败", "refundPartially": "部分退款", "settle": "结算" }, "v": { "iState": { "paid": "已付款", "partiallyPaid": "部分支付", "paying": "支付中", "unpaid": "待付款", "timeout": "已超时", "cancelled": "已取消", "refunded": "已退款", "partiallyRefunded": "已部分退款", "refunding": "退款中" } } }
1
+ { "name": "订单", "attr": { "price": "订单金额", "paid": "已支付金额", "refunded": "已退款金额", "iState": "订单状态", "title": "订单标题", "desc": "订单描述", "timeoutAt": "过期时间", "allowPartialPay": "允许部分支付", "creator": "创建者", "entity": "关联对象", "entityId": "关联对象Id", "settled": "是否结算", "opers": "相关帐户操作", "system": "所属系统" }, "action": { "startPaying": "开始支付", "payAll": "全部支付", "payPartially": "部分支付", "payNone": "支付失败", "timeout": "过期", "cancel": "放弃", "startRefunding": "开始退款", "refundAll": "完全退款", "refundNone": "退款失败", "refundPartially": "部分退款", "settle": "结算" }, "v": { "iState": { "paid": "已付款", "partiallyPaid": "部分支付", "paying": "支付中", "unpaid": "待付款", "timeout": "已超时", "cancelled": "已取消", "refunded": "已退款", "partiallyRefunded": "已部分退款", "refunding": "退款中" } } }
@@ -10,6 +10,7 @@ export type OpSchema = EntityShape & {
10
10
  value: String<256>;
11
11
  recursive: Boolean;
12
12
  sourceEntity: String<32>;
13
+ desc?: String<256> | null;
13
14
  };
14
15
  export type OpAttr = keyof OpSchema;
15
16
  export type Schema = EntityShape & {
@@ -17,6 +18,7 @@ export type Schema = EntityShape & {
17
18
  value: String<256>;
18
19
  recursive: Boolean;
19
20
  sourceEntity: String<32>;
21
+ desc?: String<256> | null;
20
22
  actionAuth$path?: Array<ActionAuth.Schema>;
21
23
  actionAuth$path$$aggr?: AggregationResult<ActionAuth.Schema>;
22
24
  relationAuth$path?: Array<RelationAuth.Schema>;
@@ -33,6 +35,7 @@ type AttrFilter = {
33
35
  value: Q_StringValue;
34
36
  recursive: Q_BooleanValue;
35
37
  sourceEntity: Q_StringValue;
38
+ desc: Q_StringValue;
36
39
  actionAuth$path: ActionAuth.Filter & SubQueryPredicateMetadata;
37
40
  relationAuth$path: RelationAuth.Filter & SubQueryPredicateMetadata;
38
41
  };
@@ -48,6 +51,7 @@ export type Projection = {
48
51
  value?: number;
49
52
  recursive?: number;
50
53
  sourceEntity?: number;
54
+ desc?: number;
51
55
  actionAuth$path?: ActionAuth.Selection & {
52
56
  $entity: "actionAuth";
53
57
  };
@@ -80,6 +84,8 @@ export type SortAttr = {
80
84
  recursive: number;
81
85
  } | {
82
86
  sourceEntity: number;
87
+ } | {
88
+ desc: number;
83
89
  } | {
84
90
  [k: string]: any;
85
91
  } | OneOf<ExprOp<OpAttr | string>>;
@@ -63,14 +63,15 @@ const Storage_59 = require("./OfflineAccount/Storage");
63
63
  const Storage_60 = require("./Order/Storage");
64
64
  const Storage_61 = require("./Pay/Storage");
65
65
  const Storage_62 = require("./Refund/Storage");
66
- const Storage_63 = require("./SysAccountOper/Storage");
67
- const Storage_64 = require("./WechatPay/Storage");
68
- const Storage_65 = require("./Withdraw/Storage");
69
- const Storage_66 = require("./WithdrawAccount/Storage");
70
- const Storage_67 = require("./WithdrawChannel/Storage");
71
- const Storage_68 = require("./WithdrawTransfer/Storage");
72
- const Storage_69 = require("./WpAccount/Storage");
73
- const Storage_70 = require("./WpProduct/Storage");
66
+ const Storage_63 = require("./SysAccountMove/Storage");
67
+ const Storage_64 = require("./SysAccountOper/Storage");
68
+ const Storage_65 = require("./WechatPay/Storage");
69
+ const Storage_66 = require("./Withdraw/Storage");
70
+ const Storage_67 = require("./WithdrawAccount/Storage");
71
+ const Storage_68 = require("./WithdrawChannel/Storage");
72
+ const Storage_69 = require("./WithdrawTransfer/Storage");
73
+ const Storage_70 = require("./WpAccount/Storage");
74
+ const Storage_71 = require("./WpProduct/Storage");
74
75
  exports.storageSchema = {
75
76
  actionAuth: Storage_1.desc,
76
77
  i18n: Storage_2.desc,
@@ -134,12 +135,13 @@ exports.storageSchema = {
134
135
  order: Storage_60.desc,
135
136
  pay: Storage_61.desc,
136
137
  refund: Storage_62.desc,
137
- sysAccountOper: Storage_63.desc,
138
- wechatPay: Storage_64.desc,
139
- withdraw: Storage_65.desc,
140
- withdrawAccount: Storage_66.desc,
141
- withdrawChannel: Storage_67.desc,
142
- withdrawTransfer: Storage_68.desc,
143
- wpAccount: Storage_69.desc,
144
- wpProduct: Storage_70.desc
138
+ sysAccountMove: Storage_63.desc,
139
+ sysAccountOper: Storage_64.desc,
140
+ wechatPay: Storage_65.desc,
141
+ withdraw: Storage_66.desc,
142
+ withdrawAccount: Storage_67.desc,
143
+ withdrawChannel: Storage_68.desc,
144
+ withdrawTransfer: Storage_69.desc,
145
+ wpAccount: Storage_70.desc,
146
+ wpProduct: Storage_71.desc
145
147
  };
@@ -0,0 +1,185 @@
1
+ import { ForeignKey } from "oak-domain/lib/types/DataType";
2
+ import { Q_DateValue, Q_NumberValue, Q_StringValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "oak-domain/lib/types/Demand";
3
+ import { OneOf } from "oak-domain/lib/types/Polyfill";
4
+ import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "oak-domain/lib/types/Entity";
5
+ import { AppendOnlyAction } from "oak-domain/lib/actions/action";
6
+ import { Price, String, Text } from "oak-domain/lib/types/DataType";
7
+ import * as User from "../User/Schema";
8
+ import * as System from "../System/Schema";
9
+ import * as SysAccountOper from "../SysAccountOper/Schema";
10
+ export type OpSchema = EntityShape & {
11
+ price: Price;
12
+ externalId: String<64>;
13
+ operatorId: ForeignKey<"user">;
14
+ remark?: Text | null;
15
+ systemId: ForeignKey<"system">;
16
+ };
17
+ export type OpAttr = keyof OpSchema;
18
+ export type Schema = EntityShape & {
19
+ price: Price;
20
+ externalId: String<64>;
21
+ operatorId: ForeignKey<"user">;
22
+ remark?: Text | null;
23
+ systemId: ForeignKey<"system">;
24
+ operator: User.Schema;
25
+ system: System.Schema;
26
+ sysAccountOper$sysAccountMove?: Array<SysAccountOper.Schema>;
27
+ sysAccountOper$sysAccountMove$$aggr?: AggregationResult<SysAccountOper.Schema>;
28
+ } & {
29
+ [A in ExpressionKey]?: any;
30
+ };
31
+ type AttrFilter = {
32
+ id: Q_StringValue;
33
+ $$createAt$$: Q_DateValue;
34
+ $$seq$$: Q_NumberValue;
35
+ $$updateAt$$: Q_DateValue;
36
+ price: Q_NumberValue;
37
+ externalId: Q_StringValue;
38
+ operatorId: Q_StringValue;
39
+ operator: User.Filter;
40
+ remark: Q_StringValue;
41
+ systemId: Q_StringValue;
42
+ system: System.Filter;
43
+ sysAccountOper$sysAccountMove: SysAccountOper.Filter & SubQueryPredicateMetadata;
44
+ };
45
+ export type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
46
+ export type Projection = {
47
+ "#id"?: NodeId;
48
+ [k: string]: any;
49
+ id?: number;
50
+ $$createAt$$?: number;
51
+ $$updateAt$$?: number;
52
+ $$seq$$?: number;
53
+ price?: number;
54
+ externalId?: number;
55
+ operatorId?: number;
56
+ operator?: User.Projection;
57
+ remark?: number;
58
+ systemId?: number;
59
+ system?: System.Projection;
60
+ sysAccountOper$sysAccountMove?: SysAccountOper.Selection & {
61
+ $entity: "sysAccountOper";
62
+ };
63
+ sysAccountOper$sysAccountMove$$aggr?: SysAccountOper.Aggregation & {
64
+ $entity: "sysAccountOper";
65
+ };
66
+ } & Partial<ExprOp<OpAttr | string>>;
67
+ type SysAccountMoveIdProjection = OneOf<{
68
+ id: number;
69
+ }>;
70
+ type UserIdProjection = OneOf<{
71
+ operatorId: number;
72
+ }>;
73
+ type SystemIdProjection = OneOf<{
74
+ systemId: number;
75
+ }>;
76
+ export type SortAttr = {
77
+ id: number;
78
+ } | {
79
+ $$createAt$$: number;
80
+ } | {
81
+ $$seq$$: number;
82
+ } | {
83
+ $$updateAt$$: number;
84
+ } | {
85
+ price: number;
86
+ } | {
87
+ externalId: number;
88
+ } | {
89
+ operatorId: number;
90
+ } | {
91
+ operator: User.SortAttr;
92
+ } | {
93
+ remark: number;
94
+ } | {
95
+ systemId: number;
96
+ } | {
97
+ system: System.SortAttr;
98
+ } | {
99
+ [k: string]: any;
100
+ } | OneOf<ExprOp<OpAttr | string>>;
101
+ export type SortNode = {
102
+ $attr: SortAttr;
103
+ $direction?: "asc" | "desc";
104
+ };
105
+ export type Sorter = SortNode[];
106
+ export type SelectOperation<P extends Object = Projection> = OakSelection<"select", P, Filter, Sorter>;
107
+ export type Selection<P extends Object = Projection> = SelectOperation<P>;
108
+ export type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
109
+ export type CreateOperationData = FormCreateData<Omit<OpSchema, "operatorId" | "systemId">> & (({
110
+ operatorId?: never;
111
+ operator: User.CreateSingleOperation;
112
+ } | {
113
+ operatorId: ForeignKey<"operator">;
114
+ operator?: User.UpdateOperation;
115
+ } | {
116
+ operator?: never;
117
+ operatorId: ForeignKey<"operator">;
118
+ }) & ({
119
+ systemId?: never;
120
+ system: System.CreateSingleOperation;
121
+ } | {
122
+ systemId: ForeignKey<"system">;
123
+ system?: System.UpdateOperation;
124
+ } | {
125
+ system?: never;
126
+ systemId: ForeignKey<"system">;
127
+ })) & {
128
+ sysAccountOper$sysAccountMove?: OakOperation<"create", Omit<SysAccountOper.CreateOperationData, "sysAccountMove" | "sysAccountMoveId">[]> | Array<OakOperation<"create", Omit<SysAccountOper.CreateOperationData, "sysAccountMove" | "sysAccountMoveId">>>;
129
+ };
130
+ export type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
131
+ export type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
132
+ export type CreateOperation = CreateSingleOperation | CreateMultipleOperation;
133
+ export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "operatorId" | "systemId">> & (({
134
+ operator?: User.CreateSingleOperation;
135
+ operatorId?: never;
136
+ } | {
137
+ operator?: User.UpdateOperation;
138
+ operatorId?: never;
139
+ } | {
140
+ operator?: User.RemoveOperation;
141
+ operatorId?: never;
142
+ } | {
143
+ operator?: never;
144
+ operatorId?: ForeignKey<"operator">;
145
+ }) & ({
146
+ system?: System.CreateSingleOperation;
147
+ systemId?: never;
148
+ } | {
149
+ system?: System.UpdateOperation;
150
+ systemId?: never;
151
+ } | {
152
+ system?: System.RemoveOperation;
153
+ systemId?: never;
154
+ } | {
155
+ system?: never;
156
+ systemId?: ForeignKey<"system">;
157
+ })) & {
158
+ [k: string]: any;
159
+ sysAccountOper$sysAccountMove?: OakOperation<"create", Omit<SysAccountOper.CreateOperationData, "sysAccountMove" | "sysAccountMoveId">[]> | Array<OakOperation<"create", Omit<SysAccountOper.CreateOperationData, "sysAccountMove" | "sysAccountMoveId">>>;
160
+ };
161
+ export type UpdateOperation = OakOperation<"update" | string, UpdateOperationData, Filter, Sorter>;
162
+ export type RemoveOperationData = {} & (({
163
+ operator?: User.UpdateOperation | User.RemoveOperation;
164
+ }) & ({
165
+ system?: System.UpdateOperation | System.RemoveOperation;
166
+ }));
167
+ export type RemoveOperation = OakOperation<"remove", RemoveOperationData, Filter, Sorter>;
168
+ export type Operation = CreateOperation | UpdateOperation | RemoveOperation;
169
+ export type UserIdSubQuery = Selection<UserIdProjection>;
170
+ export type SystemIdSubQuery = Selection<SystemIdProjection>;
171
+ export type SysAccountMoveIdSubQuery = Selection<SysAccountMoveIdProjection>;
172
+ export type EntityDef = {
173
+ Schema: Schema;
174
+ OpSchema: OpSchema;
175
+ Action: OakMakeAction<AppendOnlyAction> | string;
176
+ Selection: Selection;
177
+ Aggregation: Aggregation;
178
+ Operation: Operation;
179
+ Create: CreateOperation;
180
+ Update: UpdateOperation;
181
+ Remove: RemoveOperation;
182
+ CreateSingle: CreateSingleOperation;
183
+ CreateMulti: CreateMultipleOperation;
184
+ };
185
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { StorageDesc } from "oak-domain/lib/types/Storage";
2
+ import { OpSchema } from "./Schema";
3
+ export declare const desc: StorageDesc<OpSchema>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.desc = void 0;
4
+ const action_1 = require("oak-domain/lib/actions/action");
5
+ exports.desc = {
6
+ attributes: {
7
+ price: {
8
+ notNull: true,
9
+ type: "money"
10
+ },
11
+ externalId: {
12
+ notNull: true,
13
+ type: "varchar",
14
+ params: {
15
+ length: 64
16
+ }
17
+ },
18
+ operatorId: {
19
+ notNull: true,
20
+ type: "ref",
21
+ ref: "user"
22
+ },
23
+ remark: {
24
+ type: "text"
25
+ },
26
+ systemId: {
27
+ notNull: true,
28
+ type: "ref",
29
+ ref: "system"
30
+ }
31
+ },
32
+ actionType: "appendOnly",
33
+ actions: action_1.appendOnlyActions
34
+ };
@@ -0,0 +1 @@
1
+ { "name": "系统资金移动", "attr": { "price": "金额", "externalId": "外部流水号", "operator": "操作者", "remark": "备注", "system": "所属系统" } }
@@ -4,32 +4,37 @@ import { OneOf } from "oak-domain/lib/types/Polyfill";
4
4
  import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, EntityShape } from "oak-domain/lib/types/Entity";
5
5
  import { AppendOnlyAction } from "oak-domain/lib/actions/action";
6
6
  import { Price, String } from "oak-domain/lib/types/DataType";
7
+ import { SysAccountOperType } from "../../types/sysAccountOper";
7
8
  import * as Pay from "../Pay/Schema";
8
9
  import * as Refund from "../Refund/Schema";
9
10
  import * as WithdrawTransfer from "../WithdrawTransfer/Schema";
11
+ import * as SysAccountMove from "../SysAccountMove/Schema";
10
12
  import * as OfflineAccount from "../OfflineAccount/Schema";
11
13
  import * as WpAccount from "../WpAccount/Schema";
12
14
  export type OpSchema = EntityShape & {
13
15
  delta: Price;
14
- type: "pay" | "refund" | "withdrawTransfer" | "compensate" | "moveIn" | "moveOut";
16
+ type: SysAccountOperType;
15
17
  entity: "offlineAccount" | "wpAccount" | string;
16
18
  entityId: String<64>;
17
19
  payId?: ForeignKey<"pay"> | null;
18
20
  refundId?: ForeignKey<"refund"> | null;
19
21
  withdrawTransferId?: ForeignKey<"withdrawTransfer"> | null;
22
+ sysAccountMoveId?: ForeignKey<"sysAccountMove"> | null;
20
23
  };
21
24
  export type OpAttr = keyof OpSchema;
22
25
  export type Schema = EntityShape & {
23
26
  delta: Price;
24
- type: "pay" | "refund" | "withdrawTransfer" | "compensate" | "moveIn" | "moveOut";
27
+ type: SysAccountOperType;
25
28
  entity: "offlineAccount" | "wpAccount" | string;
26
29
  entityId: String<64>;
27
30
  payId?: ForeignKey<"pay"> | null;
28
31
  refundId?: ForeignKey<"refund"> | null;
29
32
  withdrawTransferId?: ForeignKey<"withdrawTransfer"> | null;
33
+ sysAccountMoveId?: ForeignKey<"sysAccountMove"> | null;
30
34
  pay?: Pay.Schema | null;
31
35
  refund?: Refund.Schema | null;
32
36
  withdrawTransfer?: WithdrawTransfer.Schema | null;
37
+ sysAccountMove?: SysAccountMove.Schema | null;
33
38
  offlineAccount?: OfflineAccount.Schema;
34
39
  wpAccount?: WpAccount.Schema;
35
40
  } & {
@@ -41,7 +46,7 @@ type AttrFilter = {
41
46
  $$seq$$: Q_NumberValue;
42
47
  $$updateAt$$: Q_DateValue;
43
48
  delta: Q_NumberValue;
44
- type: Q_EnumValue<"pay" | "refund" | "withdrawTransfer" | "compensate" | "moveIn" | "moveOut">;
49
+ type: Q_EnumValue<SysAccountOperType>;
45
50
  entity: Q_EnumValue<"offlineAccount" | "wpAccount" | string>;
46
51
  entityId: Q_StringValue;
47
52
  payId: Q_StringValue;
@@ -50,6 +55,8 @@ type AttrFilter = {
50
55
  refund: Refund.Filter;
51
56
  withdrawTransferId: Q_StringValue;
52
57
  withdrawTransfer: WithdrawTransfer.Filter;
58
+ sysAccountMoveId: Q_StringValue;
59
+ sysAccountMove: SysAccountMove.Filter;
53
60
  offlineAccount: OfflineAccount.Filter;
54
61
  wpAccount: WpAccount.Filter;
55
62
  };
@@ -71,6 +78,8 @@ export type Projection = {
71
78
  refund?: Refund.Projection;
72
79
  withdrawTransferId?: number;
73
80
  withdrawTransfer?: WithdrawTransfer.Projection;
81
+ sysAccountMoveId?: number;
82
+ sysAccountMove?: SysAccountMove.Projection;
74
83
  offlineAccount?: OfflineAccount.Projection;
75
84
  wpAccount?: WpAccount.Projection;
76
85
  } & Partial<ExprOp<OpAttr | string>>;
@@ -86,6 +95,9 @@ type RefundIdProjection = OneOf<{
86
95
  type WithdrawTransferIdProjection = OneOf<{
87
96
  withdrawTransferId: number;
88
97
  }>;
98
+ type SysAccountMoveIdProjection = OneOf<{
99
+ sysAccountMoveId: number;
100
+ }>;
89
101
  type OfflineAccountIdProjection = OneOf<{
90
102
  entityId: number;
91
103
  }>;
@@ -120,6 +132,10 @@ export type SortAttr = {
120
132
  withdrawTransferId: number;
121
133
  } | {
122
134
  withdrawTransfer: WithdrawTransfer.SortAttr;
135
+ } | {
136
+ sysAccountMoveId: number;
137
+ } | {
138
+ sysAccountMove: SysAccountMove.SortAttr;
123
139
  } | {
124
140
  offlineAccount: OfflineAccount.SortAttr;
125
141
  } | {
@@ -135,7 +151,7 @@ export type Sorter = SortNode[];
135
151
  export type SelectOperation<P extends Object = Projection> = OakSelection<"select", P, Filter, Sorter>;
136
152
  export type Selection<P extends Object = Projection> = SelectOperation<P>;
137
153
  export type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
138
- export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "entityId" | "payId" | "refundId" | "withdrawTransferId">> & (({
154
+ export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "entityId" | "payId" | "refundId" | "withdrawTransferId" | "sysAccountMoveId">> & (({
139
155
  payId?: never;
140
156
  pay?: Pay.CreateSingleOperation;
141
157
  } | {
@@ -162,6 +178,12 @@ export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "enti
162
178
  } | {
163
179
  withdrawTransfer?: never;
164
180
  withdrawTransferId?: ForeignKey<"withdrawTransfer">;
181
+ }) & ({
182
+ sysAccountMoveId?: never;
183
+ sysAccountMove?: SysAccountMove.CreateSingleOperation;
184
+ } | {
185
+ sysAccountMove?: never;
186
+ sysAccountMoveId?: ForeignKey<"sysAccountMove">;
165
187
  })) & ({
166
188
  entity?: never;
167
189
  entityId?: never;
@@ -194,7 +216,7 @@ export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "enti
194
216
  export type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
195
217
  export type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
196
218
  export type CreateOperation = CreateSingleOperation | CreateMultipleOperation;
197
- export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "entity" | "entityId" | "payId" | "refundId" | "withdrawTransferId">> & (({
219
+ export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "entity" | "entityId" | "payId" | "refundId" | "withdrawTransferId" | "sysAccountMoveId">> & (({
198
220
  pay?: Pay.CreateSingleOperation;
199
221
  payId?: never;
200
222
  } | {
@@ -230,6 +252,12 @@ export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "entity" | "enti
230
252
  } | {
231
253
  withdrawTransfer?: never;
232
254
  withdrawTransferId?: ForeignKey<"withdrawTransfer"> | null;
255
+ }) & ({
256
+ sysAccountMove?: SysAccountMove.CreateSingleOperation;
257
+ sysAccountMoveId?: never;
258
+ } | {
259
+ sysAccountMove?: never;
260
+ sysAccountMoveId?: ForeignKey<"sysAccountMove"> | null;
233
261
  })) & ({
234
262
  offlineAccount?: OfflineAccount.CreateSingleOperation | OfflineAccount.UpdateOperation | OfflineAccount.RemoveOperation;
235
263
  entityId?: never;
@@ -265,6 +293,7 @@ export type Operation = CreateOperation | UpdateOperation | RemoveOperation;
265
293
  export type PayIdSubQuery = Selection<PayIdProjection>;
266
294
  export type RefundIdSubQuery = Selection<RefundIdProjection>;
267
295
  export type WithdrawTransferIdSubQuery = Selection<WithdrawTransferIdProjection>;
296
+ export type SysAccountMoveIdSubQuery = Selection<SysAccountMoveIdProjection>;
268
297
  export type OfflineAccountIdSubQuery = Selection<OfflineAccountIdProjection>;
269
298
  export type WpAccountIdSubQuery = Selection<WpAccountIdProjection>;
270
299
  export type SysAccountOperIdSubQuery = Selection<SysAccountOperIdProjection>;
@@ -39,6 +39,10 @@ exports.desc = {
39
39
  withdrawTransferId: {
40
40
  type: "ref",
41
41
  ref: "withdrawTransfer"
42
+ },
43
+ sysAccountMoveId: {
44
+ type: "ref",
45
+ ref: "sysAccountMove"
42
46
  }
43
47
  },
44
48
  actionType: "appendOnly",
@@ -1 +1 @@
1
- { "name": "系统账户操作", "attr": { "type": "类型", "delta": "余额变化", "entity": "关联对象", "entityId": "关联对象Id", "pay": "关联支付", "refund": "关联退款", "withdrawTransfer": "关联转账提现" }, "v": { "type": { "withdrawTransfer": "提现转账", "pay": "支付", "refund": "退款", "compensate": "补偿", "moveIn": "转入", "moveOut": "转出" } } }
1
+ { "name": "系统账户操作", "attr": { "type": "类型", "delta": "余额变化", "entity": "关联对象", "entityId": "关联对象Id", "pay": "关联支付", "refund": "关联退款", "withdrawTransfer": "关联转账提现", "sysAccountMove": "系统资金移动" }, "v": { "type": { "withdrawTransfer": "提现转账", "pay": "支付", "refund": "退款", "compensate": "补偿", "moveIn": "转入", "moveOut": "转出" } } }
@@ -15,6 +15,7 @@ import * as UserSystem from "../UserSystem/Schema";
15
15
  import * as Account from "../Account/Schema";
16
16
  import * as OfflineAccount from "../OfflineAccount/Schema";
17
17
  import * as Order from "../Order/Schema";
18
+ import * as SysAccountMove from "../SysAccountMove/Schema";
18
19
  import * as WechatPay from "../WechatPay/Schema";
19
20
  import * as WithdrawAccount from "../WithdrawAccount/Schema";
20
21
  import * as WithdrawChannel from "../WithdrawChannel/Schema";
@@ -76,6 +77,8 @@ export type Schema = EntityShape & {
76
77
  offlineAccount$system$$aggr?: AggregationResult<OfflineAccount.Schema>;
77
78
  order$system?: Array<Order.Schema>;
78
79
  order$system$$aggr?: AggregationResult<Order.Schema>;
80
+ sysAccountMove$system?: Array<SysAccountMove.Schema>;
81
+ sysAccountMove$system$$aggr?: AggregationResult<SysAccountMove.Schema>;
79
82
  wechatPay$system?: Array<WechatPay.Schema>;
80
83
  wechatPay$system$$aggr?: AggregationResult<WechatPay.Schema>;
81
84
  withdrawAccount$ofSystem?: Array<WithdrawAccount.Schema>;
@@ -114,6 +117,7 @@ type AttrFilter = {
114
117
  account$entity: Account.Filter & SubQueryPredicateMetadata;
115
118
  offlineAccount$system: OfflineAccount.Filter & SubQueryPredicateMetadata;
116
119
  order$system: Order.Filter & SubQueryPredicateMetadata;
120
+ sysAccountMove$system: SysAccountMove.Filter & SubQueryPredicateMetadata;
117
121
  wechatPay$system: WechatPay.Filter & SubQueryPredicateMetadata;
118
122
  withdrawAccount$ofSystem: WithdrawAccount.Filter & SubQueryPredicateMetadata;
119
123
  withdrawAccount$entity: WithdrawAccount.Filter & SubQueryPredicateMetadata;
@@ -193,6 +197,12 @@ export type Projection = {
193
197
  order$system$$aggr?: Order.Aggregation & {
194
198
  $entity: "order";
195
199
  };
200
+ sysAccountMove$system?: SysAccountMove.Selection & {
201
+ $entity: "sysAccountMove";
202
+ };
203
+ sysAccountMove$system$$aggr?: SysAccountMove.Aggregation & {
204
+ $entity: "sysAccountMove";
205
+ };
196
206
  wechatPay$system?: WechatPay.Selection & {
197
207
  $entity: "wechatPay";
198
208
  };
@@ -294,6 +304,7 @@ export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "enti
294
304
  account$entity?: OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<Account.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<Account.CreateOperationData, "entity" | "entityId">> | OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">>>;
295
305
  offlineAccount$system?: OakOperation<OfflineAccount.UpdateOperation["action"], Omit<OfflineAccount.UpdateOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">> | OakOperation<"create", Omit<OfflineAccount.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<OfflineAccount.CreateOperationData, "system" | "systemId">> | OakOperation<OfflineAccount.UpdateOperation["action"], Omit<OfflineAccount.UpdateOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">>>;
296
306
  order$system?: OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">> | OakOperation<"create", Omit<Order.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<Order.CreateOperationData, "system" | "systemId">> | OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">>>;
307
+ sysAccountMove$system?: OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "system" | "systemId">>>;
297
308
  wechatPay$system?: OakOperation<WechatPay.UpdateOperation["action"], Omit<WechatPay.UpdateOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">> | OakOperation<"create", Omit<WechatPay.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<WechatPay.CreateOperationData, "system" | "systemId">> | OakOperation<WechatPay.UpdateOperation["action"], Omit<WechatPay.UpdateOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">>>;
298
309
  withdrawAccount$ofSystem?: OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">> | OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "ofSystem" | "ofSystemId">[]> | Array<OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "ofSystem" | "ofSystemId">> | OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">>>;
299
310
  withdrawAccount$entity?: OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "entity" | "entityId">> | OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">>>;
@@ -326,6 +337,7 @@ export type UpdateOperationData = FormUpdateData<Omit<OpSchema, "platformId">> &
326
337
  account$entity?: OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">> | OakOperation<Account.RemoveOperation["action"], Omit<Account.RemoveOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<Account.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<Account.CreateOperationData, "entity" | "entityId">> | OakOperation<Account.UpdateOperation["action"], Omit<Account.UpdateOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">> | OakOperation<Account.RemoveOperation["action"], Omit<Account.RemoveOperationData, "entity" | "entityId">, Omit<Account.Filter, "entity" | "entityId">>>;
327
338
  offlineAccount$system?: OakOperation<OfflineAccount.UpdateOperation["action"], Omit<OfflineAccount.UpdateOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">> | OakOperation<OfflineAccount.RemoveOperation["action"], Omit<OfflineAccount.RemoveOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">> | OakOperation<"create", Omit<OfflineAccount.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<OfflineAccount.CreateOperationData, "system" | "systemId">> | OakOperation<OfflineAccount.UpdateOperation["action"], Omit<OfflineAccount.UpdateOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">> | OakOperation<OfflineAccount.RemoveOperation["action"], Omit<OfflineAccount.RemoveOperationData, "system" | "systemId">, Omit<OfflineAccount.Filter, "system" | "systemId">>>;
328
339
  order$system?: OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">> | OakOperation<Order.RemoveOperation["action"], Omit<Order.RemoveOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">> | OakOperation<"create", Omit<Order.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<Order.CreateOperationData, "system" | "systemId">> | OakOperation<Order.UpdateOperation["action"], Omit<Order.UpdateOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">> | OakOperation<Order.RemoveOperation["action"], Omit<Order.RemoveOperationData, "system" | "systemId">, Omit<Order.Filter, "system" | "systemId">>>;
340
+ sysAccountMove$system?: OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<SysAccountMove.CreateOperationData, "system" | "systemId">>>;
329
341
  wechatPay$system?: OakOperation<WechatPay.UpdateOperation["action"], Omit<WechatPay.UpdateOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">> | OakOperation<WechatPay.RemoveOperation["action"], Omit<WechatPay.RemoveOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">> | OakOperation<"create", Omit<WechatPay.CreateOperationData, "system" | "systemId">[]> | Array<OakOperation<"create", Omit<WechatPay.CreateOperationData, "system" | "systemId">> | OakOperation<WechatPay.UpdateOperation["action"], Omit<WechatPay.UpdateOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">> | OakOperation<WechatPay.RemoveOperation["action"], Omit<WechatPay.RemoveOperationData, "system" | "systemId">, Omit<WechatPay.Filter, "system" | "systemId">>>;
330
342
  withdrawAccount$ofSystem?: OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">> | OakOperation<WithdrawAccount.RemoveOperation["action"], Omit<WithdrawAccount.RemoveOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">> | OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "ofSystem" | "ofSystemId">[]> | Array<OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "ofSystem" | "ofSystemId">> | OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">> | OakOperation<WithdrawAccount.RemoveOperation["action"], Omit<WithdrawAccount.RemoveOperationData, "ofSystem" | "ofSystemId">, Omit<WithdrawAccount.Filter, "ofSystem" | "ofSystemId">>>;
331
343
  withdrawAccount$entity?: OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">> | OakOperation<WithdrawAccount.RemoveOperation["action"], Omit<WithdrawAccount.RemoveOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">> | OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<WithdrawAccount.CreateOperationData, "entity" | "entityId">> | OakOperation<WithdrawAccount.UpdateOperation["action"], Omit<WithdrawAccount.UpdateOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">> | OakOperation<WithdrawAccount.RemoveOperation["action"], Omit<WithdrawAccount.RemoveOperationData, "entity" | "entityId">, Omit<WithdrawAccount.Filter, "entity" | "entityId">>>;