next-flow-interface 0.27.15 → 0.27.17
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/index.d.ts +13 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1587,6 +1587,7 @@ declare function fetchJsonWithRetry(url: string, retries?: number): Promise<unkn
|
|
|
1587
1587
|
*/
|
|
1588
1588
|
export declare interface FileData {
|
|
1589
1589
|
fid: string;
|
|
1590
|
+
resourceId?: string;
|
|
1590
1591
|
status: LocalDataStatus;
|
|
1591
1592
|
name: string;
|
|
1592
1593
|
progress: number;
|
|
@@ -6055,7 +6056,7 @@ export declare class RvResourceService {
|
|
|
6055
6056
|
*/
|
|
6056
6057
|
add(resourceId: string): void;
|
|
6057
6058
|
/**
|
|
6058
|
-
* 从协同数据移除 resourceId
|
|
6059
|
+
* 从协同数据移除 resourceId,并清理 fileToResourceMap 中的映射
|
|
6059
6060
|
*/
|
|
6060
6061
|
remove(resourceId: string): boolean;
|
|
6061
6062
|
/**
|
|
@@ -6067,9 +6068,19 @@ export declare class RvResourceService {
|
|
|
6067
6068
|
*/
|
|
6068
6069
|
getMetadata(resourceId: string): Resource | undefined;
|
|
6069
6070
|
/**
|
|
6070
|
-
* 通过 fileId
|
|
6071
|
+
* 通过 fileId 获取对应的资源元数据(返回第一个匹配的资源)
|
|
6072
|
+
*
|
|
6073
|
+
* @deprecated 当一个文件对应多个资源时,此方法只返回第一个。建议使用 getAllMetadataByFileId()
|
|
6071
6074
|
*/
|
|
6072
6075
|
getMetadataByFileId(fileId: string): Resource | undefined;
|
|
6076
|
+
/**
|
|
6077
|
+
* 通过 fileId 获取所有对应的资源元数据列表
|
|
6078
|
+
*/
|
|
6079
|
+
getAllMetadataByFileId(fileId: string): Resource[];
|
|
6080
|
+
/**
|
|
6081
|
+
* 通过 fileId 获取所有对应的 resourceId 列表
|
|
6082
|
+
*/
|
|
6083
|
+
getResourceIdsByFileId(fileId: string): string[];
|
|
6073
6084
|
/**
|
|
6074
6085
|
* 设置资源元数据缓存
|
|
6075
6086
|
*/
|