@freelog/tools-lib 0.1.45 → 0.1.49
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 +7 -4
- package/dist/tools-lib.cjs.development.js +6 -10
- 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 +6 -10
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/predefined.d.ts +2 -0
- package/package.json +1 -1
- package/src/service-API/contracts.ts +83 -89
- package/src/utils/predefined.ts +37 -33
|
@@ -12,15 +12,18 @@ interface ContractsParamsType {
|
|
|
12
12
|
licensorId?: string;
|
|
13
13
|
licenseeId?: string;
|
|
14
14
|
subjectIds?: string;
|
|
15
|
-
subjectType?:
|
|
15
|
+
subjectType?: 1 | 2 | 3;
|
|
16
16
|
isDefault?: number;
|
|
17
17
|
keywords?: string;
|
|
18
|
-
status?:
|
|
19
|
-
|
|
18
|
+
status?: 0 | 1 | 2;
|
|
19
|
+
authStatus?: 1 | 2 | 128;
|
|
20
|
+
order?: 'asc' | 'desc';
|
|
20
21
|
licenseeIdentityType?: number;
|
|
21
22
|
isLoadPolicyInfo?: 0 | 1;
|
|
22
|
-
projection?: string;
|
|
23
23
|
isTranslate?: 0 | 1;
|
|
24
|
+
startDate?: string;
|
|
25
|
+
endDate?: string;
|
|
26
|
+
projection?: string;
|
|
24
27
|
}
|
|
25
28
|
export declare function contracts(params: ContractsParamsType): Promise<any>;
|
|
26
29
|
interface BatchContractsParamsType {
|
|
@@ -1218,7 +1218,10 @@ var LinkTo = {
|
|
|
1218
1218
|
// 预设资源类型
|
|
1219
1219
|
var resourceTypes = ['json', 'widget', 'image', 'audio', 'markdown', 'theme', 'reveal_slide', 'license', 'video', 'catalog']; // 全局列表加载条目数
|
|
1220
1220
|
|
|
1221
|
-
var pageSize =
|
|
1221
|
+
var pageSize = 100; // Moment 日期时间格式
|
|
1222
|
+
|
|
1223
|
+
var momentDateFormat = 'YYYY-MM-DD';
|
|
1224
|
+
var momentDateTimeFormat = 'YYYY-MM-DD HH:mm'; // 签约方用户的身份类型定义
|
|
1222
1225
|
|
|
1223
1226
|
var EnumContractPartyIdentityType;
|
|
1224
1227
|
|
|
@@ -1253,6 +1256,8 @@ var Predefined = {
|
|
|
1253
1256
|
__proto__: null,
|
|
1254
1257
|
resourceTypes: resourceTypes,
|
|
1255
1258
|
pageSize: pageSize,
|
|
1259
|
+
momentDateFormat: momentDateFormat,
|
|
1260
|
+
momentDateTimeFormat: momentDateTimeFormat,
|
|
1256
1261
|
get EnumContractPartyIdentityType () { return EnumContractPartyIdentityType; },
|
|
1257
1262
|
get EnumSubjectType () { return EnumSubjectType; },
|
|
1258
1263
|
get EnumContractStatus () { return EnumContractStatus; }
|
|
@@ -2564,9 +2569,6 @@ function contractDetails(_ref) {
|
|
|
2564
2569
|
var contractId = _ref.contractId,
|
|
2565
2570
|
params = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
2566
2571
|
|
|
2567
|
-
// return FUtil.Axios.get(`/v2/contracts/${contractId}`, {
|
|
2568
|
-
// params,
|
|
2569
|
-
// });
|
|
2570
2572
|
return FUtil.Request({
|
|
2571
2573
|
method: 'GET',
|
|
2572
2574
|
url: "/v2/contracts/" + contractId,
|
|
@@ -2574,9 +2576,6 @@ function contractDetails(_ref) {
|
|
|
2574
2576
|
});
|
|
2575
2577
|
}
|
|
2576
2578
|
function contracts(params) {
|
|
2577
|
-
// return FUtil.Axios.get('/v2/contracts', {
|
|
2578
|
-
// params,
|
|
2579
|
-
// });
|
|
2580
2579
|
return FUtil.Request({
|
|
2581
2580
|
method: 'GET',
|
|
2582
2581
|
url: "/v2/contracts",
|
|
@@ -2584,9 +2583,6 @@ function contracts(params) {
|
|
|
2584
2583
|
});
|
|
2585
2584
|
}
|
|
2586
2585
|
function batchContracts(params) {
|
|
2587
|
-
// return FUtil.Axios.get('/v2/contracts/list', {
|
|
2588
|
-
// params,
|
|
2589
|
-
// });
|
|
2590
2586
|
return FUtil.Request({
|
|
2591
2587
|
method: 'GET',
|
|
2592
2588
|
url: "/v2/contracts/list",
|