@freelog/tools-lib 0.1.167 → 0.1.169
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/resources.d.ts +20 -15
- package/dist/tools-lib.cjs.development.js +1 -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 +1 -2
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +4 -2
- package/src/service-API/resources.ts +39 -15
- package/src/service-API/storages.ts +418 -418
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@freelog/tools-lib",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.169",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -64,5 +64,7 @@
|
|
|
64
64
|
"moment": "^2.29.1",
|
|
65
65
|
"nprogress": "^0.2.0",
|
|
66
66
|
"react": "^18.2.0"
|
|
67
|
-
}
|
|
67
|
+
},
|
|
68
|
+
"npmClient": "pnpm",
|
|
69
|
+
"registry": "https://www.npmjs.com/package/@freelog/tools-lib"
|
|
68
70
|
}
|
|
@@ -93,12 +93,19 @@ export interface CreateBatchParamsType {
|
|
|
93
93
|
baseUpcastResources?: {
|
|
94
94
|
resourceId: string;
|
|
95
95
|
}[];
|
|
96
|
-
|
|
96
|
+
batchSignContracts?: {
|
|
97
97
|
resourceId: string;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
// resourceName: string;
|
|
99
|
+
policyIds: string[];
|
|
100
|
+
// subjectType: 'resource' | '';
|
|
101
|
+
subjectType: string;
|
|
101
102
|
}[];
|
|
103
|
+
// resolveResources: {
|
|
104
|
+
// resourceId: string;
|
|
105
|
+
// contracts: {
|
|
106
|
+
// policyId: string;
|
|
107
|
+
// }[];
|
|
108
|
+
// }[];
|
|
102
109
|
inputAttrs?: {
|
|
103
110
|
key: string;
|
|
104
111
|
value: string;
|
|
@@ -326,7 +333,7 @@ interface CreateVersionParamsType {
|
|
|
326
333
|
}[];
|
|
327
334
|
authExcludedItems: {
|
|
328
335
|
resourceId: string;
|
|
329
|
-
excludedType: '
|
|
336
|
+
excludedType: 'contractId' | 'policyId';
|
|
330
337
|
excludedValue: string;
|
|
331
338
|
}[];
|
|
332
339
|
}
|
|
@@ -862,10 +869,6 @@ interface UpdateCollectionParamsType {
|
|
|
862
869
|
resourceId: string;
|
|
863
870
|
description?: string;
|
|
864
871
|
// serializeStatus?: 0 | 1;
|
|
865
|
-
dependencies?: {
|
|
866
|
-
resourceId: string;
|
|
867
|
-
versionRange: string;
|
|
868
|
-
}[];
|
|
869
872
|
customPropertyDescriptors?: {
|
|
870
873
|
key: string;
|
|
871
874
|
defaultValue: string;
|
|
@@ -873,12 +876,12 @@ interface UpdateCollectionParamsType {
|
|
|
873
876
|
candidateItems?: string[];
|
|
874
877
|
remark?: string;
|
|
875
878
|
}[];
|
|
876
|
-
resolveResources?: {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
}[];
|
|
879
|
+
// resolveResources?: {
|
|
880
|
+
// resourceId: string;
|
|
881
|
+
// contracts: {
|
|
882
|
+
// policyId: string;
|
|
883
|
+
// }[];
|
|
884
|
+
// }[];
|
|
882
885
|
// optionalResolveResources?: {
|
|
883
886
|
// resourceId: string;
|
|
884
887
|
// contracts: {
|
|
@@ -906,6 +909,27 @@ interface UpdateCollectionParamsType {
|
|
|
906
909
|
key: string;
|
|
907
910
|
value: string;
|
|
908
911
|
}[];
|
|
912
|
+
|
|
913
|
+
// dependencies?: {
|
|
914
|
+
// resourceId: string;
|
|
915
|
+
// versionRange: string;
|
|
916
|
+
// }[];
|
|
917
|
+
dependencies?: {
|
|
918
|
+
resourceId: string;
|
|
919
|
+
versionRange: string;
|
|
920
|
+
}[];
|
|
921
|
+
baseUpcastResources?: {
|
|
922
|
+
resourceId: string;
|
|
923
|
+
}[];
|
|
924
|
+
batchSignContracts?: {
|
|
925
|
+
resourceId: string;
|
|
926
|
+
policyIds: string[];
|
|
927
|
+
}[];
|
|
928
|
+
authExcludedItems: {
|
|
929
|
+
resourceId: string;
|
|
930
|
+
excludedType: 'contractId' | 'policyId';
|
|
931
|
+
excludedValue: string;
|
|
932
|
+
}[];
|
|
909
933
|
}
|
|
910
934
|
|
|
911
935
|
export function updateCollection({
|