@freelog/tools-lib 0.1.158 → 0.1.160
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 +10 -0
- package/dist/service-API/resources.d.ts +65 -0
- package/dist/service-API/storages.d.ts +10 -0
- package/dist/tools-lib.cjs.development.js +184 -118
- 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 +184 -118
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +10 -1
- package/package.json +67 -67
- package/src/service-API/contracts.ts +20 -1
- package/src/service-API/resources.ts +746 -645
- package/src/service-API/storages.ts +391 -362
- package/src/utils/linkTo.ts +23 -2
package/src/utils/linkTo.ts
CHANGED
|
@@ -70,6 +70,14 @@ export function resourceDetails({resourceID, ...params}: ResourceDetailsParamsTy
|
|
|
70
70
|
return `/resource/details/${resourceID}${handleQuery(params)}`;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
// 资源创建入口
|
|
74
|
+
interface ResourceCreatorParamsType {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function resourceCreatorEntry({}: ResourceCreatorParamsType = {}): TReturnType {
|
|
78
|
+
return `/resource/creatorEntry`;
|
|
79
|
+
}
|
|
80
|
+
|
|
73
81
|
// 资源创建
|
|
74
82
|
interface ResourceCreatorParamsType {
|
|
75
83
|
}
|
|
@@ -78,6 +86,14 @@ export function resourceCreator({}: ResourceCreatorParamsType = {}): TReturnType
|
|
|
78
86
|
return `/resource/creator`;
|
|
79
87
|
}
|
|
80
88
|
|
|
89
|
+
// 资源批量创建
|
|
90
|
+
interface ResourceCreatorParamsType {
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function resourceCreatorBatch({}: ResourceCreatorParamsType = {}): TReturnType {
|
|
94
|
+
return `/resource/creatorBatch`;
|
|
95
|
+
}
|
|
96
|
+
|
|
81
97
|
// 我的资源
|
|
82
98
|
interface MyResourcesParamsType {
|
|
83
99
|
}
|
|
@@ -409,10 +425,15 @@ export function reward({}: RewardParamsType = {}) {
|
|
|
409
425
|
|
|
410
426
|
// 我的合约
|
|
411
427
|
interface ContractParamsType {
|
|
428
|
+
identityType?: 1 | 2;
|
|
429
|
+
licensorName?: string;
|
|
430
|
+
licenseeName?: string;
|
|
412
431
|
}
|
|
413
432
|
|
|
414
|
-
export function contract({}: ContractParamsType = {}) {
|
|
415
|
-
return `/logged/contract
|
|
433
|
+
export function contract({...params}: ContractParamsType = {}) {
|
|
434
|
+
return `/logged/contract${handleQuery({
|
|
435
|
+
...params
|
|
436
|
+
})}`;
|
|
416
437
|
}
|
|
417
438
|
|
|
418
439
|
// 个人设置
|