oak-pay-business 2.2.10 → 2.3.2

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 (61) hide show
  1. package/es/aspects/withdraw.d.ts +8 -8
  2. package/es/components/AbstractComponents.d.ts +3 -8
  3. package/es/components/account/detail/index.js +8 -5
  4. package/es/components/pay/detail/index.js +8 -5
  5. package/es/configuration/attrUpdateMatrix.js +8 -0
  6. package/es/context/BackendRuntimeContext.d.ts +1 -1
  7. package/es/entities/Order.d.ts +1 -1
  8. package/es/oak-app-domain/Application/Schema.d.ts +2 -2
  9. package/es/oak-app-domain/Application/Storage.js +0 -1
  10. package/es/oak-app-domain/Article/locales/zh_CN.json +1 -1
  11. package/es/oak-app-domain/ArticleMenu/locales/zh_CN.json +1 -1
  12. package/es/oak-app-domain/ExtraFile/Schema.d.ts +2 -2
  13. package/es/oak-app-domain/ExtraFile/Storage.js +1 -1
  14. package/es/oak-app-domain/Order/Action.d.ts +1 -1
  15. package/es/oak-app-domain/Order/Storage.js +1 -1
  16. package/es/oak-app-domain/Platform/Schema.d.ts +2 -2
  17. package/es/oak-app-domain/Platform/Storage.js +0 -1
  18. package/es/oak-app-domain/SmsTemplate/Schema.d.ts +6 -5
  19. package/es/oak-app-domain/SmsTemplate/Storage.js +2 -4
  20. package/es/oak-app-domain/SmsTemplate/Style.d.ts +3 -0
  21. package/es/oak-app-domain/SmsTemplate/Style.js +10 -0
  22. package/es/oak-app-domain/SmsTemplate/locales/zh_CN.json +1 -1
  23. package/es/oak-app-domain/StyleDict.js +2 -0
  24. package/es/oak-app-domain/System/Schema.d.ts +4 -4
  25. package/es/oak-app-domain/System/Storage.js +0 -2
  26. package/es/oak-app-domain/WechatTemplate/locales/zh_CN.json +1 -1
  27. package/es/triggers/pay.js +50 -47
  28. package/es/triggers/withdraw.d.ts +1 -1
  29. package/es/utils/application.d.ts +1 -1
  30. package/es/utils/pay.js +4 -1
  31. package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
  32. package/es/watchers/pay.js +1 -1
  33. package/lib/aspects/withdraw.d.ts +12 -12
  34. package/lib/components/pay/detail/index.js +8 -5
  35. package/lib/configuration/attrUpdateMatrix.js +8 -0
  36. package/lib/entities/Order.d.ts +1 -1
  37. package/lib/oak-app-domain/Application/Schema.d.ts +2 -2
  38. package/lib/oak-app-domain/Application/Storage.js +0 -1
  39. package/lib/oak-app-domain/Article/locales/zh_CN.json +1 -1
  40. package/lib/oak-app-domain/ArticleMenu/locales/zh_CN.json +1 -1
  41. package/lib/oak-app-domain/ExtraFile/Schema.d.ts +2 -2
  42. package/lib/oak-app-domain/ExtraFile/Storage.js +1 -1
  43. package/lib/oak-app-domain/Order/Action.d.ts +1 -1
  44. package/lib/oak-app-domain/Order/Storage.js +1 -1
  45. package/lib/oak-app-domain/Platform/Schema.d.ts +2 -2
  46. package/lib/oak-app-domain/Platform/Storage.js +0 -1
  47. package/lib/oak-app-domain/SmsTemplate/Schema.d.ts +6 -5
  48. package/lib/oak-app-domain/SmsTemplate/Storage.js +2 -4
  49. package/lib/oak-app-domain/SmsTemplate/Style.d.ts +3 -0
  50. package/lib/oak-app-domain/SmsTemplate/Style.js +13 -0
  51. package/lib/oak-app-domain/SmsTemplate/locales/zh_CN.json +1 -1
  52. package/lib/oak-app-domain/StyleDict.js +52 -50
  53. package/lib/oak-app-domain/System/Schema.d.ts +4 -4
  54. package/lib/oak-app-domain/System/Storage.js +0 -2
  55. package/lib/oak-app-domain/WechatTemplate/locales/zh_CN.json +1 -1
  56. package/lib/triggers/pay.js +50 -47
  57. package/lib/utils/pay.js +4 -1
  58. package/lib/utils/payClazz/WechatPay/index.d.ts +1 -1
  59. package/lib/watchers/pay.js +1 -1
  60. package/package.json +4 -4
  61. package/src/entities/Order.ts +1 -1
