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.
- package/es/aspects/withdraw.d.ts +8 -8
- package/es/components/AbstractComponents.d.ts +3 -8
- package/es/components/account/detail/index.js +8 -5
- package/es/components/pay/detail/index.js +8 -5
- package/es/configuration/attrUpdateMatrix.js +8 -0
- package/es/context/BackendRuntimeContext.d.ts +1 -1
- package/es/entities/Order.d.ts +1 -1
- package/es/oak-app-domain/Application/Schema.d.ts +2 -2
- package/es/oak-app-domain/Application/Storage.js +0 -1
- package/es/oak-app-domain/Article/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/ArticleMenu/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/ExtraFile/Schema.d.ts +2 -2
- package/es/oak-app-domain/ExtraFile/Storage.js +1 -1
- package/es/oak-app-domain/Order/Action.d.ts +1 -1
- package/es/oak-app-domain/Order/Storage.js +1 -1
- package/es/oak-app-domain/Platform/Schema.d.ts +2 -2
- package/es/oak-app-domain/Platform/Storage.js +0 -1
- package/es/oak-app-domain/SmsTemplate/Schema.d.ts +6 -5
- package/es/oak-app-domain/SmsTemplate/Storage.js +2 -4
- package/es/oak-app-domain/SmsTemplate/Style.d.ts +3 -0
- package/es/oak-app-domain/SmsTemplate/Style.js +10 -0
- package/es/oak-app-domain/SmsTemplate/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/StyleDict.js +2 -0
- package/es/oak-app-domain/System/Schema.d.ts +4 -4
- package/es/oak-app-domain/System/Storage.js +0 -2
- package/es/oak-app-domain/WechatTemplate/locales/zh_CN.json +1 -1
- package/es/triggers/pay.js +50 -47
- package/es/triggers/withdraw.d.ts +1 -1
- package/es/utils/application.d.ts +1 -1
- package/es/utils/pay.js +4 -1
- package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/es/watchers/pay.js +1 -1
- package/lib/aspects/withdraw.d.ts +12 -12
- package/lib/components/pay/detail/index.js +8 -5
- package/lib/configuration/attrUpdateMatrix.js +8 -0
- package/lib/entities/Order.d.ts +1 -1
- package/lib/oak-app-domain/Application/Schema.d.ts +2 -2
- package/lib/oak-app-domain/Application/Storage.js +0 -1
- package/lib/oak-app-domain/Article/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/ArticleMenu/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/ExtraFile/Schema.d.ts +2 -2
- package/lib/oak-app-domain/ExtraFile/Storage.js +1 -1
- package/lib/oak-app-domain/Order/Action.d.ts +1 -1
- package/lib/oak-app-domain/Order/Storage.js +1 -1
- package/lib/oak-app-domain/Platform/Schema.d.ts +2 -2
- package/lib/oak-app-domain/Platform/Storage.js +0 -1
- package/lib/oak-app-domain/SmsTemplate/Schema.d.ts +6 -5
- package/lib/oak-app-domain/SmsTemplate/Storage.js +2 -4
- package/lib/oak-app-domain/SmsTemplate/Style.d.ts +3 -0
- package/lib/oak-app-domain/SmsTemplate/Style.js +13 -0
- package/lib/oak-app-domain/SmsTemplate/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/StyleDict.js +52 -50
- package/lib/oak-app-domain/System/Schema.d.ts +4 -4
- package/lib/oak-app-domain/System/Storage.js +0 -2
- package/lib/oak-app-domain/WechatTemplate/locales/zh_CN.json +1 -1
- package/lib/triggers/pay.js +50 -47
- package/lib/utils/pay.js +4 -1
- package/lib/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/lib/watchers/pay.js +1 -1
- package/package.json +4 -4
- 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").
|
|
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
|
-
}, {
|
|
158
|
+
}, {
|
|
159
|
+
blockTrigger: true,
|
|
160
|
+
forUpdate: true,
|
|
161
|
+
});
|
|
159
162
|
pay2 = pays[0];
|
|
160
163
|
}
|
|
161
164
|
const { entity, entityId, timeoutAt, price } = pay2;
|
package/es/watchers/pay.js
CHANGED
|
@@ -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, "
|
|
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, "
|
|
16
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "
|
|
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, "
|
|
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, "
|
|
30
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "
|
|
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, "
|
|
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, "
|
|
44
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "
|
|
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, "
|
|
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, "
|
|
58
|
-
withdrawTransfer$withdraw?: import("oak-domain/lib/types").Operation<string, Omit<import("../oak-app-domain/WithdrawTransfer/Schema").UpdateOperationData, "
|
|
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}`]
|
|
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 {
|
|
307
|
-
|
|
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: {
|
package/lib/entities/Order.d.ts
CHANGED
|
@@ -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 = '
|
|
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
|
|
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
|
|
87
|
+
description?: Text | null;
|
|
88
88
|
type: AppType;
|
|
89
89
|
systemId: ForeignKey<"system">;
|
|
90
90
|
config: WebConfig | WechatMpConfig | WechatPublicConfig | NativeConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "文章", "attr": { "name": "
|
|
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<
|
|
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<
|
|
49
|
+
size?: Int<8> | null;
|
|
50
50
|
sort?: Float<22, 10> | null;
|
|
51
51
|
fileType?: String<128> | null;
|
|
52
52
|
isBridge?: Boolean | null;
|
|
@@ -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 = '
|
|
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: ["
|
|
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
|
|
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
|
|
22
|
+
description?: Text | null;
|
|
23
23
|
config: Config;
|
|
24
24
|
style?: Style | null;
|
|
25
25
|
entity?: String<32> | null;
|
|
@@ -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 {
|
|
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:
|
|
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:
|
|
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:
|
|
39
|
+
origin: Q_EnumValue<Origin>;
|
|
39
40
|
templateName: Q_StringValue;
|
|
40
41
|
templateCode: Q_StringValue;
|
|
41
42
|
templateContent: Q_StringValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "
|
|
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("./
|
|
18
|
-
const Style_15 = require("./
|
|
19
|
-
const Style_16 = require("./
|
|
20
|
-
const Style_17 = require("./
|
|
21
|
-
const Style_18 = require("./
|
|
22
|
-
const Style_19 = require("./
|
|
23
|
-
const Style_20 = require("./
|
|
24
|
-
const Style_21 = require("./
|
|
25
|
-
const Style_22 = require("./
|
|
26
|
-
const Style_23 = require("./
|
|
27
|
-
const Style_24 = require("./
|
|
28
|
-
const Style_25 = require("./
|
|
29
|
-
const Style_26 = require("./
|
|
30
|
-
const Style_27 = require("./
|
|
31
|
-
const Style_28 = require("./
|
|
32
|
-
const Style_29 = require("./
|
|
33
|
-
const Style_30 = require("./
|
|
34
|
-
const Style_31 = require("./
|
|
35
|
-
const Style_32 = require("./
|
|
36
|
-
const Style_33 = require("./
|
|
37
|
-
const Style_34 = require("./
|
|
38
|
-
const Style_35 = require("./
|
|
39
|
-
const Style_36 = require("./
|
|
40
|
-
const Style_37 = require("./
|
|
41
|
-
const Style_38 = require("./
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
|
39
|
+
description?: Text | null;
|
|
40
40
|
config: Config;
|
|
41
41
|
platformId?: ForeignKey<"platform"> | null;
|
|
42
|
-
folder
|
|
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
|
|
52
|
+
description?: Text | null;
|
|
53
53
|
config: Config;
|
|
54
54
|
platformId?: ForeignKey<"platform"> | null;
|
|
55
|
-
folder
|
|
55
|
+
folder?: String<16> | null;
|
|
56
56
|
super?: Boolean | null;
|
|
57
57
|
style?: Style | null;
|
|
58
58
|
entity?: String<32> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "
|
|
1
|
+
{ "name": "微信消息模板", "attr": { "type": "类型", "application": "关联应用", "wechatId": "微信端id", "title": "标题", "primaryIndustry": "所属一级行业", "deputyIndustry": "所属二级行业", "content": "内容", "example": "示例", "param": "选填参数", "keywordEnumValueList": "枚举参数值范围", "syncAt": "同步时间" }, "v": { "type": { "2": "一次性订阅", "3": "长期订阅" } } }
|