oak-pay-business 2.3.4 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/aspects/withdraw.d.ts +12 -12
- package/es/components/AbstractComponents.d.ts +15 -5
- package/es/oak-app-domain/ActionDefDict.d.ts +6 -0
- package/es/oak-app-domain/ActionDefDict.js +4 -0
- package/es/oak-app-domain/Application/Schema.d.ts +10 -0
- package/es/oak-app-domain/Domain/Schema.d.ts +3 -3
- package/es/oak-app-domain/Domain/Storage.js +1 -1
- package/es/oak-app-domain/Domain/Style.js +2 -2
- package/es/oak-app-domain/Domain/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/EntityDict.d.ts +2 -0
- package/es/oak-app-domain/Log/Action.d.ts +12 -0
- package/es/oak-app-domain/Log/Action.js +11 -0
- package/es/oak-app-domain/Log/Schema.d.ts +111 -0
- package/es/oak-app-domain/Log/Schema.js +1 -0
- package/es/oak-app-domain/Log/Storage.d.ts +3 -0
- package/es/oak-app-domain/Log/Storage.js +25 -0
- package/es/oak-app-domain/Log/Style.d.ts +3 -0
- package/es/oak-app-domain/Log/Style.js +12 -0
- package/es/oak-app-domain/Log/locales/zh_CN.json +1 -0
- package/es/oak-app-domain/Oper/Action.d.ts +12 -0
- package/es/oak-app-domain/Oper/Action.js +11 -0
- package/es/oak-app-domain/Oper/Schema.d.ts +56 -6
- package/es/oak-app-domain/Oper/Storage.js +13 -2
- package/es/oak-app-domain/Oper/Style.d.ts +3 -0
- package/es/oak-app-domain/Oper/Style.js +12 -0
- package/es/oak-app-domain/Oper/locales/zh_CN.json +1 -1
- package/es/oak-app-domain/OperEntity/Schema.d.ts +12 -1
- package/es/oak-app-domain/Passport/Schema.d.ts +1 -0
- package/es/oak-app-domain/Storage.js +2 -0
- package/es/oak-app-domain/StyleDict.js +4 -0
- package/es/oak-app-domain/User/Schema.d.ts +2 -2
- package/es/oak-app-domain/_SubQuery.d.ts +8 -0
- package/es/triggers/withdraw.d.ts +1 -1
- package/es/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/lib/aspects/withdraw.d.ts +4 -4
- package/lib/context/BackendRuntimeContext.d.ts +1 -1
- package/lib/oak-app-domain/ActionDefDict.d.ts +6 -0
- package/lib/oak-app-domain/ActionDefDict.js +60 -56
- package/lib/oak-app-domain/Application/Schema.d.ts +10 -0
- package/lib/oak-app-domain/Domain/Schema.d.ts +3 -3
- package/lib/oak-app-domain/Domain/Storage.js +1 -1
- package/lib/oak-app-domain/Domain/Style.js +2 -2
- package/lib/oak-app-domain/Domain/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/EntityDict.d.ts +2 -0
- package/lib/oak-app-domain/Log/Action.d.ts +12 -0
- package/lib/oak-app-domain/Log/Action.js +14 -0
- package/lib/oak-app-domain/Log/Schema.d.ts +111 -0
- package/lib/oak-app-domain/Log/Schema.js +2 -0
- package/lib/oak-app-domain/Log/Storage.d.ts +3 -0
- package/lib/oak-app-domain/Log/Storage.js +28 -0
- package/lib/oak-app-domain/Log/Style.d.ts +3 -0
- package/lib/oak-app-domain/Log/Style.js +15 -0
- package/lib/oak-app-domain/Log/locales/zh_CN.json +1 -0
- package/lib/oak-app-domain/Oper/Action.d.ts +12 -0
- package/lib/oak-app-domain/Oper/Action.js +14 -0
- package/lib/oak-app-domain/Oper/Schema.d.ts +56 -6
- package/lib/oak-app-domain/Oper/Storage.js +14 -3
- package/lib/oak-app-domain/Oper/Style.d.ts +3 -0
- package/lib/oak-app-domain/Oper/Style.js +15 -0
- package/lib/oak-app-domain/Oper/locales/zh_CN.json +1 -1
- package/lib/oak-app-domain/OperEntity/Schema.d.ts +12 -1
- package/lib/oak-app-domain/Passport/Schema.d.ts +1 -0
- package/lib/oak-app-domain/Storage.js +146 -144
- package/lib/oak-app-domain/StyleDict.js +86 -82
- package/lib/oak-app-domain/User/Schema.d.ts +2 -2
- package/lib/oak-app-domain/_SubQuery.d.ts +8 -0
- package/lib/utils/application.d.ts +1 -1
- package/lib/utils/payClazz/WechatPay/index.d.ts +1 -1
- package/package.json +4 -4
package/es/aspects/withdraw.d.ts
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, "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;
|
|
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, "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;
|
|
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, "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;
|
|
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, "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;
|
|
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;
|
|
@@ -18,11 +18,16 @@ declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<Enti
|
|
|
18
18
|
data: RowWithActions<EntityDict, T>[];
|
|
19
19
|
loading: boolean;
|
|
20
20
|
tablePagination?: React.ReactNode;
|
|
21
|
-
rowSelection?:
|
|
21
|
+
rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<EntityDict, T>> | undefined;
|
|
22
22
|
hideHeader?: boolean | undefined;
|
|
23
23
|
disableSerialNumber?: boolean | undefined;
|
|
24
24
|
size?: "small" | "middle" | "large" | undefined;
|
|
25
|
-
scroll?:
|
|
25
|
+
scroll?: ({
|
|
26
|
+
x?: string | number | true | undefined;
|
|
27
|
+
y?: string | number | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
scrollToFirstRowOnChange?: boolean | undefined;
|
|
30
|
+
}) | undefined;
|
|
26
31
|
empty?: React.ReactNode;
|
|
27
32
|
opWidth?: number | undefined;
|
|
28
33
|
ellipsis?: boolean | undefined;
|
|
@@ -41,16 +46,21 @@ declare const ListPro: <T extends keyof EntityDict>(props: {
|
|
|
41
46
|
data: RowWithActions<EntityDict, T>[];
|
|
42
47
|
loading?: boolean | undefined;
|
|
43
48
|
tablePagination?: any;
|
|
44
|
-
rowSelection?:
|
|
49
|
+
rowSelection?: import("antd/es/table/interface").TableRowSelection<RowWithActions<EntityDict, T>> | undefined;
|
|
45
50
|
disableSerialNumber?: boolean | undefined;
|
|
46
51
|
size?: "small" | "middle" | "large" | undefined;
|
|
47
|
-
scroll?:
|
|
52
|
+
scroll?: ({
|
|
53
|
+
x?: string | number | true | undefined;
|
|
54
|
+
y?: string | number | undefined;
|
|
55
|
+
} & {
|
|
56
|
+
scrollToFirstRowOnChange?: boolean | undefined;
|
|
57
|
+
}) | undefined;
|
|
48
58
|
empty?: any;
|
|
49
59
|
opWidth?: number | undefined;
|
|
50
60
|
oakPath?: string | undefined;
|
|
51
61
|
}) => React.ReactElement;
|
|
52
62
|
declare const Detail: <T extends keyof EntityDict>(props: ReactComponentProps<EntityDict, T, false, {
|
|
53
|
-
column?: number | Record<Breakpoint, number> | undefined;
|
|
63
|
+
column?: number | Record<import("antd").Breakpoint, number> | undefined;
|
|
54
64
|
entity: T;
|
|
55
65
|
attributes: OakAbsAttrDef[];
|
|
56
66
|
data: Partial<EntityDict[T]["Schema"]>;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
export declare const actionDefDict: {
|
|
2
|
+
log: {
|
|
3
|
+
iState: import("oak-domain/lib/types").ActionDef<string, string>;
|
|
4
|
+
};
|
|
2
5
|
modi: {
|
|
3
6
|
iState: import("oak-domain/lib/types").ActionDef<string, string>;
|
|
4
7
|
};
|
|
8
|
+
oper: {
|
|
9
|
+
iState: import("oak-domain/lib/types").ActionDef<string, string>;
|
|
10
|
+
};
|
|
5
11
|
captcha: {
|
|
6
12
|
iState: import("oak-domain/lib/types").ActionDef<string, string>;
|
|
7
13
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { actionDefDict as log } from "./Log/Action";
|
|
1
2
|
import { actionDefDict as modi } from "./Modi/Action";
|
|
3
|
+
import { actionDefDict as oper } from "./Oper/Action";
|
|
2
4
|
import { actionDefDict as captcha } from "./Captcha/Action";
|
|
3
5
|
import { actionDefDict as email } from "./Email/Action";
|
|
4
6
|
import { actionDefDict as loginName } from "./LoginName/Action";
|
|
@@ -27,7 +29,9 @@ import { actionDefDict as withdrawChannel } from "./WithdrawChannel/Action";
|
|
|
27
29
|
import { actionDefDict as withdrawTransfer } from "./WithdrawTransfer/Action";
|
|
28
30
|
import { actionDefDict as wpAccount } from "./WpAccount/Action";
|
|
29
31
|
export const actionDefDict = {
|
|
32
|
+
log,
|
|
30
33
|
modi,
|
|
34
|
+
oper,
|
|
31
35
|
captcha,
|
|
32
36
|
email,
|
|
33
37
|
loginName,
|
|
@@ -47,6 +47,11 @@ export type WebConfig = {
|
|
|
47
47
|
enable?: boolean;
|
|
48
48
|
};
|
|
49
49
|
passport?: Passport[];
|
|
50
|
+
location: {
|
|
51
|
+
protocol: "http:" | "https:";
|
|
52
|
+
hostname: string;
|
|
53
|
+
port: string;
|
|
54
|
+
};
|
|
50
55
|
};
|
|
51
56
|
export type WechatPublicTemplateMsgsConfig = Record<string, string>;
|
|
52
57
|
export type WechatPublicConfig = {
|
|
@@ -68,6 +73,11 @@ export type WechatPublicConfig = {
|
|
|
68
73
|
originalId: string;
|
|
69
74
|
};
|
|
70
75
|
passport?: Passport[];
|
|
76
|
+
location: {
|
|
77
|
+
protocol: "http:" | "https:";
|
|
78
|
+
hostname: string;
|
|
79
|
+
port: string;
|
|
80
|
+
};
|
|
71
81
|
};
|
|
72
82
|
export type NativeConfig = {
|
|
73
83
|
type: "native";
|
|
@@ -9,7 +9,7 @@ import * as Application from "../Application/Schema";
|
|
|
9
9
|
export type OpSchema = EntityShape & {
|
|
10
10
|
url: String<64>;
|
|
11
11
|
apiPath?: String<32> | null;
|
|
12
|
-
protocol: "http" | "https";
|
|
12
|
+
protocol: "http:" | "https:";
|
|
13
13
|
port: Int<2>;
|
|
14
14
|
systemId: ForeignKey<"system">;
|
|
15
15
|
};
|
|
@@ -17,7 +17,7 @@ export type OpAttr = keyof OpSchema;
|
|
|
17
17
|
export type Schema = EntityShape & {
|
|
18
18
|
url: String<64>;
|
|
19
19
|
apiPath?: String<32> | null;
|
|
20
|
-
protocol: "http" | "https";
|
|
20
|
+
protocol: "http:" | "https:";
|
|
21
21
|
port: Int<2>;
|
|
22
22
|
systemId: ForeignKey<"system">;
|
|
23
23
|
system: System.Schema;
|
|
@@ -33,7 +33,7 @@ type AttrFilter = {
|
|
|
33
33
|
$$updateAt$$: Q_DateValue;
|
|
34
34
|
url: Q_StringValue;
|
|
35
35
|
apiPath: Q_StringValue;
|
|
36
|
-
protocol: Q_EnumValue<"http" | "https">;
|
|
36
|
+
protocol: Q_EnumValue<"http:" | "https:">;
|
|
37
37
|
port: Q_NumberValue;
|
|
38
38
|
systemId: Q_StringValue;
|
|
39
39
|
system: System.Filter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "域名", "attr": { "url": "域名", "apiPath": "api路径", "protocol": "协议", "port": "端口", "system": "系统" }, "v": { "protocol": { "http": "http", "https": "https" } } }
|
|
1
|
+
{ "name": "域名", "attr": { "url": "域名", "apiPath": "api路径", "protocol": "协议", "port": "端口", "system": "系统" }, "v": { "protocol": { "http:": "http", "https:": "https" } } }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EntityDef as ActionAuth } from "./ActionAuth/Schema";
|
|
2
2
|
import { EntityDef as I18n } from "./I18n/Schema";
|
|
3
|
+
import { EntityDef as Log } from "./Log/Schema";
|
|
3
4
|
import { EntityDef as Modi } from "./Modi/Schema";
|
|
4
5
|
import { EntityDef as ModiEntity } from "./ModiEntity/Schema";
|
|
5
6
|
import { EntityDef as Oper } from "./Oper/Schema";
|
|
@@ -75,6 +76,7 @@ import { EntityDef as WpProduct } from "./WpProduct/Schema";
|
|
|
75
76
|
export type EntityDict = {
|
|
76
77
|
actionAuth: ActionAuth;
|
|
77
78
|
i18n: I18n;
|
|
79
|
+
log: Log;
|
|
78
80
|
modi: Modi;
|
|
79
81
|
modiEntity: ModiEntity;
|
|
80
82
|
oper: Oper;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ActionDef } from "oak-domain/lib/types/Action";
|
|
2
|
+
import { GenericAction } from "oak-domain/lib/actions/action";
|
|
3
|
+
export type IState = 'normal' | 'rollbacked' | string;
|
|
4
|
+
export type State = IState | string;
|
|
5
|
+
export type IAction = 'undo' | 'redo' | string;
|
|
6
|
+
export type ParticularAction = IAction;
|
|
7
|
+
export declare const actions: string[];
|
|
8
|
+
export declare const IActionDef: ActionDef<IAction, IState>;
|
|
9
|
+
export type Action = GenericAction | ParticularAction | string;
|
|
10
|
+
export declare const actionDefDict: {
|
|
11
|
+
iState: ActionDef<string, string>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "undo", "redo"];
|
|
2
|
+
export const IActionDef = {
|
|
3
|
+
stm: {
|
|
4
|
+
undo: ['normal', 'rollbacked'],
|
|
5
|
+
redo: ['rollbacked', 'normal'],
|
|
6
|
+
},
|
|
7
|
+
is: 'normal',
|
|
8
|
+
};
|
|
9
|
+
export const actionDefDict = {
|
|
10
|
+
iState: IActionDef
|
|
11
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Q_DateValue, Q_NumberValue, Q_StringValue, Q_EnumValue, NodeId, MakeFilter, ExprOp, ExpressionKey, SubQueryPredicateMetadata } from "oak-domain/lib/types/Demand";
|
|
2
|
+
import { OneOf } from "oak-domain/lib/types/Polyfill";
|
|
3
|
+
import { FormCreateData, FormUpdateData, DeduceAggregation, Operation as OakOperation, Selection as OakSelection, MakeAction as OakMakeAction, AggregationResult, EntityShape } from "oak-domain/lib/types/Entity";
|
|
4
|
+
import { Action, ParticularAction, IState } from "./Action";
|
|
5
|
+
import { String } from "oak-domain/lib/types/DataType";
|
|
6
|
+
import * as Oper from "../Oper/Schema";
|
|
7
|
+
export type OpSchema = EntityShape & {
|
|
8
|
+
entity: String<32>;
|
|
9
|
+
entityId: String<64>;
|
|
10
|
+
iState?: IState | null;
|
|
11
|
+
};
|
|
12
|
+
export type OpAttr = keyof OpSchema;
|
|
13
|
+
export type Schema = EntityShape & {
|
|
14
|
+
entity: String<32>;
|
|
15
|
+
entityId: String<64>;
|
|
16
|
+
iState?: IState | null;
|
|
17
|
+
oper$log?: Array<Oper.Schema>;
|
|
18
|
+
oper$log$$aggr?: AggregationResult<Oper.Schema>;
|
|
19
|
+
} & {
|
|
20
|
+
[A in ExpressionKey]?: any;
|
|
21
|
+
};
|
|
22
|
+
type AttrFilter = {
|
|
23
|
+
id: Q_StringValue;
|
|
24
|
+
$$createAt$$: Q_DateValue;
|
|
25
|
+
$$seq$$: Q_NumberValue;
|
|
26
|
+
$$updateAt$$: Q_DateValue;
|
|
27
|
+
entity: Q_StringValue;
|
|
28
|
+
entityId: Q_StringValue;
|
|
29
|
+
iState: Q_EnumValue<IState>;
|
|
30
|
+
oper$log: Oper.Filter & SubQueryPredicateMetadata;
|
|
31
|
+
};
|
|
32
|
+
export type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
|
33
|
+
export type Projection = {
|
|
34
|
+
"#id"?: NodeId;
|
|
35
|
+
[k: string]: any;
|
|
36
|
+
id?: number;
|
|
37
|
+
$$createAt$$?: number;
|
|
38
|
+
$$updateAt$$?: number;
|
|
39
|
+
$$seq$$?: number;
|
|
40
|
+
entity?: number;
|
|
41
|
+
entityId?: number;
|
|
42
|
+
iState?: number;
|
|
43
|
+
oper$log?: Oper.Selection & {
|
|
44
|
+
$entity: "oper";
|
|
45
|
+
};
|
|
46
|
+
oper$log$$aggr?: Oper.Aggregation & {
|
|
47
|
+
$entity: "oper";
|
|
48
|
+
};
|
|
49
|
+
} & Partial<ExprOp<OpAttr | string>>;
|
|
50
|
+
type LogIdProjection = OneOf<{
|
|
51
|
+
id: number;
|
|
52
|
+
}>;
|
|
53
|
+
export type SortAttr = {
|
|
54
|
+
id: number;
|
|
55
|
+
} | {
|
|
56
|
+
$$createAt$$: number;
|
|
57
|
+
} | {
|
|
58
|
+
$$seq$$: number;
|
|
59
|
+
} | {
|
|
60
|
+
$$updateAt$$: number;
|
|
61
|
+
} | {
|
|
62
|
+
entity: number;
|
|
63
|
+
} | {
|
|
64
|
+
entityId: number;
|
|
65
|
+
} | {
|
|
66
|
+
iState: number;
|
|
67
|
+
} | {
|
|
68
|
+
[k: string]: any;
|
|
69
|
+
} | OneOf<ExprOp<OpAttr | string>>;
|
|
70
|
+
export type SortNode = {
|
|
71
|
+
$attr: SortAttr;
|
|
72
|
+
$direction?: "asc" | "desc";
|
|
73
|
+
};
|
|
74
|
+
export type Sorter = SortNode[];
|
|
75
|
+
export type SelectOperation<P extends Object = Projection> = OakSelection<"select", P, Filter, Sorter>;
|
|
76
|
+
export type Selection<P extends Object = Projection> = SelectOperation<P>;
|
|
77
|
+
export type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
|
|
78
|
+
export type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "entityId">> & ({
|
|
79
|
+
entity?: string;
|
|
80
|
+
entityId?: string;
|
|
81
|
+
[K: string]: any;
|
|
82
|
+
}) & {
|
|
83
|
+
oper$log?: OakOperation<Oper.UpdateOperation["action"], Omit<Oper.UpdateOperationData, "log" | "logId">, Omit<Oper.Filter, "log" | "logId">> | OakOperation<"create", Omit<Oper.CreateOperationData, "log" | "logId">[]> | Array<OakOperation<"create", Omit<Oper.CreateOperationData, "log" | "logId">> | OakOperation<Oper.UpdateOperation["action"], Omit<Oper.UpdateOperationData, "log" | "logId">, Omit<Oper.Filter, "log" | "logId">>>;
|
|
84
|
+
};
|
|
85
|
+
export type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
|
|
86
|
+
export type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
|
|
87
|
+
export type CreateOperation = CreateSingleOperation | CreateMultipleOperation;
|
|
88
|
+
export type UpdateOperationData = FormUpdateData<OpSchema> & {
|
|
89
|
+
[k: string]: any;
|
|
90
|
+
oper$log?: OakOperation<Oper.UpdateOperation["action"], Omit<Oper.UpdateOperationData, "log" | "logId">, Omit<Oper.Filter, "log" | "logId">> | OakOperation<Oper.RemoveOperation["action"], Omit<Oper.RemoveOperationData, "log" | "logId">, Omit<Oper.Filter, "log" | "logId">> | OakOperation<"create", Omit<Oper.CreateOperationData, "log" | "logId">[]> | Array<OakOperation<"create", Omit<Oper.CreateOperationData, "log" | "logId">> | OakOperation<Oper.UpdateOperation["action"], Omit<Oper.UpdateOperationData, "log" | "logId">, Omit<Oper.Filter, "log" | "logId">> | OakOperation<Oper.RemoveOperation["action"], Omit<Oper.RemoveOperationData, "log" | "logId">, Omit<Oper.Filter, "log" | "logId">>>;
|
|
91
|
+
};
|
|
92
|
+
export type UpdateOperation = OakOperation<"update" | ParticularAction | string, UpdateOperationData, Filter, Sorter>;
|
|
93
|
+
export type RemoveOperationData = {};
|
|
94
|
+
export type RemoveOperation = OakOperation<"remove", RemoveOperationData, Filter, Sorter>;
|
|
95
|
+
export type Operation = CreateOperation | UpdateOperation | RemoveOperation;
|
|
96
|
+
export type LogIdSubQuery = Selection<LogIdProjection>;
|
|
97
|
+
export type EntityDef = {
|
|
98
|
+
Schema: Schema;
|
|
99
|
+
OpSchema: OpSchema;
|
|
100
|
+
Action: OakMakeAction<Action> | string;
|
|
101
|
+
Selection: Selection;
|
|
102
|
+
Aggregation: Aggregation;
|
|
103
|
+
Operation: Operation;
|
|
104
|
+
Create: CreateOperation;
|
|
105
|
+
Update: UpdateOperation;
|
|
106
|
+
Remove: RemoveOperation;
|
|
107
|
+
CreateSingle: CreateSingleOperation;
|
|
108
|
+
CreateMulti: CreateMultipleOperation;
|
|
109
|
+
ParticularAction: ParticularAction;
|
|
110
|
+
};
|
|
111
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { actions } from "./Action";
|
|
2
|
+
export const desc = {
|
|
3
|
+
attributes: {
|
|
4
|
+
entity: {
|
|
5
|
+
notNull: true,
|
|
6
|
+
type: "varchar",
|
|
7
|
+
params: {
|
|
8
|
+
length: 32
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
entityId: {
|
|
12
|
+
notNull: true,
|
|
13
|
+
type: "varchar",
|
|
14
|
+
params: {
|
|
15
|
+
length: 64
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
iState: {
|
|
19
|
+
type: "enum",
|
|
20
|
+
enumeration: ["normal", "rollbacked"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
actionType: "crud",
|
|
24
|
+
actions
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "name": "日志", "attr": { "entity": "关联对象", "entityId": "关联对象ID", "iState": "状态" }, "action": { "undo": "回滚", "redo": "重做" }, "v": { "iState": { "normal": "正常的", "rollbacked": "已回滚" } } }
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ActionDef } from "oak-domain/lib/types/Action";
|
|
2
|
+
import { GenericAction } from "oak-domain/lib/actions/action";
|
|
3
|
+
export type IState = 'normal' | 'rollbacked' | string;
|
|
4
|
+
export type State = IState | string;
|
|
5
|
+
export type IAction = 'undo' | 'redo' | string;
|
|
6
|
+
export type ParticularAction = IAction;
|
|
7
|
+
export declare const actions: string[];
|
|
8
|
+
export declare const IActionDef: ActionDef<IAction, IState>;
|
|
9
|
+
export type Action = GenericAction | ParticularAction | string;
|
|
10
|
+
export declare const actionDefDict: {
|
|
11
|
+
iState: ActionDef<string, string>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const actions = ["count", "stat", "download", "select", "aggregate", "create", "remove", "update", "undo", "redo"];
|
|
2
|
+
export const IActionDef = {
|
|
3
|
+
stm: {
|
|
4
|
+
undo: ['normal', 'rollbacked'],
|
|
5
|
+
redo: ['rollbacked', 'normal'],
|
|
6
|
+
},
|
|
7
|
+
is: 'normal',
|
|
8
|
+
};
|
|
9
|
+
export const actionDefDict = {
|
|
10
|
+
iState: IActionDef
|
|
11
|
+
};
|