@freelog/tools-lib 0.1.72 → 0.1.75
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/index.d.ts +2 -1
- package/dist/service-API/contracts.d.ts +2 -1
- package/dist/tools-lib.cjs.development.js +18 -0
- 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 +18 -1
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/types/ContractTypes.d.ts +1 -0
- package/dist/types/InformalNodeTypes.d.ts +23 -0
- package/dist/types/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/index.ts +9 -7
- package/src/service-API/contracts.ts +2 -1
- package/src/types/ContractTypes.ts +1 -0
- package/src/types/InformalNodeTypes.ts +28 -0
- package/src/types/index.ts +10 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type ContractStatus = 'active' | 'testActive' | 'inactive' | 'terminal';
|
|
@@ -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 {};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import FUtil from './utils';
|
|
2
|
-
import FServiceAPI from './service-API';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import FUtil from './utils';
|
|
2
|
+
import FServiceAPI from './service-API';
|
|
3
|
+
import FTypes from './types';
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
FUtil,
|
|
7
|
+
FServiceAPI,
|
|
8
|
+
FTypes,
|
|
9
|
+
};
|
|
@@ -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) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ContractStatus = 'active' | 'testActive' | 'inactive' | 'terminal';
|
|
@@ -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
|
+
}[];
|