oak-pay-business 2.3.1 → 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.
@@ -21,7 +21,7 @@ declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<Enti
21
21
  rowSelection?: any;
22
22
  hideHeader?: boolean | undefined;
23
23
  disableSerialNumber?: boolean | undefined;
24
- size?: "small" | "middle" | "large" | undefined;
24
+ size?: "large" | "middle" | "small" | undefined;
25
25
  scroll?: any;
26
26
  empty?: React.ReactNode;
27
27
  opWidth?: number | undefined;
@@ -43,7 +43,7 @@ declare const ListPro: <T extends keyof EntityDict>(props: {
43
43
  tablePagination?: any;
44
44
  rowSelection?: any;
45
45
  disableSerialNumber?: boolean | undefined;
46
- size?: "small" | "middle" | "large" | undefined;
46
+ size?: "large" | "middle" | "small" | undefined;
47
47
  scroll?: any;
48
48
  empty?: any;
49
49
  opWidth?: number | undefined;
@@ -1,7 +1,3 @@
1
- /**
2
- * 抽象组件在业务层根据EntityDict的重新声明
3
- * by Xc 20230807
4
- */
5
1
  import AbsFilterPanel from 'oak-frontend-base/es/components/filterPanel';
6
2
  import AbsList from 'oak-frontend-base/es/components/list';
7
3
  import AbsListPro from 'oak-frontend-base/es/components/listPro';
@@ -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, '', {
@@ -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;
@@ -75,7 +75,7 @@ export const desc = {
75
75
  size: {
76
76
  type: "int",
77
77
  params: {
78
- width: 4,
78
+ width: 8,
79
79
  signed: true
80
80
  }
81
81
  },
@@ -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[];
@@ -60,7 +60,7 @@ export const desc = {
60
60
  },
61
61
  iState: {
62
62
  type: "enum",
63
- enumeration: ["paid", "unpaid", "timeout", "cancelled", "paying", "partiallyPaid", "paid", "refunding", "partiallyRefunded", "refunded"]
63
+ enumeration: ["unpaid", "timeout", "cancelled", "paying", "partiallyPaid", "paid", "refunding", "partiallyRefunded", "refunded"]
64
64
  }
65
65
  },
66
66
  actionType: "crud",
@@ -6,6 +6,6 @@ import { BRC } from '../types/RuntimeCxt';
6
6
  * @param context
7
7
  * @param refunds
8
8
  */
9
- export declare function updateWithdrawState(context: BRC, id: string): Promise<1 | 0>;
9
+ export declare function updateWithdrawState(context: BRC, id: string): Promise<0 | 1>;
10
10
  declare const triggers: Trigger<EntityDict, 'withdraw', BRC>[];
11
11
  export default triggers;
@@ -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;
@@ -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;
@@ -17,7 +17,7 @@ export declare function getWithdrawCreateData(params: {
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;
@@ -31,7 +31,7 @@ export declare function getWithdrawCreateData(params: {
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;
@@ -45,7 +45,7 @@ export declare function getWithdrawCreateData(params: {
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;
@@ -15,7 +15,7 @@ export declare class BackendRuntimeContext<ED extends EntityDict & BaseEntityDic
15
15
  type?: number | undefined;
16
16
  systemId?: number | undefined;
17
17
  system?: import("../oak-app-domain/System/Schema").Projection | undefined;
18
- 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
+ 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;
19
19
  style?: number | import("oak-domain/lib/types").JsonProjection<import("oak-general-business/lib/types/Style").Style> | undefined;
20
20
  domainId?: number | undefined;
21
21
  domain?: import("../oak-app-domain/Domain/Schema").Projection | undefined;
@@ -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, '', {
@@ -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",
@@ -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").WebConfig | import("../oak-app-domain/Application/Schema").WechatMpConfig | 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").WechatMpConfig | import("../oak-app-domain/Application/Schema").WebConfig | 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;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oak-pay-business",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib/**/*",
@@ -29,9 +29,9 @@
29
29
  "dependencies": {
30
30
  "classnames": "^2.3.1",
31
31
  "dayjs": "^1.11.5",
32
- "oak-domain": "~5.0.16",
33
- "oak-frontend-base": "~5.3.0",
34
- "oak-general-business": "~5.2.8",
32
+ "oak-domain": "~5.0.19",
33
+ "oak-frontend-base": "~5.3.4",
34
+ "oak-general-business": "~5.2.11",
35
35
  "wechat-pay-nodejs": "^0.2.3"
36
36
  },
37
37
  "peerDependencies": {
@@ -28,7 +28,7 @@ export interface Schema extends EntityShape {
28
28
  };
29
29
 
30
30
  export type IAction = 'startPaying' | 'payAll' | 'payPartially' | 'payNone' | 'timeout' | 'cancel' | 'startRefunding' | 'refundAll' | 'refundPartially' | 'refundNone';
31
- export type IState = 'paid' | 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded';
31
+ export type IState = 'unpaid' | 'timeout' | 'cancelled' | 'paying' | 'partiallyPaid' | 'paid' | 'refunding' | 'partiallyRefunded' | 'refunded';
32
32
 
33
33
  export const IActionDef: ActionDef<IAction, IState> = {
34
34
  stm: {