@freelog/tools-lib 0.1.178 → 0.1.180
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/presentables.d.ts +18 -3
- package/dist/tools-lib.cjs.development.js +50 -24
- 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 +50 -24
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +2 -1
- package/package.json +1 -1
- package/src/service-API/presentables.ts +48 -3
- package/src/utils/linkTo.ts +5 -1
package/dist/utils/linkTo.d.ts
CHANGED
|
@@ -131,8 +131,9 @@ interface InformNodeManagementParamsType {
|
|
|
131
131
|
export declare function informNodeManagement({ nodeID, showPage, ...params }: InformNodeManagementParamsType): TReturnType;
|
|
132
132
|
interface InformExhibitManagementParamsType {
|
|
133
133
|
exhibitID: string;
|
|
134
|
+
openAuthDrawer?: boolean;
|
|
134
135
|
}
|
|
135
|
-
export declare function informExhibitManagement({ exhibitID, }: InformExhibitManagementParamsType): TReturnType;
|
|
136
|
+
export declare function informExhibitManagement({ exhibitID, openAuthDrawer, }: InformExhibitManagementParamsType): TReturnType;
|
|
136
137
|
interface StorageSpaceParamsType {
|
|
137
138
|
bucketName?: string;
|
|
138
139
|
createBucket?: boolean;
|
package/package.json
CHANGED
|
@@ -148,6 +148,7 @@ interface PresentablesParamsType {
|
|
|
148
148
|
isLoadPolicyInfo?: 0 | 1;
|
|
149
149
|
isLoadResourceDetailInfo?: 0 | 1;
|
|
150
150
|
isLoadVersionUpdateTip?: 0 | 1;
|
|
151
|
+
subjectType?: 1 | 4 | 5;
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
export function presentables(params: PresentablesParamsType) {
|
|
@@ -401,6 +402,27 @@ export function createPresentableCollection({
|
|
|
401
402
|
});
|
|
402
403
|
}
|
|
403
404
|
|
|
405
|
+
// 更新展品合集
|
|
406
|
+
interface UpdatePresentableCollectionParamsType {
|
|
407
|
+
presentableId: string;
|
|
408
|
+
catalogueProperty?: {
|
|
409
|
+
collection_sort_list:
|
|
410
|
+
| 'collection_sort_ascending'
|
|
411
|
+
| 'collection_sort_descending';
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export function updatePresentableCollection({
|
|
416
|
+
presentableId,
|
|
417
|
+
...params
|
|
418
|
+
}: UpdatePresentableCollectionParamsType) {
|
|
419
|
+
return FUtil.Request({
|
|
420
|
+
method: 'PUT',
|
|
421
|
+
url: `/v2/presentables/catalogues/${presentableId}`,
|
|
422
|
+
data: params,
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
|
|
404
426
|
// 批量为展品合集添加单品
|
|
405
427
|
interface AddItemsToPresentableCollectionParamsType {
|
|
406
428
|
presentableId: string;
|
|
@@ -423,7 +445,8 @@ export function addItemsToPresentableCollection({
|
|
|
423
445
|
// 批量从展品合集中移除单品
|
|
424
446
|
interface RemoveItemsFromPresentableCollectionParamsType {
|
|
425
447
|
presentableId: string;
|
|
426
|
-
|
|
448
|
+
removeIds: string;
|
|
449
|
+
idType?: 'resourceId' | 'presentableId' | 'itemId';
|
|
427
450
|
}
|
|
428
451
|
|
|
429
452
|
export function removeItemsFromPresentableCollection({
|
|
@@ -459,6 +482,24 @@ export function getItemsFromPresentableCollection({
|
|
|
459
482
|
});
|
|
460
483
|
}
|
|
461
484
|
|
|
485
|
+
// 查询展品合集中的是否存在指定单品
|
|
486
|
+
interface GetItemsFromPresentableCollectionIsExistParamsType {
|
|
487
|
+
presentableId: string;
|
|
488
|
+
mountIds: string;
|
|
489
|
+
idType?: 'resourceId' | 'presentableId';
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export function getItemsFromPresentableCollectionIsExist({
|
|
493
|
+
presentableId,
|
|
494
|
+
...params
|
|
495
|
+
}: GetItemsFromPresentableCollectionIsExistParamsType) {
|
|
496
|
+
return FUtil.Request({
|
|
497
|
+
method: 'GET',
|
|
498
|
+
url: `/v2/presentables/catalogues/${presentableId}/items/checkExists`,
|
|
499
|
+
params: params,
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
|
|
462
503
|
// 设置展品合集中的单品排序-手动排序
|
|
463
504
|
interface SetItemsSortFromPresentableCollectionManualParamsType {
|
|
464
505
|
presentableId: string;
|
|
@@ -480,8 +521,12 @@ export function setItemsSortFromPresentableCollectionManual({
|
|
|
480
521
|
// 设置展品合集中的单品排序-快速排序
|
|
481
522
|
interface SetItemsSortFromPresentableCollectionQuickParamsType {
|
|
482
523
|
presentableId: string;
|
|
483
|
-
|
|
484
|
-
|
|
524
|
+
sortField:
|
|
525
|
+
| 'createDate'
|
|
526
|
+
| 'itemTitle'
|
|
527
|
+
| 'sortId'
|
|
528
|
+
| 'resourceFirstVersionReleaseDate';
|
|
529
|
+
sortType: 1 | -1;
|
|
485
530
|
}
|
|
486
531
|
|
|
487
532
|
export function setItemsSortFromPresentableCollectionQuick({
|
package/src/utils/linkTo.ts
CHANGED
|
@@ -346,12 +346,16 @@ export function informNodeManagement({
|
|
|
346
346
|
// 测试展品管理
|
|
347
347
|
interface InformExhibitManagementParamsType {
|
|
348
348
|
exhibitID: string;
|
|
349
|
+
openAuthDrawer?: boolean;
|
|
349
350
|
}
|
|
350
351
|
|
|
351
352
|
export function informExhibitManagement({
|
|
352
353
|
exhibitID,
|
|
354
|
+
openAuthDrawer = undefined,
|
|
353
355
|
}: InformExhibitManagementParamsType): TReturnType {
|
|
354
|
-
return `/node/exhibit/informal/${exhibitID}
|
|
356
|
+
return `/node/exhibit/informal/${exhibitID}${handleQuery({
|
|
357
|
+
openAuthDrawer,
|
|
358
|
+
})}`;
|
|
355
359
|
}
|
|
356
360
|
|
|
357
361
|
// 存储空间
|