@freelog/tools-lib 0.1.158 → 0.1.161
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/activities.d.ts +11 -1
- package/dist/service-API/contracts.d.ts +10 -0
- package/dist/service-API/nodes.d.ts +9 -0
- package/dist/service-API/presentables.d.ts +22 -0
- package/dist/service-API/resources.d.ts +76 -1
- package/dist/service-API/storages.d.ts +14 -0
- package/dist/tools-lib.cjs.development.js +313 -188
- 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 +313 -188
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +12 -2
- package/package.json +67 -67
- package/src/service-API/activities.ts +314 -286
- package/src/service-API/contracts.ts +20 -1
- package/src/service-API/nodes.ts +19 -1
- package/src/service-API/operation.ts +42 -42
- package/src/service-API/presentables.ts +49 -20
- package/src/service-API/resources.ts +132 -5
- package/src/service-API/storages.ts +42 -1
- package/src/utils/axios.ts +141 -141
- package/src/utils/linkTo.ts +26 -4
- package/src/utils/regexp.ts +1 -1
package/dist/utils/linkTo.d.ts
CHANGED
|
@@ -29,7 +29,13 @@ interface ResourceDetailsParamsType {
|
|
|
29
29
|
export declare function resourceDetails({ resourceID, ...params }: ResourceDetailsParamsType): TReturnType;
|
|
30
30
|
interface ResourceCreatorParamsType {
|
|
31
31
|
}
|
|
32
|
+
export declare function resourceCreatorEntry({}?: ResourceCreatorParamsType): TReturnType;
|
|
33
|
+
interface ResourceCreatorParamsType {
|
|
34
|
+
}
|
|
32
35
|
export declare function resourceCreator({}?: ResourceCreatorParamsType): TReturnType;
|
|
36
|
+
interface ResourceCreatorParamsType {
|
|
37
|
+
}
|
|
38
|
+
export declare function resourceCreatorBatch({}?: ResourceCreatorParamsType): TReturnType;
|
|
33
39
|
interface MyResourcesParamsType {
|
|
34
40
|
}
|
|
35
41
|
export declare function myResources({}?: MyResourcesParamsType): TReturnType;
|
|
@@ -71,8 +77,9 @@ interface NodeManagementParamsType {
|
|
|
71
77
|
export declare function nodeManagement({ nodeID, showPage, ...params }: NodeManagementParamsType): TReturnType;
|
|
72
78
|
interface ExhibitManagementParamsType {
|
|
73
79
|
exhibitID: string;
|
|
80
|
+
openAuthDrawer?: boolean;
|
|
74
81
|
}
|
|
75
|
-
export declare function exhibitManagement({ exhibitID }: ExhibitManagementParamsType): TReturnType;
|
|
82
|
+
export declare function exhibitManagement({ exhibitID, openAuthDrawer }: ExhibitManagementParamsType): TReturnType;
|
|
76
83
|
interface InformNodeManagementParamsType {
|
|
77
84
|
nodeID: number;
|
|
78
85
|
showPage?: 'exhibit' | 'theme' | 'mappingRule';
|
|
@@ -166,8 +173,11 @@ interface RewardParamsType {
|
|
|
166
173
|
}
|
|
167
174
|
export declare function reward({}?: RewardParamsType): string;
|
|
168
175
|
interface ContractParamsType {
|
|
176
|
+
identityType?: 1 | 2;
|
|
177
|
+
licensorName?: string;
|
|
178
|
+
licenseeName?: string;
|
|
169
179
|
}
|
|
170
|
-
export declare function contract({}?: ContractParamsType): string;
|
|
180
|
+
export declare function contract({ ...params }?: ContractParamsType): string;
|
|
171
181
|
interface SettingParamsType {
|
|
172
182
|
}
|
|
173
183
|
export declare function setting({}?: SettingParamsType): string;
|
package/package.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@freelog/tools-lib",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"typings": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist",
|
|
9
|
-
"src"
|
|
10
|
-
],
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=10"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"start": "tsdx watch",
|
|
16
|
-
"build": "tsdx build",
|
|
17
|
-
"test": "tsdx test",
|
|
18
|
-
"lint": "tsdx lint",
|
|
19
|
-
"prepare": "tsdx build",
|
|
20
|
-
"size": "size-limit",
|
|
21
|
-
"analyze": "size-limit --why",
|
|
22
|
-
"publish": "npm publish --access=public"
|
|
23
|
-
},
|
|
24
|
-
"husky": {
|
|
25
|
-
"hooks": {}
|
|
26
|
-
},
|
|
27
|
-
"prettier": {
|
|
28
|
-
"printWidth": 80,
|
|
29
|
-
"semi": true,
|
|
30
|
-
"singleQuote": true,
|
|
31
|
-
"trailingComma": "es5"
|
|
32
|
-
},
|
|
33
|
-
"author": "liu-kai-github",
|
|
34
|
-
"module": "dist/tools-lib.esm.js",
|
|
35
|
-
"size-limit": [
|
|
36
|
-
{
|
|
37
|
-
"path": "dist/tools-lib.cjs.production.min.js",
|
|
38
|
-
"limit": "10 KB"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"path": "dist/tools-lib.esm.js",
|
|
42
|
-
"limit": "10 KB"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@size-limit/preset-small-lib": "^4.11.0",
|
|
47
|
-
"@types/js-cookie": "^3.0.2",
|
|
48
|
-
"@types/node": "^18.7.16",
|
|
49
|
-
"@types/nprogress": "^0.2.0",
|
|
50
|
-
"@types/react": "^18.2.17",
|
|
51
|
-
"husky": "^6.0.0",
|
|
52
|
-
"size-limit": "^4.11.0",
|
|
53
|
-
"tsdx": "^0.14.1",
|
|
54
|
-
"tslib": "^2.2.0",
|
|
55
|
-
"typescript": "^4.7.4"
|
|
56
|
-
},
|
|
57
|
-
"dependencies": {
|
|
58
|
-
"@freelog/resource-policy-lang": "1.1.26",
|
|
59
|
-
"axios": "^0.21.1",
|
|
60
|
-
"html-react-parser": "^4.2.0",
|
|
61
|
-
"i18next": "^21.8.10",
|
|
62
|
-
"js-cookie": "^3.0.1",
|
|
63
|
-
"moment": "^2.29.1",
|
|
64
|
-
"nprogress": "^0.2.0",
|
|
65
|
-
"react": "^18.2.0"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@freelog/tools-lib",
|
|
3
|
+
"version": "0.1.161",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"typings": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"src"
|
|
10
|
+
],
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=10"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"start": "tsdx watch",
|
|
16
|
+
"build": "tsdx build",
|
|
17
|
+
"test": "tsdx test",
|
|
18
|
+
"lint": "tsdx lint",
|
|
19
|
+
"prepare": "tsdx build",
|
|
20
|
+
"size": "size-limit",
|
|
21
|
+
"analyze": "size-limit --why",
|
|
22
|
+
"publish": "npm publish --access=public"
|
|
23
|
+
},
|
|
24
|
+
"husky": {
|
|
25
|
+
"hooks": {}
|
|
26
|
+
},
|
|
27
|
+
"prettier": {
|
|
28
|
+
"printWidth": 80,
|
|
29
|
+
"semi": true,
|
|
30
|
+
"singleQuote": true,
|
|
31
|
+
"trailingComma": "es5"
|
|
32
|
+
},
|
|
33
|
+
"author": "liu-kai-github",
|
|
34
|
+
"module": "dist/tools-lib.esm.js",
|
|
35
|
+
"size-limit": [
|
|
36
|
+
{
|
|
37
|
+
"path": "dist/tools-lib.cjs.production.min.js",
|
|
38
|
+
"limit": "10 KB"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"path": "dist/tools-lib.esm.js",
|
|
42
|
+
"limit": "10 KB"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@size-limit/preset-small-lib": "^4.11.0",
|
|
47
|
+
"@types/js-cookie": "^3.0.2",
|
|
48
|
+
"@types/node": "^18.7.16",
|
|
49
|
+
"@types/nprogress": "^0.2.0",
|
|
50
|
+
"@types/react": "^18.2.17",
|
|
51
|
+
"husky": "^6.0.0",
|
|
52
|
+
"size-limit": "^4.11.0",
|
|
53
|
+
"tsdx": "^0.14.1",
|
|
54
|
+
"tslib": "^2.2.0",
|
|
55
|
+
"typescript": "^4.7.4"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@freelog/resource-policy-lang": "1.1.26",
|
|
59
|
+
"axios": "^0.21.1",
|
|
60
|
+
"html-react-parser": "^4.2.0",
|
|
61
|
+
"i18next": "^21.8.10",
|
|
62
|
+
"js-cookie": "^3.0.1",
|
|
63
|
+
"moment": "^2.29.1",
|
|
64
|
+
"nprogress": "^0.2.0",
|
|
65
|
+
"react": "^18.2.0"
|
|
66
|
+
}
|
|
67
|
+
}
|