@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.
@@ -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 {};
@@ -0,0 +1,7 @@
1
+ import * as ContractTypes from './ContractTypes';
2
+ import * as InformalNodeTypes from './InformalNodeTypes';
3
+ declare const FTypes: {
4
+ ContractTypes: typeof ContractTypes;
5
+ InformalNodeTypes: typeof InformalNodeTypes;
6
+ };
7
+ export default FTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.72",
3
+ "version": "0.1.75",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -1,7 +1,9 @@
1
- import FUtil from './utils';
2
- import FServiceAPI from './service-API';
3
-
4
- export {
5
- FUtil,
6
- FServiceAPI,
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
- contractId: string;
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
+ }[];
@@ -0,0 +1,10 @@
1
+ import * as ContractTypes from './ContractTypes';
2
+ import * as InformalNodeTypes from './InformalNodeTypes';
3
+
4
+
5
+ const FTypes = {
6
+ ContractTypes,
7
+ InformalNodeTypes,
8
+ };
9
+
10
+ export default FTypes;