@freelog/tools-lib 0.1.53 → 0.1.58
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/transactions.d.ts +8 -1
- package/dist/tools-lib.cjs.development.js +8 -6
- 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 +8 -6
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/regexp.d.ts +1 -0
- package/package.json +2 -2
- package/src/service-API/informalNodes.ts +1 -1
- package/src/service-API/resources.ts +451 -451
- package/src/service-API/transactions.ts +8 -1
- package/src/utils/format.ts +89 -89
- package/src/utils/regexp.ts +8 -5
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
interface DetailsParamsType {
|
|
2
|
-
accountId: string;
|
|
3
2
|
skip?: number;
|
|
4
3
|
limit?: number;
|
|
4
|
+
accountId: string;
|
|
5
|
+
startCreatedDate?: string;
|
|
6
|
+
endCreatedDate?: string;
|
|
7
|
+
amountStartPoint?: number;
|
|
8
|
+
amountEndPoint?: number;
|
|
9
|
+
serialNo?: string;
|
|
10
|
+
status?: 1 | 2 | 3;
|
|
11
|
+
keywords?: string;
|
|
5
12
|
}
|
|
6
13
|
export declare function details({ accountId, ...params }: DetailsParamsType): Promise<any>;
|
|
7
14
|
interface IndividualAccountsParamsType {
|
|
@@ -980,7 +980,9 @@ var EMAIL_ADDRESS = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; // 用户
|
|
|
980
980
|
var USERNAME = /^(?!-)[A-Za-z0-9-]{1,30}(?<!-)$/; // 用户密码
|
|
981
981
|
// export const PASSWORD = /^(?=.*[a-zA-Z])(?=.*[0-9]).{6,24}$/;
|
|
982
982
|
|
|
983
|
-
var PASSWORD = /^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,24})$/;
|
|
983
|
+
var PASSWORD = /^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,24})$/; // 自然数
|
|
984
|
+
|
|
985
|
+
var NATURAL_NUMBER = /^[0-9]*$/;
|
|
984
986
|
|
|
985
987
|
var Regexp = {
|
|
986
988
|
__proto__: null,
|
|
@@ -994,7 +996,8 @@ var Regexp = {
|
|
|
994
996
|
MOBILE_PHONE_NUMBER: MOBILE_PHONE_NUMBER,
|
|
995
997
|
EMAIL_ADDRESS: EMAIL_ADDRESS,
|
|
996
998
|
USERNAME: USERNAME,
|
|
997
|
-
PASSWORD: PASSWORD
|
|
999
|
+
PASSWORD: PASSWORD,
|
|
1000
|
+
NATURAL_NUMBER: NATURAL_NUMBER
|
|
998
1001
|
};
|
|
999
1002
|
|
|
1000
1003
|
var _excluded = ["resourceID"],
|
|
@@ -2188,7 +2191,7 @@ function resourceIsUsedByOther(params) {
|
|
|
2188
2191
|
});
|
|
2189
2192
|
}
|
|
2190
2193
|
function resourcesDownload(params) {
|
|
2191
|
-
return window.location.href = FUtil.Format.completeUrlByDomain('qi'
|
|
2194
|
+
return window.location.href = FUtil.Format.completeUrlByDomain('qi') + ("/v2/resources/" + params.resourceId + "/versions/" + params.version + "/download"); // return request.get(`/v2/resources/${params.resourceId}/versions/${params.$version}/download`, {
|
|
2192
2195
|
// responseType: 'arraybuffer',
|
|
2193
2196
|
// });
|
|
2194
2197
|
}
|
|
@@ -2209,8 +2212,7 @@ function resolveResources(params) {
|
|
|
2209
2212
|
// return FUtil.Axios.get(`/v2/resources/${params.resourceId}/resolveResources`);
|
|
2210
2213
|
return FUtil.Request({
|
|
2211
2214
|
method: 'GET',
|
|
2212
|
-
url: "/v2/resources/" + params.resourceId + "/resolveResources"
|
|
2213
|
-
params: params
|
|
2215
|
+
url: "/v2/resources/" + params.resourceId + "/resolveResources"
|
|
2214
2216
|
});
|
|
2215
2217
|
}
|
|
2216
2218
|
function batchSetContracts(_ref8) {
|
|
@@ -2527,7 +2529,7 @@ function testResourcesAuthTree(_ref10) {
|
|
|
2527
2529
|
// return FUtil.Axios.get(`/v2/testNodes/testResources/${testResourceId}`);
|
|
2528
2530
|
return FUtil.Request({
|
|
2529
2531
|
method: 'GET',
|
|
2530
|
-
url: "
|
|
2532
|
+
url: "/v2/testNodes/testResources/" + testResourceId + "/authTree"
|
|
2531
2533
|
});
|
|
2532
2534
|
}
|
|
2533
2535
|
function testResourceDetails(_ref11) {
|