@freelog/tools-lib 0.1.179 → 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 +9 -2
- package/dist/tools-lib.cjs.development.js +39 -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 +39 -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 +27 -2
- 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
|
@@ -402,6 +402,27 @@ export function createPresentableCollection({
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
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
|
+
|
|
405
426
|
// 批量为展品合集添加单品
|
|
406
427
|
interface AddItemsToPresentableCollectionParamsType {
|
|
407
428
|
presentableId: string;
|
|
@@ -500,8 +521,12 @@ export function setItemsSortFromPresentableCollectionManual({
|
|
|
500
521
|
// 设置展品合集中的单品排序-快速排序
|
|
501
522
|
interface SetItemsSortFromPresentableCollectionQuickParamsType {
|
|
502
523
|
presentableId: string;
|
|
503
|
-
|
|
504
|
-
|
|
524
|
+
sortField:
|
|
525
|
+
| 'createDate'
|
|
526
|
+
| 'itemTitle'
|
|
527
|
+
| 'sortId'
|
|
528
|
+
| 'resourceFirstVersionReleaseDate';
|
|
529
|
+
sortType: 1 | -1;
|
|
505
530
|
}
|
|
506
531
|
|
|
507
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
|
// 存储空间
|