@@ -14,7 +14,7 @@ export declare const mergedProjection: {
14
14
  type?: number | undefined;
15
15
  systemId?: number | undefined;
16
16
  system?: import("../oak-app-domain/System/Schema").Projection | undefined;
17
- config?: number | import("oak-domain/lib/types").JsonProjection<import("../oak-app-domain/Application/Schema").WechatMpConfig | import("../oak-app-domain/Application/Schema").WebConfig | import("../oak-app-domain/Application/Schema").WechatPublicConfig | import("../oak-app-domain/Application/Schema").NativeConfig> | undefined;
17
+ config?: number | import("oak-domain/lib/types").JsonProjection<import("../oak-app-domain/Application/Schema").WebConfig | import("../oak-app-domain/Application/Schema").WechatMpConfig | import("../oak-app-domain/Application/Schema").WechatPublicConfig | import("../oak-app-domain/Application/Schema").NativeConfig> | undefined;
18
18
  style?: number | import("oak-domain/lib/types").JsonProjection<import("oak-general-business/lib/types/Style").Style> | undefined;
19
19
  domainId?: number | undefined;
20
20
  domain?: import("../oak-app-domain/Domain/Schema").Projection | undefined;
package/es/utils/pay.js CHANGED
@@ -155,7 +155,10 @@ export async function refreshPayState(pay, context) {
155
155
  filter: {
156
156
  id: pay.id,
157
157
  }
158
- }, { blockTrigger: true });
158
+ }, {
159
+ blockTrigger: true,
160
+ forUpdate: true,
161
+ });
159
162
  pay2 = pays[0];
160
163
  }
161
164
  const { entity, entityId, timeoutAt, price } = pay2;
@@ -1,4 +1,4 @@
1
1
  import WechatPay from './WechatPay';
2
2
  import WechatPayDebug from './WechatPay.debug';
3
- declare const _default: typeof WechatPay | typeof WechatPayDebug;
3
+ declare const _default: typeof WechatPayDebug | typeof WechatPay;
4
4
  export default _default;
@@ -50,7 +50,7 @@ const watchers = [
50
50
  }
51
51
  },
