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.
Files changed (2) hide show
  1. package/index.d.ts +12 -2
  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
  */
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "valtio": "2.1.7",
37
37
  "rhine-var": "2.4.3"
38
38
  },
39
- "version": "0.27.15",
39
+ "version": "0.27.16",
40
40
  "author": "NextFlow",
41
41
  "license": "Apache-2.0",
42
42
  "keywords": [