@freelog/tools-lib 0.1.46 → 0.1.50
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/dist/service-API/contracts.d.ts +3 -1
- package/dist/service-API/transactions.d.ts +7 -0
- package/dist/tools-lib.cjs.development.js +17 -2
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +17 -2
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/predefined.d.ts +2 -0
- package/package.json +1 -1
- package/src/service-API/contracts.ts +3 -1
- package/src/service-API/transactions.ts +16 -0
- package/src/utils/predefined.ts +37 -33
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const resourceTypes: string[];
|
|
2
2
|
export declare const pageSize: number;
|
|
3
|
+
export declare const momentDateFormat: string;
|
|
4
|
+
export declare const momentDateTimeFormat: string;
|
|
3
5
|
export declare enum EnumContractPartyIdentityType {
|
|
4
6
|
resource = 1,
|
|
5
7
|
node = 2,
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ interface ContractsParamsType {
|
|
|
24
24
|
licensorId?: string;
|
|
25
25
|
licenseeId?: string;
|
|
26
26
|
subjectIds?: string;
|
|
27
|
-
subjectType?:
|
|
27
|
+
subjectType?: 1 | 2 | 3;
|
|
28
28
|
isDefault?: number;
|
|
29
29
|
keywords?: string;
|
|
30
30
|
status?: 0 | 1 | 2; // 合同状态 0:生效中 1:已终止 2:异常的
|
|
@@ -33,6 +33,8 @@ interface ContractsParamsType {
|
|
|
33
33
|
licenseeIdentityType?: number;
|
|
34
34
|
isLoadPolicyInfo?: 0 | 1;
|
|
35
35
|
isTranslate?: 0 | 1;
|
|
36
|
+
startDate?: string;
|
|
37
|
+
endDate?: string;
|
|
36
38
|
projection?: string;
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -87,3 +87,19 @@ export function resetPassword({...params}: ResetPasswordParamsType) {
|
|
|
87
87
|
data: params,
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
+
|
|
91
|
+
// 验证交易密码
|
|
92
|
+
interface VerifyTransactionPasswordParamsType {
|
|
93
|
+
loginPassword: string;
|
|
94
|
+
password: string;
|
|
95
|
+
authCode: string;
|
|
96
|
+
messageAddress: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function verifyTransactionPassword({...params}: VerifyTransactionPasswordParamsType) {
|
|
100
|
+
return FUtil.Request({
|
|
101
|
+
method: 'GET',
|
|
102
|
+
url: `/v2/accounts/individualAccounts/verifyTransactionPassword?password=123456`,
|
|
103
|
+
data: params,
|
|
104
|
+
});
|
|
105
|
+
}
|
package/src/utils/predefined.ts
CHANGED
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
// export const apiHost = `${window.location.protocol}//qi.${(window.location.host.match(/(?<=\.).*/) || [''])[0]}`;
|
|
2
|
-
|
|
3
|
-
// 预设资源类型
|
|
4
|
-
export const resourceTypes: string[] = ['json', 'widget', 'image', 'audio', 'markdown', 'theme', 'reveal_slide', 'license', 'video', 'catalog'];
|
|
5
|
-
|
|
6
|
-
// 全局列表加载条目数
|
|
7
|
-
export const pageSize: number =
|
|
8
|
-
|
|
9
|
-
//
|
|
10
|
-
export
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
// export const apiHost = `${window.location.protocol}//qi.${(window.location.host.match(/(?<=\.).*/) || [''])[0]}`;
|
|
2
|
+
|
|
3
|
+
// 预设资源类型
|
|
4
|
+
export const resourceTypes: string[] = ['json', 'widget', 'image', 'audio', 'markdown', 'theme', 'reveal_slide', 'license', 'video', 'catalog'];
|
|
5
|
+
|
|
6
|
+
// 全局列表加载条目数
|
|
7
|
+
export const pageSize: number = 100;
|
|
8
|
+
|
|
9
|
+
// Moment 日期时间格式
|
|
10
|
+
export const momentDateFormat: string = 'YYYY-MM-DD'
|
|
11
|
+
export const momentDateTimeFormat: string = 'YYYY-MM-DD HH:mm';
|
|
12
|
+
|
|
13
|
+
// 签约方用户的身份类型定义
|
|
14
|
+
export enum EnumContractPartyIdentityType {
|
|
15
|
+
resource = 1,
|
|
16
|
+
node,
|
|
17
|
+
consumer,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// 标的物类型定义
|
|
21
|
+
export enum EnumSubjectType {
|
|
22
|
+
resource = 1,
|
|
23
|
+
exhibit,
|
|
24
|
+
user,
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 合约状态定义
|
|
28
|
+
export enum EnumContractStatus {
|
|
29
|
+
pending,
|
|
30
|
+
authorized,
|
|
31
|
+
stopped,
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// 合约授权状态定义
|
|
35
|
+
// export enum ContractAuthStatus {
|
|
36
|
+
//
|
|
37
|
+
// }
|