52
52
  {
53
- name: '当pay达到禁止退款期限时,关闭退款允许',
53
+ name: '当pay达到过期期限时,关闭pay',
54
54
  entity: 'pay',
55
55
  filter: () => {
56
56
  const now = Date.now();
@@ -3,7 +3,7 @@ export declare function getWithdrawCreateData(params: {
3
3
  accountId: string;
4
4
  price: number;
5
5
  withdrawAccountId?: string;
6
- }, context: BRC): Promise<(Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "accountId" | "creatorId">> & {
6
+ }, context: BRC): Promise<(Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
7
7
  id: string;
8
8
  } & {
9
9
  accountId: string;
@@ -12,12 +12,12 @@ export declare function getWithdrawCreateData(params: {
12
12
  creatorId: string;
13
13
  creator?: import("../oak-app-domain/User/Schema").UpdateOperation | undefined;
14
14
  } & {
15
- refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
16
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
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
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
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
19
  accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
20
- }) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "accountId" | "creatorId">> & {
20
+ }) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
21
21
  id: string;
22
22
  } & {
23
23
  accountId: string;
@@ -26,12 +26,12 @@ export declare function getWithdrawCreateData(params: {
26
26
  creator?: undefined;
27
27
  creatorId: string;
28
28
  } & {
29
- refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
30
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
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
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
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
33
  accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
34
- }) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "accountId" | "creatorId">> & {
34
+ }) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
35
35
  id: string;
36
36
  } & {
37
37
  account?: undefined;
@@ -40,12 +40,12 @@ export declare function getWithdrawCreateData(params: {
40
40
  creatorId: string;
41
41
  creator?: import("../oak-app-domain/User/Schema").UpdateOperation | undefined;
42
42
  } & {
43
- refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
44
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
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
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
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
47
  accountOper$entity?: import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">[]> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/AccountOper/Schema").CreateOperationData, "entity" | "entityId">>[] | undefined;
48
- }) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "accountId" | "creatorId">> & {
48
+ }) | (Partial<Omit<import("../oak-app-domain/Withdraw/Schema").OpSchema, "creatorId" | "accountId">> & {
49
49
  id: string;
50
50
  } & {
51
51
  account?: undefined;
@@ -54,8 +54,8 @@ export declare function getWithdrawCreateData(params: {
54
54
  creator?: undefined;
55
55
  creatorId: string;
56
56
  } & {
57
- refund$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/Refund/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/Refund/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/Refund/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
58
- withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">[]> | (import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "withdrawId" | "withdraw">, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").Filter, "withdrawId" | "withdraw">> | import("oak-domain/lib/types").Operation<"create", Omit<import("../oak-app-domain/WithdrawTransfer/Schema").CreateOperationData, "withdrawId" | "withdraw">>)[] | undefined;
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
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
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
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;
@@ -123,6 +123,7 @@ exports.default = OakComponent({
123
123
  data: {
124
124
  showCloseConfirmMp: false,
125
125
  showChannelSelectMp: false,
126
+ unsub: undefined,
126
127
  },
127
128
  formData({ data }) {
128
129
  const application = this.features.application.getApplication();
@@ -297,15 +298,17 @@ exports.default = OakComponent({
297
298
  }
298
299
  },
299
300
  lifetimes: {
300
- ready() {
301
+ async ready() {
301
302
  const { oakId } = this.props;
302
303
  (0, assert_1.default)(typeof oakId === 'string');
303
- this.subDataEvents([`${constants_1.DATA_SUBSCRIBER_KEYS.payStateChanged}-${oakId}`], 'opb-c-pay-detail');
304
+ const unsub = await this.subDataEvents([`${constants_1.DATA_SUBSCRIBER_KEYS.payStateChanged}-${oakId}`]);
305
+ this.setState({
306
+ unsub,
307
+ });
304
308
  },
305
309
  detached() {
306
- const { oakId } = this.props;
307
- (0, assert_1.default)(typeof oakId === 'string');
308
- this.unsubDataEvents([`${constants_1.DATA_SUBSCRIBER_KEYS.payStateChanged}-${oakId}`], 'opb-c-pay-detail');
310
+ const { unsub } = this.state;
311
+ unsub && unsub();
309
312
  }
310
313
  },
311
314
  listeners: {
@@ -76,6 +76,14 @@ const attrUpdateMatrix = {
76
76
  },
77
77
  },
78
78
  },
79
+ timeoutAt: {
80
+ actions: ['startPaying'],
81
+ filter: {
82
+ iState: {
83
+ $in: ['unpaid', 'paying'],
84
+ }
85
+ }
86
+ },
79
87
  },
80
88
  refund: {
81
89
  externalId: {
@@ -20,7 +20,7 @@ export interface Schema extends EntityShape {
20
20
  opers: AccountOper[];
21
21
  }
22
22
  export type IAction = 'startPaying' | 'payAll' | 'payPartially' | 'payNone' | 'timeout' | 'cancel' | 'startRefunding' | 'refundAll' | 'refundPartially' | 'refundNone';
23
- export type IState = 'paid' | 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded';
23
+ export type IState = 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded';
24
24
  export declare const IActionDef: ActionDef<IAction, IState>;
25
25
  export type Action = IAction | 'settle';
26
26
  export declare const entityDesc: EntityDesc<Schema, Action, '', {
@@ -74,7 +74,7 @@ export type NativeConfig = {
74
74
  };
75
75
  export type OpSchema = EntityShape & {
76
76
  name: String<32>;
77
- description: Text;
77
+ description?: Text | null;
78
78
  type: AppType;
79
79
  systemId: ForeignKey<"system">;
80
80
  config: WebConfig | WechatMpConfig | WechatPublicConfig | NativeConfig;
@@ -84,7 +84,7 @@ export type OpSchema = EntityShape & {
84
84
  export type OpAttr = keyof OpSchema;
85
85
  export type Schema = EntityShape & {
86
86
  name: String<32>;
87
- description: Text;
87
+ description?: Text | null;
88
88
  type: AppType;
89
89
  systemId: ForeignKey<"system">;
90
90
  config: WebConfig | WechatMpConfig | WechatPublicConfig | NativeConfig;
@@ -12,7 +12,6 @@ exports.desc = {
12
12
  }
13
13
  },
14
14
  description: {
15
- notNull: true,
16
15
  type: "text"
17
16
  },
18
17
  type: {
@@ -1 +1 @@
1
- { "name": "文章", "attr": { "name": "文章标题", "content": "请输入正文内容", "articleMenu": "文章菜单", "files": "文件" } }
1
+ { "name": "文章", "attr": { "name": "标题", "content": "正文内容", "articleMenu": "菜单", "files": "文件" } }
@@ -1 +1 @@
1
- { "name": "文章分类", "attr": { "name": "分类标题", "isArticle": "是否存在文章", "parent": "所属分类", "entity": "对象", "entityId": "对象Id", "isLeaf": "结点下是否存在叶子结点", "files": "图片" } }
1
+ { "name": "文章分类", "attr": { "name": "分类标题", "isArticle": "是否存在文章", "parent": "所属分类", "entity": "对象", "entityId": "对象Id", "isLeaf": "结点下是否存在叶子结点", "files": "文件" } }
@@ -23,7 +23,7 @@ export type OpSchema = EntityShape & {
23
23
  extra1?: Text | null;
24
24
  extra2?: Object | null;
25
25
  extension?: String<16> | null;
26
- size?: Int<4> | null;
26
+ size?: Int<8> | null;
27
27
  sort?: Float<22, 10> | null;
28
28
  fileType?: String<128> | null;
29
29
  isBridge?: Boolean | null;
@@ -46,7 +46,7 @@ export type Schema = EntityShape & {
46
46
  extra1?: Text | null;
47
47
  extra2?: Object | null;
48
48
  extension?: String<16> | null;
49
- size?: Int<4> | null;
49
+ size?: Int<8> | null;
50
50
  sort?: Float<22, 10> | null;
51
51
  fileType?: String<128> | null;
52
52
  isBridge?: Boolean | null;
@@ -78,7 +78,7 @@ exports.desc = {
78
78
  size: {
79
79
  type: "int",
80
80
  params: {
81
- width: 4,
81
+ width: 8,
82
82
  signed: true
83
83
  }
84
84
  },
@@ -1,7 +1,7 @@
1
1
  import { ActionDef } from "oak-domain/lib/types/Action";
2
2
  import { GenericAction } from "oak-domain/lib/actions/action";
3
3
  export type IAction = 'startPaying' | 'payAll' | 'payPartially' | 'payNone' | 'timeout' | 'cancel' | 'startRefunding' | 'refundAll' | 'refundPartially' | 'refundNone' | string;
4
- export type IState = 'paid' | 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded' | string;
4
+ export type IState = 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded' | string;
5
5
  export declare const IActionDef: ActionDef<IAction, IState>;
6
6
  export type ParticularAction = IAction | 'settle';
7
7
  export declare const actions: string[];
@@ -63,7 +63,7 @@ exports.desc = {
63
63
  },
64
64
  iState: {
65
65
  type: "enum",
66
- enumeration: ["paid", "unpaid", "timeout", "cancelled", "paying", "partiallyPaid", "paid", "refunding", "partiallyRefunded", "refunded"]
66
+ enumeration: ["unpaid", "timeout", "cancelled", "paying", "partiallyPaid", "paid", "refunding", "partiallyRefunded", "refunded"]
67
67
  }
68
68
  },
69
69
  actionType: "crud",
@@ -10,7 +10,7 @@ import * as Message from "../Message/Schema";
10
10
  import * as System from "../System/Schema";
11
11
  export type OpSchema = EntityShape & {
12
12
  name: String<32>;
13
- description: Text;
13
+ description?: Text | null;
14
14
  config: Config;
15
15
  style?: Style | null;
16
16
  entity?: String<32> | null;
@@ -19,7 +19,7 @@ export type OpSchema = EntityShape & {
19
19
  export type OpAttr = keyof OpSchema;
20
20
  export type Schema = EntityShape & {
21
21
  name: String<32>;
22
- description: Text;
22
+ description?: Text | null;
23
23
  config: Config;
24
24
  style?: Style | null;
25
25
  entity?: String<32> | null;
@@ -12,7 +12,6 @@ exports.desc = {
12
12
  }
13
13
  },
14
14
  description: {
15
- notNull: true,
16
15
  type: "text"
17
16
  },
18
17
  config: {
@@ -1,14 +1,15 @@
1
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";
2
+ import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "oak-domain/lib/types/Demand";
3
3
  import { OneOf } from "oak-domain/lib/types/Polyfill";
4
4
  import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "oak-domain/lib/types/Entity";
5
5
  import { GenericAction } from "oak-domain/lib/actions/action";
6
- import { String, Text, Datetime } from "oak-domain/lib/types/DataType";
6
+ import { Text, String, Datetime } from "oak-domain/lib/types/DataType";
7
7
  import * as System from "../System/Schema";
8
8
  import * as MessageTypeSmsTemplate from "../MessageTypeSmsTemplate/Schema";
9
+ export type Origin = "ali" | "tencent" | "ctyun" | "qiniu";
9
10
  export type OpSchema = EntityShape & {
10
11
  systemId: ForeignKey<"system">;
11
- origin: String<64>;
12
+ origin: Origin;
12
13
  templateName: Text;
13
14
  templateCode: String<64>;
14
15
  templateContent: Text;
@@ -17,7 +18,7 @@ export type OpSchema = EntityShape & {
17
18
  export type OpAttr = keyof OpSchema;
18
19
  export type Schema = EntityShape & {
19
20
  systemId: ForeignKey<"system">;
20
- origin: String<64>;
21
+ origin: Origin;
21
22
  templateName: Text;
22
23
  templateCode: String<64>;
23
24
  templateContent: Text;
@@ -35,7 +36,7 @@ type AttrFilter = {
35
36
  $$updateAt$$: Q_DateValue;
36
37
  systemId: Q_StringValue;
37
38
  system: System.Filter;
38
- origin: Q_StringValue;
39
+ origin: Q_EnumValue<Origin>;
39
40
  templateName: Q_StringValue;
40
41
  templateCode: Q_StringValue;
41
42
  templateContent: Q_StringValue;
@@ -11,10 +11,8 @@ exports.desc = {
11
11
  },
12
12
  origin: {
13
13
  notNull: true,
14
- type: "varchar",
15
- params: {
16
- length: 64
17
- }
14
+ type: "enum",
15
+ enumeration: ["ali", "tencent", "ctyun", "qiniu"]
18
16
  },
19
17
  templateName: {
20
18
  notNull: true,
@@ -0,0 +1,3 @@
1
+ import { EntityDef } from "./Schema";
2
+ import { StyleDef } from "oak-domain/lib/types/Style";
3
+ export declare const style: StyleDef<EntityDef["OpSchema"], EntityDef["Action"]>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.style = void 0;
4
+ exports.style = {
5
+ color: {
6
+ origin: {
7
+ ali: '#1677ff',
8
+ tencent: '#0052d9',
9
+ ctyun: '#ff0000',
10
+ qiniu: '#37caff',
11
+ },
12
+ },
13
+ };
@@ -1 +1 @@
1
- { "name": "微信模板", "attr": { "system": "系统", "origin": "源", "templateName": "模板名称", "templateCode": "模板Code", "templateContent": "模板内容", "syncAt": "同步时间" } }
1
+ { "name": "短信模板", "attr": { "system": "系统", "origin": "源", "templateName": "模板名称", "templateCode": "模板Code", "templateContent": "模板内容", "syncAt": "同步时间" }, "v": { "origin": { "ali": "阿里云", "tencent": "腾讯云", "ctyun": "天翼云", "qiniu": "七牛云" } } }
@@ -14,31 +14,32 @@ const Style_10 = require("./Message/Style");
14
14
  const Style_11 = require("./Mobile/Style");
15
15
  const Style_12 = require("./Notification/Style");
16
16
  const Style_13 = require("./Parasite/Style");
17
- const Style_14 = require("./ToDo/Style");
18
- const Style_15 = require("./Token/Style");
19
- const Style_16 = require("./UserEntityGrant/Style");
20
- const Style_17 = require("./UserWechatPublicTag/Style");
21
- const Style_18 = require("./WechatLogin/Style");
22
- const Style_19 = require("./WechatMenu/Style");
23
- const Style_20 = require("./WechatPublicTag/Style");
24
- const Style_21 = require("./WechatQrCode/Style");
25
- const Style_22 = require("./WechatUser/Style");
26
- const Style_23 = require("./AbstractAccount/Style");
27
- const Style_24 = require("./Account/Style");
28
- const Style_25 = require("./AccountOper/Style");
29
- const Style_26 = require("./Deposit/Style");
30
- const Style_27 = require("./OfflineAccount/Style");
31
- const Style_28 = require("./Order/Style");
32
- const Style_29 = require("./Pay/Style");
33
- const Style_30 = require("./Refund/Style");
34
- const Style_31 = require("./SysAccountOper/Style");
35
- const Style_32 = require("./User/Style");
36
- const Style_33 = require("./Withdraw/Style");
37
- const Style_34 = require("./WithdrawAccount/Style");
38
- const Style_35 = require("./WithdrawChannel/Style");
39
- const Style_36 = require("./WithdrawTransfer/Style");
40
- const Style_37 = require("./WpAccount/Style");
41
- const Style_38 = require("./WpProduct/Style");
17
+ const Style_14 = require("./SmsTemplate/Style");
18
+ const Style_15 = require("./ToDo/Style");
19
+ const Style_16 = require("./Token/Style");
20
+ const Style_17 = require("./UserEntityGrant/Style");
21
+ const Style_18 = require("./UserWechatPublicTag/Style");
22
+ const Style_19 = require("./WechatLogin/Style");
23
+ const Style_20 = require("./WechatMenu/Style");
24
+ const Style_21 = require("./WechatPublicTag/Style");
25
+ const Style_22 = require("./WechatQrCode/Style");
26
+ const Style_23 = require("./WechatUser/Style");
27
+ const Style_24 = require("./AbstractAccount/Style");
28
+ const Style_25 = require("./Account/Style");
29
+ const Style_26 = require("./AccountOper/Style");
30
+ const Style_27 = require("./Deposit/Style");
31
+ const Style_28 = require("./OfflineAccount/Style");
32
+ const Style_29 = require("./Order/Style");
33
+ const Style_30 = require("./Pay/Style");
34
+ const Style_31 = require("./Refund/Style");
35
+ const Style_32 = require("./SysAccountOper/Style");
36
+ const Style_33 = require("./User/Style");
37
+ const Style_34 = require("./Withdraw/Style");
38
+ const Style_35 = require("./WithdrawAccount/Style");
39
+ const Style_36 = require("./WithdrawChannel/Style");
40
+ const Style_37 = require("./WithdrawTransfer/Style");
41
+ const Style_38 = require("./WpAccount/Style");
42
+ const Style_39 = require("./WpProduct/Style");
42
43
  exports.styleDict = {
43
44
  modi: Style_1.style,
44
45
  application: Style_2.style,
@@ -53,29 +54,30 @@ exports.styleDict = {
53
54
  mobile: Style_11.style,
54
55
  notification: Style_12.style,
55
56
  parasite: Style_13.style,
56
- toDo: Style_14.style,
57
- token: Style_15.style,
58
- userEntityGrant: Style_16.style,
59
- userWechatPublicTag: Style_17.style,
60
- wechatLogin: Style_18.style,
61
- wechatMenu: Style_19.style,
62
- wechatPublicTag: Style_20.style,
63
- wechatQrCode: Style_21.style,
64
- wechatUser: Style_22.style,
65
- abstractAccount: Style_23.style,
66
- account: Style_24.style,
67
- accountOper: Style_25.style,
68
- deposit: Style_26.style,
69
- offlineAccount: Style_27.style,
70
- order: Style_28.style,
71
- pay: Style_29.style,
72
- refund: Style_30.style,
73
- sysAccountOper: Style_31.style,
74
- user: Style_32.style,
75
- withdraw: Style_33.style,
76
- withdrawAccount: Style_34.style,
77
- withdrawChannel: Style_35.style,
78
- withdrawTransfer: Style_36.style,
79
- wpAccount: Style_37.style,
80
- wpProduct: Style_38.style
57
+ smsTemplate: Style_14.style,
58
+ toDo: Style_15.style,
59
+ token: Style_16.style,
60
+ userEntityGrant: Style_17.style,
61
+ userWechatPublicTag: Style_18.style,
62
+ wechatLogin: Style_19.style,
63
+ wechatMenu: Style_20.style,
64
+ wechatPublicTag: Style_21.style,
65
+ wechatQrCode: Style_22.style,
66
+ wechatUser: Style_23.style,
67
+ abstractAccount: Style_24.style,
68
+ account: Style_25.style,
69
+ accountOper: Style_26.style,
70
+ deposit: Style_27.style,
71
+ offlineAccount: Style_28.style,
72
+ order: Style_29.style,
73
+ pay: Style_30.style,
74
+ refund: Style_31.style,
75
+ sysAccountOper: Style_32.style,
76
+ user: Style_33.style,
77
+ withdraw: Style_34.style,
78
+ withdrawAccount: Style_35.style,
79
+ withdrawChannel: Style_36.style,
80
+ withdrawTransfer: Style_37.style,
81
+ wpAccount: Style_38.style,
82
+ wpProduct: Style_39.style
81
83
  };
@@ -36,10 +36,10 @@ type PayConfig = {
36
36
  };
37
37
  export type OpSchema = EntityShape & {
38
38
  name: String<32>;
39
- description: Text;
39
+ description?: Text | null;
40
40
  config: Config;
41
41
  platformId?: ForeignKey<"platform"> | null;
42
- folder: String<16>;
42
+ folder?: String<16> | null;
43
43
  super?: Boolean | null;
44
44
  style?: Style | null;
45
45
  entity?: String<32> | null;
@@ -49,10 +49,10 @@ export type OpSchema = EntityShape & {
49
49
  export type OpAttr = keyof OpSchema;
50
50
  export type Schema = EntityShape & {
51
51
  name: String<32>;
52
- description: Text;
52
+ description?: Text | null;
53
53
  config: Config;
54
54
  platformId?: ForeignKey<"platform"> | null;
55
- folder: String<16>;
55
+ folder?: String<16> | null;
56
56
  super?: Boolean | null;
57
57
  style?: Style | null;
58
58
  entity?: String<32> | null;
@@ -12,7 +12,6 @@ exports.desc = {
12
12
  }
13
13
  },
14
14
  description: {
15
- notNull: true,
16
15
  type: "text"
17
16
  },
18
17
  config: {
@@ -24,7 +23,6 @@ exports.desc = {
24
23
  ref: "platform"
25
24
  },
26
25
  folder: {
27
- notNull: true,
28
26
  type: "varchar",
29
27
  params: {
30
28
  length: 16
@@ -1 +1 @@
1
- { "name": "公众号标签", "attr": { "type": "类型", "application": "关联应用", "wechatId": "微信端id", "title": "标题", "primaryIndustry": "所属一级行业", "deputyIndustry": "所属二级行业", "content": "内容", "example": "示例", "param": "选填参数", "keywordEnumValueList": "枚举参数值范围", "syncAt": "同步时间" }, "v": { "type": { "2": "一次性订阅", "3": "长期订阅" } } }
1
+ { "name": "微信消息模板", "attr": { "type": "类型", "application": "关联应用", "wechatId": "微信端id", "title": "标题", "primaryIndustry": "所属一级行业", "deputyIndustry": "所属二级行业", "content": "内容", "example": "示例", "param": "选填参数", "keywordEnumValueList": "枚举参数值范围", "syncAt": "同步时间" }, "v": { "type": { "2": "一次性订阅", "3": "长期订阅" } } }