@freelog/tools-lib 0.1.172 → 0.1.173

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.
@@ -30,7 +30,7 @@ export declare function resourceDetails({ resourceID, ...params }: ResourceDetai
30
30
  interface CollectionDetailsParamsType {
31
31
  collectionID: string;
32
32
  }
33
- export declare function collectionDetails({ collectionID }: CollectionDetailsParamsType): TReturnType;
33
+ export declare function collectionDetails({ collectionID, }: CollectionDetailsParamsType): TReturnType;
34
34
  interface ResourceCreatorParamsType {
35
35
  }
36
36
  export declare function resourceCreatorEntry({}?: ResourceCreatorParamsType): TReturnType;
@@ -56,47 +56,47 @@ interface ResourceVersionInfoParamsType {
56
56
  resourceID: string;
57
57
  version?: string;
58
58
  }
59
- export declare function resourceVersionInfo({ resourceID, version }: ResourceVersionInfoParamsType): TReturnType;
59
+ export declare function resourceVersionInfo({ resourceID, version, }: ResourceVersionInfoParamsType): TReturnType;
60
60
  interface ResourceInfoParamsType {
61
61
  resourceID: string;
62
62
  }
63
- export declare function resourceInfo({ resourceID }: ResourceInfoParamsType): TReturnType;
63
+ export declare function resourceInfo({ resourceID, }: ResourceInfoParamsType): TReturnType;
64
64
  interface ResourcePolicyParamsType {
65
65
  resourceID: string;
66
66
  }
67
- export declare function resourcePolicy({ resourceID }: ResourcePolicyParamsType): TReturnType;
67
+ export declare function resourcePolicy({ resourceID, }: ResourcePolicyParamsType): TReturnType;
68
68
  interface ResourceContractParamsType {
69
69
  resourceID: string;
70
70
  }
71
- export declare function resourceContract({ resourceID }: ResourceContractParamsType): TReturnType;
71
+ export declare function resourceContract({ resourceID, }: ResourceContractParamsType): TReturnType;
72
72
  interface ResourceDependencyParamsType {
73
73
  resourceID: string;
74
74
  }
75
- export declare function resourceDependency({ resourceID }: ResourceDependencyParamsType): TReturnType;
75
+ export declare function resourceDependency({ resourceID, }: ResourceDependencyParamsType): TReturnType;
76
76
  interface ResourceVersionCreatorParamsType {
77
77
  resourceID: string;
78
78
  }
79
- export declare function resourceVersionCreator({ resourceID }: ResourceVersionCreatorParamsType): TReturnType;
79
+ export declare function resourceVersionCreator({ resourceID, }: ResourceVersionCreatorParamsType): TReturnType;
80
80
  interface CollectionVersionInfoParamsType {
81
81
  collectionID: string;
82
82
  }
83
- export declare function collectionVersionInfo({ collectionID }: CollectionVersionInfoParamsType): TReturnType;
83
+ export declare function collectionVersionInfo({ collectionID, }: CollectionVersionInfoParamsType): TReturnType;
84
84
  interface CollectionInfoParamsType {
85
85
  collectionID: string;
86
86
  }
87
- export declare function collectionInfo({ collectionID }: CollectionInfoParamsType): TReturnType;
87
+ export declare function collectionInfo({ collectionID, }: CollectionInfoParamsType): TReturnType;
88
88
  interface CollectionPolicyParamsType {
89
89
  collectionID: string;
90
90
  }
91
- export declare function collectionPolicy({ collectionID }: CollectionPolicyParamsType): TReturnType;
91
+ export declare function collectionPolicy({ collectionID, }: CollectionPolicyParamsType): TReturnType;
92
92
  interface CollectionContractParamsType {
93
93
  collectionID: string;
94
94
  }
95
- export declare function collectionContract({ collectionID }: CollectionContractParamsType): TReturnType;
95
+ export declare function collectionContract({ collectionID, }: CollectionContractParamsType): TReturnType;
96
96
  interface CollectionDependencyParamsType {
97
97
  collectionID: string;
98
98
  }
99
- export declare function collectionDependency({ collectionID }: CollectionDependencyParamsType): TReturnType;
99
+ export declare function collectionDependency({ collectionID, }: CollectionDependencyParamsType): TReturnType;
100
100
  interface NodeCreatorParamsType {
101
101
  }
102
102
  export declare function nodeCreator({}?: NodeCreatorParamsType): TReturnType;
@@ -115,7 +115,11 @@ interface CollectionExhibitManagementParamsType {
115
115
  exhibitID: string;
116
116
  openAuthDrawer?: boolean;
117
117
  }
118
- export declare function collectionExhibitManagement({ exhibitID, openAuthDrawer }: CollectionExhibitManagementParamsType): TReturnType;
118
+ export declare function collectionExhibitManagement({ exhibitID, openAuthDrawer, }: CollectionExhibitManagementParamsType): TReturnType;
119
+ interface CollectionExhibitCreatorParamsType {
120
+ nodeID: number;
121
+ }
122
+ export declare function collectionExhibitCreator({ nodeID, }: CollectionExhibitCreatorParamsType): TReturnType;
119
123
  interface InformNodeManagementParamsType {
120
124
  nodeID: number;
121
125
  showPage?: 'exhibit' | 'theme' | 'mappingRule';
@@ -124,7 +128,7 @@ export declare function informNodeManagement({ nodeID, showPage, ...params }: In
124
128
  interface InformExhibitManagementParamsType {
125
129
  exhibitID: string;
126
130
  }
127
- export declare function informExhibitManagement({ exhibitID }: InformExhibitManagementParamsType): TReturnType;
131
+ export declare function informExhibitManagement({ exhibitID, }: InformExhibitManagementParamsType): TReturnType;
128
132
  interface StorageSpaceParamsType {
129
133
  bucketName?: string;
130
134
  createBucket?: boolean;
@@ -138,21 +142,21 @@ export declare function objectDetails({ ...params }: ObjectDetailsParamsType): T
138
142
  interface CollectionCreateSuccessParamsType {
139
143
  collectionID: string;
140
144
  }
141
- export declare function collectionCreateSuccess({ collectionID }: CollectionCreateSuccessParamsType): string;
145
+ export declare function collectionCreateSuccess({ collectionID, }: CollectionCreateSuccessParamsType): string;
142
146
  interface ResourceCreateSuccessParamsType {
143
147
  resourceID: string;
144
148
  }
145
- export declare function resourceCreateSuccess({ resourceID }: ResourceCreateSuccessParamsType): string;
149
+ export declare function resourceCreateSuccess({ resourceID, }: ResourceCreateSuccessParamsType): string;
146
150
  interface ResourceVersionCreateSuccessParamsType {
147
151
  resourceID: string;
148
152
  version: string;
149
153
  }
150
- export declare function resourceVersionCreateSuccess({ resourceID, version }: ResourceVersionCreateSuccessParamsType): string;
154
+ export declare function resourceVersionCreateSuccess({ resourceID, version, }: ResourceVersionCreateSuccessParamsType): string;
151
155
  interface ResourceVersionCreateReleaseParamsType {
152
156
  resourceID: string;
153
157
  version: string;
154
158
  }
155
- export declare function resourceVersionCreateRelease({ resourceID, version }: ResourceVersionCreateReleaseParamsType): string;
159
+ export declare function resourceVersionCreateRelease({ resourceID, version, }: ResourceVersionCreateReleaseParamsType): string;
156
160
  interface NodeCreateSuccessParamsType {
157
161
  nodeID: number;
158
162
  }
@@ -170,6 +174,11 @@ interface ExceptionUnableToAccessParamsType {
170
174
  from?: string;
171
175
  }
172
176
  export declare function exceptionUnableToAccess({ ...params }?: ExceptionUnableToAccessParamsType): string;
177
+ interface ExceptionCommonParamsType {
178
+ tipText?: string;
179
+ btnText?: string;
180
+ }
181
+ export declare function exceptionCommon({ ...params }?: ExceptionCommonParamsType): string;
173
182
  interface NodeFreezeParamsType {
174
183
  nodeID: number;
175
184
  }
@@ -202,7 +211,7 @@ export declare function bind({ goTo, returnUrl, ...params }?: LoginParamsType):
202
211
  interface RetrieveUserPasswordParamsType {
203
212
  goTo?: string;
204
213
  }
205
- export declare function retrieveUserPassword({ goTo }?: RetrieveUserPasswordParamsType): string;
214
+ export declare function retrieveUserPassword({ goTo, }?: RetrieveUserPasswordParamsType): string;
206
215
  interface RetrievePayPasswordParamsType {
207
216
  goTo?: string;
208
217
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.172",
3
+ "version": "0.1.173",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,156 +1,157 @@
1
- import FUtil from '../utils';
2
-
3
- // 创建合同
4
- interface CreateContractParamsType {
5
- subjectId: string;
6
- subjectType: 1 | 2 | 3; // 标的物类型 1:资源 2:展品 3:用户组
7
- policyId: string;
8
- licenseeId: string | number;
9
- licenseeIdentityType: 1 | 2 | 3; // 乙方身份类型 1:资源方 2:节点方 3:C端用户
10
- }
11
-
12
- export function createContract({...params}: CreateContractParamsType) {
13
- return FUtil.Request({
14
- method: 'POST',
15
- url: `/v2/contracts`,
16
- data: params,
17
- });
18
- }
19
-
20
- // 批量创建合同
21
- interface BatchCreateContractsParamsType {
22
- subjects: {
23
- subjectId: string;
24
- policyId: string;
25
- }[];
26
- subjectType: 1 | 2 | 3; // 标的物类型 1:资源 2:展品 3:用户组
27
- licenseeId: string | number;
28
- licenseeIdentityType: 1 | 2 | 3; // 乙方身份类型 1:资源方 2:节点方 3:C端用户
29
- }
30
-
31
- export function batchCreateContracts({...params}: BatchCreateContractsParamsType) {
32
- return FUtil.Request({
33
- method: 'POST',
34
- url: `/v2/contracts/batchSign`,
35
- data: params,
36
- });
37
- }
38
-
39
- // 查看合同详情
40
- interface ContractDetailsParamsType {
41
- contractId: string;
42
- isLoadPolicyInfo?: 0 | 1;
43
- projection?: string;
44
- isTranslate?: 0 | 1;
45
- }
46
-
47
- export function contractDetails({contractId, ...params}: ContractDetailsParamsType) {
48
- return FUtil.Request({
49
- method: 'GET',
50
- url: `/v2/contracts/${contractId}`,
51
- params: params,
52
- });
53
- }
54
-
55
- // 查看合同分页列表
56
- interface ContractsParamsType {
57
- skip?: number;
58
- limit?: number;
59
- identityType: 1 | 2;
60
- licensorId?: string;
61
- licensorName?: string;
62
- licenseeId?: string;
63
- licenseeName?: string;
64
- subjectIds?: string;
65
- subjectType?: 1 | 2 | 3;
66
- isDefault?: number;
67
- keywords?: string;
68
- status?: 0 | 1 | 2; // 合同状态 0:生效中 1:已终止 2:异常的
69
- authStatus?: 1 | 2 | 128; // 合同授权状态 1:正式授权 2:测试授权 128:未获得授权,多个通过'与'运算
70
- order?: 'asc' | 'desc'; // asc:正序 desc:倒序
71
- licenseeIdentityType?: number;
72
- isLoadPolicyInfo?: 0 | 1;
73
- isTranslate?: 0 | 1;
74
- startDate?: string;
75
- endDate?: string;
76
- projection?: string;
77
- }
78
-
79
- export function contracts(params: ContractsParamsType) {
80
- return FUtil.Request({
81
- method: 'GET',
82
- url: `/v2/contracts`,
83
- params: params,
84
- });
85
- }
86
-
87
- // 查询合约授权方搜索建议
88
- interface KeywordSuggestParamsType {
89
- identityType: 1 | 2;
90
- prefix: string;
91
- prefixType: 1 | 2;
92
- startDate?: string;
93
- endDate?: string;
94
- }
95
-
96
- export function keywordSuggest(params: KeywordSuggestParamsType) {
97
- return FUtil.Request({
98
- method: 'GET',
99
- url: `/v2/contracts/keywordSuggest`,
100
- params: params,
101
- });
102
- }
103
-
104
- // 批量查询合同列表
105
- interface BatchContractsParamsType {
106
- contractIds?: string;
107
- subjectIds?: string;
108
- subjectType?: 1 | 2 | 3;
109
- licenseeIdentityType?: 1 | 2 | 3;
110
- licensorId?: string;
111
- licenseeId?: string | number;
112
- isLoadPolicyInfo?: 0 | 1;
113
- projection?: string;
114
- isTranslate?: 0 | 1;
115
- }
116
-
117
- export function batchContracts(params: BatchContractsParamsType) {
118
- return FUtil.Request({
119
- method: 'GET',
120
- url: `/v2/contracts/list`,
121
- params: params,
122
- });
123
- }
124
-
125
- // 查看合同流转记录分页列表
126
- interface TransitionRecordsParamsType {
127
- contractId: string;
128
- skip?: number;
129
- limit?: number;
130
- isTranslate?: 0 | 1;
131
- }
132
-
133
- export function transitionRecords({contractId, ...params}: TransitionRecordsParamsType) {
134
- return FUtil.Request({
135
- method: 'GET',
136
- url: `/v2/contracts/${contractId}/transitionRecords`,
137
- params: params,
138
- });
139
- }
140
-
141
- // 统计合约签约量
142
- interface ContractsSignCountParamsType {
143
- objectIds: string | number;
144
- objectType: 1 | 2 | 3 | 4 | 5; // 统计对象类型(1:甲方ID 2:甲方所属ID 3:乙方ID 4:乙方所属ID 5:标的物ID)
145
- subjectType: 1 | 2 | 3; // 标的物类型(1:资源 2:展品 3:用户组)
146
- startDate?: string;
147
- endDate?: string;
148
- }
149
-
150
- export function contractsSignCount(params: ContractsSignCountParamsType) {
151
- return FUtil.Request({
152
- method: 'GET',
153
- url: `/v2/contracts/signCount`,
154
- params: params,
155
- });
156
- }
1
+ import FUtil from '../utils';
2
+
3
+ // 创建合同
4
+ interface CreateContractParamsType {
5
+ subjectId: string;
6
+ subjectType: 1 | 2 | 3; // 标的物类型 1:资源 2:展品 3:用户组
7
+ policyId: string;
8
+ licenseeId: string | number;
9
+ licenseeIdentityType: 1 | 2 | 3; // 乙方身份类型 1:资源方 2:节点方 3:C端用户
10
+ }
11
+
12
+ export function createContract({...params}: CreateContractParamsType) {
13
+ return FUtil.Request({
14
+ method: 'POST',
15
+ url: `/v2/contracts`,
16
+ data: params,
17
+ });
18
+ }
19
+
20
+ // 批量创建合同
21
+ interface BatchCreateContractsParamsType {
22
+ subjects: {
23
+ subjectId: string;
24
+ policyId: string;
25
+ }[];
26
+ subjectType: 1 | 2 | 3; // 标的物类型 1:资源 2:展品 3:用户组
27
+ licenseeId: string | number;
28
+ licenseeIdentityType: 1 | 2 | 3; // 乙方身份类型 1:资源方 2:节点方 3:C端用户
29
+ }
30
+
31
+ export function batchCreateContracts({...params}: BatchCreateContractsParamsType) {
32
+ return FUtil.Request({
33
+ method: 'POST',
34
+ url: `/v2/contracts/batchSign`,
35
+ data: params,
36
+ });
37
+ }
38
+
39
+ // 查看合同详情
40
+ interface ContractDetailsParamsType {
41
+ contractId: string;
42
+ isLoadPolicyInfo?: 0 | 1;
43
+ projection?: string;
44
+ isTranslate?: 0 | 1;
45
+ }
46
+
47
+ export function contractDetails({contractId, ...params}: ContractDetailsParamsType) {
48
+ return FUtil.Request({
49
+ method: 'GET',
50
+ url: `/v2/contracts/${contractId}`,
51
+ params: params,
52
+ });
53
+ }
54
+
55
+ // 查看合同分页列表
56
+ interface ContractsParamsType {
57
+ skip?: number;
58
+ limit?: number;
59
+ identityType: 1 | 2;
60
+ licensorId?: string;
61
+ licensorName?: string;
62
+ licenseeId?: string;
63
+ licenseeName?: string;
64
+ subjectIds?: string;
65
+ subjectType?: 1 | 2 | 3;
66
+ isDefault?: number;
67
+ keywords?: string;
68
+ status?: 0 | 1 | 2; // 合同状态 0:生效中 1:已终止 2:异常的
69
+ authStatus?: 1 | 2 | 128; // 合同授权状态 1:正式授权 2:测试授权 128:未获得授权,多个通过'与'运算
70
+ order?: 'asc' | 'desc'; // asc:正序 desc:倒序
71
+ licenseeIdentityType?: number;
72
+ isLoadPolicyInfo?: 0 | 1;
73
+ isTranslate?: 0 | 1;
74
+ startDate?: string;
75
+ endDate?: string;
76
+ projection?: string;
77
+ }
78
+
79
+ export function contracts(params: ContractsParamsType) {
80
+ return FUtil.Request({
81
+ method: 'GET',
82
+ url: `/v2/contracts`,
83
+ params: params,
84
+ });
85
+ }
86
+
87
+ // 查询合约授权方搜索建议
88
+ interface KeywordSuggestParamsType {
89
+ identityType: 1 | 2;
90
+ prefix: string;
91
+ prefixType: 1 | 2;
92
+ startDate?: string;
93
+ endDate?: string;
94
+ }
95
+
96
+ export function keywordSuggest(params: KeywordSuggestParamsType) {
97
+ return FUtil.Request({
98
+ method: 'GET',
99
+ url: `/v2/contracts/keywordSuggest`,
100
+ params: params,
101
+ });
102
+ }
103
+
104
+ // 批量查询合同列表
105
+ interface BatchContractsParamsType {
106
+ contractIds?: string;
107
+ subjectIds?: string;
108
+ subjectType?: 1 | 2 | 3;
109
+ licenseeIdentityType?: 1 | 2 | 3;
110
+ licensorId?: string;
111
+ licenseeId?: string | number;
112
+ isLoadPolicyInfo?: 0 | 1;
113
+ projection?: string;
114
+ isTranslate?: 0 | 1;
115
+ contractStatus?: number;
116
+ }
117
+
118
+ export function batchContracts(params: BatchContractsParamsType) {
119
+ return FUtil.Request({
120
+ method: 'GET',
121
+ url: `/v2/contracts/list`,
122
+ params: params,
123
+ });
124
+ }
125
+
126
+ // 查看合同流转记录分页列表
127
+ interface TransitionRecordsParamsType {
128
+ contractId: string;
129
+ skip?: number;
130
+ limit?: number;
131
+ isTranslate?: 0 | 1;
132
+ }
133
+
134
+ export function transitionRecords({contractId, ...params}: TransitionRecordsParamsType) {
135
+ return FUtil.Request({
136
+ method: 'GET',
137
+ url: `/v2/contracts/${contractId}/transitionRecords`,
138
+ params: params,
139
+ });
140
+ }
141
+
142
+ // 统计合约签约量
143
+ interface ContractsSignCountParamsType {
144
+ objectIds: string | number;
145
+ objectType: 1 | 2 | 3 | 4 | 5; // 统计对象类型(1:甲方ID 2:甲方所属ID 3:乙方ID 4:乙方所属ID 5:标的物ID)
146
+ subjectType: 1 | 2 | 3; // 标的物类型(1:资源 2:展品 3:用户组)
147
+ startDate?: string;
148
+ endDate?: string;
149
+ }
150
+
151
+ export function contractsSignCount(params: ContractsSignCountParamsType) {
152
+ return FUtil.Request({
153
+ method: 'GET',
154
+ url: `/v2/contracts/signCount`,
155
+ params: params,
156
+ });
157
+ }
@@ -5,11 +5,16 @@ export interface CreatePresentableParamsType {
5
5
  nodeId: number;
6
6
  resourceId: string;
7
7
  version: string;
8
- resolveResources: {
8
+ // resolveResources: {
9
+ // resourceId: string;
10
+ // contracts: {
11
+ // policyId: string;
12
+ // }[];
13
+ // }[];
14
+ batchSignContracts?: {
9
15
  resourceId: string;
10
- contracts: {
11
- policyId: string;
12
- }[];
16
+ subjectType: number;
17
+ policyIds: string[];
13
18
  }[];
14
19
  presentableName: string;
15
20
  presentableTitle?: string;
@@ -1326,7 +1326,7 @@ interface AddResourceItems_Draft_ParamsType {
1326
1326
  resourceId: string;
1327
1327
  addCollectionItems: {
1328
1328
  resourceId: string;
1329
- itemTitle: string;
1329
+ itemTitle?: string;
1330
1330
  // resolveResources?: {
1331
1331
  // resourceId: string;
1332
1332
  // contracts: {