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