@freelog/tools-lib 0.1.71 → 0.1.74
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 +2 -1
- package/dist/service-API/resources.d.ts +6 -0
- package/dist/tools-lib.cjs.development.js +11 -4
- 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 +11 -4
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/types/InformalNodeTypes.d.ts +23 -0
- package/dist/types/contractTypes.d.ts +1 -0
- package/package.json +1 -1
- package/src/service-API/contracts.ts +2 -1
- package/src/service-API/resources.ts +15 -3
- package/src/types/InformalNodeTypes.ts +28 -0
- package/src/types/contractTypes.ts +1 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface ICandidate {
|
|
2
|
+
name: string;
|
|
3
|
+
versionRange?: string;
|
|
4
|
+
type: 'resource' | 'object';
|
|
5
|
+
}
|
|
6
|
+
export declare type OperationAndActionRecords = {
|
|
7
|
+
type: 'add' | 'alter' | 'set_labels' | 'online' | 'set_title' | 'set_cover' | 'add_attr' | 'delete_attr' | 'replace' | 'activate_theme';
|
|
8
|
+
data: {
|
|
9
|
+
exhibitName: string;
|
|
10
|
+
candidate?: ICandidate;
|
|
11
|
+
tags?: string[];
|
|
12
|
+
coverImage?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
onlineStatus?: boolean;
|
|
15
|
+
attrDescription?: string;
|
|
16
|
+
attrKey?: string;
|
|
17
|
+
attrValue?: string;
|
|
18
|
+
replaced?: ICandidate;
|
|
19
|
+
replacer?: ICandidate;
|
|
20
|
+
scopes?: ICandidate[][];
|
|
21
|
+
};
|
|
22
|
+
}[];
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type ContractStatus = 'active' | 'testActive' | 'inactive' | 'terminal';
|
package/package.json
CHANGED
|
@@ -69,9 +69,10 @@ export function batchContracts(params: BatchContractsParamsType) {
|
|
|
69
69
|
|
|
70
70
|
// 查看合同流转记录分页列表
|
|
71
71
|
interface TransitionRecordsParamsType {
|
|
72
|
+
contractId: string;
|
|
72
73
|
skip?: number;
|
|
73
74
|
limit?: number;
|
|
74
|
-
|
|
75
|
+
isTranslate?: 0 | 1;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
export function transitionRecords({contractId, ...params}: TransitionRecordsParamsType) {
|
|
@@ -440,12 +440,24 @@ interface RelationTreeAuthParamsType {
|
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
export function relationTreeAuth({resourceId, ...params}: RelationTreeAuthParamsType) {
|
|
443
|
-
// return FUtil.Axios.get(`/v2/auths/resources/${resourceId}/relationTreeAuth`, {
|
|
444
|
-
// params,
|
|
445
|
-
// });
|
|
446
443
|
return FUtil.Request({
|
|
447
444
|
method: 'GET',
|
|
448
445
|
url: `/v2/auths/resources/${resourceId}/relationTreeAuth`,
|
|
449
446
|
params: params,
|
|
450
447
|
});
|
|
451
448
|
}
|
|
449
|
+
|
|
450
|
+
// 批量查询资源授权结果
|
|
451
|
+
interface BatchAuthParamsType {
|
|
452
|
+
resourceIds: string;
|
|
453
|
+
versions?: string;
|
|
454
|
+
versionRanges?: string;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export function batchAuth({...params}: BatchAuthParamsType) {
|
|
458
|
+
return FUtil.Request({
|
|
459
|
+
method: 'GET',
|
|
460
|
+
url: `/v2/auths/resources/batchAuth/results`,
|
|
461
|
+
params: params,
|
|
462
|
+
});
|
|
463
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
interface ICandidate {
|
|
3
|
+
name: string;
|
|
4
|
+
versionRange?: string;
|
|
5
|
+
type: 'resource' | 'object';
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type OperationAndActionRecords = {
|
|
9
|
+
type: 'add' | 'alter' | 'set_labels' | 'online' | 'set_title' | 'set_cover' | 'add_attr' | 'delete_attr' | 'replace' | 'activate_theme';
|
|
10
|
+
data: {
|
|
11
|
+
exhibitName: string;
|
|
12
|
+
|
|
13
|
+
candidate?: ICandidate;
|
|
14
|
+
|
|
15
|
+
tags?: string[];
|
|
16
|
+
coverImage?: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
onlineStatus?: boolean;
|
|
19
|
+
|
|
20
|
+
attrDescription?: string;
|
|
21
|
+
attrKey?: string;
|
|
22
|
+
attrValue?: string;
|
|
23
|
+
|
|
24
|
+
replaced?: ICandidate;
|
|
25
|
+
replacer?: ICandidate;
|
|
26
|
+
scopes?: ICandidate[][];
|
|
27
|
+
};
|
|
28
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ContractStatus = 'active' | 'testActive' | 'inactive' | 'terminal';
|